参考:
http://shumeipai.nxez.com/2016/07/10/raspberry-pi-3-how-to-use-bluetooth.html
https://blog.csdn.net/guzhong10/article/details/78574577
一、连接蓝牙音箱
-
升级安装蓝牙相关软件包
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install pi-bluetooth bluez bluez-firmware blueman -
添加pi用户到蓝牙组
sudo usermod -G bluetooth -a pi -
重启
sudo reboot -
使用命令打开蓝牙
pi@raspberrypi:/ $ sudo bluetoothctl
[bluetooth]#list
Controller B8:27:EB:3D:15:E9 raspberrypi [default]
[bluetooth]# scan on
Discovery started
[CHG] Device 5F:FC:4E:B0:EA:59 RSSI: -97
[NEW] Device 42:29:9A:3B:75:E6 42-29-9A-3B-75