data rate over BLE

Dear Sir or Madam,

I have a Nrf52840 device that needs to send 45k Bytes per second over BLE to another Nrf52840 central device.

I use the NUS UART profile from SDK 17.1.0 in the device to send 244 bytes every 10 milliseconds

To connect to the device, I use the UART central example from SDK 17.1.0 and transmit the data over USB CDC to a PC, I implemented the USB in the project.

All works well when the packet send rate is 50 milliseconds; however, when I attempt to increase the speed to 10 milliseconds per pack, I lose packages

Could you please advise what I can do in order to avoid losing packages?

Shimon

Parents
  • Hi

    Have you tried taking a sniffer trace to see if the bottle neck is over the air or if something is lost on-air? Do you get any error messages indicating where the lost data is? My guess would be that the UART isn't set to the correct baud rate perhaps, or that a buffer is filled up quicker than it can be emptied. 244 bytes every 10ms would equal a bit rate of 195200 if I'm not mistaken, so how is this set up in your UART sample? By default the bit rate in our samples is set to 115200.

    Best regards,

    Simon

Reply
  • Hi

    Have you tried taking a sniffer trace to see if the bottle neck is over the air or if something is lost on-air? Do you get any error messages indicating where the lost data is? My guess would be that the UART isn't set to the correct baud rate perhaps, or that a buffer is filled up quicker than it can be emptied. 244 bytes every 10ms would equal a bit rate of 195200 if I'm not mistaken, so how is this set up in your UART sample? By default the bit rate in our samples is set to 115200.

    Best regards,

    Simon

Children
Related