middle of simulation run time or in protocol?
MIME-Version: 1.0
Content-Type: multipart/alternative; 
        boundary="----=_Part_15188_18936526.1238548965795"
X-Originating-IP: [202.120.185.196]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version XT2_snapshot build
 090319(6914.2271.2266) Copyright (c) 2002-2009 www.mailtech.cn 163com

------=_Part_15188_18936526.1238548965795
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

you can do the following: 1.$ns at 5 "[$node_(4) set netif_(0)] set RXThres=
h_ xxxx" 2.$ns at 5 "[$node_(4) set mac_(0)] netif [$node_(4) set netif_(0)=
]" or combine the two commands into one, to set the transmission power to a=
 node during the simulation.


=E5=9C=A82009-03-31=EF=BC=8C"Mahshid Rahnama" <mahshid.rahn...@gmail.com> =
=E5=86=99=E9=81=93=EF=BC=9A


Hi all,

I am try to change transmission power of each node according to some
parameters in my protocl,
How can I set and adjust a node transmission power in simualtion run time?

I know threshold -m <propagation-model> [other-options] distance
 and Phy/WirelessPhy set RXThresh_ <value>
 ....
 But I think it just work when creating a node,
but What should I do to change transmission power of for example
mobilenode(4) after 5 seconds ?

Thanks for any help,
--Mah


------=_Part_15188_18936526.1238548965795
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

you can do the following:
1.$ns at 5 "[$node_(4) set netif_(0)] set RXThresh_ xxxx"
2.$ns at 5 "[$node_(4) set mac_(0)] netif [$node_(4) set netif_(0)]"
or combine the two commands into one, to set the transmission power to a no=
de during the simulation.<br><br><br>=E5=9C=A82009-03-31=EF=BC=8C"Mahshid R=
ahnama" &lt;mahshid.rahn...@gmail.com&gt; =E5=86=99=E9=81=93=EF=BC=9A<br> <=
BLOCKQUOTE id=3D"isReplyContent" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0p=
x 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><PRE>
Hi all,

I am try to change transmission power of each node according to some
parameters in my protocl,
How can I set and adjust a node transmission power in simualtion run time?

I know threshold -m &lt;propagation-model&gt; [other-options] distance
 and Phy/WirelessPhy set RXThresh_ &lt;value&gt;
 ....
 But I think it just work when creating a node,
but What should I do to change transmission power of for example
mobilenode(4) after 5 seconds ?

Thanks for any help,
--Mah

</PRE></BLOCKQUOTE><br><!-- footer --><br><span title=3D"neteasefooter"/><h=
r/>
<a href=3D"http://email.163.com";>=E7=BD=91=E6=98=93=E9=82=AE=E7=AE=B1=EF=BC=
=8C=E4=B8=AD=E5=9B=BD=E7=AC=AC=E4=B8=80=E5=A4=A7=E7=94=B5=E5=AD=90=E9=82=AE=
=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=95=86</a>
</span>
------=_Part_15188_18936526.1238548965795--

Reply via email to