树莓派(Raspberry Pi 4)开启和连接蓝牙

参考连接: link.
1、查看树莓派蓝牙开启状态
systemctl status bluetooth
树莓派(Raspberry Pi 4)开启和连接蓝牙2、重启一下蓝牙服务并且打开手机的蓝牙
首先我们得找到蓝牙程序命令在哪(这步可以省略)
树莓派(Raspberry Pi 4)开启和连接蓝牙上步省略
可以直接执行命令:sudo /etc/init.d/bluetooth restart
树莓派(Raspberry Pi 4)开启和连接蓝牙3、开始打开蓝牙shell和进行蓝牙操作的一些指令
sudo bluetoothctl

输入scan on命令进行扫描
。。。。。。。
树莓派(Raspberry Pi 4)开启和连接蓝牙
配对成功
树莓派(Raspberry Pi 4)开启和连接蓝牙

参考链接1: link.
参考链接2: link.
参考链接2: link.