-
Notifications
You must be signed in to change notification settings - Fork 95
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
Queue filling in notify_host_recv #275
Comments
I can only imagine the code isn't calling |
Ah that would likely explain it! The example I cribbed from calls Thankyou |
That appears to have fixed it! Thankyou! Would you be interested in a PR that either includes "Are you calling do_work?" in that warning for the full queue, or at least one that makes the errors unique so I knew which stack was having the issue? |
Great to hear it's working for you now
That's a bit of a problem since |
Ah sorry, I might have used the wrong terminology. My journey began with seeing the WARN in the output, but that exact warning appears in a few places: https://github.com/esp-rs/esp-wifi/blob/16afb0fe3c46e2ccf698bf52bfec5230ffad1cad/esp-wifi/src/ble/btdm.rs#L92 So my thinking was that disambiguating them might be helpful (The first thing I did was put the function names in and rebuild like that). |
Ah I see - all chips before ESP32-C2 use |
Hi,
I created a bluetooth scale using esp-wifi in ble mode, however over time the messages in the
BT_RECEIVE_QUEUE
in btdm.rs aren't cleared, and so it begins to drop packets.I'm not exactly sure how this condition can exist (I narrowed it down with some printf debugging) because I can't find any way to look at those packets that isn't a call to
dequeue
. My code is basically a hacked up version of theble
example for esp32. I'm happy to do whatever legwork to track this down, although I'm a little unclear on what could cause this or next steps.So far, I've logged the size of the queue whenever a new packet is ingested and at face value it appears that once the scale actually starts receiving messages is when the issue manifests. The first few when it begins advertising appear to be removed from the queue correctly.
The text was updated successfully, but these errors were encountered: