ORBIT-USER: Transmit power control
Somak Datta Gupta
sgupta at us.toyota-itc.com
Thu Jul 26 20:49:59 EDT 2007
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