This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: How to Modify 16 Bytes of Data in Custom Service UUID on CC2340

Part Number: CC2340R5

Tool/software:

Hi,

I have a CC2340 Launchpad board and am using it as a peripheral. I would like to add a custom service with the UUID 6e400001-b5a3-f393-e0a9-e50e24dcca9e, which currently allows modification of only 2 bytes of data. My goal is to modify it so that I can change all 16 bytes of data in the service UUID, as well as in the custom characteristic UUID.

I have attached a screenshot for reference.

Here only we can change 2 byte of data but i want to change 16 byte service id.

 we want to changes on marked area

Code Composer Studio Version: 12.7.1

SDK:simplelink_lowpower_f3_sdk_8_10_00_23_eng 

Could someone please guide me on where I need to make changes in my code to implement this? 

Thanks & Regards

Ratan Dalei

  • Hi Ratan,

    Thank you for reaching out. We will look into your questions and get back to you as soon as possible.

    Best Regards,

    Jan

  • Hello Ratan,

    Could you please confirm if this is an automotive application (are you using the CC2340R5-Q1 device version)?

    What I do to modify my custom 128 characteristic UUID is something like this:

    //Base for 128-bit UUID: modify this as needed
    #define XXX_BASE_UUID_128( uuid )  0x11, 0x11, 0x11, 0xF6, 0x01, 0xAF, 0x7D, 0xBC, \
                                      0x05, 0x4F, 0x21, 0x5A, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x5E, 0xAB
                                      
    // GATT Profile Service UUI
    static const uint8 xxxProfileServUUID[ATT_UUID_SIZE] =
    {
     XXX_BASE_UUID_128(MY_UUID)
    };

    BR,

    David.