I am using Omnet++ and Inet 3.4.0 and I am trying to simulate power consumption and make the node dead after it's energy gets over. I tried IdealEnergySource model and SimpleEnergyStorage. but I could not figure out where to keep the parameter of the energy source. I tried in SimpleEnergyStorage.cc but could not find.
Than you in advance
The
Wireless08
tutorial fromINET
usesIdealEnergyStorage
which has an infinite amount of energy. Therefore in that case a node will never be dead.To model a real consumption one can use
SimpleEnergyStorage
. InWireless08
section ofomnetpp.ini
comment out the line:and add the following lines:
Moreover, edit
WirelessB.ned
and add at the beginning:and in
submodules: