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: Regarding enabling GATT notifications (SDK version 8.10.00.55)

Part Number: CC2340R5

Tool/software:

Dear support team,

I have added custom service and wanted to enable GATT notifications from Client device.

But, I can not see option to enable it. (only Read option is seen)

I have configured GATT DB at server side as below, but still could not see how to enable notification.

Regards.

Rasikraj.

  • Hello Rasikraj, 

    First, are attempting to create a GATT service as a peripheral, or a central? Additionally, are you using an example project, and if so, what project? 

    Can you provide more information on what each pValue is set to? 

    I am still looking into this question, please expect a more thorough response Wednesday.  

    Thanks, 

    Isaac

  • Hello Isaac,

    It is Peripheral role and GATT service added as server. I am trying to enable notifications from Client device. (e.g. nRF Connect app)

    It is based on "Simple Gatt Profile" example project.

    Regarding pValue, from which function?

    Regards.

    Rasikraj.

  • Hello Rasikraj, 

    My apologizes, I was looking for the pValue of Characteristic 1 declaration, or the value of DIAGPROFILE_Char1Props. What are you setting this value to? For notifications, this should be set to GATT_PROP_NOTIFY. Please read more about this API References

    Additionally, you can see this implemented within the Basic_BLE example project. To find this, navigate to common -> Profiles -> simple_gatt -> simple_gatt_profile.c. This file contains all of the GATT declarations for the Basic_BLE project. Here is an example of Characteristic 4, which allows for notifications. 

    Let me know if this helps! 

    Thanks, 

    Isaac

  • Hello Isaac,

    Unfortunately I set the this thread to "resolved" by mistake and I can not undo this now.

    Regarding value of DIAGPROFILE_Char1Props, it is already set to GATT_PROP_NOTIFY. Also I want this to be READ & WRITE.

    Regards.

    Rasikraj.

  • Hello Rasikraj, 

    The client characteristic configuration UUID, is typically used for enabling notifications. To do this, the characteristic must have some additional code to completely enable notifications. This is already done for you within the Basic_BLE example projects. 

    Adding to this, the client characteristic configuration UUID, doesn't typically enable writing commands. Read is enabled to check if notifications are enabled.

    Is there a reason you want to write to the CCC? 

    Also, on the characteristic directly under the primary service, isn't there a notifications button? The button with the three arrows pointing down? Additionally, can you try this using the SimpleLink Connect app? 

    Let me know if this helps!

    Thanks, 

    Isaac

  • Hello Isaac,

    Right now, I have added custom service with characteristic (with 128 bit uuid) that needs to be written / read and notified as well.

    On custom characteristics, I see three arrows but when clicked, it gives error. General status I get as notifications disabled.

    I can write and read from this uuid but I am not able to enable notifications for this.

    Regards.

    Rasikraj.

  • Hello Rasikraj, 

    Can you let me know why you need to write to the client characteristic configuration UUID? 

    Additionally, are you using the code in simple_gatt_profile.c to enable notifications? When I create a characteristic declaration using the simple_gatt_profile.c, using the CCC, I am able to read/write, and enable notifications. I did this using the simple_gatt_profile.c framework. 

    Can you try setting the permissions for Characteristic Declaration, Client Characteristic Configuration UUID, and Characteristic Description to GATT_PERMIT_READ only? Also, what is the handle being used for this characteristic declaration? 

    The CCC should not use write commands. Read/Write commands should be enabled through the characteristic declaration, then notifications are handled through the CCC. 

    Let me know if this helps. 

    Thanks, 

    Isaac

  • Hello Rasikraj, 

    Additionally, please read about the CCCD in the Custom Profile SLA for CC26XX. The device is different, but the information is still valuable for this issue. 

    Thanks, 

    Isaac