User Manual

Getting Started
2014 Microchip Technology Inc. DS50002325A-page 25
Tab l e 2- 2 describes the functions controlled by the switches.
TABLE 2-2: CONFIGURATION SWITCH FUNCTIONS
2.9 MAKING A BLUETOOTH CONNECTION
As a default, the Bluetooth module acts as a slave and the PC is the master. Connect
to the Bluetooth module using the host computer’s Bluetooth device manager, which
varies depending on the operating system. Regardless of the operating system, it fol-
lows the same process: Discovery, Pairing, and Connecting.
2.9.1 Discovery
When user turns on the RN-41-EK or RN-42-EK, the Green LED (labeled as S) blinks
once per second and the module is discoverable. Open the host PC’s Bluetooth device
manager and choose to “Add a device”. The Bluetooth device manager’s icon is
located at the bottom right corner on the host’s computer screen in the taskbar for Win-
dows, and at the upper right corner for Mac OS-X. The Bluetooth device manager dis-
plays a list of discoverable Bluetooth devices. Figure 2-5 illustrates the discovery of
Bluetooth devices on host computer.
Switch Function Default (Off) Description
1 Restore factory
defaults
Do not restore factory defaults. Turn on the switch, power-up the evaluation kit, and
toggle the switch three times to return the module to
its factory settings. The Green LED (labeled as S)
blinks quickly for a moment and then continues to
blink about once per second.
2 Automatic discovery Automatic discovery is turned
off.
In Slave mode, if DIP switch 2 is set and DIP switch 3
is not set, it results in a special class of device that
the master uses to auto-connect. If switch 3 also
turned on, the module performs a search, stores, and
connects to a remote RN41/42 Bluetooth device.
3 Automatic master Automatic master is turned off. With this switch turned on, the module acts as Blue-
tooth master and auto-connects to a stored remote
address. You must first set the Bluetooth address of
the slave device using the
SR command or using
instant cable replacement settings. If DIP switch
2/GPIO3 is also set, a new discovery/pairing can be
made.
4 Default baud rate With this switch turned off, the
default 115200 baud rate is
overridden by software baud
rate configuration commands.
If this switch is turned on, the baud rate is 9600 and
the module ignores the software configuration.