Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

BLE Data packet length extension support with nRF5 SDK v12.0.0/Softdevice 332 v2.0.0

I need to port some functionality that is using nRF5 SDK 17.0.2/S332 SoftDevice v6.1.1 to an older firmware using nRF5 SDK v12.0.0/Softdevice 332 v2.0.0. It looks like Softdevice 332 v2.0.0 does not have the sd_ble_gap_data_length_update() or the BLE_GAP_EVT_DATA_LENGTH_* events.

I did find the sd_ble_opt_set() function and BLE_GAP_OPT_EXT_LEN option in v2.0.0. Does this provide the same functionality for setting up packet length extension using this older Softdevice version. Without the events to trigger this when should this option be set? Does this have to be done before any of the MTU changes? Are there any other Softdevice calls needed to enable this option?

If anyone has used this option before and has some suggestions or guidance on how to do this it would be much appreciated.

Regards,

Tom

Parents Reply
  • You can still use BLE_GAP_OPT_EXT_LEN  in the version you are using but this is a static setting and cannot be changed. The feature that you are trying to port sd_ble_gap_data_length_update is a dynamic event length extension. 

    If your application will be ok with static setting of event length at the time of softdevice enable, then you can use BLE_GAP_OPT_EXT_LEN. Dynamic requests wont work with this.

Children
Related