2024年11月24日星期日 上午7:32:07

bluetooth speaker is silent Checklist

2 年 前
#3742 引用
[SOLVED]raspberrypi bluetoothd[420]: Failed to set mode: Blocked through rfkill (0x12)

failure case:


root@raspberrypi:~# sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-03-30 07:55:25 CST; 3h 35min ago
       Docs: man:bluetoothd(8)
   Main PID: 420 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 2200)
     Memory: 2.0M
        CPU: 365ms
     CGroup: /system.slice/bluetooth.service
             └─420 /usr/libexec/bluetooth/bluetoothd

3月 30 07:55:24 raspberrypi systemd[1]: Starting Bluetooth service...
3月 30 07:55:25 raspberrypi bluetoothd[420]: Bluetooth daemon 5.64
3月 30 07:55:25 raspberrypi bluetoothd[420]: src/main.c:check_config() Unknown group Controller in /etc/bl>
3月 30 07:55:25 raspberrypi systemd[1]: Started Bluetooth service.
3月 30 07:55:25 raspberrypi bluetoothd[420]: Starting SDP server
3月 30 07:55:25 raspberrypi bluetoothd[420]: Bluetooth management interface 1.14 initialized
3月 30 07:55:25 raspberrypi bluetoothd[420]: src/adapter.c:reset_adv_monitors_complete() Failed to reset A>
3月 30 07:55:25 raspberrypi bluetoothd[420]: Failed to set mode: Blocked through rfkill (0x12)



Reason:

hci0 is blocked ,you must set to unblocked
excuted as follow

[
root@raspberrypi:~# rfkill
ID TYPE      DEVICE    SOFT      HARD
0 wlan      phy0   blocked unblocked
1 bluetooth hci0   blocked unblocked
root@raspberrypi:~# rfkill unblock 1
root@raspberrypi:~# rfkill
ID TYPE      DEVICE      SOFT      HARD
0 wlan      phy0     blocked unblocked
1 bluetooth hci0   unblocked unblocked

/code]



[code]
root@raspberrypi:~# sudo systemctl restart  bluetooth.service
root@raspberrypi:~# sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-03-30 20:12:45 CST; 3s ago
       Docs: man:bluetoothd(8)
   Main PID: 5823 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 2200)
     Memory: 600.0K
        CPU: 306ms
     CGroup: /system.slice/bluetooth.service
             └─5823 /usr/libexec/bluetooth/bluetoothd

3月 30 20:12:44 raspberrypi systemd[1]: Starting Bluetooth service...
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Bluetooth daemon 5.64
3月 30 20:12:45 raspberrypi bluetoothd[5823]: src/main.c:check_config() Unknown group Controller in /etc/b>
3月 30 20:12:45 raspberrypi systemd[1]: Started Bluetooth service.
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Starting SDP server
3月 30 20:12:45 raspberrypi bluetoothd[5823]: Bluetooth management interface 1.14 initialized
3月 30 20:12:45 raspberrypi bluetoothd[5823]: src/adapter.c:reset_adv_monitors_complete() Failed to rese



0
2 年 前
#3743 引用
1
0
2 年 前
#3744 引用
1
0
2 年 前
#3745 引用

使用 hcitool con 命令查看当前已连接的蓝牙设备,确认连接成功:


$ hcitool con
Connections:
    > ACL FC:58:FA:F4:67:33 handle 11 state 1 lm SLAVE AUTH ENCRYPT
0
2 年 前
#3770 引用
存在的问

树莓派连接蓝牙音响,隔一段时间就会突然断开,然后就连不上了,必须重启才能重新连接。。不知道大家有没有碰到这个问题
0
2 年 前
#3771 引用
1
0
2 年 前
#3772 引用
存在的问题

蓝牙耳机连上就断,知道怎么回事啊?
0
2 年 前
#3773 引用
1
0
2 年 前
#3774 引用
便携式蓝牙音箱,无输出5分钟、10分钟会自动关机。我已经放弃了,测试了蓝牙破音、断断续续的
0
2 年 前
#3775 引用
1
0