User Manual
RN41/42 Evaluation Kit User’s Guide
DS50002325A-page 22 2014 Microchip Technology Inc.
2.5 CONFIGURE THE MODULE LOCALLY USING THE USB PORT
Setup the RN-41-EK or RN-42-EK hardware as described in Section 2.2.1 “Hardware
Setup”. With the Bluetooth device connected and powered on, run a terminal emulator
and open the COM port to which the cable is connected. Configure the virtual COM port
connected to the RN-41-EK or RN-42-EK as shown in Tab l e 2- 1 .
Command mode can be switched through the UART interface via the USB connector
at any time or during certain conditions when the device does not have a Bluetooth
connection. If the device is in Configuration mode and gets connected, the device exits
Configuration mode and data passes back and forth from the remote device.
2.6 ENTER COMMAND MODE
To enter Command mode, launch a terminal emulator from the PC and specify the mod-
ule’s default serial port settings. See Table 2-1.
TABLE 2-1: SERIAL PORT SETTINGS
Type $$$ (sequentially without any delays between $ characters) into the terminal
emulator to enter Command mode. The module returns the string CMD, which indicates
that the connection and terminal settings are correct. While in Command mode, the
device accepts ASCII bytes as commands.
When the module is powered up and no command is entered within a 60-second con-
figuration window, the module goes into fast Data mode and all characters are ignored
including $$$. When user enters a valid command, the module returns AOK. It returns
ERR for an invalid command and ? for unrecognized commands. Type h <cr> to see
a list of commands.
A quick check to confirm that the user is in Command mode, type the X <cr> command
after entering Command mode. This command shows a summary of the module’s cur-
rent settings, such as the Bluetooth name, device class, and serial port settings, see
Figure 2-3. To return to Data mode, type --- <cr> or reset the device and reconnect.
Note: If the device is in Auto-Connect Master Mode, user cannot enter the Com-
mand mode when connected over Bluetooth. For more information on the
various Operating modes, see Section 2.7 “Operating Modes”.
Setting Value
Port COM port to which you attached the module
Baud rate 115200
Data rate 8 bits
Patiry None
Stop bits 1
Flow control None