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

Stable data transmission at ~50 kBit/s with ble_app_uart

Hi all,

I have a nRF52DK as peripheral and a nRF52840DK as central. I want to send data from the peripheral to the central with a data rate of 50 kBit/s.

I added a continuous data transmission to the ble_app_uart example. At the moment I have a timer, which calls the ble_nus_data_send() function every 32ms with a payload of 200 Bytes. The timer starts after central and peripheral is connected and MTU_exchange is finished.

The exact time when a NUS-paket is sent by the peripheral or received by the central does not matter. But I shouldn´t get an error. With the default connection parameters of the ble_app_uart example I received a NRF_ERROR_RESOURCES after I called the ble_nus_data_send() function 2-10 times.

My questions:

1. Which connection parameters should I use?

2. Do I have to set the connection parameters on central and peripheral?

3. How can I transmit data with a data-rate of 50 kBit/s without errors?

Thank you all soo much :)

Kind regards,

Maria

Related