// configure radio energy model
radioEnergyHelper.Set ("TxCurrentA", DoubleValue (0.0174)); basicSourcePtr->TraceConnectWithoutContext ("RemainingEnergy", MakeCallback (&RemainingEnergy))
basicRadioModelPtr->TraceConnectWithoutContext ("TotalEnergyConsumption", MakeCallback (&TotalEnergy))
Hello back Konstantinos, Thanks for the quick response :)
but sorry it's not enough for me.
theoretically, it seems good, but when I saw the examples, I haven't understood some lines...
For example, here:// configure radio energy model
radioEnergyHelper.Set ("TxCurrentA", DoubleValue (0.0174));
I don't understand why almost all the examples uses this initial value, Should it be always like that or it's related to the transmission range..?
Moreover, why if i'm dealing with sent and received messages, should I add RxCurrentA in order to take into consideration consumed energy
while listening to messages?
Default values for power consumption are based on measurements reported in:
Daniel Halperin, Ben Greenstein, Anmol Sheth, David Wetherall, "Demystifying 802.11n power consumption", Proceedings of HotPower'10
Also, here:Usually, when we callback a function, we should insert its variables with it, Here we callback the remaining energy function without any initial value, so what will return this function exactly ?basicSourcePtr->TraceConnectWithoutContext ("RemainingEnergy", MakeCallback (&RemainingEnergy))
basicRadioModelPtr->TraceConnectWithoutContext ("TotalEnergyConsumption", MakeCallback (&TotalEnergy))
Hello back konstantinos,
Thanks alot for your quick interaction!
So, it took me quiet a week to understand the energy model, the energy consumption process in general and particularily in ns3. I tried to have a look in all the previous discussions on energy in ns-3 but I didn't found an exact answer to my questions..
I'll resume the study I did with two questions and i'll be so grateful if you have the answers :)
1./ Did the energy default values depend on the transmission range, i.e: for example if the nodes in the WSN communicate under a range of 50m, should I change these defaults values (such as TxCurrentA, RxCurrentA...)? And if the answer is "YES" so how can I find the relationship between these parameters?
Default values for power consumption are based on measurements reported in:
Daniel Halperin, Ben Greenstein, Anmol Sheth, David Wetherall, "Demystifying 802.11n power consumption", Proceedings of HotPower'10
2./Supposing that I need to add an extra energy consumption "state", I have N mobile nodes so when traveling from a position to another, Of cours, they will consume extra energy added to the energy consumed in Idle, sleep, transmission and reception states....And I suppose in those states you needed the power transmission value for each state so how can I get the power consumption for a mobile node when it needs to move from its position?