BLE HID sample often asserts on Windows 10 reconnection #15183
Labels
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
I was checking if #14938 could fix the issue "BLE HID sample fails to reconnect on Windows 10 tablets - Wrong Sequence Number (follow-up)" #14044.
I have the failing assert
<err> bt_ctlr_hci: assert: '0' failed
after the device connects.I am using Nordic nRF52840 dev kit (PCA10056) in a good third of the reconnection (it is the first time I tried, so maybe if depends of the environment).
Because there is a couple of
LL_ASSERT(0)
insubsys/bluetooth/controller/hci/hci.c
, I added an error message before each of these asserts. I can see it is always the one fromencode_data_ctrl()
that fails:<err> bt_ctlr_hci: encode_data_ctrl: opcode:0x0
Here is my code change:
To Reproduce
Expected behavior
Windows 10 should automatically reconnect to the dev kit as it advertises on restart.
Screenshots or console output
Environment:
417d349727e3e
417d349Additional context
Adding
PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND
to the switch seems to work:But I do not know if some actions need to be taken on
PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND
.cc: @joerchan @carlescufi @cvinayak
The text was updated successfully, but these errors were encountered: