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

How to retrieve information from Soft Device

Hi all,

I am currently working on the nRF51422 with the S110 version of the Softdevice. The SDK version is 8.1.0.

I tried to get some information back from the Softdevice itself without using a BLE connection in my application. I have done some manipulation (especially using the handle number of my serv/char) with the S130 but it seems that the S110 is a bit different. My problems and also my questioning are:

  1. Using the ble_gatts.h library in S130 I used the function "sd_ble_gatts_attr_get" to get a correlation between uuid and handle number. The function is not available in the S110? Why?

  2. Is there any other way, except from the function used in 1. to retrieve information from the SD using S110? (Handle and uuid associated)

  3. Also in an application server, when we initialize each service/char/descr, is every handle attributed by the SD always incremented by 1?

Thanks a lot for your answers, Thomas

Parents
  • Hi

    1. The sd_ble_gatts_attr_get() function is simply a new feature in the S13x Softdevices. There is no equivalent in S110.
    2. You will have to store the handle values with associated UUIDs during initialization of the characteristics. You can e.g. include a handle and UUID field in the service structure. If you want to have access to the read/write permissions and properties after initialization than that information will need to be stored at initialization as well.
    3. When using the current SoftDevices you can be sure that all attributes in the table is always incremented by 1 and 1 only. However, this might not be the case in future SoftDevice releases. So if you are planning ahead and maybe want to upgrade your SoftDevice in the future you should not rely on this.
Reply
  • Hi

    1. The sd_ble_gatts_attr_get() function is simply a new feature in the S13x Softdevices. There is no equivalent in S110.
    2. You will have to store the handle values with associated UUIDs during initialization of the characteristics. You can e.g. include a handle and UUID field in the service structure. If you want to have access to the read/write permissions and properties after initialization than that information will need to be stored at initialization as well.
    3. When using the current SoftDevices you can be sure that all attributes in the table is always incremented by 1 and 1 only. However, this might not be the case in future SoftDevice releases. So if you are planning ahead and maybe want to upgrade your SoftDevice in the future you should not rely on this.
Children
No Data
Related