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

ble custom service and desc

Hi.

I try to test using ble pc-drivce C library & 52840 dongle on pc.

except custom service. everything is fine.

under below is custom service pic.

1. is it normal custom service end handle is 0xFFFF?

2. when discover descriptor, only 2 handle was found. I need cccd handle. but there are not.

  on ble connect(first photo), there is normal.

How can i search normal descriptor handle like first photo?

thank you.

  • Hi Ben, 

    Have you added the Base UUID using sd_ble_uuid_vs_add() ? 

    Could you show the code where you do service discovery for your service ? 
    End handle of 0xFFFF doesn't sound right. 


    These two following cases are similar to what you want to do, the example was in python but I don't think it's much different from the C library: 
    https://devzone.nordicsemi.com/f/nordic-q-a/29848/how-to-use-pca10040-as-dongle-scanner

    https://devzone.nordicsemi.com/f/nordic-q-a/29043/nrf-dongle-as-uart-client-python#post-id-96453

  • Yes. I used sd_ble_uuid_vs_add(). add Base UUID.

    I solved tricky...

    ble service order is A B C DFU(nordic) custom

    changed A B C custom DFU. End handle is not 0xFFFF. it work normal.

    however desc handle is still not work. only 0x2800 0x2803.

    So I checked handle I want like first photo.

    and manually I used the handle whatever i want.

    it is work at least I need. still not found why desc is not working correctly

    here is one more question

    I use ble DIS (Device Information Service).

    and then here is also not fount all of char handle.

    part of dis char is found.

    char is 0x2A29, 0x2A25, 0x2A27

    but desc is only catch 5. 

    Do i need more search??

    thank you