mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-18 19:14:54 +00:00
cisco_wifi_ctl.py : temporary timing fix for controller
lf_cisco_power.py : loggin for calc_dbm_beacon
This commit is contained in:
@@ -349,7 +349,7 @@ def main():
|
|||||||
found_escape = False
|
found_escape = False
|
||||||
|
|
||||||
if j == 5:
|
if j == 5:
|
||||||
logg.info("9800 timed out looking for CCP,CCP_EN,User:,Password:,CCP_CONFIG loop_count {} i {} j {} before {} after {}".format(CCP,CCP_EN,CCP_CONFIG,loop_count,i,j,egg.before,egg.after))
|
logg.info("9800 timed out looking for CCP :{},CCP_EN: {},CCP_CONFIG: {} loop_count {} i {} j {} before {} after {}".format(CCP,CCP_EN,CCP_CONFIG,loop_count,i,j,egg.before,egg.after))
|
||||||
logg.info("9800 Closing the connection and try to re-establish loop_count {} i {} j {}".format(loop_count,i,j))
|
logg.info("9800 Closing the connection and try to re-establish loop_count {} i {} j {}".format(loop_count,i,j))
|
||||||
egg.close(force = True)
|
egg.close(force = True)
|
||||||
sleep(1)
|
sleep(1)
|
||||||
@@ -567,9 +567,9 @@ def main():
|
|||||||
|
|
||||||
if i == 0:
|
if i == 0:
|
||||||
logg.info("9800 found Escape character is '^] i:{} before: {} after: {}".format(i,egg.before,egg.after))
|
logg.info("9800 found Escape character is '^] i:{} before: {} after: {}".format(i,egg.before,egg.after))
|
||||||
#egg.sendline(CR)
|
egg.sendline(CR) # 1/18/2021 - may need a bit more logic
|
||||||
found_escape = True
|
found_escape = True
|
||||||
sleep(0.1)
|
sleep(0.2)
|
||||||
j = egg.expect_exact([CCP,CCP_EN,"User:","Password:",CCP_CONFIG,pexpect.TIMEOUT],timeout=3)
|
j = egg.expect_exact([CCP,CCP_EN,"User:","Password:",CCP_CONFIG,pexpect.TIMEOUT],timeout=3)
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
if j == 0:
|
if j == 0:
|
||||||
|
|||||||
@@ -1339,7 +1339,7 @@ def main():
|
|||||||
pi = int(pathloss)
|
pi = int(pathloss)
|
||||||
ag = int(antenna_gain)
|
ag = int(antenna_gain)
|
||||||
calc_dbm_beacon = int(beacon_sig) + pi + rssi_adj + ag
|
calc_dbm_beacon = int(beacon_sig) + pi + rssi_adj + ag
|
||||||
logg.info("calc_dbm_beacon".format(calc_dbm_beacon))
|
logg.info("calc_dbm_beacon {}".format(calc_dbm_beacon))
|
||||||
|
|
||||||
logg.info("sig: %s"%sig)
|
logg.info("sig: %s"%sig)
|
||||||
calc_dbm = int(sig) + pi + rssi_adj + ag
|
calc_dbm = int(sig) + pi + rssi_adj + ag
|
||||||
|
|||||||
Reference in New Issue
Block a user