Add BTS script for RT tx power control
This commit is contained in:
parent
54263dba7c
commit
d9fd3e5e6d
2 changed files with 18 additions and 2 deletions
16
modules/rhizo_base/files/SysmoBTS/txp
Normal file
16
modules/rhizo_base/files/SysmoBTS/txp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/expect -f
|
||||
|
||||
set pwr [lindex $argv 0]
|
||||
set neg [lindex $argv 1]
|
||||
if { $pwr == "" } { set pwr 24 }
|
||||
if { $neg > 0 } { set neg "-" }
|
||||
spawn telnet localhost 4241
|
||||
expect ">"
|
||||
send "enable\r"
|
||||
expect "#"
|
||||
|
||||
send "trx 0 tx-power $neg$pwr\r"
|
||||
expect "#"
|
||||
|
||||
send "exit\r"
|
||||
expect "#"
|
Loading…
Add table
Add a link
Reference in a new issue