Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Cannot connect A2DP while BLE is active on v4.2 (IDFGH-4754) #6557

Closed
rpc-fw opened this issue Feb 17, 2021 · 2 comments
Closed

iOS Cannot connect A2DP while BLE is active on v4.2 (IDFGH-4754) #6557

rpc-fw opened this issue Feb 17, 2021 · 2 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@rpc-fw
Copy link

rpc-fw commented Feb 17, 2021

Problem Description

My dual-mode application uses BLE/GATT in parallel with A2DP, and on iPhone/iOS (14.4) there is a problem connecting both at the same time. iOS will not connect A2DP.

Steps to reproduce

  • Connect BLE/GATT in iOS application
  • Then go to system settings and pair with device (ok) and connect A2DP (fail)

I can reproduce the same issue with the ESP-IDF A2DP-GATTS_COEX demo like this:

  • Connect to demo with BLE with "BLE Scanner" app
  • Connect to demo with A2DP (ok!)
  • Disconnect A2DP from iOS but keep BLE connected
  • Try to connect A2DP again. iPhone will pair with the demo but after trying to connect for a while it says "Connection Unsuccessful". New A2DP connections will succeed only after disconnecting BLE.

Expected Behavior

It should be possible to disconnect and reconnect A2DP while BLE is connected.

When connecting from an Android device, it all works fine.

Actual Behavior

Pairing is ok, but the A2DP connection cannot be established. I cannot even see the connection attempt in ESP logs. The other order works: Connecting A2DP first, then BLE is ok.

This issue only appeared after upgrading to ESP-IDF v4.2. I bisected it to a27ea5a / 655772e, which is a fix for the BIAS vulnerability in v4.1.1 and v4.2. The setting CONFIG_BTDM_CTRL_LEGACY_AUTH_VENDOR_EVT was introduced in the same commit, but that does not seem to work or does nothing to help. The same issue is still there in v4.3-beta1. Before this change it works fine.

Environment

  • ESP32-SOLO-1
  • IDF version: v4.3-beta1, v4.2, v4.1.1
  • Build System: idf.py
  • Compiler version: xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
  • Operating System: Windows
  • Power Supply: external 3.3V

Code to reproduce this issue

See ESP-IDF A2DP-GATTS_COEX demo.

Is there any possible workaround for this issue?

@github-actions github-actions bot changed the title iOS Cannot connect A2DP while BLE is active on v4.2 iOS Cannot connect A2DP while BLE is active on v4.2 (IDFGH-4754) Feb 17, 2021
@rpc-fw
Copy link
Author

rpc-fw commented Feb 25, 2021

Is there any possible workaround for this issue? We are blocked from upgrading to latest ESP-IDF because of it.

@rpc-fw
Copy link
Author

rpc-fw commented Nov 1, 2021

This issue has been open for a long time. Could anyone confirm if you can reproduce it?

@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Resolution: NA Issue resolution is unavailable labels Sep 28, 2022
espressif-bot pushed a commit that referenced this issue Sep 29, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Oct 10, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Oct 15, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Oct 19, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Nov 11, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Nov 15, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Nov 15, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Nov 17, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
espressif-bot pushed a commit that referenced this issue Dec 4, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
igrr pushed a commit that referenced this issue Dec 7, 2022
to ESP32 while there is a BLE connection to this ESP32

Closes #6557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

2 participants