ORBIT-USER: Transmit power control

Somak Datta Gupta sgupta at us.toyota-itc.com
Mon Jul 30 12:46:54 EDT 2007


Thanks Max.... I also got that working.
For some reason it was giving me a bunch of other errors too...I 
re-imaged the nodes and got it going.
And yes...I was using nodehandler4.

Kind regards,

Somak



Max Ott wrote:
> 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
>>>       
>
>
>
>   


-- 
Somak Datta Gupta
Toyota InfoTechnology Center USA, Technology R&D
4009 Miranda Ave. Palo Alto, CA 94304, USA
Tel: 650-251-0512 Fax: 650-852-9350
Mobile: 650-224-6871 





More information about the orbit-user mailing list