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

nrf51-ble-driver_win_0.4.0 question

I am using the PCA10031 as a serialisation device connected to a Windows laptop. The PCA10031 is programmed with connectivity_with_s120_1.0.1.hex and I am using the nrf51-ble-driver_win_0.4.0 driver.

I am sending about 70 20-byte packets per second (1400 bytes/second) from an nRF51822 to the PCA10031 using a custom service. I have written a C++ application but keep getting the following response about 20% of packets (i.e. 20% of packets were lost):

File: (null), Line: 0, Error code: 4

The number of errors tend to increase over time, which I speculate may be related to some overflowing buffers. I do not get the errors at low rates (10 packets per second).

What is this error and how can it be solved?

Parents Reply
  • Hi Bjorn,

    Thanks a lot for your swift response. Is the buffer overflowing on the received data (nRF51822 device to PCA10031) or transmitting data (PCA10031 to PC) side? The former means PCA10031 is too slow and I can't do much on my side apart from reducing the data rate while waiting for an updated driver. If it is the latter then I can try to optimise my C++ program further.

    Thanks a lot.

Children
No Data
Related