hello
Thanks for your explanation :
it means there are four states for a mote :
active(sending a msg, rcv a msg, running a task), idle(ready to run
something but nothing matters at the moment), sleep ( lowest state) and turn
off.
do you know if it s possible to implement a signal wich wakes up an asleep
mote ?
Thanks.
From: "Kevin Klues" <[EMAIL PROTECTED]>
To: "vazoumana fofana" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], [email protected]
Subject: Re: [Tinyos-help] Duty cycle
Date: Thu, 23 Aug 2007 16:23:54 -0700
Traditionally, putting a mote to "sleep" (or "duty cycling" a mote)
has meant putting its radio into some low power state, ignoring the
power consumed by any other peripheral devices or the MCU of the mote
itself. This definition stems from the fact that the power consumed
by the radio is much larger than the power consumed by any of the
other devices typically found on a mote. In order to truly put a mote
to sleep, however, you really need to turn off all of its peripheral
devices and put its MCU into its lowest power state.
To answer your questions though....... putting a mote to "sleep" is
something you do in software for an actively running mote. Removing
power from the mote is something completely different. In either
case, data written to flash would not be lost as long as it is not
explicitly erased or overwritten. That is to say, flash is a
non-volatile storage unit.
Kevin
On 8/23/07, vazoumana fofana <[EMAIL PROTECTED]> wrote:
> Hi
>
> I ve got a question ? When you put into sleep a mote, it means that you
> switch off the mote ? Or is it just a state where the energy consuption
is
> minimal ?
> If you switch off the mote, data loaded in FLASH is lost or not ?
> I ask this question cause i implemente a protocol like Spanning tree.
>
> Thanks
>
> >From: "Murray, Ben" <[EMAIL PROTECTED]>
> >To:
>
>"'[email protected]'"<[email protected]>
> >Subject: RE: [Tinyos-help] Duty cycle
> >Date: Mon, 20 Aug 2007 16:45:03 +0100
> >
> >Hi Mona,
> >
> >Sounds like you could probably use a 400 ms timer to periodically run
your
> >task/job. In tos2 the MCU should automatically be put to sleep if there
are
> >no tasks to run, although you can call McuSleep.sleep() yourself if you
> >need
> >to. Setlocalsleepinterval () is used to duty cycle the radio only.
The
> >code below will call your job to start every 400 ms. If you wanted the
gap
> >specifically to be 400 ms from the end of the job to the beginning of
the
> >next job, rather than between the starts of successive jobs then you
could
> >call a one shot timer every time your job finished instead. As long as
> >your
> >mote is not tasked with doing anything else during the 400 ms I think
it
> >should automatically go to sleep.
> >
> > event void Boot.booted() {
> > call Timer0.startPeriodic(400); //this will fire every 400ms
> > }
> >
> > event void Timer0.fired(){ //called when Timer0 fires
> > callyourjob();
> > }
> >
> >
> >tep's 112 and 102 should be of interest I imagine...
> >
> >-Ben
> >
> >
> >-----Original Message-----
> >From: mona zima [mailto:[EMAIL PROTECTED]
> >Sent: 20 August 2007 15:11
> >To: Murray, Ben
> >Subject: Re: [Tinyos-help] Duty cycle
> >
> >
> >Hi Daivd,
> >Thanks very much for your help and support.
> >I am wondering if you can help me with the following:
> >I would like to let the node sleep for 400 ms and then wakeup for some
time
> >do some job and then return to sleep mode for 400ms and so on.... . I
think
> >setLocalSleepInterval() will not help in this case!
> >Is it possible to specify the on and off periods in tinyos2.
> >
> >kind regards
> > Mona
> >
> >
>
>*******************************************************************************
> >Please consider the environment before printing this email.
>
>*******************************************************************************
> >This email and any files transmitted with it are intended solely for
the
> >use of
> >the individual or entity to whom they are addressed and may not be
divulged
> >to
> >any third party without the express permission of the originator. Any
> >views
> >expressed in this message are those of the individual sender, except
where
> >the
> >sender specifically states them to be the views of Thales Research &
> >Technology
> >(UK) Limited.
>
>*******************************************************************************
> >
>
>
> >_______________________________________________
> >Tinyos-help mailing list
> >[email protected]
>
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> _________________________________________________________________
> Découvrez le Blog heroic Fantaisy d'Eragon!
> http://eragon-heroic-fantasy.spaces.live.com/
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
~Kevin
_________________________________________________________________
Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help