2024年11月24日星期日 上午7:28:37

bluetooth speaker is silent Checklist

2 年 前
#3776 引用
1
0
1 年 前
#18929 引用


root@raspberrypi:~# dmesg | grep Bluetooth
[    7.837559] Bluetooth: Core ver 2.22
[    7.837660] Bluetooth: HCI device and connection manager initialized
[    7.837683] Bluetooth: HCI socket layer initialized
[    7.837697] Bluetooth: L2CAP socket layer initialized
[    7.837737] Bluetooth: SCO socket layer initialized
[    7.901593] Bluetooth: HCI UART driver ver 2.3
[    7.901604] Bluetooth: HCI UART protocol H4 registered
[    7.901656] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    7.901780] Bluetooth: HCI UART protocol Broadcom registered
[    8.397649] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.397662] Bluetooth: BNEP filters: protocol multicast
[    8.397690] Bluetooth: BNEP socket layer initialized
[    8.884087] Bluetooth: RFCOMM TTY layer initialized
[    8.884118] Bluetooth: RFCOMM socket layer initialized
[    8.884150] Bluetooth: RFCOMM ver 1.11







[code]root@raspberrypi:~# dmesg | grep Bluetooth
[49110.338731] Bluetooth: hci0: Frame reassembly failed (-84)
[49110.338783] Bluetooth: hci0: Frame reassembly failed (-84)
[59552.765150] Bluetooth: hci0: command 0x1002 tx timeout
[/code]
0
1 年 前
#18930 引用

less /boot/overlays/README

Name:   disable-bt
Info:   Disable onboard Bluetooth on Pi 3B, 3B+, 3A+, 4B and Zero W, restoring
        UART0/ttyAMA0 over GPIOs 14 & 15.
        N.B. To disable the systemd service that initialises the modem so it
        doesn't use the UART, use 'sudo systemctl disable hciuart'.
Load:   dtoverlay=disable-bt
Params:

[...]


Disable onboard Bluetooth devices.

$ echo "dtoverlay=disable-bt" | sudo tee -a /boot/config.txt


Disable systemd service that initializes Bluetooth Modems connected by UART.

 sudo systemctl disable hciuart


https://sleeplessbeastie.eu/2022/06/01/how-to-disable-onboard-wifi-and-bluetooth-on-raspberry-pi-4/
0
1 年 前
#18962 引用
Set scan parameters failed: Input/output errer

如果使用蓝牙扫描是出现 Set scan parameters failed: Input/output errer 的错误信息,可以使用上述的方法,手动重启蓝牙,即可解决问题。

sudo hciconifg hci0 down
hcitool dev
>
Devices:

sudo hciconfig hci0 up
hcitool dev
>
Devices:
        hci0    00:1A:7D:DA:**:**
0
1 年 前
#18963 引用
使用hcitool出现错误:Set scan parameters failed: Operation not permitted
pi@raspberrypi:~$ hcitool lescan
Set scan parameters failed: Operation not permitted


这是当你上次使用 hcitool 命令连接一个设备时 使用了 Ctrl+c 命令或者操作错误,这有可能会使树莓派蓝牙一直处于寻找该设备并建立连接、断开的循环中

s


sudo hciconifg hci0 down
hcitool dev
>
Devices:

sudo hciconfig hci0 up
hcitool dev
>
Devices:
        hci0    00:1A:7D:DA:**:**
0
11 个月 前
#24073 引用
                                                                                      solution

Failed to start discovery: org.bluez.Error.NotReady     sudo rfkill unblock 0    https://www.matterxiaomi.com/boards/topic/13391/installing-home-assistant-core-on-raspberry-pi-3b-step-by-step-2022112/page/2#17721
0