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

S130 Custom UUID Service discovery

I have S110 peripheral device with custom UUID, created as described in www.nordicsemi.com/.../80193304 . On the other side i have S130 device who successfuly scans and connects to peripheral device. But when i try to discover services, i cant get custom service - i get that type is BLE_UUID_TYPE_UNKNOWN. All other servces is like ble_bas, ble_dis are discovered. I use S130 demo code.

So my question - how to discover custom UUIID service on S130 device?

Parents
  • Hi,

    I have the same problem than DiamondS. From S130 device, I try to discover my services in S110 peripheral, but i can not found it.

    Jan Steffl I tried your solution but I get an error in sd_ble_gattc_read function, and i dont understand why. Can you give a clearer statement of how to solve this problem? Or even share an excerpt from the code in question?

  • Hi James,

    Just to make sure: do you call sd_ble_gattc_primary_services_discover(...) after provisioning 128-bit UUID base by sd_ble_uuid_vs_add(...)? It's not visible in my code sample because I'm running it (similarly to S130 example from nRF51 SDK) in the loop going through entire GATT handle space. It's also not completely mandatory to do it as you already know the handle ID at the moment of calling sd_ble_uuid_vs_add, very much depends on what you are doing in your code afterwards (e.g. continuing with Characteristics/Descriptors discovery etc.)

    Cheers Jan

Reply
  • Hi James,

    Just to make sure: do you call sd_ble_gattc_primary_services_discover(...) after provisioning 128-bit UUID base by sd_ble_uuid_vs_add(...)? It's not visible in my code sample because I'm running it (similarly to S130 example from nRF51 SDK) in the loop going through entire GATT handle space. It's also not completely mandatory to do it as you already know the handle ID at the moment of calling sd_ble_uuid_vs_add, very much depends on what you are doing in your code afterwards (e.g. continuing with Characteristics/Descriptors discovery etc.)

    Cheers Jan

Children
No Data
Related