Hi! Yes, you need to use the SplitControl interface and call start and stop to control the radio. It is a split phase operation, so the radio is not started/stopped till the corresponding startDone, stopDone is called.
Miklos On Tue, Jul 13, 2010 at 3:04 PM, Haripriya priya <[email protected]> wrote: > Hi, > > Ya thankyou ... > > I have one more doubt.. > > The same "Split control interface " is used in the Basestation... > > I found the similar type for start()... > > I am not clear with what is done in that ... > > > will it start the radio ? > > > And they used only start() .. Can we make use of the stop() to turnoff ???? > > Can you explain it in detail how it does actually ??? > > Thanks in advance .. > > > On Tue, Jul 13, 2010 at 5:07 PM, Miklos Maroti <[email protected]> > wrote: >> >> Hi Haripriya, >> >> On Tue, Jul 13, 2010 at 1:32 PM, Haripriya priya <[email protected]> >> wrote: >> > Hi , >> > >> > >> > I am using tinyos2.x - with iris motes and rf230 radio. >> > >> > 1) I found that to turn off and turn on the radio the following commands >> > are >> > there.. >> > >> > command error_t turnOff() Moves to radio into sleep state with the >> > lowest >> > power consumption but highest wakeup time. >> > command error_t turnOn() Goes into receive state. >> > >> > which are in interface "interface RadioState" which in turn in found in >> > "module RF230TestM" component... >> > >> > ... but this component file is missing in tinyos-2.x and with out that i >> > can't turn off the radio.. >> > >> > Can i know if any other components with interface is available to make >> > the >> > same ? >> > >> > But these are found in >> > >> > >> > /cvsroot/tinyos/tinyos-2.x-contrib/berkeley/blip-2.0/apps/tests/rf230/RF230Test >> > >> > Makefile RF230TestC.nc RF230TestM.nc >> > >> > >> > >> > can any one giveĀ the link to download these files ? >> >> Use the StdControl interface for the ActiveMessageC component to turn >> off and on the radio. The interface you have found is for internal use >> of the radio driver. >> >> > 2 ) To set node's sleep interval >> > >> > command void setLocalSleepInterval(uint16_t sleepIntervalMs) Set this >> > this >> > node's radio sleep interval, in milliseconds. is available in "interface >> > LowPowerListening" >> > >> > But i could not locate the component in which it is seen.... >> >> Again, the ActiveMessageC component provides this interface, use that >> (from platforms/iris). >> >> > 3) can i find similar functions for "awake "? >> >> If the mote is not sleeping then it is awake, so you cannot set a >> separate interval for that. >> >> Miklos >> > >> > >> > Kindly reply... >> > >> > Thanks in advance .... >> > >> > -- >> > Regards, >> > S.Haripriya >> > >> > >> > _______________________________________________ >> > Tinyos-help mailing list >> > [email protected] >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > > -- > Regards, > S.Haripriya > > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
