[ns] how to trace energy of a given node

Shantidev Mohanty shanti at ece.gatech.edu
Fri May 7 08:22:03 PDT 2004


Are you talking abt the  power with which a node transmits a packets. it 
is fixed
and given by Pt_ ..you can look for this in wireless-phy.cc file...if 
 ur  talking abt the
received power (the power with which a node receives a packet..) u can 
look for
in the propagation model u r using..files  that may  help you are
propagation.cc (.h), tworayground.cc(.h)..if u want to trace the power 
for a particular node,
you can get its id first and then try to track the packets of only this 
node in the above files.
When  u track it, you can print to a particular file for your post 
analysis..

Hope thie helps.

Shantidev

Geethapriya Thamilarasu wrote:

>Hi,
>If i have say three wireless nodes transmitting to each other,
>how do i plot the energy consumption of a particular node ?
>I am not sure how to trace the enery parameter. (particularly tracing
>transmission power)
>
>If i do trace all, the trace file does not have the energy trace in it.
>Please help,
>
>Thanks,
>Geethapriya
>
>  
>




More information about the Ns-users mailing list