-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
WiFi coexistence #19
Comments
I tried and failed and finally came to the conclusion that this is not working for the bandwidth that A2DP needs.
see the discussion at https://esp32.com/viewtopic.php?t=6707
An alternative migth be to connect 2 devices - one doing bluetooth and a separate one for Wifi (eg. ESP8277)…
… On 19 Dec 2020, at 17:05, Paul Andrews ***@***.***> wrote:
Have you been able to get A2DP to coexist with WiFi? The ESP32 docs say it is possible, but I haven't succeeded so far. I haven't tried a simple test case yet - I have been trying to shoe-horn A2DP into an existing, fairly complex application, but just knowing if someone has succeeded would be useful.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It appears to be a heap size issue. I gradually built up the sophistication of my test application and monitored the free heap. Each time, if the free heap falls below around 48k, things start to go wrong. You can free up around 8k by writing your own btStart() that only initializes ESP_BT_MODE_CLASSIC_BT mode, and then calling esp_bt_mem_release(ESP_BT_MODE_BLE) beforehand. I'm not sure why everything starts to go wrong when the ESP32 is reporting 48k free heap, you would think that would be enough, and it is hard to believe it is so fragmented as to be useless. As it is, it is really only possible to write a basic application that uses both A2DP and WiFi. Maybe I need to investigate a chip with PSRAM. |
I don’t want to spam, but i think it is worth leaving this link here for anyone who comes after https://docs.espressif.com/projects/esp-adf/en/latest/design-guide/design-considerations.html |
Have you been able to get A2DP to coexist with WiFi? The ESP32 docs say it is possible, but I haven't succeeded so far. I haven't tried a simple test case yet - I have been trying to shoe-horn A2DP into an existing, fairly complex application, but just knowing if someone has succeeded would be useful.
The text was updated successfully, but these errors were encountered: