you need to set the consumption in every radio state, but you need to be careful about the values, because the base consumption (CPU, screen ...) must be added like a bias to the consumption of the radio in every state
you need to modify the code and introduce a timer and measure the consumption in a interval, with this you have the consumption per unit time and the rest is easy
Change in void InetSimpleBattery::initialize(int stage)
residualVec.disable();
to
residualVec.enable();
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
mW/s
De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de Sh Asaadi
Enviado el: domingo, 21 de septiembre de 2014 16:27
Para: omn...@googlegroups.com
CC: aari...@hotmail.com
Asunto: Re: [Omnetpp-l] about the battery model parameters Inetmanet
Does . Is the residual capacity in joules? in inetmanet.
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dou you have included a battery module in the node definition?
A value of e-323 is equal to zero but due to round problems it is possible that the value could be a bit different it is the classical problem of finite precision in computers
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/omnetpp.
--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/Sm8AyZ9DzfQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
The consumption of the radio modules is computed in this method
InetSimpleBattery::receiveChangeNotification()
There isn’t, in the result file there is the residual energy, the consumption will be the initial that it is a configuration parameter in the ini file minus the residual
It should be in the sca file the residual energy of the node
Consumption = capacity-residual
mAh = mWh / V
mAh = 3600 * mWs / V
In the configuration file you can find the voltage of the battery
No
mWs = mAh*V*3600
This is the consumption
recordScalar("total", init - final, "mW-s");
Residual is
nominal-total
Visit this group at https://groups.google.com/group/omnetpp.
On Dec 22, 2015, at 9:56 PM, Shaikha Al-Khuder <cpe....@gmail.com> wrote:you need to set the consumption in every radio state, but you need to be careful about the values, because the base consumption (CPU, screen ...) must be added like a bias to the consumption of the radio in every state