Linux Bluetooth notes

FIXME: needs fleshing out with details etc.

Setting up Bluetooth connection to a mobile phone on Linux. I have a Sony Ericsson K800i, and an ES-388 Bluetooth USB adaptor.

I had to install BlueZ properly, using Arch Linux it was as simple as:

pacman -S bluez-libs bluez-utils

Check that it's there:

[root@columbia davidp]# hciconfig 
hci0:   Type: USB
        BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:0 acl:0 sco:0 commands:0 errors:0

Bring up hci0 with hciconfig -a hci0 up

Then set the name with hciconfig -a hci0 name SomeName

Then check all details look right:

[root@columbia davidp]# hciconfig -a hci0
hci0:   Type: USB
        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
        RX bytes:1857 acl:9 sco:0 events:57 errors:0
        TX bytes:814 acl:8 sco:0 commands:35 errors:0
        Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'PreshLappy'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe
        Manufacturer: Integrated System Solution Corp. (57)

Scan for devices with hcitool scan :

[root@columbia davidp]# hcitool scan
Scanning ...
        00:0F:86:ED:47:BD       Dave P bb
        00:16:B8:FB:C1:49       Presh

Check connectivity to one of the listed devices with l2ping:

[root@columbia davidp]# l2ping 00:16:B8:FB:C1:49
Ping: 00:16:B8:FB:C1:49 from 11:11:11:11:11:11 (data size 44) ...
44 bytes from 00:16:B8:FB:C1:49 id 0 time 78.01ms
44 bytes from 00:16:B8:FB:C1:49 id 1 time 17.68ms
44 bytes from 00:16:B8:FB:C1:49 id 2 time 68.67ms
3 sent, 3 received, 0% loss

Mounting filesystem over bluetooth

Install obexfs (pacman -S obexfs for arch).


linux/bluetooth.txt · Last modified: 2010/02/26 10:45 (external edit)
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki