Esempio n. 1
0
        else:
            continue

        SYMBOL_RATE = LOCK_PARAMETER[0]
        FREQUENCY_LEVEL_OFFSET = LOCK_PARAMETER[1]
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_coding_symbolrate_dvbs2(SYMBOL_RATE[0])
        specan = Ektsfu(sfu_ip)
        specan.set_noise_settings_receiver("{}e6".format(
            str(SYMBOL_RATE[2] * 1.2)))
        specan = Ektsfu(sfu_ip)
        specan.set_frequency_frequency_frequency(
            str(FREQUENCY_LEVEL_OFFSET[0]) + "MHz")
        time.sleep(1)
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_offset(str(FREQUENCY_LEVEL_OFFSET[1]))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_level("dBm", "-50")

        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
            json.dumps({
                "cmd": "set_frequency_data",
                "frequency": str(FREQUENCY_LEVEL_OFFSET[0])
            }))
        time.sleep(1)
        del net
        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
    specan = Ektsfu(sfu_ip)
    specan.set_noise_noise_noise("OFF")
    specan = Ektsfu(sfu_ip)
    specan.set_fading_fading_state("OFF")
    specan = Ektsfu(sfu_ip)
    specan.set_impairments_modulator("OFF")
    specan = Ektsfu(sfu_ip)
    specan.set_impairments_baseband("OFF")

    specan = Ektsfu(sfu_ip)
    specan.set_frequency_frequency_frequency(str(FREQUENCY_666) + "MHz")
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_framing_channelbandwidth_dvbt2("BW_{}".format(
        str("8")))
    specan = Ektsfu(sfu_ip)
    specan.set_level_level_offset(str(LEVEL_OFFSET_666))
    specan = Ektsfu(sfu_ip)
    specan.set_level_level_level("dBm", LEVEL_50)
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_system_papr_dvbt2("TR")
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_framing_ldata_dvbt2("61")

    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_framing_fftsize_dvbt2("M32E")
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_bicm_constellation_dvbt2(MODULATION_256QAM)
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_bicm_coderate_dvbt2(CODE_RATE_2_3)
    specan = Ektsfu(sfu_ip)
    specan.set_digitaltv_framing_pilot_dvbt2("PP4")
    specan = Ektsfu(sfu_ip)
    specan.set_fading_profile_profile("1", "1", "SPATh")
    specan = Ektsfu(sfu_ip)
    specan.set_fading_profile_profile("2", "1", "SPATh")

    # DVBS2_QPSK_CODE_RATE_CN = dict_data.get("DVBS2_QPSK_CODE_RATE_CN")
    # DVBS2_8PSK_CODE_RATE_CN = dict_data.get("DVBS2_8PSK_CODE_RATE_CN")

    # for FREQUENCY_LEVEL_OFFSET in DVBT_T2_FREQUENCY_LEVEL_OFFSET:
    PARAMETER_FIXED = load_dict.get("test_parame_result")

    specan = Ektsfu(sfu_ip)
    specan.set_frequency_frequency_frequency(str(int(PARAMETER_FIXED[0])) + "MHz")
    specan = Ektsfu(sfu_ip)
    specan.set_level_level_offset(str(PARAMETER_FIXED[1]))

    for PARAMETER in PARAMETER_FIXED[2]:
        if PARAMETER[8] == None:
            pass
        else:
            continue

        specan = Ektsfu(sfu_ip)
        specan.set_level_level_level("dBm", "-60")
        time.sleep(5)

        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_framing_fftsize_dvbt2(PARAMETER[0])
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_bicm_constellation_dvbt2(PARAMETER[1])
    for PARAMETER in load_dict.get("test_parame_result"):
        loop_lock_mark = False
        for check_list in PARAMETER[6]:
            if check_list[1] == None:
                loop_lock_mark = True
                break
        if loop_lock_mark == True:
            pass
        else:
            continue

        specan = Ektsfu(sfu_ip)
        specan.set_frequency_frequency_frequency(str(PARAMETER[0][0]) + "MHz")
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_offset(str(PARAMETER[0][1]))

        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_bicm_constellation_dvbt2(PARAMETER[1])
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_framing_pilot_dvbt2(PARAMETER[2])
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_bicm_coderate_dvbt2(PARAMETER[3])
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_framing_guard_dvbt2(PARAMETER[4])
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_framing_channelbandwidth_dvbt2("BW_{}".format(
            str(PARAMETER[5])))

        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
Esempio n. 5
0
            if check_list[1] == None:
                loop_lock_mark = True
                break
        if loop_lock_mark == True:
            pass
        else:
            continue
        FREQUENCY_OFFSET = LOCK_PARAMETER[2]
        SYMBOL_RATE_FREQUENCY = [LOCK_PARAMETER[0], LOCK_PARAMETER[1]]

        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_coding_symbolrate_dvbs2(SYMBOL_RATE_FREQUENCY[0])
        specan = Ektsfu(sfu_ip)
        specan.set_frequency_frequency_frequency(FREQUENCY_OFFSET[0] + "MHz")
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_offset(str(FREQUENCY_OFFSET[3]))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_level("dBm", FREQUENCY_OFFSET[2])

        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
            json.dumps({
                "cmd": "set_frequency_data",
                "frequency": FREQUENCY_OFFSET[0]
            }))
        time.sleep(1)
        del net
        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
Esempio n. 6
0
    specan.set_noise_noise_awgn("ON")
    specan = Ektsfu(sfu_ip)
    specan.set_noise_settings_bandwith("OFF")
    specan = Ektsfu(sfu_ip)
    specan.set_impairments_modulator("OFF")
    specan = Ektsfu(sfu_ip)
    specan.set_impairments_baseband("OFF")

    # dict_data = read_ekt_config_data("../../ekt_lib/ekt_config.json")
    # DVBS2_8PSK_CODE_RATE_CN = dict_data.get("DVBS2_8PSK_CODE_RATE_CN")

    specan = Ektsfu(sfu_ip)
    specan.set_frequency_frequency_frequency(FREQUENCY_1550 + "MHz")
    time.sleep(1)
    specan = Ektsfu(sfu_ip)
    specan.set_level_level_offset(str("-4.1"))
    specan = Ektsfu(sfu_ip)
    specan.set_level_level_level("dBm", LEVEL_50)

    for LOCK_PARAMETER in load_dict.get("test_parame_result"):
        loop_lock_mark = False
        for check_list in LOCK_PARAMETER[1]:
            if check_list[1] == None:
                loop_lock_mark = True
                break
        if loop_lock_mark == True:
            pass
        else:
            continue

        SYMBOL_RATE = LOCK_PARAMETER[0]
Esempio n. 7
0
            specan = Ektsfu(sfu_ip)
            specan.set_digitaltv_framing_fftsize_dvbt2("M32E")

        CURRENT_FREQUENCY = FREQUENCY_LEVEL_OFFSET[0]
        LEVEL_OFFSET_FREQUENCY = find_level_offset_by_frequency(
            "DVBT_T2_FREQUENCY_LEVEL_OFFSET", CURRENT_FREQUENCY)
        LEVEL_50 = str("%.2f" % (-50 - LEVEL_OFFSET_FREQUENCY))

        specan = Ektsfu(sfu_ip)
        specan.set_frequency_frequency_frequency(
            str(int(FREQUENCY_LEVEL_OFFSET[0])) + "MHz")
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_framing_channelbandwidth_dvbt2("BW_{}".format(
            str(CURRENT_BANDWIDTH)))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_offset(str(LEVEL_OFFSET_FREQUENCY))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_level("dBm", str(LEVEL_50))

        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
            json.dumps({
                "cmd": "set_frequency_data",
                "frequency": str(int(FREQUENCY_LEVEL_OFFSET[0]))
            }))
        time.sleep(1)
        del net
        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
Esempio n. 8
0
            if PARAMETER[5] == None:
                loop_lock_mark = True
                break
        if loop_lock_mark == True:
            pass
        else:
            continue

        specan = Ektsfu(sfu_ip)
        specan.set_frequency_frequency_frequency(
            str(int(FREQUENCY[0])) + "MHz")
        specan = Ektsfu(sfu_ip)
        specan.set_digitaltv_coding_channelbandwidth_dvbt("BW_{}".format(
            str(8)))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_offset(str(FREQUENCY[1]))
        specan = Ektsfu(sfu_ip)
        specan.set_level_level_level("dBm", str(FREQUENCY[2]))

        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(
            json.dumps({
                "cmd": "set_frequency_data",
                "frequency": str(int(FREQUENCY[0]))
            }))
        time.sleep(1)
        del net
        net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP,
                                   ekt_cfg.FRONT_END_SERVER_PORT)
        net.send_data(