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-CC2652RB: ZCL_CMD_CONFIG_REPORT messages do not reach endpoint

Part Number: LP-CC2652RB

Tool/software:

Hello. I am trying to capture some reporting times configurations to efficiently sample sensors and i seem to have troubles parsing these messages.

I have defined ZCL_REPORT, defined a function for ZCL_CMD_CONFIG_REPORT but cannot get a breakpoint to hit zclSampleTemperatureSensor_ProcessInConfigReportCmd and check my implementation of the function. However, the coordinator always issues a message that reporting was successfully configured even though i could not see the message.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static uint8_t zclSampleTemperatureSensor_ProcessIncomingMsg(
zclIncoming_t *pInMsg)
{
uint8_t handled = FALSE;
switch (pInMsg->hdr.commandID)
{
#ifdef ZCL_READ
case ZCL_CMD_READ_RSP:
zclSampleTemperatureSensor_ProcessInReadRspCmd(pInMsg);
handled = TRUE;
break;
#endif
#ifdef ZCL_WRITE
case ZCL_CMD_WRITE_RSP:
zclSampleTemperatureSensor_ProcessInWriteRspCmd(pInMsg);
handled = TRUE;
break;
#endif
#ifdef ZCL_REPORT
// See ZCL Test Applicaiton (zcl_testapp.c) for sample code on Attribute Reporting
case ZCL_CMD_CONFIG_REPORT:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

My function to parse reporting times and get the sampling time

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
static uint8_t zclSampleTemperatureSensor_ProcessInConfigReportCmd(zclIncoming_t* pInMsg )
{
zclReportCmd_t *pReportCmd = pInMsg->attrCmd;
uint16_t minReportingTime = 1000;
for (int i = 0; i < pReportCmd->numAttr; i++)
{
if (minReportingTime > *(uint16_t*)pReportCmd->attrList[i].attrData)
{
minReportingTime = *(uint16_t*)pReportCmd->attrList[i].attrData;
}
}
if (minReportingTime)
{
gMeasurementSleepMS = minReportingTime * 1000;
}
return (TRUE);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX