首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法连接到蓝牙设备(org.bluez.Error.ConnectionAttemptFailed)

无法连接到蓝牙设备(org.bluez.Error.ConnectionAttemptFailed)
EN

Ask Ubuntu用户
提问于 2020-06-16 19:24:16
回答 1查看 17.2K关注 0票数 11

我无法连接*与蓝牙设备。扫描会在几分钟后找到我的设备,但是配对不会成功。当使用设置GUI时,它将我的设备显示为“未设置”。点击它将显示一个纺车一分钟,然后它将返回到“未设置”。

当我试图和一个设备配对时,我会用蓝宝石做org.bluez.Error.ConnectionAttemptFailed。

这种情况发生时,试图配对几个不同的蓝牙设备(耳机,扬声器,电话)到我的电脑。

目前运行Ubuntu20.04(从18.04升级),内核5.4.0-37-泛型

在这台计算机上运行18.04时,我也遇到了同样的问题,也使用了20.04的活动USB,以排除任何可能从默认情况下发生的更改。

我的蓝牙设备是:03:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10)

代码语言:javascript
复制
user@computer:~$ dmesg | grep -i blue
[   21.690128] Bluetooth: Core ver 2.22
[   21.690138] Bluetooth: HCI device and connection manager initialized
[   21.690141] Bluetooth: HCI socket layer initialized
[   21.690142] Bluetooth: L2CAP socket layer initialized
[   21.690147] Bluetooth: SCO socket layer initialized
[   21.755854] Bluetooth: hci0: read Intel version: 370810225019140f00
[   21.758971] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-22.50.19.14.f.bseq
[   22.083912] Bluetooth: hci0: Intel firmware patch completed and activated
[   23.196241] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   23.196242] Bluetooth: BNEP filters: protocol multicast
[   23.196245] Bluetooth: BNEP socket layer initialized
[   23.318920] Bluetooth: RFCOMM TTY layer initialized
[   23.318924] Bluetooth: RFCOMM socket layer initialized
[   23.318927] Bluetooth: RFCOMM ver 1.11
代码语言:javascript
复制
user@computer:~$ systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-06-16 10:34:31 PDT; 39min ago
       Docs: man:bluetoothd(8)
   Main PID: 1115 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 19013)
     Memory: 2.3M
     CGroup: /system.slice/bluetooth.service
             └─1115 /usr/lib/bluetooth/bluetoothd

Jun 16 10:34:30 computer systemd[1]: Starting Bluetooth service...
Jun 16 10:34:30 computer bluetoothd[1115]: Bluetooth daemon 5.53
Jun 16 10:34:31 computer bluetoothd[1115]: Starting SDP server
Jun 16 10:34:31 computer systemd[1]: Started Bluetooth service.
Jun 16 10:34:31 computer bluetoothd[1115]: Bluetooth management interface 1.14 initialized
Jun 16 10:35:35 computer bluetoothd[1115]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSink/sbc
Jun 16 10:35:35 computer bluetoothd[1115]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSource/sbc
代码语言:javascript
复制
user@computer:~$ bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 10:F0:05:XX:XX:XX Discovering: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[CHG] Device 5C:FB:7C:XX:XX:XX RSSI: -84
[CHG] Device 5C:FB:7C:XX:XX:XX TxPower: 4
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110f-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 00001131-0000-1000-8000-00805f9b34fb
[bluetooth]# trust 5C:FB:7C:XX:XX:XX
Changing 5C:FB:7C:XX:XX:XX trust succeeded
[bluetooth]# pair 5C:FB:7C:XX:XX:XX
Attempting to pair with 5C:FB:7C:XX:XX:XX
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
[bluetooth]# exit

我很感激你的帮助!

*有几次,我用蓝牙刷可以让它简单地说它成对并连接,但它会立即说断开连接。我目前无法复制这一点。

更新

在解决这个问题上仍未取得任何进展,但我确实听到它说它连接到设备上,并立即断开连接:

代码语言:javascript
复制
user@computer:~$ bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Device 5C:FB:7C:XX:XX:XX RSSI: -80
[CHG] Device 5C:FB:7C:XX:XX:XX RSSI: -84
[CHG] Device 5C:FB:7C:XX:XX:XX RSSI: -77
[bluetooth]# trust 5C:FB:7C:XX:XX:XX
[CHG] Device 5C:FB:7C:XX:XX:XX Trusted: yes
Changing 5C:FB:7C:XX:XX:XX trust succeeded
[bluetooth]# pair 5C:FB:7C:XX:XX:XX
Attempting to pair with 5C:FB:7C:XX:XX:XX
[CHG] Device 5C:FB:7C:XX:XX:XX Connected: yes
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:XX:XX:XX ServicesResolved: yes
[CHG] Device 5C:FB:7C:XX:XX:XX Paired: yes
Pairing successful
[CHG] Device 5C:FB:7C:XX:XX:XX ServicesResolved: no
[CHG] Device 5C:FB:7C:XX:XX:XX Connected: no
[bluetooth]# 

任何关于进一步故障排除的想法将不胜感激!

EN

回答 1

Ask Ubuntu用户

发布于 2021-05-04 16:13:45

检查以下内容:

  1. Make确保新连接完全可用。
  2. 确保您已断开与所有其他设备的连接。
  3. 然后,重新启动连接(旧设备)和蓝牙设备。

命令:

代码语言:javascript
复制
$ sudo bluetoothctl
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX 
[bluetooth]# scan off
[bluetooth]# trust XX:XX:XX:XX:XX:XX
[bluetooth]# pair XX:XX:XX:XX:XX:XX
Attempting to pair with XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes

[...]

[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
Connection successful
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1250989

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档