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

Peripheral UART example - connection interval and throughput

Hey guys,

I have another question related to this example.

I've modified the UART example such that UART printing is disabled, and I am calling ble_nus_send_string() to send a packet of 20 bytes six consecutive times in the nus event handler upon receiving data. I'm also using the nRF UART android app and a nrf51 dongle as a sniffer. Note I've also had to change the GAP_EVENT_LENGTH to be (connection interval / 1.25).

I've noticed that with a connection interval of 20ms, the 6 packets do seem to take 20ms to send (just taking the time difference of the last packet and the first from Wireshark).

However, when I change the connection interval to say 500ms, I expected the time difference to be 500ms, but it seems that the data gets transferred way faster than that. I can confirm that the connection interval was agreed at 500ms, and the empty PDU packages are sent only ever 500ms.

This doesn't seem to match up...am I misunderstanding how this is supposed to work? I can post some Wireshark log dumps later on. Thanks.

Parents Reply Children
No Data
Related