ESP32 - Bluetooth - BLE scan and WIFI not works same time.
ESP32 rev1 and rev3. Board without psram.
Try with ESP-IDF, 4.4.1 and 4.4.3, micropython from master
Suppose running asyncio in the thread. Task call ble.scan. Wifi works not good. At first look ok, But if you try from FTP download/upload some or other. Wifi stops working normally.
<img width="646" alt="image" src="https://user-images.githubusercontent.com/34532/201466036-86465512-b6c1-4729-b9ea-4212930859c6.png">
If run asyncio without thread. All works normally.
<img width="754" alt="image" src="https://user-images.githubusercontent.com/34532/201466074-b0f34aa4-281b-44d9-a441-ceceec32f8cc.png">
Firmware:
4m_straga_core.zip
main.py and ftp.py for test.
I test with asyncio with out thread, wifi stop work too. But only if load from FTP big file.
Simultaneous LAN8720 and WIFI connection will render ESP32-WROOM network functions unusable
I've done several tests on multiple ESP32 boards with LAN8720 (integrated and external also)- ESPIDF 3.3 and MicroPython 1.13:
On ESP32-WROVER with 4MB PSRAM:
-WiFi STA only: works OK
-LAN8720 only: works OK
-WiFi STA + LAN8720 at the same time works OK
On ESP32-WROOM with no PSRAM:
-WiFi STA only: works OK
-LAN8720 only: works OK
-WiFi STA + LAN8720 activated at the same time -> wired connection is available but webserver stops responding after a time anyway - [Errno 110] ETIMEDOUT
wifi sta connection get IP address but webserver is not available on that IP, the log contains some errors like:
I (151110) wifi:bcn_timout,ap_probe_send_start
I (153610) wifi:ap_probe_send over, resett wifi status to disassoc
Is it an ESPIDF limitation or may be patched in micropython somehow?