RN4677 Bluetooth
®
4.0 Dual Mode Module User’s Guide
DS50002377A-page 22 2015 Microchip Technology Inc.
2.3.23 S:,<H16>,<data>
This command is used to change any settings in configuration EEPROM.
This command expects two parameters. The first parameter is a 16-bit hex value that
represents memory address of EEPROM of the first byte of data. If there is more than
one byte of data to be written, the memory address automatically increases. Set the
second parameter value with the following format:
Hex values up to 32 bytes.
ASCII values up to 32 characters; enclosed by a quote
User must understand the mapping between EEPROM memory address and
configuration parameters for the RN4677.
Default:
N/A
Example:
2.3.24 S>,<0,1>
Command S> enable or disable command prompt. If command prompt is on whenever
RN4677 is ready to receive a command, prompt
CMD> is sent to UART to notify user
that RN4677 is ready for next command. This feature releases the host MCU load to
keep track of command response and timing requirements.
Default:
1
Example:
2.4 GET COMMANDS
The Get commands retrieve and display the stored information of the device. Most of
these commands do not have a keyword or character and do not take any parameters.
2.4.1 D
This command displays basic settings such as the address, name, UART settings,
security, pin code, bonding, and remote address.
Example:
S:,0010,414243 // Set device name to be "ABC", where device
// name is stored in EEPROM starting from
// memory address 0x0010
S:,0010,"ABC" // Set device name to be "ABC", where device
// name is stored in EEPROM starting from
// memory address 0x0010
CAUTION
Use caution when writing values to the EEPROM memory. Incorrect values can give
unexpected results. It is strongly recommended to contact Microchip Technical
Support before using this command.
S>,0 // Turn off command prompt
D // Display basic settings
Command Reference
2015 Microchip Technology Inc. DS50002377A-page 23
2.4.2 E
This command displays the extended settings of the device such as the service name,
service class and device class.
Example:
2.4.3 GB
This command returns the Bluetooth address of the device.
Example:
2.4.4 GK
This command returns the current connection status of the device. There are three
single digit values returned, which are separated by a comma.
The first digit indicates the status of the Bluetooth connection: 0 means no connection,
and 1 means connected.
The second digit indicates authentication status, which is shown in Tab le 2 -3.
The third digit indicates the type of connection, which is shown in Table 2- 4.
Example:
2.4.5 G:,<H16>,<H8>
This command reads the settings from configuration EEPROM.
This command expects two parameters. The first parameter is the 16-bit hex value of
the starting memory address for configuration to read. The second parameter is the
8-bit hex value for the length of configuration to be read. This value must be less than
32, or 0x20 in hex format.
Example:
2.4.6 G<char>
This command displays the stored settings for a Set command, where <char> is a Set
command name.
Example:
E // Display extended settings
GB // Display the device's Bluetooth address
TABLE 2-3: AUTHENTICATION STATUS
Value Description
0 No BLE authentication
3 APP closed; no data transfer possible
6 BLE link authenticated
TABLE 2-4: CONNECTION TYPES
Value Description
0 SPP
2BLE
GK // Display current connection status
G:,0010,10 // Read the device name up to 16 bytes, which is stored
// starting from address 0x0010
GA // Return Authentication mode set by command SA
RN4677 Bluetooth
®
4.0 Dual Mode Module User’s Guide
DS50002377A-page 24 2015 Microchip Technology Inc.
2.5 ACTION COMMANDS
Action commands perform actions such as inquiries, connecting, and entering/exiting
Command mode. Action commands do not return
AOK.
2.5.1 $$$
This command causes the device to enter Command mode and display command
prompt. The device passes characters as data until it sees this exact sequence.
The escape character to enter Command mode can be changed with the
S$ command.
Example:
2.5.2 ---
This command causes the device to exit Command mode, displaying END.
Example:
2.5.3 +
This command toggles the local echo on and off. If the + command is sent in Command
mode, all typed characters are echoed to the output. Typing
+ a second time turns local
echo off.
Default:
Off
Example:
2.5.4 A[,<H16>,<H16>]
This command only applies to BLE.
This command starts the advertisement. Optionally, it can take up to two parameters.
The first parameter is the 16-bit hex value of the advertisement interval with the unit of
0.625 ms.
The second parameter is the 16-bit hex value of the advertisement lasting time with the
unit of millisecond. After this time, the advertisement stops. If the second parameter is
not set but the first parameter is set, advertisement starts with interval of the parameter
1 until a connection is established.
If no parameter is given, the advertisement starts with an interval of 20 ms for 10s and
then increase the advertisement interval to 160 ms to save power.
Example:
2.5.5 B
This command only applies to BLE.
Command
B is used to secure the connection and bond two connected devices.
Command
B is only effective if the two devices are already connected. Bonding can be
issued from either the central or the peripheral device.
Once bonded, security materials are saved in both end of the connection. Therefore,
reconnection between bonded devices does not require authentication as reconnection
can be done in a very short time.
$$$ // Enter Command mode
--- // Exit Command mode
+ // Turn local echo on
A,0040,03E8 // Advertise with interval of 40 ms for 1 second

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