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

service data with 128-bit uuid

Hi,

I need to send some additional information in advertising.

According to Core Specification Supplement v4 A.1.11 it is possible to use also 128-bit UUID in service data. But I can't find this possibility in the SDK API (I use SDK 5.1.0). Is that not possible? Or am I missing something?

Cyril.

Parents
  • Hi Cyril,

    The SDK API ble_advdata_set does provide the possibility to do this. In fact, the DFU example (found in \Nordic\nrf51422\Board\nrf6310\device_firmware_updates\bootloader folder) uses this feature. Please have a look at the function advertising_init in dfu_transport_ble.c together with ble_dfu_init in ble_dfu.c to see how this is done.

    In short, you will need to first add the 128 bit UUID to the S110 SoftDevice using sd_ble_uuid_vs_add (done in ble_dfu_init function). When you do that, the stack will provide UUID Type as output parameter. This UUID type should be later used when you initialize the advertisement data (done in advertising_init in dfu_transport_ble.c).

    Hope this is clear.

    Cheers, Balaji

Reply
  • Hi Cyril,

    The SDK API ble_advdata_set does provide the possibility to do this. In fact, the DFU example (found in \Nordic\nrf51422\Board\nrf6310\device_firmware_updates\bootloader folder) uses this feature. Please have a look at the function advertising_init in dfu_transport_ble.c together with ble_dfu_init in ble_dfu.c to see how this is done.

    In short, you will need to first add the 128 bit UUID to the S110 SoftDevice using sd_ble_uuid_vs_add (done in ble_dfu_init function). When you do that, the stack will provide UUID Type as output parameter. This UUID type should be later used when you initialize the advertisement data (done in advertising_init in dfu_transport_ble.c).

    Hope this is clear.

    Cheers, Balaji

Children
Related