contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

Measuring Power Consumption in Cooja Simulator #2633

Open shreyakoul012 opened 4 years ago

shreyakoul012 commented 4 years ago

I have implemented few algorithms and I want to compare them on the basis of their power consumption. I have used powertrace tool of contiki OS but I am getting the same power consumption values for all the algorithms which actually are to be different because the algorithms are of varied complexity. I am using the following method: Book1.xlsx

i am using zolertia mote and have taken the values from z1 datasheet for current and voltage. i calculated the power consumption as under: For CPU, it is (CPU x 0.5 x 3)/327680 and likewise for LPM, Tx, Rx. is this correct method?

vishal623 commented 4 years ago

Hello,

Can you help me in the calculation of power consumption? I don't have any new algorithm but used z1 mote for my topology and want to measure power consumption for coap clients.

Thanks