如果“没有可用的默认控制器”且 hciconfig 没有显示任何内容,我该如何在 Ubuntu 系统上激活蓝牙功能

如果“没有可用的默认控制器”且 hciconfig 没有显示任何内容,我该如何在 Ubuntu 系统上激活蓝牙功能

我在 raspberry pi 3 model b 上运行 Ubuntu server 18.04,但每当我尝试使用该设备的任何蓝牙功能时,它都表现得好像没有蓝牙功能。运行该rfkill list命令只会显示无线局域网的设置,而不是 hci0,运行该hciconfig命令什么也没有显示,运行该bluetoothctl命令可以工作,但如果我尝试扫描、搜索设备、广告等,我只收到消息:“没有可用的默认控制器。我已经尝试设置了,AutoEnable=true但这etc/bluetooth/main.conf也没有任何效果。以下是输出dmesg | grep Blue

[14.116780] Bluetooth: Core ver 2.22
[14.132786] Bluetooth: HCI device and connection manager initialized
[14.142914] Bluetooth: HCI socket layer initialized
[14.151799] Bluetooth: L2CAP socket layer initialized
[14.160984] Bluetooth: SCO socket layer initialized

答案1

我终于找到了一个可行的解决方案:sudo hciattach /dev/ttyAMA0 bcm43xx 921600 运行此命令后,一切似乎都很好。

相关内容