RN4870/71 Bluetooth
®
Low Energy Module User’s Guide
DS50002466A-page 26 2016 Microchip Technology Inc.
2.5 GET COMMANDS
2.5.1 G:,<hex16>,<hex8>
This command is used to read any settings in configuration eFlash.
This command expects two parameters. The first parameter is a 16-bit hex value that
represents memory shift address in Non-Volatile Memory for data. The second param-
eter is the size of the data to be read, up to 32 (0x20) bytes.
The user must have clear idea about the eFlash shift address of the configuration
parameters for RN4870/71.
2.5.2
GK
Command GK gets the current connection status. It expects no input parameter.
If the RN4870/71 is not connected, the output is none.
If the RN4870/71 is connected, command GK returns the following connection
information:
<Peer BT Address>,<Address Type>,<Connection Type>
where <Peer BT Address> is the 6-byte hex address of the peer device; <Address
Type> is either 0 for public address or 1 for random address. <Connection Type> spec-
ifies if the connection enables UART Transparent feature, where 1 indicates UART
Transparent is enabled and 0 indicates UART Transparent is disabled.
2.5.3
GNR
This command gets the peer device name when connected. If this command is issued
before a connection is established, an error message is the output.
2.5.4 G<char>
This command displays the stored settings for a Set command, where <char> is a Set
command name.
Default: N/A
Example: G:,0006,0A // Read device name up to 10 bytes, where the
// device name is stored in eFlash starting from
// memory shift address 0x0006
Response: Contents from the eFlash address in hex format
Example: GK // Get current connection status
Response: none
<Peer BT Address>,<Address Type>,<Connection Type>
Example: GNR
// Get remote device name
Response: <Remote Device Name>
ERR // Not Connected yet
Example: GA // Return to Authentication mode set by command SA
Response: // Value of the settings