蓝牙配置以及使用.md 1.3 KB


notion-id: 8b7c8442-b1bf-4d8d-9999-093988ff37

[!note]+ 蓝牙驱动安装指令

apt-get install blueman

apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware

[!note]+ 蓝牙运行指令

[!note]+ 相关参考文献: https://blog.csdn.net/peixiuhui/article/details/82738222

开启蓝牙

lsusb 查看usb设备

sudo service bluetooth start    #启动蓝牙指令
sudo bluetoothctl               #蓝牙管理进程
trust MAC地址(这里粘帖刚刚复制好的MAC地址)     #蓝牙信任指令
connect MAC地址(这里一样是刚刚复制好的MAC地址) #蓝牙连接指令

查看当前系统中全部的蓝牙设备信息:

hciconfig -a

hciconfig dev

开启指定名称的蓝牙设备:

hciconfig hci0 up

关闭指定名称的蓝牙设备:

hciconfig hci0 down

重置指定名称的蓝牙设备:

hciconfig hci0 reset

rfkill指令

rf kill 0 block    #锁定

rf kill 0 unblock  #解锁

扫描

hcitool scan