按住airpod按钮直到LED灯变白并闪烁后,我尝试与
[bluetooth]# pair <mac-address>
返回
Attempting to pair with 18:F1:D8:36:53:FB
然而,它只是停留在那里很长一段时间,直到airpod的LED再次变绿,我收到以下错误
Failed to pair: org.bluez.Error.AuthenticationCanceled
这让我相信它在某种程度上陷入了身份验证步骤。
我的airpod能够在我的其他ubuntu机器和我的android手机上配对,所以我相信这是这台电脑的蓝牙设置的问题。
输出btmon
> HCI Event: LE Meta Event (0x3e) plen 47 #3020 [hci0] 511.195393
LE Extended Advertising Report (0x0d)
Num reports: 1
Entry 0
Event type: 0x0010
Props: 0x0010
Use legacy advertising PDUs
Data status: Complete
Legacy PDU Type: ADV_NONCONN_IND (0x0010)
Address type: Public (0x00)
Address: 18:F1:D8:36:53:FB (Apple, Inc.)
Primary PHY: LE 1M
Secondary PHY: No packets
SID: no ADI field (0xff)
TX power: 0 dBm
RSSI: -50 dBm (0xce)
Periodic advertising invteral: 0.00 msec (0x0000)
Direct address type: Public (0x00)
Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
Data length: 0x15
14 ff 4c 00 07 0f 00 02 20 18 f1 d8 36 53 fb 15 ..L..... ...6S..
e4 e4 52 01 00 ..R..
和
> HCI Event: LE Meta Event (0x3e) plen 47 #187 [hci0] 14.798946
LE Extended Advertising Report (0x0d)
Num reports: 1
Entry 0
Event type: 0x0010
Props: 0x0010
Use legacy advertising PDUs
Data status: Complete
Legacy PDU Type: ADV_NONCONN_IND (0x0010)
Address type: Public (0x00)
Address: 18:F1:D8:36:53:FB (Apple, Inc.)
Primary PHY: LE 1M
Secondary PHY: No packets
SID: no ADI field (0xff)
TX power: 0 dBm
RSSI: -55 dBm (0xc9)
Periodic advertising invteral: 0.00 msec (0x0000)
Direct address type: Public (0x00)
Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
Data length: 0x15
14 ff 4c 00 07 0f 00 02 20 18 f1 d8 36 53 fb 15 ..L..... ...6S..
64 e1 52 01 00 d.R..
最终输出是
= bluetoothd: Pair device timed out for hci0 [hci0] 577.933884
@ MGMT Command: Cancel Pair Device (0x001a) plen 7 {0x0001} [hci0] 577.933864
LE Address: 18:F1:D8:36:53:FB (Apple, Inc.)
@ MGMT Event: Command Complete (0x0001) plen 10 {0x0001} [hci0] 577.933875
Pair Device (0x0019) plen 7
Status: Cancelled (0x10)
LE Address: 18:F1:D8:36:53:FB (Apple, Inc.)
@ MGMT Event: Command Complete (0x0001) plen 10 {0x0001} [hci0] 577.933886
Cancel Pair Device (0x001a) plen 7
Status: Success (0x00)
LE Address: 18:F1:D8:36:53:FB (Apple, Inc.)
/var/log/syslog
输出
bluetoothd[1069]: src/adapter.c:device_found_callback() hci0 addr 18:F1:D8:36:53:FB, rssi -47 flags 0x0004 eir_len 21
bluetoothd[1069]: src/device.c:device_set_legacy() legacy 0
bluetoothd[1069]: src/device.c:device_set_rssi_with_delta() rssi -47 delta 8
bluetoothd[1069]: src/device.c:device_set_flags() flags 0
bluetoothd[1069]: src/agent.c:agent_ref() 0x556fdd8f6a90: ref=2
bluetoothd[1069]: src/device.c:bonding_request_new() Requesting bonding for 18:F1:D8:36:53:FB
bluetoothd[1069]: src/agent.c:agent_ref() 0x556fdd8f6a90: ref=3
bluetoothd[1069]: src/agent.c:agent_unref() 0x556fdd8f6a90: ref=2
bluetoothd[1069]: src/adapter.c:suspend_discovery()
bluetoothd[1069]: src/adapter.c:adapter_bonding_attempt() hci0 bdaddr 18:F1:D8:36:53:FB type 1 io_cap 0x04
bluetoothd[1069]: src/adapter.c:suspend_discovery_complete() status 0x00
bluetoothd[1069]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
bluetoothd[1069]: Pair device timed out for hci0
答案1
这个答案解决了我的问题。特别是,我必须ControllerMode = bredr
设置/etc/bluetooth/main.conf