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.

LP-CC2651R3SIPA: -

Part Number: LP-CC2651R3SIPA

Hi team,

I am working on developing a BLE  for my project. As per our requirement, we want to send a string of length 15 characters to the device using the app. I am using a multi-role example in that the code has already inbuilt services and characteristics. But I am not able to send the string data using that service. That service will support only 2 characteristics using the app. So I want to add a new service which supports my requirements. So, please help me in adding the new service which enables the feature where I can send string data using the app.

Thanks,

  • Hello Mahesh,

    Characteristic 5 of the simple_gatt_profile.c file in the default multi_role project enables a 5 byte payload, as defined by SIMPLEPROFILE_CHAR5_LEN. You can use this as a starting point and adapt the profile to support 15 characters.

    If you haven't already, I would definitely take a look at our SimpleLink Academy training modules, which covers profile configuration in some detail: dev.ti.com/.../node

  • Hi Ammar,

    Characteristics 5 enables only the read option. If I want to enable the write feature where I should make the changes?

    Thanks,

  • Hey Mahesh,

    There shouldn't be too many changes involved in adding the write feature. You can change the characteristic properties by adding an " | GATT_PROP_WRITE" to the characteristic property field in the service declaration. Towards the end of the training module, you'll find a sample service generator which will assist you in creating a new profile.

    For even more guidance, the Project Zero in our SDK leverages a data_service (located in \source\ti\ble5stack\profiles\project_zero\data_service.c) which is a working example of what you're looking for. Hope this helps.