-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Request of some advice to solve lld_pdu_get_tx_flush_nb HCI packet count mismatch (1, 2) #293
Comments
Please try removing the connection parameter setting at line 230 in your code and let me know if that has more success. |
@h2zero
After that it sometimes succeeded in connection but causes panic after that.
|
Thank you for reporting this, I see there is a bug in that section of the code that I will try to get fixed later today. For a work around I suggest not using the |
Thank you,
Thank you for checking the code. |
Hi! This runs with just slidely modofied examples (removed the "DEAD" service on client side and add an upcounting integer to send for characteristic "F00d" on server side, thats all). Nimble 1.3.1, arduino-esp32 2.0.0 Thanks in advance, bye, Marc. |
@visicon-masc that message is a controller debug message indicating some packets were received that were not expected. This is basically reporting packet loss so the connection was not completed. There isn't much we can do about that as the causes are mostly external and the BLE controller is a closed binary source on the ESP32. The bug reported in this thread is due to another cause that I have not had time to address yet, but the log message is not indicative of that. |
I tried with the latest version platforms. Platforms
Thank you. |
The issue maybe caused by process in esp-idf. The log I got.
NimBLE 1.3.6 |
I traced timing of
The I have to setup environment to debug esp-idf so I finish here today. |
I would advise not spending too much time digging into this.
The error that's occurring is a timeout on the connection, which can be caused by many things. NimBLE host code simply sends the command to the controller and waits for its response. If the packets arrive out of sync the controller prints that message and returns the error code. A short list of possible causes:
If you're inclined to dig deeper I'm all for it but I suspect you'll hit a road block at the controller or hardware level. For reference this library has its own copy of the esp_nimble_hci.c file. |
Thank you for the information. By the way, how about this PR? |
Note Cleaning command on platform io pio run -t clean |
My ESP32 stops working, if this message occuring. Is there a possibility to restart the ESP if this message is sent from the bt controller? |
On my case, the error occurs on ESP32, but doesn't on ESP32S3 and ESP32C3. The problem is discussed on esp-idf thread espressif/esp-idf#8303 but it is still unresolved. |
Nope. Its depending on the code. But I was stupid and missed something.
|
I tried to connect esp32 with xbox controller it again but failed with the following error.
The code (
pClient->connect(true);
) which causes the error.https://github.com/asukiaaa/arduino-XboxControllerNotificationParser/blob/a0cf4052ee305cd6dfaf28cbf9c5c03044400d66/examples/printOnSerialWithNimBLE/printOnSerialWithNimBLE.ino#L248
I succeeded in it with your help before.
#172
My environment of PlatformIO
I rollbacked the versions as begin of this year but it also failed.
Could you give me some advice to solve this?
Thank you.
The text was updated successfully, but these errors were encountered: