Introduction
2015 Microchip Technology Inc. DS50002377A-page 13
1.5 MAKING A BLUETOOTH CONNECTION
RN4677 can act as a master to initiate a connection to another Bluetooth device. The
following steps can be used to start a Bluetooth Classic connection:
1. Type $$$ to enter Command mode.
2. Type + to enable echo.
3. Type I to inquire the Bluetooth Classic devices in the neighborhood.
4. Wait until the inquiry is finished and find the MAC address of the device to be
connected.
5. Type C,<0,1>,<MAC address> to attempt a connection with a remote device.
6. Once connected, characters entered in the terminal emulator is sent to the
remote peer, and vice versa.
7. To terminate the connection, type $$$ to get into Command mode, then type
command K,1.
In a similar manner, the RN4677 can initiate BLE connection in Generic Access Profile
(GAP) Central mode to another BLE device supporting the "Transparent UART"
service. The command sequence is listed below:
1. Type $$$ to enter Command mode.
2. Type + to enable echo.
3. Type IL to inquire BLE devices in the neighborhood.
4. Wait until the inquiry is finished and find the MAC address or address type of the
device to be connected.
5. Type C,<0,1>,<MAC address> to attempt a connection with remote device,
where the first parameter indicates the address type that can be found in the
inquiry result: 0 for public address and 1 for private address.
6. Once connected, characters typed in the terminal emulator is sent to the remote
peer, and vice versa.
7. To terminate the connection, type $$$ to get into Command mode, then type
command K,1.
1.6 SECURITY MODES
RN4677 supports encryption and authentication with security modes from 1 to 4. The
definition of security mode are as follows:
Security mode 1: Passkey Confirm
Security mode 2: Just Works
Security mode 3: Passkey Entry
Security mode 4: Legacy Pin Code
For Bluetooth Classic, all security modes are supported. For BLE, only security modes
1 to 3 are supported.
For security modes 1 and 3, by default, a random 6-digit security pin is generated and
displayed at one end of the connection and the other end must enter the security pin.
Optionally, if both connection ends are RN4677, it is possible to fix the 6-digit security
pin for BLE by supplying 6-digit pin to command SP instead of 4-digit pin for legacy Pin
Code mode.
RN4677 Bluetooth
®
4.0 Dual Mode Module User’s Guide
DS50002377A-page 14 2015 Microchip Technology Inc.
NOTES:
2015 Microchip Technology Inc. DS50002377A-page 15
RN4677 BLUETOOTH
®
4.0
DUAL MODE MODULE
USERS GUIDE
Chapter 2. Command Reference
2.1 INTRODUCTION
RN4677 supports a variety of commands for controlling and configuration. This section
describes these commands in detail and provides examples.
2.2 COMMAND SYNTAX
The ASCII command syntax is a keyword followed by optional parameters.
ASCII commands are divided into multiple groups:
- Set Commands
- Get Commands
- Action Commands
All commands are one, two or three case-insensitive characters
Delimit command and any argument with a comma
Text data is case sensitive such as Bluetooth name
All commands end with carriage return ('\r', \x0d)
Get commands return the value to retrieve. Most of the other commands return
either AOK as a positive response or ERR as a negative response.
2.3 SET COMMANDS
Set commands change RN4677 configurations and take effect after rebooting via R,1
command, hard Reset or power cycle.
2.3.1 SA,<1-4>
The Set Authentication command sets the authentication method when a remote
device attempts to connect, where <value> is one of the values shown in Tabl e 2- 1.
Once a remote device exchanges pin codes with the RN4677 device, a link key is
stored for future use. The device automatically and permanently stores up to four peer
devices in flash memory using the First-In, First-Out (FIFO) method.
TABLE 2-1: SET AUTHENTICATION VALUES
Value Description
1 Secure Simple Pairing (SSP) Pin Code Confirm mode
If this option is set when authenticating the link, a 6-digit pin is sent to UART. On the
remote side, the same 6-digit pin is shown and asked to be confirmed. For BLE, if
the command
SP sets the 6-digit pin code, the pin code is fixed to be displayed and
confirmed on the remote side; otherwise, a random 6-digit pin code is generated for
confirmation.
2 (Default) SSP “Just Works” mode
This mode works without any request to display or input any security pin.

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