nkolban / esp32-snippets

Sample ESP32 snippets and code fragments
https://leanpub.com/kolban-ESP32
Apache License 2.0
2.37k stars 710 forks source link

Unstable bluetooth connection #1075

Closed cvanelteren closed 3 years ago

cvanelteren commented 3 years ago

Hi,

Thanks for the project. After running some test code I am yielding an unstable connection that keeps disconnecting This is the main error that is posted every few seconds :

lld_pdu_get_tx_flush_nb HCI packet count mismatch (0, 1) In addition, I can see in my bluetooth manager that the HID is disconnecting and reconnecting. Are there any pointers for this issue? Best, C

chegewara commented 3 years ago

Hi, maybe it is due to weak signal. Did you try to increase tx power? There is few issues here explaining how to do it.

cvanelteren commented 3 years ago

Thanks for the quick reply. Oddly enough a removal from my bluetooth client made the instability go away :S edit: to clarify: I merely "forgot the device", rescanned and reconnected. No dropped pacakges.