User Manual
Getting Started
2014 Microchip Technology Inc. DS50002325A-page 29
2.9.3.1 OUTGOING CONNECTIONS
To establish an outgoing Bluetooth connection from a PC to the RN-41-EK or
RN-42-EK board, open the module’s outgoing COM port from host application or a ter-
minal emulator. When the user establish a connection by opening the COM port, the
evaluation board’s Green LED (labeled as S) goes on solid (not blinking) to indicate that
the device is connected. The device remains connected until user closes the COM port,
remove power from the board, or terminate the connection using the K, 1 command.
Refer to the Bluetooth Data Module Command Reference and Advanced Information
User’s Guide for more information on using commands.
Once connected, the device is in Data mode enabling data to flow in both directions.
The board’s Red LED (labeled as A) blinks once per second when data is transferred
over the UART. For configuration and programming, the device must be in Command
mode. For more information, see Section 2.6 “Enter Command Mode”.
2.9.3.2 INCOMING CONNECTIONS
For an incoming connection, use the port specified in host Bluetooth settings as incom-
ing (refer to Figure 2-7). The PC of host listens for an incoming connection from the
remote Bluetooth device, in this case the RN-41-EK or RN-42-EK.
To make an incoming connection, perform the following steps:
1. User needs the MAC address of the PC’s Bluetooth radio to connect from the
RN-41-EK or RN-42-EK to the host PC. Open the PC’s Bluetooth advanced set-
tings to find the MAC address. Figure 2-8 shows the Bluetooth Radio MAC
addresses that are connected to the PC.
2. Pair evaluation board with the PC, see Section 2.9.2 “Pairing”.
3. Open a terminal (for example, terminal A) and connect it to the evaluation board’s
outgoing COM port. Run this terminal on the host PC or another computer.
4. Open a second terminal (for example, terminal B) on the host PC to listen for the
incoming Bluetooth connection using the incoming COM port number.
5. Type C, <MAC address> <cr> in terminal A to establish an SPP connection to the
host PC. See Figure 2-9 for an example connection.
6. Try the following commands:
- $$$ to enter Command mode
- SO, % to enable status message to see connect/disconnect conditions
- R, 1 to reboot
- $$$ to re-enter Command mode
- + to enable local echo
- C, <MAC address> to attempt a connection with a remote device. Characters
user Type in terminal B are sent over Bluetooth to the host PC and display in
terminal A. Any characters entered in terminal A are transmitted to terminal B.
7. To kill the connnection, type the K,1 <cr> command in terminal B.
Note: Only one client can connect to a slave device at a time. As a master, the
device can make multiple connections, but only in a point-to-point, serial-
ized fashion. The RN41 and RN42 modules do not currently support
multi-point Master mode.