def get_statistics_rx(): ap_rssi = sta_link_rate = sta_mcs = sta_nss = sta_bw = ap_rssi_ant0 = ap_rssi_ant1 = ap_rssi_ant2 \ = ap_rssi_ant3 = sta_power_ant0 = sta_power_ant1 = sta_power_ant2 = sta_power_ant3 = '999' # get station's rssi and linkrate # P_sta_counts = product_RSSI_telnet(STA_ADDRESS, STA_USERNAME, STA_PASSWORD, RADIO, AP_TYPE) # #P_sta_rssi.login(USER_NAME, PASSWORD) # channel, sta_link_rate, sta_mcs, sta_nss, sta_bw, sta_power_ant0, sta_power_ant1, sta_power_ant2, \ # sta_power_ant3 = P_sta_counts.get_counts_bcm(RADIO) P_ap_rssi = product_RSSI_telnet(HOST_IP, USER_NAME, PASSWORD, RADIO, AP_TYPE) P_ap_rssi.login(USER_NAME, PASSWORD) ap_rssi, ap_rssi_ant0, ap_rssi_ant1, ap_rssi_ant2, ap_rssi_ant3 = P_ap_rssi.get_RSSI_bcm( RADIO) # write sta's rssi and linkrate ap_rssi_write(str(ap_rssi).strip()) rx_linkrate_write(str(sta_link_rate).strip()) mcs_rxrate_write(str(sta_mcs).strip()) nss_rxrate_write(str(sta_nss).strip()) bw_rxrate_write(str(sta_bw).strip()) rssi_rxant_write( str('rssi[0]' + ap_rssi_ant0 + ' ' + 'rssi[1]' + ap_rssi_ant1 + ' ' + 'rssi[2]' + ap_rssi_ant2 + ' ' + 'rssi[3]' + ap_rssi_ant3)) power_rxant_write( str(sta_power_ant0 + ' ' + sta_power_ant1 + ' ' + sta_power_ant2 + ' ' + sta_power_ant3)) P_ap_rssi.close()
def get_statistics_rx(): # get AP rssi and linkrate P_ap_rssi = product_RSSI_ssh(HOST_IP, USER_NAME, PASSWORD, RADIO, AP_TYPE) ap_linkrate_none, ap_rssi, ap_rssi_ant0, ap_rssi_ant1, ap_rssi_ant2, ap_rssi_ant3 = P_ap_rssi.get_RSSI_marvellap( RADIO) # get counts in sta # P_sta_counts = product_RSSI(STA_ADDRESS, STA_USERNAME, STA_PASSWORD, RADIO, AP_TYPE) # P_sta_counts.login(STA_USERNAME, STA_PASSWORD) # channel, sta_link_rate, sta_mcs, sta_nss, sta_bw, sta_power_ant0, sta_power_ant1, sta_power_ant2, \ # sta_power_ant3 = P_sta_counts.get_counts_bcm(RADIO) # write sta's rssi and linkrate ap_rssi_write(str(ap_rssi).strip()) sta_link_rate = '999' rx_linkrate_write(str(sta_link_rate).strip()) # mcs_rxrate_write(str(sta_mcs).strip()) # nss_rxrate_write(str(sta_nss).strip()) # bw_rxrate_write(str(sta_bw).strip()) rssi_rxant_write( str('rssi[0]' + ap_rssi_ant0 + ' ' + 'rssi[1]' + ap_rssi_ant1 + ' ' + 'rssi[2]' + ap_rssi_ant2 + ' ' + 'rssi[3]' + ap_rssi_ant3)) # power_rxant_write( # str(sta_power_ant0 + ' ' + sta_power_ant1 + ' ' + sta_power_ant2 + ' ' + sta_power_ant3)) P_ap_rssi.close()
def get_statistics_rx(): # get info P_ap = product_RSSI_telnet(HOST_IP, USER_NAME, PASSWORD, RADIO, AP_TYPE) # P_ap.login(USER_NAME, PASSWORD) # P_sta.login(STA_USERNAME, STA_PASSWORD) # get radio id ap_power, ap_radio_2g, ap_radio_5g = P_ap.get_testradio_qca( ) get_channel, tx_link_rate, rx_link_rate, ap_rssi, tx_nss_avg, rx_nss_avg = \ P_ap.get_APRSSI_qca(RADIO, ap_radio_2g, ap_radio_5g) ap_rssi_nouse, rx_mcs, rx_nss, rx_bw, ap_rssi_chain0, ap_rssi_chain1, ap_rssi_chain2, \ ap_rssi_chain3, ap_rssi_chain4, ap_rssi_chain5, ap_rssi_chain6, ap_rssi_chain7 = \ P_ap.get_rxcounts_qca(RADIO, ap_radio_2g, ap_radio_5g) # write ap's rssi and linkrate ap_rssi_write(str(ap_rssi).strip()) rx_linkrate_write(str(rx_link_rate).strip()) power_rxant_write(str(sta_power).strip()) rssi_rxant_write( str(ap_rssi_chain0).strip() + str(ap_rssi_chain1).strip() + str(ap_rssi_chain2).strip() + str(ap_rssi_chain3).strip() + str(ap_rssi_chain4).strip() + str(ap_rssi_chain5).strip() + str(ap_rssi_chain6).strip() + str(ap_rssi_chain7).strip()) P_ap.close()
def get_statistics_rx(): # get info P_ap = product_RSSI_com(AP_COM, AP_BAUDRATE) P_ap.login(USER_NAME, PASSWORD) # P_sta.login(STA_USERNAME, STA_PASSWORD) # get radio id get_channel, ap_radio_2g, ap_radio_5g = P_ap.get_testradio_hi( ) rx_link_rate = P_ap.get_rxlinkrate(RADIO, ap_radio_2g, ap_radio_5g) ap_rssi, ap_rssi_chain0, ap_rssi_chain1 = P_ap.get_aprssi( RADIO, ap_radio_2g, ap_radio_5g) rx_linkrate_write(str(rx_link_rate).strip()) sta_power = None power_rxant_write(str(sta_power).strip()) ap_rssi_write(str(ap_rssi).strip()) rssi_rxant_write( str(ap_rssi_chain0).strip() + str(ap_rssi_chain1).strip()) rx_mcs = rx_nss = rx_bw = None mcs_rxrate_write(str(rx_mcs).strip()) nss_rxrate_write(str(rx_nss).strip()) bw_rxrate_write(str(rx_bw).strip()) P_ap.close()