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

Updating Advertising Data in SDK15

Greetings everyone,

i am trying to migrate from SDK 14.2 to SDK 15 but I got this problem with updating "advertising" and "scan response data". I have read other threads/post but couldn't find a reliable solution. It would be nice if Nordic can provide a working example with that feature.

Regards

Parents
  • Hi!

    Did you take a look at the ble_app_uart example and how it is done there?

    I believe that example adds a 128-bit UUID to the scan response data. 

    Best regards,
    Joakim

     

  • I think uart example doesn't implement any data update regarding advertising/scan-response data.

  • I asked already two times about this and I'm still without any right answer...
    devzone.nordicsemi.com/.../updating-advertising-data-manuf-spec-data-in-sdk15

  • I think that some problems are already known regarding SDK15 and I hope they will fix it . Maybe they will release 15.1 soon. Currently we are stucked with the porting 14.2->15. According to release doc-we should use SDK 15 with the latest uC version which is used in our final test board.

  • I think I may have misunderstood.
    Are you having trouble adding data to the advertising and scan response packets? Or do you want to update the data that you already added?

    Cheers

  • Adding "advertising data" and "scan response data" was possible by using "ble_advdata_encode" and directly "sd_ble_gap_adv_set_configure" but I wasn't able to update the data.

    Now I use "ble_advertising_init" and "ble_advertising_conn_cfg_tag_set" to initialize and I can just update "advertising data" by using "ble_advdata_encode" and "sd_ble_gap_adv_set_configure". So I had to skip "scan response data". I couldn't find any solutions to initialize them both and update them later. It crushed everytime.

    Again a simple example would be helpful.

Reply
  • Adding "advertising data" and "scan response data" was possible by using "ble_advdata_encode" and directly "sd_ble_gap_adv_set_configure" but I wasn't able to update the data.

    Now I use "ble_advertising_init" and "ble_advertising_conn_cfg_tag_set" to initialize and I can just update "advertising data" by using "ble_advdata_encode" and "sd_ble_gap_adv_set_configure". So I had to skip "scan response data". I couldn't find any solutions to initialize them both and update them later. It crushed everytime.

    Again a simple example would be helpful.

Children