This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

btt_gatt_write in nus_c never gets reply

I'm currently running on nRF Connect SDK (hash: 4b012fb4882f0ddd3de9f339ebc5a3f1c3cacd4a). I'm running a connection between a nRF91+nRF52840 (as central running NUS_C) using HCI plus a separate nRF52840 (as peripheral running NUS service).

For the most part, the notifications coming from the peripheral are spot on. The device has consistently sent thousands of messages with no problem. On the other side though, sometimes the NUS_C_RX_WRITE_PENDING flag never gets cleared. This means the on_sent callback never gets called. I'm at a loss as to why this may be happening. Is there anything I can do to figure out where it's getting stuck in the process? It seems silly to reset the connection if the write gets "stuck".

Thanks!

Related