[Tinyos-help] Setting duty cycle modes

Joe Polastre joe.polastre at gmail.com
Sat Mar 5 00:34:01 PST 2005


See tinyos-1.x/contrib/ucb/tos/CC1000Pulse.  In this implementation
that was presented in Sensys 2004, the interfaces exist for
LowPowerListening

-Joe


On Fri, 04 Mar 2005 23:18:02 -0600, Vijai <vijai.lists at gmail.com> wrote:
> I think this explains what you are asking about but I may be wrong.
> 
> Well, here is a short example:
> 
> configuration AC {
>       provides command result_t SetListeningMode(uint8_t p_Mode);
> }
> 
> implementation {
>       components AM;
> 
>       SetListeningMode = AM.SetListeningMode;
> }
> 
> In other words, you do the wiring for individual commands just as you
> would the wiring for interfaces. For example, if SetListeningMode had
> been declared in an interface A, then you would have normally done the
> following:
> 
> interface A {
>       command result_t SetListeningMode(uint8_t p_Mode);
> }
> 
> configuration AC {
>       provides interface A;
> }
> 
> implementation {
>       components AM;
> 
>       A = AM.A;
> }
> 
> Unfortunately, this doesn't seem to work for events either because
> it's not possible or I was doing something wrong.
> 
> hth,
> 
> -vijai.
> 
> On Fri, 4 Mar 2005 15:12:19 -0600, DALEY, MEGHAN E. (JSC-EV) (NASA)
> <meghan.e.daley at nasa.gov> wrote:
> > Yes, thank you
> >
> >  I understand that I have to enable low power listening with the following
> > commands:
> >
> >         call HPLPowerManagementM.Enable();
> >         call CC1000RadioIntM.SetListeningMode(mode);
> >
> > Now I have to wire this properly, but Enable and SetListeningMode are not
> > declared in any interface.  How can I wire the application correctly while
> > the commands are provided by the HPLPowerManagementM and CC1000RadioIntM
> > modules with no corresponding interfaces?
> >
> > ------------------------
> > Meghan E. Daley
> > NASA/ Johnson Space Center
> > Electromagnetic Systems Branch
> > Mail Code: EV411
> > Phone: 281-483-0475
> >
> > -----Original Message-----
> > From: Vijai [mailto:vijai.lists at gmail.com]
> > Sent: Friday, March 04, 2005 1:21 PM
> > To: DALEY, MEGHAN E. (JSC-EV) (NASA)
> > Subject: Re: [Tinyos-help] Setting duty cycle modes
> >
> > Isn't there a SetListeningMode command in CC1000RadioIntM.nc
> > ($TOSDIR/tos/platform/mica2)?
> >
> > hth,
> >
> > -v.
> >
> > On Thu, 3 Mar 2005 16:02:27 -0600, DALEY, MEGHAN E. (JSC-EV) (NASA)
> > <meghan.e.daley at nasa.gov> wrote:
> > >
> > >
> > > How do you change the duty cycle mode of the mica2 radio?  I know the
> > > default setting is '0', radio is always on.  How do I change that?
> > >
> > > Thank you in advance for your time.
> > >
> > > ------------------------
> > > Meghan E. Daley
> > > NASA/ Johnson Space Center
> > > Electromagnetic Systems Branch
> > > Mail Code: EV411
> > > Phone: 281-483-0475
> > >
> > >
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > Tinyos-help at Millennium.Berkeley.EDU
> > > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> > >
> > >
> > >
> >
> > --
> > -vijai.
> >
> 
> --
> -vijai.
> 
> --
> -vijai.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
>


More information about the Tinyos-help mailing list