AnsweredAssumed Answered

How can I get serial output from JN5168 to show contents of HA Frame?

Question asked by Tony Norman on Jan 9, 2018
Latest reply on Jan 16, 2018 by Mario Ignacio Castaneda Lopez

I am new to NXP processors

I have installed Beyond Studio

I have installed the HA SDK

I have imported the HA Demo project JN-AN-1189

 

I have built the Coordinator and uploaded the binary to my processor.

 

I have an occupancy sensor that joins fine and when movement is detected I get from the serial port

APP: No event to process
APP: vCheckStackEvent: ZPS_EVENT_AF_DATA_INDICATION
        Profile :104
        Cluster :406
        EndPoint:1

 

Which is all fine and dandy. That's the HA profile and the occupancy sensor profile.

What I can't fathom is how to see the rest of the frame data. Either in raw form, or by getting the API to interpret it for me

I see that this code

/* Process incoming cluster messages ... */
                DBG_vPrintf(TRACE_APP, "        Profile :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ProfileId);
                DBG_vPrintf(TRACE_APP, "        Cluster :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ClusterId);
                DBG_vPrintf(TRACE_APP, "        EndPoint:%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u8DstEndpoint);

 

is giving me the messages above, but are there other properties of sStackEvent.uEvent.sApsDataIndEvent that I can show?

Hope someone can point me in the right direction as I have been struggling with this for some time.

Thanks

Outcomes