[Tinyos-devel] Two radio platform

Rishi Pidva rishi.pidva at gmail.com
Tue Nov 27 17:06:42 PST 2007


On Nov 27, 2007 4:58 PM, Philip Levis <pal at cs.stanford.edu> wrote:
>
> On Nov 27, 2007, at 4:33 PM, Rishi Pidva wrote:
>
> > Has anyone implemented a two radio platform in T2? What is the best
> > approach for this. ActiveMessageC requires an underlying
> > configuration. Now If I modify this such that to add another set of
> > Packet, Receiver etc interfaces, AMSenderC and other system interfaces
> > break.
> >
> > One solution to using radios on same hardware could be to directly the
> > configuration provided by the other radio. For eg, on a platform with
> > two radios CC2420 and CC1000, we can wire ActiveMessageC to
> > CC2420ActiveMessageC and use CC1000ActiveMessageC directly when we
> > need to send on that? But this is not the most elegant solution.
> >
> > I would like to use some sort of generic configuration with the type
> > of radio as a parameter. This will require lot of code change if I'm
> > not the right track. Any suggestions on how to proceed are much
> > appreciated.
> >
>
> The assumption is that ActiveMessageC goes to the default radio, and
> you use chip-specific components for the other radios. Or is that
> that you want an AM queue on top of your other radios? That should
> not be hard to write. But components are not valid parameters to
> generics.
>

Currently that is the way I have it implemented - ActiveMessageC goes
to default radio and to use the other radio, you use chip-specific
component. But I wanted a single ActiveMessageC which can be
configured to change its wiring based on its parameter say something
like new ActiveMessageC (CC1000) or new ActiveMessageC(CC2420). One of
the reasons was to be able to use the AM queues. I know its not hard
to implement as most of it will be code copying but I wanted to keep
as close to default T2 as possible.


More information about the Tinyos-devel mailing list