[Tinyos-beta-commits]
CVS: tinyos-1.x/beta/SystemCore/java/net/tinyos/powermgmt
PowerMgmt.java, 1.6, 1.7
Gilman Tolle
gtolle at users.sourceforge.net
Tue Sep 7 16:32:25 PDT 2004
Update of /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/java/net/tinyos/powermgmt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11704/java/net/tinyos/powermgmt
Modified Files:
PowerMgmt.java
Log Message:
Changed the waiting period after receiving the sleep or reboot command before actually doing that to 65 seconds
Index: PowerMgmt.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/java/net/tinyos/powermgmt/PowerMgmt.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PowerMgmt.java 26 Aug 2004 23:28:51 -0000 1.6
--- PowerMgmt.java 7 Sep 2004 23:32:22 -0000 1.7
***************
*** 156,163 ****
try {
- Thread.currentThread().sleep(4096);
-
if (command.equals("sleep")) {
System.out.println("Setting Base to Long-Preamble Mode...");
tbCmdMsg.set_lplModeChanged((byte)1);
--- 156,164 ----
try {
if (command.equals("sleep")) {
+ System.out.println("Waiting 65 seconds for the network to sleep...");
+ Thread.currentThread().sleep(65535);
+
System.out.println("Setting Base to Long-Preamble Mode...");
tbCmdMsg.set_lplModeChanged((byte)1);
***************
*** 166,169 ****
--- 167,173 ----
} else if (command.equals("wake")) {
+ System.out.println("Waiting 4 seconds for the network to wake...");
+ Thread.currentThread().sleep(4096);
+
System.out.println("Setting Base to Short-Preamble Mode...");
tbCmdMsg.set_lplModeChanged((byte)1);
More information about the Tinyos-beta-commits
mailing list