Hi Ricardo,
I need some clarification about PowerTOSSIMZ. In fact when simulating my app
I get that only radio consumes energy. However, in my app I have cpu
utilization (motes are  computing MAC and AES algorithm for security
purpose, etc...).
Is it logic that I get cpu enegy used=0?
In addition, in my simulation the mote 0 is not booted but it has a cpu
energy consumption?

=======the results are as follows where mote1=BS, mote2=group controller,
mote 3=end device===============
Efficiency table loaded, size=102
Recovery table loaded, size=11
trace file used: Energygj.txt
energy model used: micaZ_energy_model.txt
maxseen 3
mote battery starting energy: 21600000 mJ
Mote 0, cpu total: 72.9
Mote 0, radio total: 0.0
Mote 0, adc total: 0.0
Mote 0, leds total: 0.0
Mote 0, sensor total: 0.0
Mote 0, eeprom total: 0.0
Mote 0, cpu_cycle total: 0.0
Mote 0, Total energy used: 73
Mote 0, Battery energy remaining (linear): 21599927
Mote 0, Battery energy remaining: 21599926
Mote 0, Battery mAh remaining: 2000.0


Mote 1, cpu total: 0.0
Mote 1, radio total: 291.3
Mote 1, adc total: 0.0
Mote 1, leds total: 0.0
Mote 1, sensor total: 0.0
Mote 1, eeprom total: 0.0
Mote 1, cpu_cycle total: 0.0
Mote 1, Total energy used: 291
Mote 1, Battery energy remaining (linear): 21599709
Mote 1, Battery energy remaining: 21599697
Mote 1, Battery mAh remaining: 2000.0


Mote 2, cpu total: 0.0
Mote 2, radio total: 232.2
Mote 2, adc total: 0.0
Mote 2, leds total: 0.0
Mote 2, sensor total: 0.0
Mote 2, eeprom total: 0.0
Mote 2, cpu_cycle total: 0.0
Mote 2, Total energy used: 232
Mote 2, Battery energy remaining (linear): 21599768
Mote 2, Battery energy remaining: 21599759
Mote 2, Battery mAh remaining: 2000.0


Mote 3, cpu total: 0.0
Mote 3, radio total: 173.1
Mote 3, adc total: 0.0
Mote 3, leds total: 0.0
Mote 3, sensor total: 0.0
Mote 3, eeprom total: 0.0
Mote 3, cpu_cycle total: 0.0
Mote 3, Total energy used: 173
Mote 3, Battery energy remaining (linear): 21599827
Mote 3, Battery energy remaining: 21599820
Mote 3, Battery mAh remaining: 2000.0


Simulated seconds: 5.9
Real seconds: 0.1
===========================================================

Thanks for your help.

-----Message d'origine-----
De : Ricardo Simon Carbajo [mailto:[email protected]] 
Envoyé : mercredi 16 juin 2010 12:56
À : Omar Cheikhrouhou (ISET)
Objet : Re: PowerTOSSIM-Z

Hi Omar,

I have provided a quick Readme.txt with some information in the download.
The process will be something like that:
- Check the Readme for the files to be replaced in your corresponding TinyOS
installation and replace them. (this will not alter the current ones but
provide extra code which. Modifications can be searched by the tags:
"ENERGY_HANDLER" or in TinyOS2.1.1 by "POWERTOSSIMZ").
- In your application, you only need to edit your Makefile and include the
preprocessor directive "CFLAGS += -DPOWERTOSSIMZ" (see the Makefile under
the /apps/RadioCountToLeds folder)
- Now you should compile like: "make micaz sim", and it should be Succesful.
- Next, you have to run your python script to start the simulation.
See (see the script "MySimulation.py" under the /apps/RadioCountToLeds
folder to get an idea). The key element there is the printing of the channel
"ENERGY_HANDLER" to a folder called Energy.txt. This will produce a trace of
the activity of various components of the nodes in your simulation which is
to be used to calculate the energy consumption.
- Now that you have the trace (Energy.txt), you need to process this
information to produce a) the final consumption or b) a trace to be used to
visualize graphically the state of the batteries by using the application
powercurses. To do so a) "python postprocessZ.py Energy.txt  b) python
postprocessZ.py --powercurses Energy.txt
>EnergyPowerCurses.txt
- To open powercursed do: "./powercurses (num_motes_simulation) <
EnergyPowerCurses.txt"

You should be ok with that.
Hope it helps,
Ricardo


On 16 June 2010 09:52, Omar Cheikhrouhou (ISET)
<[email protected]> wrote:
> Hello,
>
> Please can you help me using the PowerTOSSIM-Z. Please if you have 
> some docs send it to me.
>
> How to proceed in order to simulate my app energy consumption?
>
>
>
> Thanks in advance,


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to