[Tinyos-help] MultihopOscilloscope - Send, Receive and Receive as Snoop

Daniel Pereira dpatricksp at gmail.com
Fri Aug 8 08:42:20 PDT 2008


Hi All,

I didn't understand the Receive and Receive as Snoop interfaces.

In the MultihopOscilloscopeAppC.nc, we have:
    ......
    interface Send;
    interface Receive as Snoop;
    interface Receive;
    ......

And in the MultihopOscilloscopeAppC.nc, we have;
    ....
    MultihopOscilloscopeC.Send -> CollectionSenderC;
    MultihopOscilloscopeC.Snoop -> Collector.Snoop[AM_OSCILLOSCOPE];
    MultihopOscilloscopeC.Receive -> Collector.Receive[AM_OSCILLOSCOPE];
    ....

So, when a send a message (call Send.send(&sendbuf, sizeof(local)),
which is the received event, Snoop.receive or Receive.receive?
I guess, only root receive event from Receive.receive, is it true?

Best regards and thanks a lot

Daniel Patrick


More information about the Tinyos-help mailing list