linux:commande:shell:bluetooth
Gestion du Bluetooth en commande
Afficher le status de la clé Bluetooth
/etc/init.d/bluetooth status
Retourne:
[ok] bluetooth is running.
Lister les adapters Bluetooth:
hcitool dev
Retourne:
Devices: hci0 00:1A:7D:DA:71:B9
Scanner les appareils Bluetooth:
hcitool scan
Retourne:
00:09:DD:50:88:70 LYSV142903B
Tester la connexion Bluetooth vers LYSV142903B:
sudo l2ping -c 1 00:09:DD:50:88:70
Retourne:
Ping: 00:09:DD:50:88:70 from 00:1A:7D:DA:71:11 (data size 44) ... 0 bytes from 00:09:DD:50:88:70 id 0 time 14.70ms 1 sent, 1 received, 0% loss
notre test fonctionne correctement.
— sylvain 2020/02/15 11:54
linux/commande/shell/bluetooth.txt · Dernière modification : de 127.0.0.1
