Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

BLE NUS missing BLE_NUS_EVT_RX_DATA data

Hi everone!

I am developing with SDK17.0.2 and using the nordic NUS peripheral example.

I am seeing a strange effect:

I am connecting from an android mobile and when I try to send two packets right after another the second one overwrites somehow the first data:

NRF52840 does get two  BLE_NUS_EVT_RX_DATA events but both times with the second data? The first data sent is never given to my application.

If I put in a pause between the two messages on android I get both messages right.

Maybe anyone has a clue why this is happening? I am using the nordic UARTService on android. 

My Send waits till "onCharacteristicWrite" is called before sending the second message.

Thanks,

Andreas

Parents Reply Children
Related