BLE Throughput with S112

Hi guys,

starting to improve my throughput with an nrf52805 and S112, i know this version does not support DLE, but it's also the one with lower footprint, I will ask you some questions because i see something that is not clear to me, I read around that there are also "issues" due to mobiles and OS, but to start I will drop here a log from the sniffer and then share other doubts.

Basically I am testing with an android device with nrf toolbox, using NUS to exchange a text file of about 70Kb to get data rate.

First of all I will drop this log...

connection_from_nrf_toolbox_to_nrf52805.pcapng

In this I cannot understand why in packet 1133 here below:

I see a connection interval of 7.5 msec ( so 6 units ) and then after some messages for discovery i get another LL_CONNECTION_UPDATE_IND, both from the master with this...

Where connection interval is set to 45 ms ( so 32 units )

What I can't understand is that I setup my sd to 24 units of interval so 30 ms, but I never see this request...

Where am I wrong?

Than I will have other doubts about data rate...i will attach here a longer long where first I send the file from nrf toolbox to embedded board and then viceversa and seems much more faster when data is sent from embedded to mobile, I just have an UART sending data to Ble via NUS.

mobile-to-nrf52-and-viceversa.pcapng

 Any help is appreaciated in my journey to a higher data rate...

Thanks

Parents
  • Hi,

    Host will decide the connection interval.

    If host has new connection itnerval, the device will receive BLE_GAP_EVT_CONN_PARAM_UPDATE event.

    You can add BLE_GAP_EVT_CONN_PARAM_UPDATE in ble_evt_handler and the new connection params will in p_ble_evt->evt.gap_evt.params.conn_param_update.conn_params.

    If connection interval is not meet your request, you can use sd_ble_gap_conn_param_update to request host updates connection parameters.

  • Thanks  , sounds clear will try! A question on connection event length which is supported by Softdevice 112, do I need to set this parameter before central connection or after it's connected i need to request an update?

    And by the way in your opinion what could be a realistic data rate i can reach? From nrf toolbox I copy and paste 22.5 Kb of text in roughly 12 secs...I think I can get higher also without data extension...

    Another doubt, connection event length is just used by the device activating it right? I mean i activate it on my peripheral, but this does not mean that it is used also by central, i don't see any exchange of data about this settings between devices.

Reply
  • Thanks  , sounds clear will try! A question on connection event length which is supported by Softdevice 112, do I need to set this parameter before central connection or after it's connected i need to request an update?

    And by the way in your opinion what could be a realistic data rate i can reach? From nrf toolbox I copy and paste 22.5 Kb of text in roughly 12 secs...I think I can get higher also without data extension...

    Another doubt, connection event length is just used by the device activating it right? I mean i activate it on my peripheral, but this does not mean that it is used also by central, i don't see any exchange of data about this settings between devices.

Children
Related