树莓派通过Linux中蓝牙协议栈Bluz连接蓝牙音箱接入Home Assistnant
本文使用设备及版本:
树莓派3B+
Raspbian GNU/Linux 10 (buster)
BlueZ是Linux官方的蓝牙协议栈。Raspbian中已经安装了BlueZ。
Bluz是Linux中蓝牙协议栈的实现,可以用来分析蓝牙扫描和连接状况。可以通过以下命令查看Bluetooth的运行状态.
Bluez-该软件包提供蓝牙协议栈和bluetoothctl实用程序。
https://www.jianshu.com/p/2ea13615a69d
journalctl | grep blue
bluetoothd -v
systemctl status bluetooth
select B8:27:EB:2A:96:FA
Useful links
http://www.bluez.org/
https://github.com/bluez/bluez
编译安装bluez5.47蓝牙协议栈
https://blog.csdn.net/lee_jimmy/article/details/96739656
Bluez5介绍
https://blog.csdn.net/morixinguan/article/details/79197455
Bluetooth, AirPlay, and Spotify multi room
https://pimylifeup.com/raspberry-pi-bluetooth-speakers/
ok
https://wiki.archlinux.org/title/Bluetooth#Auto_power-on_after_boot
本文使用设备及版本:
树莓派3B+
Raspbian GNU/Linux 10 (buster)
BlueZ是Linux官方的蓝牙协议栈。Raspbian中已经安装了BlueZ。
Bluz是Linux中蓝牙协议栈的实现,可以用来分析蓝牙扫描和连接状况。可以通过以下命令查看Bluetooth的运行状态.
Bluez-该软件包提供蓝牙协议栈和bluetoothctl实用程序。
https://www.jianshu.com/p/2ea13615a69d
journalctl | grep blue
bluetoothd -v
systemctl status bluetooth
select B8:27:EB:2A:96:FA
sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get update
sudo apt-get remove bluez
[bluetooth]# help
Menu main:
Available commands:
-------------------
advertise Advertise Options Submenu
scan Scan Options Submenu
gatt Generic Attribute Submenu
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices List available devices
paired-devices List paired devices
system-alias <name> Set controller alias
reset-alias Reset controller alias
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
discoverable-timeout [value] Set discoverable timeout
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
advertise <on/off/type> Enable/disable advertising with given type
set-alias <alias> Set device alias
scan <on/off> Scan for devices
info [dev] Device information
pair [dev] Pair with device
cancel-pairing [dev] Cancel pairing with device
trust [dev] Trust device
untrust [dev] Untrust device
block [dev] Block device
unblock [dev] Unblock device
remove <dev> Remove device
connect <dev> Connect device
disconnect [dev] Disconnect device
menu <name> Select submenu
version Display version
quit Quit program
exit Quit program
help Display help about this program
export
Useful links
http://www.bluez.org/
https://github.com/bluez/bluez
编译安装bluez5.47蓝牙协议栈
https://blog.csdn.net/lee_jimmy/article/details/96739656
Bluez5介绍
https://blog.csdn.net/morixinguan/article/details/79197455
Bluetooth, AirPlay, and Spotify multi room
https://pimylifeup.com/raspberry-pi-bluetooth-speakers/
ok
https://wiki.archlinux.org/title/Bluetooth#Auto_power-on_after_boot
0