![]() |
Bluetooth and Linux
Setting up Linux to Use MyroC and
Scribbler 2 Robots
|
![]() |
|
Linux computers communicate with Scribbler 2 robots using Bluetooth. Each robot has a different serial number, and communication is based upon that number.
Setting up Bluetooth pairings on Linux relies on a communication protocol called rfcomm. To accomplish this pairing, utilize the following steps.
Run
hcitool scan
to get the hardware (MAC) address for the IPRE robot (e.g., 00:1E:19:01:0E:13)
A System Administrator must edit the file
/etc/bluetooth/rfcomm.conf
inserting the MAC address into the rfcomm0 entry
rfcomm0 {
# Automatically bind the device at startup.
bind yes;
# Bluetooth address of the device
device 00:1E:19:01:0E:13; # IPRE6-365877
# BorgDongle
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "IPRE Scribbler Dongle";
}
A System Administrator must create the following file
/etc/udev/rules.d/40-rfcomm.rules
containing the single line
>KERNEL=="rfcomm*", GROUP="dialout", MODE="0666"
The system MAY need to be rebooted at this point
In a terminal window, type
rfcomm bind all
This needs to be run each time the computer is rebooted. It can take some time (e.g., 10-15 minutes) for this to seem to take effect.