[ns] Signal Strength in trace files

Anastasia Katranidou katranid at ics.forth.gr
Thu Nov 11 06:07:19 PST 2004


Hi,
I'm talking about the signal strength of a packet reception.

Greetings,
Anastasia

On Wed, 10 Nov 2004, Thomas King wrote:

> Hi,
> you talking about the signal strength of a packet transmission? Then
> you should modify the tracing part, because signal strength is not
> written to the trace file.
>
> Greetings,
> Thomas
>
>
> On Wed, 10 Nov 2004 20:33:49 +0200 (EET), Anastasia Katranidou
> <katranid at ics.forth.gr> wrote:
> >
> > Hi,
> > I'm new in ns2 and I do research in mobile wireless nodes.I just want to
> > ask you what should I do in order for the Signal Strength to appear in the
> > trace files?
> >
> > I tried to put these:
> >
> > set opt(engmodel)       EnergyModel
> > set opt(txPower)        3.0
> > set opt(rxPower)        1.0
> > set opt(idlePower)      0.0
> > set opt(initeng)        100.0
> >
> > ...
> >
> > -energyModel $opt(engmodel) \
> >                          -rxPower $opt(rxPower) \
> >                          -txPower $opt(txPower) \
> >                          -idlePower $opt(idlePower) \
> >                          -initialEnergy $opt(initeng)
> >
> > , but it shows the next error:
> >
> > invalid command name "-energyModel"
> >     while executing
> > "-energyModel $opt(engmodel) \
> >                          -rxPower $opt(rxPower) \
> >                          -txPower $opt(txPower) \
> >                          -idlePower $opt(idlePower) \
> >                          -initialEnergy $opt(inite..."
> >
> > Thanks in advance,
> > Anastasia Katranidou
> >
> >
>



More information about the Ns-users mailing list