Hi
I want to impliment new power aware algorithm. I use powerTOSSIM-z and i
khonw that it use a custom interface that only log devices (CPU, Radio,
...) switch on and off. After simulate, (by python MySimulation.py) it
return a file with this name "Energy.txt". you can find device log like
this:

File: Energy.txt
**************************************************************************
DEBUG (0): 23542399,LED_STATE,LED2,ON
DEBUG (0): 23542399,LED_STATE,LED1,ON
DEBUG (0): 23542399,LED_STATE,LED0,ON
DEBUG (0): 23542399,LED_STATE,LED0,OFF
DEBUG (0): 23542399,LED_STATE,LED1,OFF
DEBUG (0): 23542399,LED_STATE,LED2,OFF
DEBUG (0): 23542399,CPU_STATE,CPU_POWER_DOWN
DEBUG (0): 23542399,CPU_STATE,CPU_POWER_DOWN
DEBUG (0): 23542399,RADIO_STATE,ON
DEBUG (0): 23542499,CPU_STATE,CPU_ACTIVE
DEBUG (0): 23542699,CPU_STATE,CPU_POWER_DOWN
DEBUG (1): 25893616,LED_STATE,LED2,ON
DEBUG (1): 25893616,LED_STATE,LED1,ON
.....
**************************************************************************

Finally by postprocessZ.py, it can measure power consumption (time, mote
energy model and sum of all).
But my problem is here. I need power consumption in simulation time, not is
post process! I want to use this value for get decision during my new
algorithm!
I will be happy if anyone help me.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to