[Tinyos-help] TOSBase question

Mike Magee mmagee at remtrol.com
Thu Sep 22 16:15:07 PDT 2005


TOS_LOCAL_ADDRESS is going to be a constant.  The install.n parameter to
the make command defines what it is.

Perhaps you meant to change it to (msg->addr == 1)?

-Mike

On Thu, 2005-09-22 at 07:55, Terence Joseph wrote:
> Hi All,
> 
> I have three nodes running.  Two are transmitting one value each and the 
> third is connected to my pc and running TOSbase.  What I would like is to be 
> able to pick up one node and ignore the other however I want the two 
> transmitting nodes to be able to hear each other.  I tried modifying a line 
> in event TOS_MsgPtr RadioReceive.receive(TOS_MsgPtr Msg) in TOSBase from
> 
> if ((!Msg->crc) || (Msg->group != TOS_AM_GROUP))
>       return Msg;
> 
> to
> 
> if ((!Msg->crc) || (Msg->group != TOS_AM_GROUP) || (TOS_LOCAL_ADDRESS == 1))
>       return Msg;
> 
> 
> I have set the TOS_LOCAL_ADDRESS parameter to 1 and 2 respectively on the 
> two transmitting nodes.  When the if statement contains (TOS_LOCAL_ADDRESS 
> == 1) as above it won't pick up either nodes. However when it contains 
> (TOS_LOCAL_ADDRESS == 2), it picks up both??  This is rather strange and if 
> anyone can explain it that would be great (or give me a better way of doing 
> this).  Thanks.
> 
> Best Regards,
> Terence
> 
> _________________________________________________________________
> Browse smarter with tabs - get the all-new MSN Toolbar! 
> http://toolbar.msn.ie
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



More information about the Tinyos-help mailing list