Mar*_*cus 7 bluetooth dell 16.04 18.04
我在 Dell XPS 13" 9360 上连接蓝牙 LE 设备时遇到问题。以前工作正常,但突然连接到设备总是失败,并出现连接超时。我已经测试了 10 多个设备,连接总是失败,并出现相同的错误. 设备工作正常,可以从另一台计算机连接到它们。
我正在使用BlueZ 5.50 (bluetoothctl)Ubuntu 16.04(刚刚升级到 18.04,但仍然存在同样的问题)。
bluetoothctl 的输出:
[bluetooth]# connect D6:37:A6:25:93:E6
Attempting to connect to D6:37:A6:25:93:E6
[CHG] Device D6:37:A6:25:93:E6 Connected: yes
Connection successful
[CHG] Device D6:37:A6:25:93:E6 Connected: no
Run Code Online (Sandbox Code Playgroud)
连接成功后约 1 秒发生断开连接“Connected: no”。
连接时的输出hcidump -i hci0:
> HCI Event: Command Status (0x0f) plen 4
LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
> HCI Event: Command Status (0x0f) plen 4
LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 5 reason 0x08
Reason: Connection Timeout
Run Code Online (Sandbox Code Playgroud)
输出来自hciconfig -a:
hci0: Type: Primary Bus: USB
BD Address: 9C:B6:D0:D5:AF:B6 ACL MTU: 1024:8 SCO MTU: 50:8
UP RUNNING PSCAN ISCAN
RX bytes:14656 acl:16 sco:0 events:1504 errors:0
TX bytes:17087 acl:17 sco:0 commands:1001 errors:0
Features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'foo'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: 4.1 (0x7) Revision: 0x0
LMP Version: 4.1 (0x7) Subversion: 0x25a
Manufacturer: Qualcomm (29)
Run Code Online (Sandbox Code Playgroud)
到目前为止我测试过的内容:
sudo rm -rf
/var/lib/bluetooth/[controllerid]后跟sudo service restart
bluetooth)/sys/kernel/debug/bluetooth/hci0/supervision_timeout)SLAVE ACCEPT到MASTER hcitool lecc,但同样的错误没有修改蓝牙配置文件/etc/bluetooth/
问题一开始只是一两个设备,然后突然无法再连接到任何设备。
是否还有其他缓存需要清除?任何可以更改的值/超时长度或操作模式?
| 归档时间: |
|
| 查看次数: |
5281 次 |
| 最近记录: |