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,

    what error code is returned from sd_ble_gattc_read function? It should be easier when you match that 16-bit code with error codes reserved for SD (see particular header files in the SDK). Then also make sure that m_central_conn_handle is valid (= connection request was sent and BLE stack inside SD is maintaining it) and that you are calling GATTC Read on proper GATT handle ID (it should be starting handle of Service you are looking to). Hard to recommend anything else, in my case this example just works (I'm using also nRF51822 on Peripheral side with S110 SD and one proprietary service with 128-bit UUID).

    Cheers Jan

Reply
  • Hi James,

    what error code is returned from sd_ble_gattc_read function? It should be easier when you match that 16-bit code with error codes reserved for SD (see particular header files in the SDK). Then also make sure that m_central_conn_handle is valid (= connection request was sent and BLE stack inside SD is maintaining it) and that you are calling GATTC Read on proper GATT handle ID (it should be starting handle of Service you are looking to). Hard to recommend anything else, in my case this example just works (I'm using also nRF51822 on Peripheral side with S110 SD and one proprietary service with 128-bit UUID).

    Cheers Jan

Children
No Data
Related