设备使用 Ubuntu Server 20.04 这个固件蓝牙测试可以搜索到 其他设备。
但使用 Debian 9 Desktop(Dual Display) 这个固件时蓝牙就搜索不到任何设备
具体步骤如下:
root@linaro-alip:~# systemctl start bluetooth
root@linaro-alip:~# hciconfig
hci0: Type: Primary Bus: UART
BD Address: 43:45:C5:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:897 acl:0 sco:0 events:65 errors:0
TX bytes:5288 acl:0 sco:0 commands:65 errors:0
root@linaro-alip:~# pulseaudio --start
W: [pulseaudio] main.c: 不应以 root 身份运行本程序(除非指定 --system 参数)。
root@linaro-alip:~# bluetoothctl
[NEW] Controller 43:45:C5:00:1F:AC linaro-alip [default]
[bluetooth]# default-agent
No agent is registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[bluetooth]# [ 119.111764] Bluetooth: hci0 command 0x2005 tx timeout
[ 121.114611] Bluetooth: hci0 command 0x200b tx timeout
[ 123.118469] Bluetooth: hci0 command 0x200c tx timeout
[bluetooth]# exit
[DEL] Controller 43:45:C5:00:1F:AC linaro-alip [default]
root@linaro-alip:~# hcitool scan
Scanning …
[ 201.417931] Bluetooth: hci0 command 0x0401 tx timeout
Inquiry failed: Connection timed out
root@linaro-alip:~# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: 43:45:C5:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:897 acl:0 sco:0 events:65 errors:0
TX bytes:5324 acl:0 sco:0 commands:69 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Can’t read local name on hci0: Connection timed out (110)
root@linaro-alip:~# [ 232.917158] Bluetooth: hci0 command 0x0c14 tx timeout