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.

Determining Routing Overhead

Other Parts Discussed in Thread: Z-STACK

Hi-

We are experimenting with the Z-Stack sampleapp, and are wondering how to determine the number of routing packets (and size) sent and received at each router and at the coordinator. I've looked through the API and other documents but can't seem to find it.

Is there either data that can be accessed at the application level in the relevant modules for such information, or callbacks that I can register when each routing packet is sent and recieved?

We are using the newest version 2.4.0-1.4.0 if that matters.

Thanks!

  • You will have to add your own counting / diagnostic code to the functions in zmac_cb.c - be careful about adding too much latency or call stack depth, as many of them are live callbacks from a MAC ISR.

  • Thanks for the quick response! I did take a look at this file and haven't yet figured out how to determine which events and datum would go with route maintainence. But as I look this over again, would I be able to get the info from the MT_NWK.c file, in routine uint8 MT_NwkCommandProcessing(uint8 *pBuf) ???

  • I marked this as answered even though I am not 100% confident in the solution. What I did was put a counter in zmac_cb.c for the MAC_MCPS_DATA_IND event and a counter for application level packets received. I think the difference between these would be the action of the routing algorithm, at least in terms of incoming packets.

    Its not clear to me if this callback gets called at all for outbound network routing request packets.

    Since there is no source code for several of the pertinent routines it is hard to say exactly.

    Thanks for the help!