[ns] Help: Received Power Level of a Packet at MAC Layer in MANETs
Ahmad R Shahid
Mon Apr 15 13:45:02 2002
well the power level (or energy level) is that of the
node and not of the packet.
yet the easiest way to get the energy level is to add
the following code:
myEnergy_ = thisNode->energy_model()->energy();
--- Ankit Agarwal <firstname.lastname@example.org> wrote:
> Hi All,
> I am new to NS2 and am currently running simulations
> of wireless mobile ad hoc networks (MANETs) based on
> the 802.11 MAC protocol.
> I would like to get a trace of the received power
> level of every packet at the MAC layer (802.11) of
> each node.
> I tried turning the MAC layer tracing on but that
> doesn't trace the received power level.
> Can someone suggest some way for me to get this
> I looked at the code and I can see that the 802.11
> layer is aware of the received power level of a
> but I can't think of a way to trace the value.
> Any help or suggestions would be appreciated.
> "Tough times do not last, only tough people do."
> "A ship in the harbor is safe...but thats not what
> ships were made for."
> "Do, or do not. There is no try." (Yoda)
> Ankit Agarwal
> 5000 Oak Street, #815, Kansas City, MO 64112.
> Telephone: (816) 531-4186. Email:
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax