Hi Aaron,

Here at CENS our code uses a structure called Ext_TOS_Msg.  this is a
structure that is basically a TOS_Msg that presumes the first 2 bytes of
the TOS_Msg payload are an saddr field.  We've been using this convention
in our TinyDiffusion / ESS / Transceiver / etc. code for a long time now.
If you like, you can take a look at our repo at:

http://cvs.cens.ucla.edu/viewcvs/viewcvs.cgi/tos-contrib/

We've found that having the source address in our TOS messages has become
indispensable.  Please let me know if you would like any further detail.
:)

Eric

On Tue, 15 Jul 2003, Lin Gu wrote:

> > Hi,
> > I am writing an application that uses radio communication.  When I receive a 
> > message using interface ReceiveMsg, how can I tell the source of the message.  Is 
> > that stored in the address field of the TOS_Msg structure?
>
> The 'addr' field in TOS_Msg has the destination address. There is
> no 'source' address in it. I guess you need to define another field
> in the payload of the TOS_Msg.
>
> lin
> _______________________________________________
> Tinyos-users mailing list
> [EMAIL PROTECTED]
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
>

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to