[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
select <ctrl> Select default controller
devices List available devices
paired-devices List paired devices
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
scan <on/off> Scan for devices
info <dev> Device information
pair <dev> Pair with device
trust <dev> Trust device
untrust <dev> Untrust device
block <dev> Block device
unblock <dev> Unblock device
remove <dev> Remove device
connect <dev> Connect device
disconnect <dev> 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