Hello,
   I have been playing around with the ATM128 McuSleep implementation inside
TOSSIM (to track down battery usage during the simulation), but a couple of
things aren't clear to me :

  - In TinyOS McuSleep.sleep() is called from the scheduler if there is
nothing "to run". That was not happening inside TOSSIM, so I basically
changed the Scheduler to do that when no task is available. Is there
something I got wrong, or McuSleep.sleep() was actually never called before
in TOSSIM simulations ?

   - The McuPowerOverride.lowestState() is used inside mcombine to calcolate
the new state. The new state will not be lower than lowestState.. why TOSSIM
uses the IDLE state as the lowest available ? (even if inside getPowerState
there is the possibility to return POWER_DOWN and POWER_ADC_NR) ?

I am actually trying to figure out that in my porting/reimplementation of
PowerTOSSIM for the Tossim 2 & micaz motes, because that would increase the
accuracy of the battery model we are actually working on (especially, being
able to track POWER_SAVE and POWER_DOWN correctly will let us apply some
recovery effect).

Thanks in advance for any help/light that you can throw on that and sorry if
my understanding of the internal working of the simulator is wrong

Cheers

           -  Enrico
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to