Cannot find node status during network initialization

221 views
Skip to first unread message

Anjana Prabhakar

unread,
Dec 20, 2018, 5:52:37 AM12/20/18
to OMNeT++ Users
I am trying to calculate the energy consumption in a wireless network in inet. I included the following lines in omnetpp.ini :

*.host*.energyStorageType = "SimpleEpEnergyStorage"
*.host*.energyStorage.nominalCapacity = 0.05J # maximum capacity
*.host*.energyStorage.initialCapacity = uniform(0J, this.nominalCapacity)

On running the code, I get a message " cannot find node status on network initialization". Please suggest how else I can calculate the energy consumption. Thank you.

Joelias Junior

unread,
Jan 4, 2019, 8:39:24 AM1/4/19
to OMNeT++ Users
Hi Anjana,

You must include

**.hasStatus = true

in your omnetpp.ini before this lines you inserted. So, the status of the node can be read by the simulator.

Anjana Prabhakar

unread,
Jan 5, 2019, 1:47:31 AM1/5/19
to OMNeT++ Users
Thank you Joelias. I added the line to the omnetpp.ini file and now I get a message "Cannot find lifecycle controller -in module inet::power::SimpleEpEnergyStorage during network initialization". I use inet 3.6 version. Please find below the code I am using:

**.hasStatus=true
**.displayEnergyStorages = true

*.host*.wlan[0].radio.energyConsumerType = "StateBasedEpEnergyConsumer"
*.host*.wlan[0].radio.energyConsumer.offPowerConsumption = 0mW
*.host*.wlan[0].radio.energyConsumer.sleepPowerConsumption = 0.1mW
*.host*.wlan[0].radio.energyConsumer.switchingPowerConsumption = 1mW
*.host*.wlan[0].radio.energyConsumer.receiverIdlePowerConsumption = 2mW
*.host*.wlan[0].radio.energyConsumer.receiverBusyPowerConsumption = 5mW
*.host*.wlan[0].radio.energyConsumer.receiverReceivingPowerConsumption = 10mW
*.host*.wlan[0].radio.energyConsumer.transmitterIdlePowerConsumption = 2mW
*.host*.wlan[0].radio.energyConsumer.transmitterTransmittingPowerConsumption = 100mW


*.host*.energyStorageType = "SimpleEpEnergyStorage"
**.energyStorage.nominalCapacity = 0.05J # maximum capacity
**.energyStorage.initialCapacity = uniform(0J, this.nominalCapacity)

*.host[*].energyManagementType = "SimpleEpEnergyManagement"
*.host[*].energyManagement.nodeStartCapacity = 0.025J # start threshold
*.host[*].energyManagement.nodeShutdownCapacity = 0J # shutdown threshold

*.host*.wlan[0].radio.displayInterferenceRange = false
*.hostR1.wlan[0].radio.displayCommunicationRange = false
*.visualizer.mediumVisualizer.displaySignals = false

Please help.

Thanks,
Anjana

Anjana Prabhakar

unread,
Jan 5, 2019, 6:19:32 AM1/5/19
to OMNeT++ Users
I imported lifecycle controller and it is working now. Thank you so much.

Regards,
Anjana
Reply all
Reply to author
Forward
0 new messages