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

ble_nus_send_string BLE_ERROR_NO_TX_BUFFERS error

when I call ble_nus_send_string,I got the error, error code is 0x00003003, Then I find error define like below

#define BLE_ERROR_NO_TX_BUFFERS          (NRF_ERROR_STK_BASE_NUM+0x003) /**<
Buffer capacity exceeded. */

so How I handle this error, Thank you!

Parents
  • Agree with Anders here, but I can try to give you some pointers anyway. Assume you're sending a larger chunk of data received over UART? In that case the throughput of the link may not be enough to keep up with the incoming data. We do have an example on our github (link) page that handles the BLE_ERROR_NO_TX_BUFFERS by doing re-transmissions when the buffer is no longer full. Note that hardware flow control is required for this to work.

Reply
  • Agree with Anders here, but I can try to give you some pointers anyway. Assume you're sending a larger chunk of data received over UART? In that case the throughput of the link may not be enough to keep up with the incoming data. We do have an example on our github (link) page that handles the BLE_ERROR_NO_TX_BUFFERS by doing re-transmissions when the buffer is no longer full. Note that hardware flow control is required for this to work.

Children
Related