Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Custom Service ID and characteristics have 2 byte value not at 12 ant 13 position, rather at 10 and 11 in 16 byte UUID

Hi ,

I am using a bluetooth peripheral which  have the Custom Service ID and characteristics ID as below.

Service UUID:             56494B01-0100-1000-8000-00805F9B04E1

Characterisitics UUID: 56494B01-0108-1000-8000-00805F9B04E1

Strange enough the 2 bytes which uniquely identify the service or characterisitics are not  at 12 or 13 position (when read in reverse order). They are at 10 and 11 position.

I cant use this peripheral as the Service doesnt get identified by the softdevice.

Could anybody please let me know, how this can be handled. As internally the BLE does all its logic based on the value present at 12th and 13th position.

Will i be able to use the 128 bit as such without going for the short 2 byte ID.

Regards,

Siddiq

Parents
  • Hi,

    If I understand things correctly you have added both UUIDs (56490000-0100-1000-8000-00805F9B04E1 and 56490000-0108-1000-8000-00805F9B04E1).

    In theory this should work fine, as the ble_uuid_t structure stores the 16 bit uuid (in your case 4B01) and an index to the table of base UUIDs. Together they form a full 128 bit UUID, which is what you use. Can you share your code for us to have a look? (If you cannot share it in public you may open a private ticket and refer to this thread.)

    Regards,
    Terje

     

Reply
  • Hi,

    If I understand things correctly you have added both UUIDs (56490000-0100-1000-8000-00805F9B04E1 and 56490000-0108-1000-8000-00805F9B04E1).

    In theory this should work fine, as the ble_uuid_t structure stores the 16 bit uuid (in your case 4B01) and an index to the table of base UUIDs. Together they form a full 128 bit UUID, which is what you use. Can you share your code for us to have a look? (If you cannot share it in public you may open a private ticket and refer to this thread.)

    Regards,
    Terje

     

Children
Related