Hello, I'm using the SDK 11.0.0 and S130 on both sides, and the projects ble_app_uart_c and ble_app_uart to connect a central and a peripheral through BLE. I was doing some measures to see how much data I could send defining different minimum and maximum intervals.
I got a throughput of 160kbps when using 7.5ms in the maximum and minimum connection intervals. But I don't think this number should be correct (not complaining because the more data I could send better). Just wanted to know if this is a normal number or maybe I'm measuring the throughput wrongly. I count the number of packets sent during one second and during 2 seconds and then calculated the throughput.
this is my code:
uint32_t timer2_number = 2000; //timer in ms
while(timer2_number != 0)
{
ble_nus_string_send(&m_nus, sender, 11);
timer2_number--;
counter_t++;
nrf_delay_us(999);
}
ble_nus_string_send(&m_nus, end_packet, 16);
printf("%f\n",counter_t);
nrf_delay_ms(10000);
the max should be 7packets20B8*(1/7.5ms)=149.33kbps. And I'm getting 160kbps. can I use delays to measure this, or should I use timers to be more precise?