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: CC2340R5 - Remove characteristic from Generic Access

Part Number: CC2340R5

Tool/software:

Good afternoon,

Chip: CC2340R5

SDK:simplelink_lowpower_f3_sdk_8_10_01_02

I want the service Generic Access with 2 characteristic:

-Device Name

-Appearance

and I want to remove the following characteristic (I have to follow a specification that does not allow me to have it):

-Peripheral Preferred Conenction Parameters

-Central Address Resoltion

-Resolvable Private Adress Only

I thought I read in an old post that it wouldn't be possible to remove the service and sub service them because it would be part of the BLE specification.

CC2340R5: Modify Generic Address - Bluetooth forum - Bluetooth®︎ - TI E2E support forums

After reading the BLE specification, I don't see any obligation to keep it.

Which chapter states that they should be mandatory? or how to remove this 3 characteristic ?

Thanks you,

Regards,

Yohan

  • Hi Yohan,

    If you have confirmed that you are not required to maintain these characteristics, then you can remove them by modifying the appropriate service/profile file and removing those entries. It is likely the file is linked as a linked resource to the SDK, so I would suggest deleting the link and replacing it with a local copy of the file to ensure the changes stay with the project and do not propagate to the entire SDK.

    Best Regards,

    Jan

  • Hello Jan,

    Is there any way to do this without modifying the SDK?
    Where is located this file to modify?

    Best regards,
    Yohan

  • Hi,

    Yes, you could do this without modifying the SDK, by clicking and dragging the SDK source file to the CCS project and clicking on the copy option. Any modifications made to the local copy would be used instead of the SDK copy.

    Best Regard,

    Jan

  • Hello,

    Sorry, I don't think I was specific enough in my question,
    Is there a define that allows you to deactivate it to really avoid any modification whether it's local or on a local copy?
    (In order to be able to migrate without difficulty if there is a new major SKD update)

    I haven't managed to locate the name of the function and the .c or .h to modify in order to make the change, do you have this information?

    Best regards

    Yohan HARO

  • Hi Yohan,

    Understood. No worries! Unfortunately, there isnt a single define to remove that specific characteristic. However, if you pull in a local copy of the SDK file, then you will only need to update that single file when you upgrade SDKs, so the additional work is not much.

    I believe the correct file to modify would be the gatt_uuid.c and gatt_uuid.h files.

    Best Regards,

    Jan