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

ERROR 19 when calling ble_nus_data_send

Hi, I am getting an error 19  which causes a reset after some time running a modified version of the ble_nus peripheral example may someone guide me on how to sort the issue please as im relatively new to Bluetooth. 

in my application, i have a peripheral nrfd2dk (using a modified version of the ble_nus example) and i also have a central nrf52dk (using a modified version of the ble_nus_c example) on the peripheral i have spi running read running in a main loop such that i fill up a buffer of 242 with gyro readings with a terminator and an initiator. this can be seen below in the image. 

from some research the error is due to the tx buffer being overly filled. i am not using the BLE_GATTS_EVT_HVN_TX_COMPLETE as I'm not sure how to use it hence I have some delays (which i would like to remove and use the flag BLE_GATTS_EVT_HVN_TX_COMPLETE) may someone guide me please on how to fix my issue and show me how to use BLE_GATTS_EVT_HVN_TX_COMPLETE and also show me how i could send my data faster as any alteration of the ble definition causes the central to not connect to the peripheral .

thank you in advance 

please help

Parents Reply
  • NikTheNordicUser said:
    apoligies, i managed

    Based on this, and your comment in your other ticket, I am glad to hear that the issue -  NRF_ERROR_RESOURCES being returned from ble_nus_data_send - is finally resolved. I will therefore close this ticket. We may continue the other question you have here in your other ticket.

    For future reference, please create a new ticket if you have a new issue, or your questions diverge from the original ticket.
    This keeps the forum tidy and easy to navigate for other users.

    Best regards,
    Karl

Children
No Data
Related