[Tinyos-devel] current draw in deep sleep for telosb
Razvan Musaloiu-E.
razvanm at cs.jhu.edu
Fri Jun 29 18:10:33 PDT 2007
Hi!
I'm running the latest CVS and today I noticed that the Null application on
telosb draws an unusually high (and variable) amount current (around
0.5-0.8mA). The problem seems to be in in Init.init function from
MotePlatformC.nc from tos/platforms/telosb/. At the end of it the
TOSH_FLASH_M25P_DP function the clock pin is put on input. By making it
output on zero the current stabilized to the normal low values (7-8uA). I
attached the patch with the changes. It can be aplied by running the
following commands:
cd $TOSROOT
patch -p0 < telosb-current.diff
Can somebody confirm the problem and test this solution?
Thank you!
Razvan ME
-------------- next part --------------
Index: tos/platforms/telosb/MotePlatformC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosb/MotePlatformC.nc,v
retrieving revision 1.3
diff -u -r1.3 MotePlatformC.nc
--- tos/platforms/telosb/MotePlatformC.nc 21 Mar 2007 15:11:00 -0000 1.3
+++ tos/platforms/telosb/MotePlatformC.nc 30 Jun 2007 01:03:06 -0000
@@ -52,7 +52,8 @@
TOSH_SET_SIMO0_PIN();
TOSH_MAKE_SIMO0_INPUT();
- TOSH_MAKE_UCLK0_INPUT();
+ TOSH_MAKE_UCLK0_OUTPUT();
+ TOSH_CLR_UCLK0_PIN();
TOSH_CLR_FLASH_HOLD_PIN();
}
More information about the Tinyos-devel
mailing list