User Manual

RN41/42 Evaluation Kit User’s Guide
DS50002325A-page 30 2014 Microchip Technology Inc.
2.9.3.3 CONNECTING TWO RN-41-EK OR RN-42-EK BOARDS
Open the COM ports assigned to the two modules. As a default, the modules are in
Slave mode when powered up. The two slaves can be connected to each other or one
of the modules reconfigured to be a master, can connect to a slave.
To make a connection between two RN-41-EK (Module A and Module B) or between
two RN-42-EK (Module A and Module B) boards, perform the following steps:
1. Enter the Command mode in both the modules by executing $$$ command in
the corresponding terminals.
2. Execute GB command in the terminal of module B to get its Bluetooth MAC
address. Module A will require this address.
3. Set the Authentication mode in both the modules by using SA,<value> com-
mand.
4. Type C, <MAC address> <cr> in terminal A to establish an SPP connection from
Module A to Module B.
5. Try the following commands in both the terminals:
- $$$ 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 and display in terminal A.. Any
characters entered in terminal A are transmitted to terminal B.
6. To kill the connnection, type the K,1 <cr> command in terminal B or terminal A.
Note: The Authentication mode must be the same in both modules.