RN4677 Bluetooth
®
4.0 Dual Mode Module User’s Guide
DS50002377A-page 16 2015 Microchip Technology Inc.
Default:
2
Example:
2.3.2 SC,<H16>
This command only applies to Bluetooth Classic.
This command sets the service class field in the Class of Device (COD). The service
class consists of the 11 Most Significant bits in the COD. This command sets the most
significant word (msw) to create the 24-bit device class number. The inquiring device
interprets the service class to determine the service. A complete listing of available
Bluetooth service classes is referenced on the Bluetooth SIG web site at
www.bluetooth.org.
Default:
0000
Example:
2.3.3 SD,<H16>
This command only applies to Bluetooth Classic.
This command sets the class of device (COD) least significant word (lsw). The COD is
a 24-bit number that is made up of the device class with major 8-bit and minor in a
16-bit word. This command is used with the Service Class command.
Default:
1F00
Example:
To set the COD to 0x1F0123, use the following commands:
SC,001F
SD,0123
3 SSP Pin Code Input mode
If this mode is set when authenticating the link, a 6-digit pin is displayed at the
remote device and the local RN4677 device is required to input the pin. For BLE, if
the command
SP sets the 6-digit pin code, the pin code is automatically provided.
Ensure that the remote device supports fixed pin codes; otherwise, the
authentication fails.
4 Legacy Pin Code mode
This Security mode is defined in Bluetooth specification 2.0. Only Bluetooth Classic
supports this Security mode. This mode requires a fixed 4-digit pin code that is
configurable using command
SP.
SA,2 // Enable "Just Works" security mode
SC,0002 // Set service class to 0002
SD,8040
TABLE 2-1: SET AUTHENTICATION VALUES (CONTINUED)
Value Description
Command Reference
2015 Microchip Technology Inc. DS50002377A-page 17
2.3.4 SE,<H16>
This command only applies to Bluetooth Classic.
This command sets the universally unique identifier (UUID) for service discovery
process. It only supports standard 16-bit UUID.
Default:
1101
Example:
2.3.5 SF,1
This command restores the device to the factory defaults.
Example:
2.3.6 SG,<0-2>
This command changes Bluetooth modes between Classic 2.1 + EDR (SPP) and Low
Energy 4.0. It accepts one parameter with the following values:
2.3.7 SI,<H16>
This command only applies to Bluetooth Classic.
The Inquiry Scan Window command sets the length of time the device spends enabling
an inquiry scan (discoverability). The minimum value is 0x0012, corresponding to
about a 1% duty cycle. The page scan interval is fixed at 0x1000. The default window
is 0x0100. The maximum value is 0x0800. Set this parameter to 0x0000 to disable
inquiry scanning and render the device undiscoverable. If the host already made the
pairing, the inquiry scan is not used.
Default:
0100
Example:
2.3.8 SJ,<H16>
This command only applies to Bluetooth Classic.
The Page Scan Window command sets the amount of time the device spends enabling
page scanning (connectable). The minimum value is 0x0012, which corresponds to
about a 1% duty cycle. The page scan interval is fixed at 0x1000. The default window
is 0x0100. The maximum value is 0x800. Set this option to 0x0000 to disable page
scanning and render the device nonconnectable.
Default:
0100
Example:
SE,1101 // Set UUID for serial port
SF,1 // Restore factory defaults
Parameter Value Bluetooth Mode
0 Dual mode
1 Only Bluetooth Low Energy
2 Only Bluetooth Classic
SI,0200 // Set inquiry scan window to 0x0200
SJ,0200 // Set the page scan window to 0x0200
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"

RN4677-V/RM100

Mfr. #:
Manufacturer:
Microchip Technology
Description:
Bluetooth Modules (802.15.1) Bluetooth 4.0 Dual-Mode Module
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet