Beispiel #1
0
def cat3_config():
    """
    :return:
    """
    show_version()

    config = lib.get_station_configuration()

    station_details = dict(
        product_line='C9300L',
        station='Chamber_A_01',
        uut_count=16,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.1.1.1',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=TS_START_PORT['2800'] + 8,
        chamber_ts_ip='10.1.1.2',
        chamber_ts_port=TS_START_PORT['2800'] + 1,
        chamber_model='solplus',
        psB_ts_ip=None,
        psB_ts_start_port=0,
        chamber_name='Chamber1',
        chamber_sync_group='ChamberSync1',
        assign_abort_user=['steli2', 'bborel', 'rotian', 'iragonza'],
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    return
Beispiel #2
0
def cat3_lab_config():
    """
    :return:
    """
    show_version()
    cat3_stations.show_version()

    config = lib.get_station_configuration()
    uut_count = 10

    # ================================================================================
    # C3650
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01',
        uut_count=uut_count,
        server_ip='10.79.216.243',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.10',
        ts_start_port=TS_START_PORT['2900'],
        poe1_ts_ip='10.1.1.11',
        poe1_ts_start_port=TS_START_PORT['2900'] + (uut_count * 2),
        poe2_ts_ip='10.1.1.11',
        poe2_ts_start_port=TS_START_PORT['2900'] + (uut_count * 3),
        poe_model='Edgar3',
        poe_mfgr='Reach')
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)
Beispiel #3
0
def cat3_config():
    show_version()

    config = lib.get_station_configuration()

    uut_count = 8  # temporary until the station is properly wired
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01', uut_count=uut_count,
        server_ip='10.1.1.1', dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.6', ts_start_port=TS_START_PORT['2900'],
        assign_abort_user=['steli2', 'bborel', 'rotian'],
    )
    cat3_stations.switch_sysbi(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)
    return
Beispiel #4
0
def entsw_cat3_config():
    """ CAT3 Config
    :return:
    """
    config = lib.get_station_configuration()

    # SYSFT ---------------------------------------------------------
    station_details = dict(
        product_line='CATALYST',
        station='Station_A_01',
        uut_count=16,
        server_ip='10.63.33.6',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=2003,
    )
    universal_stations.switch_sysft(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)
def entsw_c3k_config():
    """
    :return:
    """
    show_version()

    config = lib.get_station_configuration()

    #
    # PCB2C ---------------------------------------------------------
    station_details = dict(
        product_line='WS-C3850',
        station='Station_A_01', uut_count=16,
        pid_cpn_list=PIDS_GEN2,
        server_ip='10.1.1.1', dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.5', ts_start_port=TS_START_PORT['2800'] + 8,
        chamber_ts_ip='10.1.1.5', chamber_ts_port=TS_START_PORT['2800'] + 1,
        chamber_model='watlow_yinhe',
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    #
    # PCB2C ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_01', uut_count=16,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.1.1.1', dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.5', ts_start_port=TS_START_PORT['2800'] + 8,
        chamber_ts_ip='10.1.1.5', chamber_ts_port=TS_START_PORT['2800'] + 1,
        chamber_model='watlow_yinhe',
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    return
Beispiel #6
0
def cat3_lab(server_ip, dwnld_server_ip):
    """
    :return:
    """
    show_version()
    cat3_stations.show_version()

    config = lib.get_station_configuration()

    # ==========================================================================================================================================================
    # C3850
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0
    )
    cat3_stations.switch_pcbst(config, **station_details)
    #
    #
    # 2C ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C3850.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C3850.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C3850.area_sequences.pcb2c.standard_switch_unittest'),
        station='Chamber_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0,
        chamber_ts_ip='10.89.133.9', chamber_ts_port=2018,
        chamber_model='simulator', chamber_name='Chamber1', chamber_sync_group='ChamberSync1'
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    #
    # ASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        loadbox_ts_ip=None, loadbox_ts_start_port=0,
        loadbox_sync_gp='StackPwrSync1', loadbox_sync_gp_size=4,
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_assy(config, **station_details)
    #
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    cat3_stations.switch_sysbi(config, **station_details)
    #
    #
    # SYSASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Line 03 UABU', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
    )
    cat3_stations.switch_sysassy(config, **station_details)
    #
    #
    # SYSFT ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_sysft(config, **station_details)
    #
    #
    # DEBUG ---------------------------------------------------------
    station_details = dict(
        product_line='C3850',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_debug(config, **station_details)
    #
    #

    # ==========================================================================================================================================================
    # C3650
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0
    )
    cat3_stations.switch_pcbst(config, **station_details)
    #
    #
    # 2C ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C3650.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C3650.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C3650.area_sequences.pcb2c.standard_switch_unittest'),
        station='Chamber_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0,
        chamber_ts_ip='10.89.133.9', chamber_ts_port=2018,
        chamber_model='simulator', chamber_name='Chamber1', chamber_sync_group='ChamberSync1'
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    #
    # ASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
        loadbox_ts_ip=None, loadbox_ts_start_port=0,
        loadbox_sync_gp='StackPwrSync1', loadbox_sync_gp_size=4,
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_assy(config, **station_details)
    #
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    cat3_stations.switch_sysbi(config, **station_details)
    #
    #
    # SYSASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Line 03 UABU', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
    )
    cat3_stations.switch_sysassy(config, **station_details)
    #
    #
    # SYSFT ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_sysft(config, **station_details)
    #
    #
    # DEBUG ---------------------------------------------------------
    station_details = dict(
        product_line='C3650',
        station='Station_A_01', uut_count=16,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.9', ts_start_port=2003,
    )
    cat3_stations.switch_debug(config, **station_details)
    #
    #

    # ==========================================================================================================================================================
    # C9300
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_03', uut_count=5,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0
    )
    cat3_stations.switch_pcbst(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        station='Station_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0,
        poe1_ts_ip='10.89.133.8', poe1_ts_start_port=2018,
        poe_sync_gp='PoESync1',
        poe_model='Edgar4', poe_mfgr='Reach',
    )
    cat3_stations.switch_pcbst(config, **station_details)
    #
    #
    # 2C ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.standard_switch_unittest'),
        station='Chamber_A_03', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0,
        chamber_ts_ip='10.89.133.56', chamber_ts_port=2018,
        chamber_model='simulator', chamber_name='Chamber3', chamber_sync_group='ChamberSync3'
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C9300.area_sequences.pcb2c.standard_switch_unittest'),
        station='Chamber_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
        psB_ts_ip=None, psB_ts_start_port=0,
        chamber_ts_ip='10.89.133.8', chamber_ts_port=2018,
        chamber_model='simulator', chamber_name='Chamber2', chamber_sync_group='ChamberSync2'
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    #
    # ASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_03', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
        loadbox_ts_ip=None, loadbox_ts_start_port=0,
        loadbox_sync_gp='StackPwrSync3', loadbox_sync_gp_size=4,
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_assy(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        station='Station_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
        loadbox_ts_ip=None, loadbox_ts_start_port=0,
        loadbox_sync_gp='StackPwrSync2', loadbox_sync_gp_size=4,
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_assy(config, **station_details)
    #
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_03', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    cat3_stations.switch_sysbi(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        station='Station_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    cat3_stations.switch_sysbi(config, **station_details)
    #
    #
    # SYSASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Line 03 UABU', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
    )
    cat3_stations.switch_sysassy(config, **station_details)
    #
    #
    # SYSFT ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_03', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
    )
    cat3_stations.switch_sysft(config, **station_details)
    station_details = dict(
        product_line='C9300',
        station='Station_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
    )
    cat3_stations.switch_sysft(config, **station_details)
    #
    #
    # DEBUG ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_03', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003,
    )
    cat3_stations.switch_debug(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        station='Station_A_02', uut_count=8,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.8', ts_start_port=2003,
        poe1_ts_ip='10.89.133.8', poe1_ts_start_port=2018,
        # poe2_ts_ip='10.89.133.8', poe2_ts_start_port=2016,
        # poe3_ts_ip='10.89.133.8', poe3_ts_start_port=2015,
        # poe4_ts_ip='10.89.133.8', poe4_ts_start_port=2014,
        poe_sync_gp='PoESync1',
        poe_share_ports=24,
        poe_model='Edgar4', poe_mfgr='Reach',
        fan_ts_ip='10.89.133.8', fan_ts_start_port=2011, fan_count=1,
    )
    cat3_stations.switch_debug(config, **station_details)

    # ==========================================================================================================================================================
    # C9300L
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
        psB_ts_ip=None, psB_ts_start_port=0
    )
    cat3_stations.switch_pcbst(config, **station_details)
    #
    #
    # 2C ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.standard_switch_unittest'),
        station='Chamber_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
        psB_ts_ip=None, psB_ts_start_port=0,
        chamber_ts_ip='10.89.133.56', chamber_ts_port=2018,
        chamber_model='simulator', chamber_name='Chamber3', chamber_sync_group='ChamberSync3'
    )
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    #
    # ASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
        loadbox_ts_ip=None, loadbox_ts_start_port=0,
        loadbox_sync_gp='StackPwrSync3', loadbox_sync_gp_size=4,
        psB_ts_ip=None, psB_ts_start_port=0,
    )
    cat3_stations.switch_assy(config, **station_details)
    #
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    cat3_stations.switch_sysbi(config, **station_details)
    #
    #
    # SYSASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Line 03 UABU', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
    )
    cat3_stations.switch_sysassy(config, **station_details)
    #
    #
    # SYSFT ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
    )
    cat3_stations.switch_sysft(config, **station_details)
    #
    #
    # DEBUG ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_03', uut_count=3,
        server_ip=server_ip, dwnld_server_ip=dwnld_server_ip,
        ts_ip='10.89.133.56', ts_start_port=2003 + 5,
    )
    cat3_stations.switch_debug(config, **station_details)

    return
def entsw_cat3_config():
    """
    :return:
    """
    show_version()

    config = lib.get_station_configuration()

    uut_count = 10  # temporary until the station is properly wired

    # ==================================================================================================================
    # C3850
    #
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='WS-C3850',
        station='Station_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN2,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=TS_START_PORT['2800'],
        psB_ts_ip='10.1.1.2',
        psB_ts_start_port=TS_START_PORT['2800'] + uut_count,
        poe1_ts_ip='10.1.1.2',
        poe1_ts_start_port=TS_START_PORT['2800'] + (uut_count * 2),
        poe2_ts_ip='10.1.1.2',
        poe2_ts_start_port=TS_START_PORT['2800'] + (uut_count * 3),
        poe_model='Edgar4',
        poe_mfgr='Reach')
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    # ==================================================================================================================
    # C9300
    #
    #
    # BST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        station='Station_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=TS_START_PORT['2800'],
        psB_ts_ip='10.1.1.2',
        psB_ts_start_port=TS_START_PORT['2800'] + uut_count,
        poe1_ts_ip='10.1.1.2',
        poe1_ts_start_port=TS_START_PORT['2800'] + (uut_count * 2),
        poe2_ts_ip='10.1.1.2',
        poe2_ts_start_port=TS_START_PORT['2800'] + (uut_count * 3),
        poe_model='Edgar4',
        poe_mfgr='Reach')
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    #
    # BST (Part1 + Part2) ---------------------------------------------------------
    station_details = dict(
        product_line='C9300',
        test_area='PCBDL',
        # TODO: develop BST split seq
        # seq_def=ApolloSeq(
        #     'apollo.scripts.entsw.cat3.C9300.area_sequences.pcbdl.pre',
        #     None,
        #     'apollo.scripts.entsw.cat3.C9300.area_sequences.pcbdl.standard_switch'),
        station='StationPart1_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=TS_START_PORT['2800'],
        psB_ts_ip='10.1.1.2',
        psB_ts_start_port=TS_START_PORT['2800'] + uut_count,
    )
    cat3_stations.switch_pcbdl(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)
    #
    station_details = dict(
        product_line='C9300',
        # TODO: develop BST split seq
        # seq_def=ApolloSeq(
        #     'apollo.scripts.entsw.cat3.C9300.area_sequences.pcbst.pre_auto',
        #     None,
        #     'apollo.scripts.entsw.cat3.C9300.area_sequences.pcbst.standard_switch_part2'),
        station='StationPart2_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.2',
        ts_start_port=TS_START_PORT['2800'],
        psB_ts_ip='10.1.1.2',
        psB_ts_start_port=TS_START_PORT['2800'] + uut_count,
        poe1_ts_ip='10.1.1.2',
        poe1_ts_start_port=TS_START_PORT['2800'] + (uut_count * 2),
        poe2_ts_ip='10.1.1.2',
        poe2_ts_start_port=TS_START_PORT['2800'] + (uut_count * 3),
        poe_model='Edgar4',
        poe_mfgr='Reach')
    cat3_stations.switch_pcbst(config, **station_details)

    # ==================================================================================================================
    # C9300L
    #
    #
    # BST ---------------------------------------------------------
    station_details = dict(product_line='C9300L',
                           station='Station_A_01',
                           uut_count=uut_count,
                           pid_cpn_list=PIDS_GEN3,
                           server_ip='10.79.202.249',
                           dwnld_server_ip='10.1.1.1',
                           ts_ip='10.1.1.4',
                           ts_start_port=TS_START_PORT['2900'],
                           psB_ts_ip='10.1.1.4',
                           psB_ts_start_port=TS_START_PORT['2900'] + uut_count,
                           poe1_ts_ip='10.1.1.5',
                           poe1_ts_start_port=[
                               '2003', '2005', '2007', '2009', '2011', '2013',
                               '2015', '2017', '2019', '2021'
                           ],
                           poe2_ts_ip='10.1.1.5',
                           poe2_ts_start_port=[
                               '2004', '2006', '2008', '2010', '2012', '2014',
                               '2016', '2018', '2020', '2022'
                           ],
                           fan_ts_ip='10.1.1.4',
                           fan_ts_start_port=TS_START_PORT['2900'] +
                           (uut_count * 3),
                           fan_count=4,
                           poe_model='Edgar3',
                           poe_mfgr='Reach')
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    # PCB2C ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Chamber_A_01',
        uut_count=16,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.21',
        ts_start_port=TS_START_PORT['2900'] + 8,
        chamber_ts_ip='10.1.1.21',
        chamber_ts_port=TS_START_PORT['2900'] + 1,
        chamber_model='watlow_yinhe',
        psB_ts_ip=None,
        psB_ts_start_port=0,
        chamber_name='Chamber1',
        chamber_sync_group='ChamberSync1',
        assign_abort_user=['steli2', 'bborel', 'rotian'],
    )
    cat3_stations.switch_pcb2c(config, **station_details)

    # PCBASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.4',
        ts_start_port=TS_START_PORT['2900'],
        psB_ts_ip='10.1.1.4',
        psB_ts_start_port=TS_START_PORT['2900'] + uut_count,
        fan_ts_ip='10.1.1.4',
        fan_ts_start_port=TS_START_PORT['2900'] + (uut_count * 3),
        fan_count=4,
    )
    cat3_stations.switch_pcbassy(config, **station_details)

    # PCBFT ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01',
        uut_count=uut_count,
        pid_cpn_list=PIDS_GEN3,
        server_ip='10.79.202.249',
        dwnld_server_ip='10.1.1.1',
        ts_ip='10.1.1.4',
        ts_start_port=TS_START_PORT['2900'],
        psB_ts_ip='10.1.1.4',
        psB_ts_start_port=TS_START_PORT['2900'] + uut_count,
        fan_ts_ip='10.1.1.4',
        fan_ts_start_port=TS_START_PORT['2900'] + (uut_count * 3),
        fan_count=4,
    )
    cat3_stations.switch_pcbft(config, **station_details)

    return
Beispiel #8
0
def c9300_config():
    config = lib.get_station_configuration()

    my_apollo_server_ip = '10.1.1.1'

    # C9300L
    #
    # BST & Debug: One PoE Slot ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='StationPoE_A_01',
        uut_count=1,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
        psB_ts_ip=None,
        psB_ts_start_port=0,
        poe1_ts_ip='10.1.1.3',
        poe1_ts_start_port=2006,
        poe2_ts_ip='10.1.1.3',
        poe2_ts_start_port=2007,
        poe_sync_gp='PoESync1',
        poe_model='Edgar4',
        poe_mfgr='Reach',
    )
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)
    #
    station_details = dict(
        product_line='C9300L',
        station='Station_A_02',
        uut_count=4,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
        psB_ts_ip=None,
        psB_ts_start_port=0,
    )
    cat3_stations.switch_pcbst(config, **station_details)
    cat3_stations.switch_debug(config, **station_details)

    # 2C ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        seq_def=ApolloSeq(
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.pre',
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.pre2',
            'apollo.scripts.entsw.cat3.C9300L.area_sequences.pcb2c.standard_switch_unittest'
        ),
        station='ChamberSimulated_A_01',
        uut_count=4,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
        psB_ts_ip=None,
        psB_ts_start_port=0,
        chamber_ts_ip='10.1.1.3',
        chamber_ts_port=2018,
        chamber_model='simulator',
        chamber_name='Chamber3',
        chamber_sync_group='ChamberSync1')
    cat3_stations.switch_pcb2c(config, **station_details)
    #
    #
    # ASSY ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01',
        uut_count=4,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
        psB_ts_ip=None,
        psB_ts_start_port=0,
    )
    cat3_stations.switch_pcbassy(config, **station_details)
    #
    #
    # FST ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01',
        uut_count=4,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
    )
    cat3_stations.switch_pcbft(config, **station_details)
    #
    #
    # DF SYS Final ---------------------------------------------------------
    station_details = dict(
        product_line='C9300L',
        station='Station_A_01',
        uut_count=4,
        server_ip=my_apollo_server_ip,
        dwnld_server_ip=my_apollo_server_ip,
        ts_ip='10.1.1.3',
        ts_start_port=2002,
    )
    cat3_stations.switch_sysft(config, **station_details)