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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

391 Views
beantree
Contributor I

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

0 Kudos
1 Reply

259 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tony,

Please look at the structure ZPS_tsAfDataIndEvent in the ZigBee PRO Stack User Guide

https://www.nxp.com/docs/en/user-guide/JN-UG-3048.pdf?fsrch=1&sr=3&pageNum=1 

7.2.2.3 ZPS_tsAfDataIndEvent

Regards,

Mario

0 Kudos