[Rasp3] Configuration de Bluetooth.
1) Installation du paquet Bluetooth :
pi@raspberrypi:~ $ sudo apt-get install pi-bluetooth
2) Lancement de l’application Bluetooth :
pi@raspberrypi:~ $ bluetoothctl [NEW] Controller B8:27:EB:90:6E:63 raspberrypi [default] [bluetooth]#
3) Activation :
[bluetooth]# power on Changing power on succeeded
4) Activer l’agent :
[bluetooth]# agent on Agent registered
5) Détection des appareils Bluetooth :
[bluetooth]# scan on Discovery started [CHG] Controller B8:27:EB:90:6E:63 Discovering: yes [NEW] Device 44:25:C5:A6:42:91 Nekrofage
6) Apairage du téléphone portable :
[bluetooth]# pair 44:25:C5:A6:42:91 Attempting to pair with 44:25:C5:A6:42:91 [CHG] Device 44:25:C5:A6:42:91 Connected: yes Request confirmation [agent] Confirm passkey 084864 (yes/no): yes [CHG] Device 44:25:C5:A6:42:91 Modalias: bluetooth:v000Fp1200d1436 [CHG] Device 44:25:C5:A6:42:91 UUIDs: 00001105-0000-1000-8000-00805f9b34fb 0000110a-0000-1000-8000-00805f9b34fb 0000110c-0000-1000-8000-00805f9b34fb 0000110e-0000-1000-8000-00805f9b34fb 00001112-0000-1000-8000-00805f9b34fb 00001115-0000-1000-8000-00805f9b34fb 00001116-0000-1000-8000-00805f9b34fb 0000111f-0000-1000-8000-00805f9b34fb 0000112f-0000-1000-8000-00805f9b34fb 00001132-0000-1000-8000-00805f9b34fb 00001200-0000-1000-8000-00805f9b34fb 00001800-0000-1000-8000-00805f9b34fb 00001801-0000-1000-8000-00805f9b34fb [CHG] Device 44:25:C5:A6:42:91 Paired: yes Pairing successful [CHG] Device 44:25:C5:A6:42:91 Connected: no
7) Faire confiance au téléphone :
[bluetooth]# trust 44:25:C5:A6:42:91 [CHG] Device 44:25:C5:A6:42:91 Trusted: yes Changing 44:25:C5:A6:42:91 trust succeeded
8) Aide en ligne :
[bluetooth]# help Available commands: list List available controllers show [ctrl] Controller information selectSelect default controller devices List available devices paired-devices List paired devices power Set controller power pairable Set controller pairable mode discoverable Set controller discoverable mode agent Enable/disable agent with given capability default-agent Set agent as the default one scan Scan for devices info Device information pair Pair with device trust Trust device untrust Untrust device block Block device unblock Unblock device remove Remove device connect Connect device disconnect Disconnect device version Display version quit Quit program
9) Lien :
https://www.maker.io/en/blogs/raspberry-pi-3-how-to-configure-wi-fi-and-bluetooth
Comments are closed, but trackbacks and pingbacks are open.