Created 12 Jan 2005
Last updated 12 Jan 2005
EnviroLog is a middleware used to enable environmental event recording and replay. Using its user interface, you can define one or multiple commands/ events to be recorded and replayed. You can also control the mode (RECORD or REPLAY) of the system at runtime. During RECORD mode, these commands/ events and their parameters will be recorded into flash at runtime. During REPLAY mode, these commands/events will be called/signaled with recorded parameters at their original time sequences.
$ cp EnviroLog.tar.gz `ncc -print-tosdir`/../contrib/
$ cd `ncc -print-tosdir`/../contrib/
$ tar zxvf EnviroLog.tar.gz
$ export MAKERULES=`ncc -print-tosdir`/../tools/make/Makerules
$ TOSMAKE_PATH += $(TOSDIR)/../contrib/EnviroLog/make
$ include $(MAKERULES)
call Leds.redToggle();
change it to:
/*LOG_FUNCTION*/call Leds.redToggle();
To record the following event:
signal Timer.fired();
change it to:
/*LOG_FUNCTION*/signal Timer.fired();
You can find some code sample in ./sample.
$ make mica2
make mica2 envirolog
$ make mica2 install mib510,com1
$ export MOTECOM=serial@COM1:mica2
$ java net.tinyos.tools.BcastInject start_sensing 0 101
$ java net.tinyos.tools.BcastInject start_sensing 1 101
$ java net.tinyos.tools.BcastInject start_sensing 4 101
$ java net.tinyos.tools.BcastInject start_sensing 5 101