However...messages that are not addressed to the local nodeID (or
Broadcast) are dropped in the message code...I forget where just now
and everytime I go looking for something I can't find it again...
So the app level never sees them in order to forward them. You'll
have to go fiddle with that mechanism if you want to use TOS_Msg.addr
to compare destinations.
Then there is the problem of infinite loops in forwarding, but you've
probably already solved that.
MS
Vinayak Naik wrote:
Your mote's address is stored in TOS_LOCAL_ADDRESS variable. You can
read it.
- Vinayak
On 5/8/06, *Hieu Tran* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Hi all!
I am a new to TinyOS. I want to programming one mote as a relay
node, it receive radio packet (SimpleCmd structure including
destination address), and when receiving the packet, it make a
coparision of destination address in the received packet with its
address. If they are equal, the node keep the packet, if not it
forward the packet to the destination. However, I do not know how a
node can take itshelf address (MOTE address, presume I have set the
MOTE address of 2). Can you give me some advice?
Many thanks!
------------------------------------------------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls
<http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
to the US (and 30+ countries) for 2ยข/min or less.
_______________________________________________
Tinyos-help mailing list
[email protected]
<mailto:[email protected]>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
<https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help