$ bluetoothctl
[NEW] Controller 00:1B:DC:03:D3:E5 raspberrypi [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 00:1B:DC:03:D3:E5 Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
ここでBluetoothスピーカーをペアリング待ちにします。
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1B:DC:03:D3:E5 Discovering: yes
[NEW] Device 54:14:8E:38:A8:28 TG-117
[CHG] Device 54:14:8E:38:A8:28 RSSI: -70
[CHG] Device 54:14:8E:38:A8:28 RSSI: -39
[bluetooth]# scan off
[CHG] Device 54:14:8E:38:A8:28 RSSI is nil
Discovery stopped
[CHG] Controller 00:1B:DC:03:D3:E5 Discovering: no
[bluetooth]# pair 54:14:8E:38:A8:28
Attempting to pair with 54:14:8E:38:A8:28
[CHG] Device 54:14:8E:38:A8:28 Connected: yes
[CHG] Device 54:14:8E:38:A8:28 UUIDs:
00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 54:14:8E:38:A8:28 UUIDs:
0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 54:14:8E:38:A8:28 UUIDs:
0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 54:14:8E:38:A8:28 UUIDs:
0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 54:14:8E:38:A8:28 ServicesResolved: yes
[CHG] Device 54:14:8E:38:A8:28 Paired: yes
Pairing successful
[CHG] Device 54:14:8E:38:A8:28 ServicesResolved: no
[CHG] Device 54:14:8E:38:A8:28 Connected: no
[bluetooth]# trust 54:14:8E:38:A8:28
[CHG] Device 54:14:8E:38:A8:28 Trusted: yes
Changing 54:14:8E:38:A8:28 trust succeeded
[bluetooth]# connect 54:14:8E:38:A8:28
Attempting to connect to 54:14:8E:38:A8:28
[CHG] Device 54:14:8E:38:A8:28 Connected: yes
Connection successful
[CHG] Device 54:14:8E:38:A8:28 ServicesResolved: yes
Bluetoothスピーカーがピポと鳴り、接続できたことを知らせてくれます。
[TG-117]# quit
Agent unregistered
[DEL] Controller 00:1B:DC:03:D3:E5 orangepipc [default]
|