-
Notifications
You must be signed in to change notification settings - Fork 37
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
scan_evt timeout spammed in serial monitor #226
Comments
Hi, yes this comes from the BLE lib. If this causes issues for you (like the lock state not updating), consider to set "Restart if bluetooth beacons not received" to something like 60 seconds. |
I was thrilled already by the fact that the hub could connect to my front door as i am so far away (an entire floor level in my house), i just think thats because of an unstable signal. But thx for the fast response, if i detect any issues i will try the setting. |
That would sure explain the timeout warnings ... if possible move the ESP closer. |
Hi. I am experiencing the same problem since I updated to 8.26. The issue occurs about once a day for me and results in the Nuki BLE connection being completely broken (only a manual restart helps). Before I was running on 8.22 which worked flawlessly for me with only one crash within 2 months. While I was investigating the issue I found espressif/arduino-esp32#5860 where I will consider enabling "Restart if bluetooth beacons not received" as well but while this might mitigate the issue I would rather see this as a workaround and last resort than a fix. |
Thanks for looking into this. Yes, this would indeed explain it. The automatic restart option doesn't work for you? |
I havent tested the automatic restart option yet because before you mentioned it here I did not know it might be of help regarding my problem. But generally the automatic restart sounds a bit like symptom treatment rather than a fix of the root cause, what I am looking for. |
It is, and I'm not happy about having to resort to this. There are issues in the Espressif bluetooth stack, my guess is this is only one of them. Especially when using bluetooth and wifi at the same time, the stack sometimes silently dies. This is at least one hint at what's going on. |
It seems a fix for this problem has apparently been included in IDF 5.1.3 and up, see espressif/esp-idf@74f99d2, espressif/esp-idf@56563f7 and espressif/esp-idf@2ec5d6b. So hopefully this will be fixed in Arduino Core 3.0 as this is based on IDF 5.1 |
Hi,
first of thanks for your hard work! I let the hub run on my ESP32 over night PC was in deep sleep when i turned it on again this morning my serial monitor is spammed with "scan_evt timeout".
already searched your source for it but couldn't find it, is this caused by the BLE library? I am just curious about the issue.
The text was updated successfully, but these errors were encountered: