Dear all I would be grateful if you could help me on how to get energy displayed as shown in the article about energy model update in NS2.
e.g [energy 979.917000 ei 20.074 es 0.000 et 0.003 er 0.006] The meaning of each item is as follows: energy: total remaining energy ei: energy consumption in IDLE state es: energy consumption in SLEEP state et: energy consumed in transmitting packets er: energy consumed in receiving packets at the moment i am getting something like this by running the MyTest.tcl script s 17.221000000 _0_ MAC --- 0 SYNC 9 [0.12 0 0] [energy 1000.000000] N -t 17.221000 -n 1 -e 982.776000 s 18.639000000 _1_ MAC --- 0 SYNC 9 [0.13 1 0] [energy 982.776000] N -t 18.639000 -n 0 -e 981.358000 s 20.080000000 _0_ MAC --- 0 SYNC 9 [0.12 0 1] [energy 981.358000] N -t 20.080000 -n 1 -e 979.917000 s 21.704249539 _0_ AGT --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 r 21.704249539 _0_ RTR --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 s 21.704249539 _0_ RTR --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 D 21.704249539 _0_ IFQ ARP 2 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [2] 0 0 D 21.704249539 _0_ IFQ ARP 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 s 32.981000000 _1_ MAC --- 0 SYNC 9 [0.12 1 0] [energy 979.917000] I cannot see the complete energy breakdown. Your help is very much appreciated Merry Christmas to all and Happy New Year regards Qasim Iqbal