esp32-beacon-scanner icon indicating copy to clipboard operation
esp32-beacon-scanner copied to clipboard

Issues with the coexistance of WIFI and BT

Open nero01 opened this issue 6 years ago • 1 comments

Hello,

i have an issue that i think is caused by WIFI and BT, which i have tested a bunch of different example codes and your beacon scanner implementation. First it looks like everything is working well, but after 10, 30 or 60 minutes suddenly the watchdog gets triggered and the scanner does not search and publish beacons anymore. I have also read several "esp-idf" git issues where people report that the usage of wifi and bluetooth does not work stable with the esp32. I tried different settings and even disabled the coexistance of WIFI/BT but the results are not good for daily use.

Someone can help me, i am frustrated..

The last lines in the log print the following:

` (9292750) MEM: BLEScannerDriver::on_scan_timer entry: 108092 (delta 1856) I (9293750) MEM: BLEScannerDriver::on_scan_timer entry: 107572 (delta 520) I (9294750) MEM: BLEScannerDriver::on_scan_timer entry: 107572 (delta 0) I (9295750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 520) Task watchdog got triggered. The following tasks did not reset the watchdog in time:

  • IDLE (CPU 0) Tasks currently running: CPU 0: wifi CPU 1: IDLE I (9296750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 0) I (9297750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 0) I (9298750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 0) I (9299750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 0) I (9300750) MEM: BLEScannerDriver::on_scan_timer entry: 107052 (delta 0) Task watchdog got triggered. The following tasks did not reset the watchdog in time:
  • IDLE (CPU 0) Tasks currently running: CPU 0: wifi CPU 1: IDLE`

I followed the official sources to setup my development environment and i am using the latest master branch of esp-idf to compile my projects.

nero01 avatar Apr 26 '18 14:04 nero01

This instability is the main reason I have't spend much time on this project lately. Often, Wifi packets got dropped. This resulted in additional buffering in lwip and my code. After a few seconds, the board ran out of memory and rebooted.

it seems the current master branch of ESP-IDF is much more stable. Though I think it detects my BLE devices less frequently. Sometime no devices are found for 5+ seconds...

rcaelers avatar May 12 '18 17:05 rcaelers