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

Notification speed nrfConnect vs Web Bluetooth

Hi,

I'm trying to understand the speed of the BLE communication. What I do in my infinite loop is a SAADC conversion then send the value to BLE (int16_t).

In order to be able to see the data on nRF Connect app on Android, I'm forced to add a nrf_delay_ms(20), below this value, the board crash. But this is not fast enough for my needs.

But when I try with Web Bluetooth for example, I'm forced to increase the delay to 150ms, otherwise, after a few dozen, it stop.

How can I increase my speed ? Am I not able to notify from my board in full speed ? I would need a speed of 100 packet per second, is it possible ?!

Thanks

Parents
  • I found my problem, it turn out it was only a matter of configuring MIN_CONN_INTERVAL and MAX_CONN_INTERVAL to increase the speed. Actually, this answer helped me understand the impact of the connection interval (do not confuse with advertising interval). Also, the speed can be increase a lot (x4 for me) using the connection priority.

    I have set the first at the minimum : BLE_GAP_CP_MIN_CONN_INTVL_MIN and the max to BLE_GAP_CP_MAX_CONN_INTVL_NONE

    With this I can go full speed but without the SAADC conversion. I have open a new ticket for a more specific request about using SAADC.

Reply
  • I found my problem, it turn out it was only a matter of configuring MIN_CONN_INTERVAL and MAX_CONN_INTERVAL to increase the speed. Actually, this answer helped me understand the impact of the connection interval (do not confuse with advertising interval). Also, the speed can be increase a lot (x4 for me) using the connection priority.

    I have set the first at the minimum : BLE_GAP_CP_MIN_CONN_INTVL_MIN and the max to BLE_GAP_CP_MAX_CONN_INTVL_NONE

    With this I can go full speed but without the SAADC conversion. I have open a new ticket for a more specific request about using SAADC.

Children
No Data
Related