2016 Microchip Technology Inc. DS50002466A-page 31
2.6.10 &C
Command &C clears the random address and uses local MAC address for advertise-
ment. If the device is currently advertising, the advertising address immediately
changes to the local MAC address.
2.6.11
&R
Command &R generates a resolvable random address and assigns it as the current
random address. Such resolvable random address becomes the output to UART as the
response of this command. If the device is currently advertising, the advertising
address immediately changes to the new resolvable random address.
2.6.12
A[,<hex16>,<hex16>]
Command A is used to start advertisement. The advertisement is undirected
connectable.
When command A is issued without a parameter, the advertisement is set to be fast
advertisement at first, then set to low-power advertisement after 30 seconds. Com-
mand A must be followed by two optional 16-bit hex parameters which indicate adver-
tisement interval with unit of millisecond and total advertisement time with unit of 640
ms, respectively. The optional second parameter must be larger than the first parame-
ter in actual time. When a parameter is used in command A, the Fast Advertisement
Timeout is no longer effective and the advertisement with the interval parameter can
last forever if there is no second input parameter, or not up to the time indicated by the
second input parameter.
2.6.13
B
Command B is used to secure the connection and bond two connected devices. Com-
mand B is only effective if two devices are already connected. Bonding process can be
initiated from either the central or the peripheral device.
Once bonded, security materials are saved in both end of the connection. Therefore,
reconnection between bonded devices does not require authentication, so reconnec-
tion can be done in a very short time.
Example: &C // Clears random address and uses MAC address
Response: AOK // Success
Example: &R // Automatically generate and assign a resolvable
// random address
Response: Assigned resolvable random address
Default: Fast advertisement interval for indefinite time
Example: A,0050,005E // Start advertisement with interval of
// 80 millisecond for 60 seconds
Response: AOK // Success