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

CUSTOM UUID DISCOVERY

Hi all,

Is there any example to discover the custom UUID services with pc-ble-driver c/c++? As far as I understood, the ble_db_discovery is not supported for this driver.

The issue is sd_ble_gattc_primary_services_discover() only accept the ble_uuid_t and I cannot pass ble_uuid128_t to discover the services. 

Thank you in advance for the tips.

Parents
  • Hi

    If this is a known UUID, you should add it to your list of vendor specific UUID's prior to the service discovery. You will then get the UUID back with the UUID type. If you don't know the vendor specific UUID, you should use the sd_ble_gattc_attr_info_discover function to get the UUID. (I am not sure if the latter function is supported in pc-ble-driver, but please give it a try.

    Best regards,

    Simon

  • Hi Simon,

    Thanks for the helpful solution. I know the custom UUID in the server, and I implemented the discovery. Now, my problem is all the characteristics are not discovered. Only the first one in the service is discovered. I have another SIG-adopted service (device information service), and the client can only discover three of the characteristics. The interesting point for me is it can find the start handle and the last one correctly, but it only returns three of them. Do you know what the problem is?

Reply
  • Hi Simon,

    Thanks for the helpful solution. I know the custom UUID in the server, and I implemented the discovery. Now, my problem is all the characteristics are not discovered. Only the first one in the service is discovered. I have another SIG-adopted service (device information service), and the client can only discover three of the characteristics. The interesting point for me is it can find the start handle and the last one correctly, but it only returns three of them. Do you know what the problem is?

Children
No Data
Related