Closed danzuha closed 3 years ago
Perhaps im not checking at the right place?
The energy consumed is stored in the variable totalEnergyConsumed
for each node. For example, if there's one node in the network, the total energy spent in sending / receiving messages is stored in scalar LoRaNetworkTest.loRaNodes[0].LoRaNic.radio.energyConsumer totalEnergyConsumed
in the scalar output file. The unit is Joules.
The energy consumed is stored in the variable
totalEnergyConsumed
for each node. For example, if there's one node in the network, the total energy spent in sending / receiving messages is stored inscalar LoRaNetworkTest.loRaNodes[0].LoRaNic.radio.energyConsumer totalEnergyConsumed
in the scalar output file. The unit is Joules.
Hi gpremsan
Thanks for the replies, really appreciate it. May I know if where can i get the totalEnergyconsumed scalar? Is there specific file or in GUI? I think i cannot find any match in GUI
fyi, im using the loRaNetworkTest.ini to get to use to this.
You need to check scalar output files (usually with .sca name at the end of the filename). They are saved somewhere in the simulation directory, not remember exact path from the top of my head.
Got it, thanks!
Hi guys,
Im new to omnett and FLoRa. I need to know how can we get the energy consumed by each nodes after simulated? I stuck with this for quite awhile now, i changed so many thing but still got 0J for energy (as per pic below)
@mariuszslabicki