Skip to content

ESP32 使用A2DP 连接蓝牙音响,某些品牌出现连失败的情况 (IDFGH-17075) #18107

@king3349

Description

@king3349

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

我在一开始开发时使用一些蓝牙音响和蓝牙耳机连接,能够成功播放音乐,后续尝试了一些其他型号、品牌的音响过程中,出现了这种连接失败的情况,感觉像是蓝牙配对都无法配对。
日志如下

I (14497) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (14517) bt a2dp driver: --Class of Device: 0x2a010c
I (14537) bt a2dp driver: --RSSI: -60
I (14557) bt a2dp driver: --Name: LAPTOP-97U19KSM
I (14577) bt a2dp driver: need device name BT-BOX
I (15127) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (15157) bt a2dp driver: --Class of Device: 0x2a010c
I (15177) bt a2dp driver: --RSSI: -61
I (15197) bt a2dp driver: --Name: LAPTOP-97U19KSM
I (15217) bt a2dp driver: need device name BT-BOX
I (15307) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (15327) bt a2dp driver: --Class of Device: 0x2a010c
I (15347) bt a2dp driver: --RSSI: -59
I (15367) bt a2dp driver: --Name: LAPTOP-97U19KSM
I (15387) bt a2dp driver: need device name BT-BOX
I (15567) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (15587) bt a2dp driver: --Class of Device: 0x2a010c
I (15607) bt a2dp driver: --RSSI: -62
I (15627) bt a2dp driver: --Name: LAPTOP-97U19KSM
I (15647) bt a2dp driver: need device name BT-BOX
I (15677) bt a2dp driver: Scanned device: 41:42:6d:fe:f5:5f
I (15697) bt a2dp driver: --Class of Device: 0x240418
I (15717) bt a2dp driver: --RSSI: -64
I (15747) bt a2dp driver: --Name: BT-BOX
I (15787) bt a2dp driver: need device name BT-BOX
I (15817) bt a2dp driver: bluetooth name compare success, address 41:42:6d:fe:f5:5f, name BT-BOX
I (15837) bt a2dp driver: Cancel device discovery ...
I (15857) bt a2dp driver: Scanned device: 41:42:6d:fe:f5:5f
I (15877) bt a2dp driver: --Class of Device: 0x240418
I (15897) bt a2dp driver: --RSSI: -54
I (15917) bt a2dp driver: --Name: BT-BOX
I (15947) bt a2dp driver: need device name BT-BOX
I (15967) bt a2dp driver: bluetooth name compare success, address 41:42:6d:fe:f5:5f, name BT-BOX
I (15987) bt a2dp driver: Cancel device discovery ...
I (16017) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (16037) bt a2dp driver: --Class of Device: 0x2a010c
I (16057) bt a2dp driver: --RSSI: -70
I (16077) bt a2dp driver: --Name: LAPTOP-97U19KSM
I (16097) bt a2dp driver: need device name BT-BOX
W (16137) BT_APPL: reset flags
I (16137) bt a2dp driver: A2DP event: 0
I (16527) bt a2dp driver: Current position: 12288 / 4872147 = 0%
W (21287) BT_SDP: SDP - Rcvd conn cnf with error: 0x4  CID 0x40

W (21307) BT_HCI: hcif conn complete: hdl 0xfff, st 0x4
W (21327) BT_BTC: BTA_AV_OPEN_EVT::FAILED status: 2

I (21357) bt a2dp driver: A2DP event: 0
I (21377) bt a2dp driver: Bluetooth A2DP source disconnected
I (21697) A2DP_STREAM: a2dp source disconnected
W (21717) bt a2dp driver: [ * ] Bluetooth disconnected, reconnect after 5 seconds...
I (23817) bt a2dp driver: Scanned device: 0c:7a:15:6d:cb:1b
I (23847) bt a2dp driver: --Class of Device: 0x2a010c
I (23877) bt a2dp driver: --RSSI: -64
I (23897) bt a2dp driver: --Name: 
I (23927) bt a2dp driver: need device name BT-BOX

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions