Is s113 v.7.2.0 supports multiple advertising sets?

Hi, I have found several aged topics on Devzone but need this feature and would like current state. If it still not supported, is there any example implementation on how manage it in software. 

The idea is 

BLE_ADVERTISING_DEF(adv_1);

#define APP_BLE_CONN_CFG_TAG1 1


BLE_ADVERTISING_DEF(adv_2);

#define APP_BLE_CONN_CFG_TAG2 2


ble_advertising_init(&adv_1, init_1);

ble_advertising_conn_cfg_tag_set(&adv_1,APP_BLE_CONN_CFG_TAG1);

ble_advertising_start(&adv_1, advertising_mode1);


ble_advertising_init(&adv_2, init_2);

ble_advertising_conn_cfg_tag_set(&adv_2,APP_BLE_CONN_CFG_TAG2);

ble_advertising_start(&adv_2, advertising_mode2);

And have 2 separate avertisements simultaneously with different data, intervals. 

Thanks

Parents
  • Hi,

    For S113 v7.3.0, as with the other v7.3.0 SoftDevices, it is only possible to have one advertising set. Ref. the define of BLE_GAP_ADV_SET_COUNT_MAX.

    You can change advertising contents, intervals, etc. through stopping advertising, changing values, then starting advertising again, through use of the usual API for handling advertisements. However, using this to manually operate with different intervals from the application can quickly become tedious. You would have to do something similar to how the app_timer library is internally implemented, in order to emulate and keep track of advertisements from the app side. We do not have any examples of such an implementation for advertising.

    If using non-connectable non-scannable advertising then there might even be an option to manually send advertisements through use of the timeslot API, instead of reconfiguring the advertising settings through the SoftDevice API. (I.e. not use SoftDevice for advertising, but rather send the advertising packets manually.) However, I would not really recommend going down that path if you can manage with the functionality provided by the SoftDevice.

    Regards,
    Terje

  • Thanks! I will take a try with v.7.3 as it looks like the most straight forward way. 

Reply Children
No Data
Related