[Tinyos-help] accesssing source address in main

Michael Schippling schip at santafe.edu
Thu Nov 22 10:10:00 PST 2007


I'm cc'ing this back to the list to keep a record...

I'm not sure what you mean by "main". Can you post your code
and the errors that you get?

MS

Sourabh Shah wrote:
> hello sir,
>            I have already tried to use source address in main. But its 
> giving lots of errors if I include Multihop.h in my file.
> 
> */Michael Schippling <schip at santafe.edu>/* wrote:
> 
>     The source moteID is not part of any standard message header,
>     but is often included in specific 'payload' structures, like
>     Oscilloscope's OscopeMsg. Once you have the message, in any
>     standard receive() method looking at the ID is just a matter
>     of software....
> 
>     And there is plenty of information about the packet structure
>     laying around. Try searching this list for "TOS_Msg" and see:
>     http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
> 
>     MS
> 
>     Sourabh Shah wrote:
>      > Hello all
>      >
>      > I want to access source address in main at base station. Can any one
>      > tell me how can I do that. I couldnt get much info about cracking
>      > received packet and accessing Node id of source node. The thing
>      > is I want to receive messages from specific nodes at some
>      > instances.
>      >
>      >
>     ------------------------------------------------------------------------
>      > Get easy, one-click access to your favorites. Make Yahoo! your
>     homepage.
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Tinyos-help mailing list
>      > Tinyos-help at Millennium.Berkeley.EDU
>      >
>     https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
> ------------------------------------------------------------------------
> Get easy, one-click access to your favorites. Make Yahoo! your homepage. 
> <http://us.rd.yahoo.com/evt=51443/*http://www.yahoo.com/r/hs>


More information about the Tinyos-help mailing list