wasif masood wrote:
>
> no don't go in that direction, just calculate the time radio itself spent
> in either of these states, look into my code, in the CSMACA component, you
> will see how I am using the Anlyzer component to calculate these times.
>
Dear Wasif,
Thank you for your help. I've read your code and concerned about the way to
calculate energy consumption as below:
rOnTime = the time when radio is ON [call SplitControl.start()] until the
time radio is OFF [call SplitControl.stop()]
And then consumed energy is calculated by:
E = P_on * rOnTime + P_off*rOffTime ; //
where P_on=57,P_off=8;//7.6~8;//I_on=19,I_off=2.55, V=3;
However, as we known, Radio consumes much energy when it transmits or
receives packets (~23mA) and consumes less energy in idle mode (~21 uA).
Actually, even though the radio is ON, but if mote doesn't transmit or
receive any packet, it consumes very little energy. Therefore, it doesn't
make sense when we use I_on = 19mA to calculate Energy (for the total time
when radio is ON). For more accuracy, I think we should calculate the
duration time when radio transmits or receives packets. But I don't know how
to get this duration time correctly? How about your idea?
Thank you very much!
Han Bin
--
View this message in context:
http://old.nabble.com/Energy-consumption-on-Telosb-tp34443559p34453369.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help