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

Issues with the coexistance of WIFI and BT #6

Open
nero01 opened this issue Apr 26, 2018 · 1 comment
Open

Issues with the coexistance of WIFI and BT #6

nero01 opened this issue Apr 26, 2018 · 1 comment

Comments

@nero01
Copy link

nero01 commented Apr 26, 2018

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.

@rcaelers
Copy link
Owner

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...

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

Successfully merging a pull request may close this issue.

2 participants