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.

SIMPLELINK-CC2640R2-SDK: error when send an indication with cc26xx sdk

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640

HI,all the frends

  first of all ,my need is send an indication message(within the cc2640r2  sdk ,that use simple peripheral project)  to smart phone,

1.I add the Characteristic 6(that add indication service ) to simpleProfileAttrTbl,

2.I modify the simpleProfile_WriteAttrCB function to process indication enable request

3.I add a button or a timer  to invoke an indication api, gattServApp_SendNotiInd or the GATT_Indication

4,when smart phone connected with the cc2640r2 successfully, then I enable the Characteristic 6's indication succefully,

5.once I try to invoke an indication with the indication api( gattServApp_SendNotiInd or the GATT_Indication ) to smart phone ,the message is send failed,and  will disconnected around 2seconds 

I try the cc2640 indication ,all is same ,I try the TI's cc2640 bloodPressure Indications samples,it is failed too,

so I want to konw is that ,how to use indicate in cc26xx succefullly,with all the steps to do,

  • Hi.

    When your GATT_Indication is called in your code what is the return value?

    Does its return value indicate failure and cause the program to exit?

    It is possible that you are sending the indication data immediately after the indication description is enabled. If this is causing your program to fail, you will need to start a timer and then send the indication data. Check out this previous indication post for a possible solution: 

    Also to confirm, have you checked out the glucose_sensor example project available on TI Resource Explorer? This project is available here: 

    The glucose_sensor example has a Glucose Service where characteristic #4 supports indications. Within the project, the functions GlucoseSensor_ctlPntIndicate() (found in Application/glucose.c) and Glucose_CtlPntIndicate() (found in PROFILES/glucservice.c) provide an example of how to send an indication out.

    -Sy Su

  • Hi taotaogoing,

    Just checking for an update.
    Were you able to resolve this?

    -Sy Su
  • Hi Sy Su,

    thanks to your suggestion,

    I try to invoke a timer(about 1s) to send indication when indecate enable by other client, but,ti's not work as before,

  • i test the glucose_sensor project,when press btn1, CC2640R2 will disconnect with phone.