When the mote goes to sleep, SysTime stops counting. You need to prevent the mote from sleeping, e.g. by starting a task that reposts itself.
Janos On Wed, Mar 4, 2009 at 10:37 PM, Guo Huiliang <[email protected]> wrote: > Hi,all: > I use Micaz mote, the implementation calls the function getTime32() of > interface SysTime, I always find the return value of the function in the > range of 0x000000~ 0x01FFFF, while the implementation run the > StdControl.start() of SysTime 5 minutes ago. what's wrong ? > > command result_t StdControl.start() { > ... > call JoinTimerHandler.start();// JoinTimerHandler is the alias of > SysTimeM.StdControl; > return SUCCESS; > } > > uint32_t JoinTime = call SysTime.getTime32(); > nodeID[i+1]=(uint16_t)(JoinTime>>16); > nodeID[i+2]=(uint16_t)(JoinTime & 0xFFFF); > > I found the nodeID[i+1] is always 0 or 1. > > Many many Thanks, > Huiliang > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
