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.

协调器收不到终端zcl_SendReportCmd发送的数据

        1.终端调用

afAddrType_t DstAddr;
zclReportCmd_t *pReportCmd;
DstAddr.addrMode = (afAddrMode_t)Addr16Bit;
DstAddr.endPoint = 1;
DstAddr.addr.shortAddr = 0;
pReportCmd = osal_mem_alloc( sizeof(zclReportCmd_t) + sizeof(zclReport_t) );

pReportCmd->numAttr = 1;
pReportCmd->attrList[0].attrID = ATTRID_ON_OFF;
pReportCmd->attrList[0].dataType = ZCL_DATATYPE_UINT8;
pReportCmd->attrList[0].attrData = (void *)(&light_OnOff);

zcl_SendReportCmd( 1, &DstAddr,
ZCL_CLUSTER_ID_GEN_ON_OFF,
pReportCmd, ZCL_FRAME_SERVER_CLIENT_DIR, FALSE, seqnum++ );

2.协调器接收处理

 static void zclGenericApp_ProcessIncomingMsg( zclIncomingMsg_t *pInMsg )

{    

switch ( pInMsg->zclHdr.commandID )
{

case ZCL_CMD_REPORT:
zclGenericApp_ProcessInReportRspCmd( pInMsg );
break;

  }

3. 1发送的数据2无法收到

capture.psd