协调器配置终端进行电量余量定时报告,协调器发送了配置数据,终端也回复了状态为成功,但终端却没有在配置的时间内进行属性汇报,请大神指点一下,
代码如下:
{
afAddrType_t dstAddr;
zclCfgReportCmd_t * cfgReportCmd = osal_mem_alloc( sizeof ( zclCfgReportCmd_t ) + sizeof(zclCfgReportRec_t) );
static uint8 seqNum = 0;
dstAddr.addr.shortAddr = pInMsg->srcAddr.addr.shortAddr;
dstAddr.addrMode = afAddr16Bit;
dstAddr.endPoint = pInMsg->srcAddr.endPoint;
dstAddr.panId = pInMsg->srcAddr.panId;
cfgReportCmd->numAttr = 1;
cfgReportCmd->attrList[0].direction = 0;
cfgReportCmd->attrList[0].attrID = ATTRID_POWER_CFG_BATTERY_PERCENTAGE_REMAINING;
cfgReportCmd->attrList[0].dataType = ZCL_DATATYPE_UINT8;
cfgReportCmd->attrList[0].minReportInt = 20;
cfgReportCmd->attrList[0].maxReportInt = 40;
cfgReportCmd->attrList[0].timeoutPeriod = 0;
*cfgReportCmd->attrList[0].reportableChange = 0;
zcl_SendConfigReportCmd( SAMPLEDOORLOCKCONTROLLER_ENDPOINT,
(afAddrType_t *)&dstAddr,
ZCL_CLUSTER_ID_GEN_POWER_CFG,
cfgReportCmd,
ZCL_FRAME_CLIENT_SERVER_DIR,
FALSE, seqNum++ );
osal_mem_free(cfgReportCmd);
}
下面是抓包的配置数据和收到的回复:

