[net2-wg] Collection Question
Joe Polastre
joe at polastre.com
Sat Feb 25 10:58:56 PST 2006
Our (moteiv's) 1.x code uses a single handler which then does dispatch
above. This allows you to send the same AM message through either
dissemination, collection, any-to-any, or single-hop. Drip is
organized the same way, so this mechanism does exist in TinyOS 1.x.
-Joe
On 2/25/06, Philip Levis <pal at cs.stanford.edu> wrote:
> On Feb 25, 2006, at 10:06 AM, Kyle Jamieson wrote:
>
> > This week I was helping some beginners with TinyOS, and ran across the
> > following admittedly simple question I couldn't provide a satisfactory
> > answer to.
> >
> > As a preface, I bet this has already been addressed in TinyOS 2, but
> > I'm not so familiar with the t2 codebase.
> >
> > Here's the question:
> >
> > Suppose we're running a collection protocol (MintRoute) in TinyOS 1.
> > How do we also send and receive single-hop (non-routed) messages?
> >
> > The problem is that MintRoute grabs all the SendMsg and ReceiveMsg
> > interfaces of GenericCommPromiscuous, so an app can't use those.
> > Seems like you could kludge it with Intercept and/or Snoop, but that's
> > not satisfactory.
> >
> > Is there an wasy way to do this in t1? Already been fixed in t2?
> > Should be addressed by us?
>
> The answer in 1.x is that you only wire MintRoute up to the AM
> handlers you want. It doesn't by default wire up to all AM handlers.
> This is a reasonably annoying (and error-prone) thing to do, but lets
> you use multiple handlers without requiring additional header fields.
>
> The answer in 2.x is that a collection protocol uses a single AM
> handler and has its own protocol dispatch on top of that.
>
> Phil
>
>
> _______________________________________________
> net2-wg mailing list
> net2-wg at millennium.berkeley.edu
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/net2-wg
>
More information about the net2-wg
mailing list