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.

How to watch the packet from from a child passing through the Router?

Other Parts Discussed in Thread: Z-STACK

Hello,

I want to anaylise the code from Z-Stack 2.5.1 deeper, so I was wondering if there is some place on the Router's code that I can watch the packet from its child being routed to the Coordinator. That is, the destination address is not the Router, but the Coordinator, and I want to watch the packet passing through this Router. Is that possible?

BRS,

  • You can intercept incoming messages in zmac_cb.c - these messages are from the MAC and they are being passed to the NWK layer code in the libraries. Look at the function MAC_CbackEvent(), and the MAC_MCPS_DATA_IND. Be very careful - this is a live callback from an ISR - any code you add can cause horrific system latency and/or lossy-ness on the network.