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.

processing ZCL_CMD_REPORT

Hello everyone,

I want to realize attribute reporting on light/switch demo application. I have successfully implement SendLevelAttributeReport() function, when I debug it, it sends back SUCCESS. I want to send this report to coordinator. On coordinator side I have implemented zclSampleRemoteController_ProcessInReportCmd( pInMsg )
 function but my application never calls that function, When I put breakpoint in zclSampleRemoteController_ProcessIncomingMsg function, case ZCL_CMD_REPORT never happens. Does anyone know why this happens?



  • Do you send it to the correct Destination EndPoint?

    Regards, TC.

  • Yes, I also tried with broadcasting, like this:

    //DstAddr.addrMode = AddrBroadcast;                                   
    //DstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR;

    but it doesn't work again

  • Can you try with the broadcast short address as well:

    DstAddr.addrMode = AddrBroadcast;                                   
    DstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR;                                   
    DstAddr.endPoint = AF_BROADCAST_ENDPOINT;

    Sorry but I still suspect it is an issue with the wrong endpoint. When you register the end point on the Coord (with afRegister), you need to make sure that the zcl_SendReportCmd uses the same endpoint number in dstAddr.endpoint.

    If it is not this then I would need a packet trace. 

    Regards, TC.