Scribbler 2
Bluetooth and Linux

Setting up Linux to Use MyroC and Scribbler 2 Robots
Scribbler 2
 
 

Bluetooth Setup for Linux Workstations/Laptops

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.

  1. Run

    hcitool scan
    

    to get the hardware (MAC) address for the IPRE robot (e.g., 00:1E:19:01:0E:13)

  2. 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";
      }
    
  3. 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"
    
  4. The system MAY need to be rebooted at this point

  5. 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.