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

NRF_ERROR_NO_MEM in NUS using FIFO

Hi,

I am testing the NUS using the UART example in the SDK11 with the PCA10040 board.

Since I want to achieve the maximum speed of transmission I used the FIFO buffer to place my out data and I am constantly calling the ble_nus_string_send when there are 20 bytes available on the FIFO. I am transmitting to the android UART 2.0 app with android 6.0 @ 15ms interval.

If I receive a NRF_ERROR_NO_MEM, I assume that the 6 packets of the interval have been filled, but then I keep retrying, without delay, until I receive the NRF_SUCCESS. It seems to work.

Am I forcing something with this brute force on the ble_nus_string_send? Can the SD be skipping some packages because I retry too often? Is it safe?

Thanks!

Parents Reply Children
Related