-
Notifications
You must be signed in to change notification settings - Fork 51
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
NimBLE: Error while removing IRK #79
Comments
Hi @ahammouri , So, the below print implies that during unpair, there was attempt to delete IRK, but it didn't find any in the nvs. This is more of a debug print rather than an issue. E (12724) NimBLE: Error while removing IRK However, the below is something we should debug.
can you possibly share a nimble debug enabled console log ? We need to check if disconnect event was received OR stack internally initiated disconnect. If stack did, then we will have to check the reason for it. If remote has sent the event, then remote side would need to be debugged. |
Thanks for the reply @rahult-github I tried to set my sdkconfig to use CONFIG_BT_NIMBLE_LOG_LEVEL_DEBUG=y |
Hi @ahammouri , Please use: Component config → Log output → Default log verbosity --> Set to Debug Component config → Bluetooth → NimBLE Options → NimBLE Host log verbosity --> Set to Debug |
Thanks for the help @rahult-github When debug logs were enabled, an assert occurred which rebooted esp. Did the assert fail because debug logs are now enabled and did not print NimBLE: Error while removing IRK instead ? Logs before the assert happened. Let me know if you need more logs. Thanks ! |
A different log from one of my colleagues |
Checklist
How often does this bug occurs?
often
Expected behavior
I expected to see BLE pairing working fine after an esp32 factory reset
Actual behavior (suspected bug)
After an esp32 factory reset, some devices fail to connect over BLE again (does not always happen). I get an error saying NimBLE: Error while removing IRK and I could not find a way to get it to work again.
Error logs or terminal output
Steps to reproduce the behavior
Perform a factory reset on esp32, Bonds are deleted using the ble_store_clear() function.
Attempt to connect over BLE again.
Get the above error
Project release version
Shipped with ESP-IDF 5.2.2
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
Windows 11
Shell
CMD
Additional context
No response
The text was updated successfully, but these errors were encountered: