yes, the first arg to send() is the destination moteID,
with the special cases of BCAST and UART...
MS


Xing Jin wrote:

  Hi, everyone!

I wanna make sure one problem___how to specify the receive mote? Like mote 2 sends info to mote 3 always. Is it ok to follow the reply in the helplist: sepecify the 1st parameter.

send( TOS_BCAST_ADDR, sizeof(Msg), msgp)
So I just put the 1st one as 3??? Is it ok??
Thanks.
                   Xing Jin


  [Tinyos-help] How to specify recipient's mote???

*Michael Schippling* schip at santafe.edu <mailto:tinyos-help%40Millennium.Berkeley.EDU?Subject=%5BTinyos-help%5D%20How%20to%20specify%20recipient%27s%20mote%3F%3F%3F&In-Reply-To=BAY108-F342A3F9E491C9527BD20EF899C0%40phx.gbl>
/Tue Sep 13 22:36:44 PDT 2005/

    * Previous message: [Tinyos-help] How to specify recipient's mote???
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/011971.html>
    * Next message: [Tinyos-help] Encryption in tinysec
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/011972.html>
    * *Messages sorted by:* [ date ]
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/date.html#12005>
      [ thread ]
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/thread.html#12005>
      [ subject ]
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/subject.html#12005>
      [ author ]
      
<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/author.html#12005>


------------------------------------------------------------------------

ummm...sorry if I misconstrue this...
but I think you want to send to
 a specific Mote ID?
But in anycase, the first arg in
    send( TOS_BCAST_ADDR, sizeof(Msg), msgp)
is the Mote ID of the destination.
BCAST means everyone and UART means the serial port.
is that what you were asking?
SM

------------------------------------------------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min. <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>


 
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
<http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to