[Tinyos-help] about interface send and AMSend

Michiel Konstapel m.konstapel at sownet.nl
Mon Mar 10 10:29:54 PDT 2008


> -----Original Message-----
> From: tinyos-help-bounces at millennium.berkeley.edu [mailto:tinyos-help-
> bounces at millennium.berkeley.edu] On Behalf Of Omprakash Gnawali
> Sent: maandag 10 maart 2008 17:43
> To: jiwen zhang
> Cc: tinyos-help
> Subject: Re: [Tinyos-help] about interface send and AMSend
> 
> On Mon, Mar 10, 2008 at 6:49 AM, jiwen zhang <zhangjiwen029 at gmail.com>
> wrote:
> > Hello all :
> >      as we know , both interface send and AMSend can send a message
> out to a mote.the difference is that AMSend provides a parameter
am_addr_t
> which specifies the receiver's address. i want to know which mote dose
it
> sends to if the application uses the interface send ?
> 
> It depends on the component providing the Send interface. If you use
> the send call on the collection component, the message will be
> addressed to the parent.

An example at the other end of the abstraction scale is a very low level
component, which may just send the packet over the radio without caring
where it'll go, relying on a higher layer to have put an address in.
Michiel



More information about the Tinyos-help mailing list