Bluetooth

Un article de Linuxette.

Jump to: navigation, search

Utilisation du bluetooth sous Debian/GNU Linux

Je viens d'acquérir un téléphone portable avec connexion bluetooth. J'ai donc acheté un dongle bluetooth de marque intuix. Et que me dit lsusb:

   # lsusb
   Bus 001 Device 004: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
   Bus 001 Device 001: ID 0000:0000

et voici dmesg:

   Feb 16 17:17:55 localhost kernel: usb 1-1: new full speed USB device using uhci_hcd and address 5
   Feb 16 17:18:05 localhost kernel: usb 1-1: configuration #1 chosen from 1 choice
   Feb 16 17:18:05 localhost hcid[5758]: HCI dev 0 registered
   Feb 16 17:18:05 localhost hcid[5758]: Register path:/org/bluez/hci0 fallback:0
   Feb 16 17:18:05 localhost hcid[5758]: HCI dev 0 up
   Feb 16 17:18:05 localhost hcid[5758]: Device hci0 has been added
   Feb 16 17:18:05 localhost hcid[5758]: Starting security manager 0
   Feb 16 17:18:05 localhost hcid[5758]: Device hci0 has been activated

Il y a quelques paquets a installer: libbluetooth1, libbluetooth2 (j'ai les deux sur le portable, mais ne sais pas si les deux sont utiles), bluez-gnome, bluez-utils.

J'ai mis l'applet gnome-bluetooth, puis je teste:

   # hcitool scan
   Scanning ...
           00:19:A1:5E:09:FB       remi@suinot

J'ai activé le bluetooth sur mon téléphone, et nommé celui ci avec mon adresse de mail :) Par contre, avant de pester contre les outils linux qui ne fonctionne pas, il faut activer le port bluetooth .... J'ai perdu 2 heures ...

Pour tester la connexion, comme pour internet, utilisons ping spécial bluetooth:

   # l2ping 00:19:A1:5E:09:FB
   Ping: 00:19:A1:5E:09:FB from 11:11:11:11:11:11 (data size 44) ...
   4 bytes from 00:19:A1:5E:09:FB id 0 time 34.45ms
   4 bytes from 00:19:A1:5E:09:FB id 1 time 61.28ms
   4 bytes from 00:19:A1:5E:09:FB id 2 time 56.06ms
   4 bytes from 00:19:A1:5E:09:FB id 3 time 58.78ms
   4 bytes from 00:19:A1:5E:09:FB id 4 time 56.08ms
   5 sent, 5 received, 0% loss

Transfert de fichiers < à venir >

Site d'aide:

http://www.blognote-info.com/index.php?2005/03/01/64-le-bluetooth-et-ubuntu


--Admin 16 février 2007 à 18:28 (CET)