2016 Microchip Technology Inc. DS50002466A-page 33
2.6.16 C<1-8>
RN4870/71 can store the MAC addresses of up to eight bonded devices. The C com-
mand provides an easy way to reconnect to any stored device without typing the MAC
address of stored device, if such device uses public address. When this command is
used to reconnect to a bonded device, RN4870/71 automatically secures the link once
the connection is established. To display the list of stored devices, use command LB.
2.6.17
D
This command is used to display critical information of current device over UART.
Command D has no parameter.
2.6.18
F[,<hex16>,<hex16>]
Command F is available only when the module is set as a Central (GAP) device and is
ready for scan before establishing connection.
If no parameter is provided, command F starts the process of scanning with default
scan interval of 375 milliseconds and scan window of 250 milliseconds. The user has
the option to specify the scan interval and scan window as first and second parameter,
respectively. The inputs are in 16-bit hex format. Each unit is 0.625 millisecond. Scan
interval must be larger or equal to scan window. The scan interval and the scan window
values can range from 2.5 milliseconds to 10.24 seconds. Use X command to stop an
active scan.
Response:
Example: C2 // Reconnect to the second stored device
Response: Trying
%CONNECT%
ERR
%ERR_CONN%
// Start connecting
// Status string
// Syntax error or invalid parameter
// Status string
Example: D // Dump information
Response: Following information are shown after issuing command D.
• Device MAC Address
• The random address, if random address is used
• Device Name
• Connected Device: MAC address and address type (Public or
Random) if connected, or no if there is no active connection.
• Authentication Method: device I/O capability set by command SA.
• Device Features: device features set by command SR.
• Server Services: bitmap of predefined services that are supported
as server role, set by command SS.
• The fixed pin code, if fixed pin code is used
Default: 375 ms for scan interval, 250 ms for scan window
Example: F,01E0,0190 // Start inquiry with 300 ms scan interval and
// 200 ms scan window
Scanning // Start scanning
%<Address>,<Addr_Type>,<Name>,<UUIDs>,<RSSI>% // Connectable
%<Address>,<Addr_Type>,<RSSI>,Brcst:<Broadcast Payload>%
// Non-connectable