[Tinyos-help] MultiHopEngineM.nc query

Omprakash Gnawali gnawali at usc.edu
Sat Jun 27 10:38:32 PDT 2009


On Sat, Jun 27, 2009 at 12:44 AM, bharat naik<bharat.2511 at gmail.com> wrote:
> Hi,
>
>      I was thinking of a making a simple modification to the
> MultiHopEngineM.nc module for my project. I basically want to buffer data
> packets, both forwarded and originated, when the parent fails and keep them
> buffered till a new parent is found.
>
>      However, I'm not sure what the MultiHopEngine is currently doing.
>
>      Firstly, I am not able to understand why the return type of
> ReceiveMsg.receive is TOS_MsgPtr? What it does is, from what I've
> understood, forward intercepted packets, store them in a buffer and return
> pointer to packet which it replaced in the buffer. What does it do with this
> pointer?

Page 48 of this book goes into the details about why Receive returns a
pointer to a TOS msg:
http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf

- om_p



More information about the Tinyos-help mailing list