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

WiFi coexistence #19

Closed
judge2005 opened this issue Dec 19, 2020 · 3 comments
Closed

WiFi coexistence #19

judge2005 opened this issue Dec 19, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@judge2005
Copy link

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.

@pschatzmann
Copy link
Owner

pschatzmann commented Dec 19, 2020 via email

@judge2005
Copy link
Author

judge2005 commented Dec 20, 2020

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.

@judge2005
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants