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.