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

SDK15.2.0 firmware crashing if more than 21 bytes sent from the nrf connect app.

Earlier with SDK 13 in custom advertisement I was able to send 30 bytes under unknown characteristics tab in Nrf connect APP but in SDK 15 I am not. Because the firmware or app getting stuck if I sen more than  bytes.

Parents Reply Children
  • It is difficult to say what may cause the issue. I assumed it was on the app side since nus_data_handler wasn't called. Did you put a breakpoint inside the function and check that it never stopped? 

    If nus_data_handler() isn't called, you can check what is happening on the lower layers. The nus_data_handler() is called in the following manner: ble_nus_on_ble_evt()-->on_write()-->p_nus->data_handler()/nus_data_handler(). Try setting a breakpoint in ble_nus_on_ble_evt() in the case for write. The function ble_nus_on_ble_evt() is declared in components\ble\ble_services\ble_nus\ble_nus.c.

    If it doesn't hit that breakpoint, you should check if the data is actually sent. Are you able to get a sniffer trace? Check my answer below for instructions on how to achieve this.

    Best regards,

    Simon

Related