ORBIT-USER: Transmit power control
Max Ott
max at semandex.net
Sat Jul 28 00:50:51 EDT 2007
Strange. I just tried it and it works fine for me.
Can you try it again and if it fails, please send me the experiment ID
so I can check what is different. I assume you are using nodehandler4.
Thanks,
-max
On 7/26/07, Somak Datta Gupta <sgupta at us.toyota-itc.com> wrote:
> Thanks Max..
>
> I thought this might work:
>
>
> defNodes('sender', [1,2]) {|node|
> node.image = nil
> node.prototype("test:proto:sender", {
> 'destinationHost' => '192.168.1.1',
> 'packetSize' => 1024,
> 'rate' => 6000,
> 'protocol' => 'udp'
> })
> node.net.w0.tx_power="10"
> node.net.w0.mode = "master"
> }
>
>
>
> But it gave me this warning:
>
> WARN net/w0: Unrecognized path 'net/w0/tx_power='
>
>
> I used 802.11a and was in sb2.
>
>
> -Somak
>
>
>
> Max Ott wrote:
> > Nodehandler let's you set it the same way you set any other parameter
> > on an interface.
> >
> > nodes('sender').net.w0 { |w|
> > w.essid = "orbit"
> > w.ip = "%192.168.%x.%y"
> > w.tx_power = 0 # dbm
> > }
> >
> > See documentation
> > http://www.orbit-lab.org/wiki/Documentation/NodeHandler/Commands/nodes
> >
> > For your information, teh power is set as Sachin mentioned above:
> >
> > "echo #{value} > /proc/sys/dev/#{@deviceName}/txpowlimit"
> >
> >
> > -max
More information about the orbit-user
mailing list