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

How to measure the BLE UART data rate?

Hi,

We are planning to develop an IOT device using the nRF52840 which will communicate with a Hub device which will contain another nRF52840 chip, so we want to check the data rate that can be achieved when using BLE UART profile between the 2 nRF52840 chips. So is there any way to check the data rate?

Regards,
Jibin Raj

Parents
  • Hi Jibin

    The easiest way to measure data rate is to simply count the number of bytes sent (by incrementing a counter every time you send some data), and check the counter at fixed intervals using an app_timer. If you make the app_timer fire every second then the counter will contain the number of bytes sent over the last second, and you can clear it after reading it out. 

    For the most accurate readings you should use the external LF crystal rather than the internal LF RC oscillator, as the accuracy of the app_timer module is set by the LF clock source. 

    Best regards
    Torbjørn

Reply
  • Hi Jibin

    The easiest way to measure data rate is to simply count the number of bytes sent (by incrementing a counter every time you send some data), and check the counter at fixed intervals using an app_timer. If you make the app_timer fire every second then the counter will contain the number of bytes sent over the last second, and you can clear it after reading it out. 

    For the most accurate readings you should use the external LF crystal rather than the internal LF RC oscillator, as the accuracy of the app_timer module is set by the LF clock source. 

    Best regards
    Torbjørn

Children
No Data
Related