进入蓝牙控制:
sudo bluetoothctl
查看已配对设备:
[bluetooth]# paired-devices
操作:
[bluetooth]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
配对:
[bluetooth]# trust <PHONE_ADDRESS>
[bluetooth]# pair <PHONE_ADDRESS>
连接:
[bluetooth]# connect <PHONE_ADDRESS>
[bluetooth]# disconnect <PHONE_ADDRESS>
移除配对:
[bluetooth]# remove EA:74:84:0C:FA:6 (例子)
离开:
quit