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

Diego Oliveira diego-net at uol.com.br
Fri Aug 8 12:03:53 PDT 2008


I'm pretty sure that only root receive event from Receive.receive.
Regarding the difference between Receive and Receive as Snoop, it  
might be helpful reading TEP106. You should as well, take a look at  
TEP119 and TEP123.

Diego

On Aug 8, 2008, at 12:42 PM, Daniel Pereira wrote:

> 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
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos- 
> help



More information about the Tinyos-help mailing list