In Receive:

if (msg->addr == TOS_LOCAL_ADDRESS) {
 // process
}

Remember that wireless networks are broadcast networks, which means
that all nodes can hear what is going on with other nodes.

-Joe

On 10/31/06, Errico Stigliano <[EMAIL PROTECTED]> wrote:
Hi Daniele,

           thank you for your reply, yes, I do specify the TOS_LOCAL_ADDRESS
when I program the board


Errico


----- Original Message -----
From: "Daniele Munaretto" <[EMAIL PROTECTED]>
To: <unsure>; "Errico Stigliano" <[EMAIL PROTECTED]>
Cc: <tinyos-help@Millennium.Berkeley.EDU>
Sent: Tuesday, October 31, 2006 1:50 PM
Subject: Re: [Tinyos-help] send message to a specific mote with Boomerang
and Tmote-sky


> When you download the program from the programming board to the motes,
> do you specify the local_address?
> like:
> make micaz install.3 eprb, IP_ADDRESS  ? (MIB600 for example)
> 3 will be the ID of the mote.
> Cheers
> Daniele
>
>
> Errico Stigliano wrote:
> > Hello,
> >
> >         I am just starting the first experiences with Bommerang and
> > Tmote-sky.
> > I tried to use the SendMsg of GenericComm putting as first parameter the
> > destination address as following:
> >
> >                 call SendMsg.send( 4,sizeof(CountMsg_t),&m_msg)
> >
> > On the receiving Tmote-sky (TOS_LOCAL_ADDRESS = 4) I used the ReciveMsg
of
> > GenericComm as following:
> >
> >                 ReceiveMsg.receive( TOS_MsgPtr msg )
> >
> > What happens is that the message is received whatever is the
> > TOS_LOCAL_ADDRESS of the receiving tmote-sky. If I have more receiving
> > tmote-sky in the network, everyone will receive the message.
> >
> > How can I send a message to a specific tmote-sky?
> >
> > Thank you for your help
> >
> > Errico Stigliano
> >
> >
> >
> >
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to