User's Manual

3.3.2.8 K
Command “K” is used to disconnect the active BTLE link. It could be used as a
central or peripheral role. Command “K” does not have any parameter.
Example: K // Kill the active BTLE connection
3.3.2.9 M
Command “M” is used to get the signal strength of last communication with peer
device. The signal strength could be used to estimate the distance between the
device and its peer. Command “M” does not expect any parameter.
The return value of command “M” is the signal strength in dBm. The accuracy of the
result is within 6dBm.
Example: M // check the signal strength of last
// communication with peer device
3.3.2.10 O
Command “O” puts the module into dormant mode that consumes very little power.
It has no parameter and could be issued by either central or peripheral device.
When RN4020 is in dormant mode, the power consumption is less than 600nA. As
comparison, power consumption is less than 5uA in deep sleep mode. Once enter
dormant mode, GPIO 9 will assert low, all connection will be lost as well as any data
in RAM. To exit from dormant mode, pull the WAKE pin high. Once exit from
dormant mode, RN4020 behaves the same as after reboot.
Example: O // Enter low power dormant mode
3.3.2.11 Q
Command “Q” shows current connection status. It has no parameter and can be
issued by either central or peripheral device.
When device is disconnected, RN4020 module will return status as “No Connection”.
Otherwise, the return status includes peer device’s MAC address, address type
(public or random) and the primary service record UUIDs that current device
support as client role. Command “SC” sets the services that current device could
support as client role. Whether to support those services depends on whether the