蓝牙 BT-201 设备连接后立即断开连接

蓝牙 BT-201 设备连接后立即断开连接

我买了一个新的 BT 音频设备 (Seisa BT-201),但我无法在任何 Linux 机器 (Ubuntu 18.04、Ubuntu 20.04、Debian 10) 上使用它。它在连接后立即断开连接(配对后尝试多次)。它在我的手机 (Android) 上确实运行良好。另外,我知道这台电脑可以连接到另一个 BT 音频设备,因此 BT 设备及其驱动程序没有问题。

我确实尝试了在类似帖子中看到的几种不同的选项,但都无济于事。

我现在正在使用的计算机上的一些详细信息是:

$ uname -r
4.15.0-1103-oem

$ cat /etc/*release* | grep -i dist
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"

$ bt-adapter -i
[hci0]
  Name: beta-Inspiron-3480
  Address: EC:5C:68:64:62:48
  Alias: beta-Inspiron-3480 [rw]
  Class: 0x1c010c
  Discoverable: 0 [rw]
  DiscoverableTimeout: 0 [rw]
  Discovering: 0
  Pairable: 1 [rw]
  PairableTimeout: 0 [rw]
  Powered: 1 [rw]
  UUIDs: [HeadsetAudioGateway, 00001801-0000-1000-8000-00805f9b34fb, AVRemoteControl, OBEXFileTransfer, 00001800-0000-1000-8000-00805f9b34fb, OBEXObjectPush, PnPInformation, AVRemoteControlTarget, IrMCSync, AudioSource, AudioSink, 00005005-0000-1000-8000-0002ee000001, 00001133-0000-1000-8000-00805f9b34fb, PhoneBookAccess, 00001132-0000-1000-8000-00805f9b34fb, Headset]

$ lspci -nnk | grep -i network -A 2
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
    Subsystem: Dell QCA9377 802.11ac Wireless Network Adapter [1028:1810]
    Kernel driver in use: ath10k_pci
    Kernel modules: ath10k_pci
    enter code here

$ lsmod | grep -i 'bluetooth\|btusb\|wl'
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             516096  43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic           24576  2 bluetooth

hcidump显示:

HCI sniffer - Bluetooth packet analyzer ver 5.48
device: hci0 snap_len: 1500 filter: 0xffffffffffffffff
> HCI Event: Command Status (0x0f) plen 4
    Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 2 bdaddr A9:F6:16:4E:13:C7 type ACL encrypt 0x00
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
> HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 2
    Features: 0xbf 0xfe 0x8d 0xfa 0x88 0x2d 0x79 0x83
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> HCI Event: Read Remote Extended Features (0x23) plen 13
    status 0x00 handle 2 page 1 max 1
    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr A9:F6:16:4E:13:C7 name 'BT-201'
> HCI Event: Command Status (0x0f) plen 4
    Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
> HCI Event: Command Complete (0x0e) plen 10
    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr A9:F6:16:4E:13:C7
> HCI Event: Command Complete (0x0e) plen 7
    Read RSSI (0x05|0x0005) ncmd 1
    status 0x00 handle 2 rssi -24
> HCI Event: Command Complete (0x0e) plen 7
    Read Link Quality (0x05|0x0003) ncmd 1
    status 0x00 handle 2 lq 255
> HCI Event: Command Complete (0x0e) plen 7
    Read Transmit Power Level (0x03|0x002d) ncmd 1
    status 0x00 handle 2 level 10
> HCI Event: Auth Complete (0x06) plen 3
    status 0x00 handle 2
> HCI Event: Command Status (0x0f) plen 4
    Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1
> HCI Event: Encrypt Change (0x08) plen 4
    status 0x00 handle 2 encrypt 0x01
> HCI Event: Command Complete (0x0e) plen 7
    Read Encryption Key Size (0x05|0x0008) ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 2 reason 0x13
    Reason: Remote User Terminated Connection

最后,syslog

$ cat /var/log/syslog | grep -i bluetooth
Feb  5 18:59:11 computer bluetoothd[964]: Unable to select SEP

很高兴回答任何问题。提前感谢各位的阅读。

答案1

最后我成功了,纯属运气!下面是让它工作的步骤(我在上面列出的三个系统中都成功了):

  1. 从终端启动bluetoothctl。这是用于蓝牙命令的 REPL(类似于终端)。
  2. 发出scan on并稍等片刻。应该会出现您的设备 ID(我的是 A9:F6:16:4E:13:C7)。
  3. 问题trust <id><id>用您自己的设备 ID 替换)。
  4. 发出connect <id>。此命令将失败,但没关系。
  5. 做 IT 狂人的特长:关闭你的设备然后重新打开。
  6. 设备应该会自动连接!如果没有,请尝试第 4 步,如果这不起作用,那么您遇到的问题可能与我的问题不同。

相关内容