The easiest way to connect the module under graphical environment, is to use enclosed Bluetooth management software.

 

If using terminal, following steps (as root) have to be taken:

1. Findout the MAC address of the module:

linux-6mze:/ # hcitool scan
Scanning ...
00:12:6F:08:5C:F1 Serial Adaptor


2. Pair devices:

 

You can use BlueDevil if available, this works well. The standard PIN is 1234 At this point the link LED is still blinking.
You can also use hcitool but this may not work if other Bluetooth software is installed:

linux-6mze:/ # hcitool cc 00:12:6F:08:5C:F1
linux-6mze:/ #
hcitool auth 00:12:6F:08:5C:F1

if these do not work, modify /etc/bluetooth/rfcomm.conf to:

#
# RFCOMM configuration file.
#

rfcomm0 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device
device 00:12:6F:08:5C:F1;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "Example Bluetooth device";
}

and run:

linux-6mze:/ # rfcomm connect 00:12:6F:08:5C:F1
Connected /dev/rfcomm0 to 00:12:6F:08:5C:F1 on channel 1
Press CTRL-C for hangup

from terminal. You should be reqested for PIN. Skip point 3.

If you have troubles connecting module next time, unpair devices first, and enter PIN again.

3. Connecting SPP:

From this point you will usually have to use terminal. The programm you need is rfcomm

linux-6mze:/ # rfcomm connect /dev/rfcomm0 00:12:6F:08:5C:F1
Connected /dev/rfcomm0 to 00:12:6F:08:5C:F1 on channel 1
Press CTRL-C for hangup


 

At this point the link LED should stop blinking and illuminate at half power.

4. Connecting terminal:

The /dev/rfcomm0 argumentsays where your device will be visible for other applications. rfcomm3 or rfcomm1 are also possible

The configuration of terminal should contain the /dev/rfcomm0 argument and default settings of BTM-222: 19200 8N1 | NOR

You can use for example minicom by typing minicom -s (-s for setup mask)