Δευτέρα, 13 Οκτωβρίου 2008

Linux Bluetooth tutorial


First of all, disconnect your usb bluetooth device from the usb port.

Run:

sudo tail -f /var/log/messages

and connect the usb device.
You must see something like this:

kernel: usb 2-1: new full speed USB device using uhci_hcd and address 2
kernel: usb 2-1: configuration #1 chosen from 1 choice
kernel: Bluetooth: Core ver 2.11
kernel: NET: Registered protocol family 31
kernel: Bluetooth: HCI device and connection manager initialized
kernel: Bluetooth: HCI socket layer initialized
kernel: Bluetooth: HCI USB driver ver 2.9
kernel: usbcore: registered new interface driver hci_usb
kernel: Bluetooth: L2CAP ver 2.9
kernel: Bluetooth: L2CAP socket layer initialized
kernel: Bluetooth: RFCOMM socket layer initialized
kernel: Bluetooth: RFCOMM TTY layer initialized
kernel: Bluetooth: RFCOMM ver 1.8

That means that the kernel recognized your bluetooth usb device.
Now that you are ready to start, you have to install some programs to manage your bluetooth.

Run:

sudo aptitude install kdebluetooth



This will install a number of programs including:
kbluetooth - a bluetooth server for recieving files
kbtobexclient - a tool for sending files (OBEX)
kbluelock - a tool that locks the pc when a paired bluetooth device is not reachable
kbluemon - a tool for scanning devices and their services

In most cases, the bluetooth device is automatically recognized, but most of the users does not know the necessary programs to manage the bluetooth.

If your device is not automatically recognized, then search google for a kernel module (drivers)

Δεν υπάρχουν σχόλια: