Clavier Microsoft Wireless Optical Desktop for Bluetooth & Linux

Vérifier ses péripheriques "hote"

ninjato ~ # hcitool dev
Devices:
hci0 00:12:5A:59:E4:37
hci1 00:50:F2:7E:31:22

Scanner les péripheriques blutooth

ninjato ~ # hcitool -i hci1 scan
Scanning …
00:50:F2:80:A1:19 Microsoft Keyboard
00:22:15:F7:2B:36 BlueZ (0)

“BlueZ (0)” se trouvant être mon deuxieme portable

Inquiry

ninjato ~ # hcitool -i hci1 inq
Inquiring …
00:50:F2:80:A1:19 clock offset: 0x0c69 class: 0x002540
00:22:15:F7:2B:36 clock offset: 0x1e5b class: 0x3e0100

Ping ?

ninjato ~ # l2ping -i hci1 00:50:F2:80:A1:19
Ping: 00:50:F2:80:A1:19 from 00:50:F2:7E:31:22 (data size 44) …
40 bytes from 00:50:F2:80:A1:19 id 0 time 36.93ms

Edition de la configuration

ninjato ~ # vi /etc/bluetooth/hcid.conf

On rajoute les lignes suivantes :

device 00:50:F2:80:A1:19 {
name “Microsoft Wireless Keyboard”;
auth enable;
encrypt enable;
}

Restart BlueTooth

ninjato ~ # /etc/init.d/bluetooth restart
* Shutting down Bluetooth …
* Stopping rfcomm … [ ok ]
* Stopping hidd … [ ok ]
* Stopping sdpd … [ ok ]
* Stopping hcid … [ ok ]
* Starting Bluetooth …
* Starting hcid … [ ok ]
* Starting sdpd … [ ok ]
* Starting hidd … [ ok ]
* Starting rfcomm … [ ok ]

Appellons le clavier

ninjato ~ # hidd -i hci1 –search
Searching …
Connecting to device 00:50:F2:80:A1:19

Et voici un clavier “Made in Microsoft Necessitant Windows XP sp2” (:p) parfaitement connecté en BlueTooth

wiki/clavier_bluetooth.txt · Dernière modification: Wednesday 22 April 2009 par kathryl
Flux RSS du Blog Driven by DokuWiki Gentoo Powered Valid XHTML1.0 Powered by Apache PHP Powered Coffee Powered