Setting up RN42 Bluetooth on Linux

From Bitchin100 DocGarden
Revision as of 11:14, 5 September 2012 by Jhoger (talk | contribs) (New page: Open a terminal prompt jhoger@hegemon:~$ hcitool scan Scanning ... 00:06:66:43:02:81 RN42-0281 Get the "Channel" using the sdptool program: jhoger@hegemon:~$ sdptool records 00:06:66:43...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Open a terminal prompt jhoger@hegemon:~$ hcitool scan Scanning ... 00:06:66:43:02:81 RN42-0281

Get the "Channel" using the sdptool program:

jhoger@hegemon:~$ sdptool records 00:06:66:43:02:81 Service Name: SPP Service RecHandle: 0x10000 Service Class ID List:

 "Serial Port" (0x1101)

Protocol Descriptor List:

 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 1

Language Base Attr List:

 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100

jhoger@hegemon:~$

Edit /etc/bluetooth/rfcomm.conf

  1. RFCOMM configuration file.

rfcomm0 {

       # Automatically bind the device at startup
       bind no;
       # Bluetooth address of the device
       device 00:06:66:43:02:81;
       # RFCOMM channel for the connection
       channel 1;
       # Description of the connection
       comment "Model T Bluetooth";

}