RN4677 Bluetooth
®
4.0 Dual Mode Module User’s Guide
DS50002377A-page 18 2015 Microchip Technology Inc.
2.3.9 SM,<value>
This command sets the mode, where <value> is a number as shown in Table 2-2.
Default:
0
Example:
2.3.10 SN,<string>
This command sets the device name, where <string> is up to 16 alphanumeric
characters.
Default:
N/A
Example:
2.3.11 SO,<string1>[,<string2>]
This command sets the extended status string, where <string1> and <string2> are up
to four alphanumeric characters each. Setting these strings to from one to four
characters permits status messages to be sent to the RN4677 UART port. The first
string is the prefix to the message, and the optional second string is the postfix to the
message. For instance, when a Bluetooth Classic connection is established, the device
sends the string <string1>CONNECT<string2>.
If the first parameter is a space, then both prefix and postfix are cleared, and no
extended status string becomes an output.
Default:
%,%
Example:
2.3.12 SP,<string>
This command sets the security pin code, where <string> is either a 4-digit or a 6-digit
pin. The 4-digit pin is used for legacy pin code pairing, while the 6-digit pin is used for
SSP authentication in BLE if a fixed pin is desirable. The fixed 6-digit pin code in BLE
is not supported by many of the Bluetooth Low Energy implementations.
Default:
1234
Example:
TABLE 2-2: MODE VALUES
Value Description
0Slave mode
1 Master mode
3 Auto-Connect Master mode
6 Pairing mode
SM,1 // Set the mode to Master
SN,MyDevice // Set the device name to "MyDevice"
SO,<,> // Set the prefix and postfix of the message to <and>
//respectively
SP,0123 // Set pin code to "0123"