Closed Olivier-ProGlove closed 5 years ago
I believe that an upcoming patch from @joerchan will fix this as well.
Here is the sniffer traces when the assert occurs (I removed my workaround) to force LL_ASSERT(0)
:windows10-reconnection-assert.zip
I duplicated the issue twice to ensure we have consistent traces (and it looks like the trace are consistant):
Describe the bug
I was checking if https://github.com/zephyrproject-rtos/zephyr/pull/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
https://github.com/zephyrproject-rtos/zephyr/commit/417d349727e3edf6ef8734faa24cbd5542264c62Additional 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