Esempio n. 1
0
def rxInit():
    scriptUtilities.openPorts()
	
    # Initialize
    # set atten
    scriptUtilities.setAtten(defaultAtten)

    # setup each active com ports     
    comIdx = 0	
    for usePort in scriptGlobals.DutMainPortsList:	
	if (usePort < 0):
	    comIdx = comIdx + 1
	    continue
	myPort = scriptGlobals.DutPortManagersList[comIdx]
	myPort.comm.RxCtrl.SaveTestSetup("RX COM Port","Com" + `usePort`)
	myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number",scriptGlobals.DutNamesList[comIdx])
	myPort.comm.LowPowerParams.Mode = 0
	myPort.comm.RxCtrl.SetPowerMode(False)
	myPort.comm.Toggle4eWakeupPort()
	myPort.comm.RxCtrl.PollSWVersion()
	myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath)	
	myPort.comm.RxCtrl.SetValidatePostionFlag(True)
	myPort.comm.RxCtrl.OpenChannel("SSB")
	myPort.comm.RxCtrl.OpenChannel("STAT") 		
	
	comIdx = comIdx + 1    
    # Send cold so SGEE would work
    scriptUtilities.init("COLD")
Esempio n. 2
0
def rxInit():
    scriptUtilities.openPorts()

    # set atten
    scriptUtilities.setAtten(defaultAtten)

    # setup each active com ports
    comIdx = 0
    for usePort in scriptGlobals.DutMainPortsList:
        if (usePort < 0):
            comIdx = comIdx + 1
            continue
        myPort = scriptGlobals.DutPortManagersList[comIdx]
        myPort.comm.RxCtrl.SaveTestSetup("RX COM Port", "Com" + ` usePort `)
        myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number",
                                         scriptGlobals.DutNamesList[comIdx])

        myPort.comm.RxCtrl.PollSWVersion()
        myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath)
        myPort.comm.RxCtrl.SetValidatePostionFlag(True)
        myPort.comm.RxCtrl.OpenChannel("SSB")
        myPort.comm.RxCtrl.OpenChannel("STAT")

        comIdx = comIdx + 1
    # Send cold so SGEE would work
    scriptUtilities.init("COLD")
def rxInit():
    scriptUtilities.openPorts()

    # Initialize
    # set atten
    scriptUtilities.setAtten(defaultAtten)

    # setup each active com ports
    comIdx = 0
    for usePort in scriptGlobals.DutMainPortsList:
        if usePort < 0:
            comIdx = comIdx + 1
            continue
        myPort = scriptGlobals.DutPortManagersList[comIdx]
        myPort.comm.RxCtrl.SaveTestSetup("RX COM Port", "Com" + ` usePort `)
        myPort.comm.RxCtrl.SaveTestSetup("RX Serial Number", scriptGlobals.DutNamesList[comIdx])

        myPort.comm.RxCtrl.PollSWVersion()
        myPort.comm.ReadAutoReplyData(scriptGlobals.ScriptConfigFilePath)
        myPort.comm.RxCtrl.SetValidatePostionFlag(True)
        myPort.comm.RxCtrl.OpenChannel("SSB")
        myPort.comm.RxCtrl.OpenChannel("STAT")

        comIdx = comIdx + 1
    scriptUtilities.init()
Esempio n. 4
0
            # scriptSim.simSetAllChanAtten(scriptGlobals.SimInitialAtten)
            scriptSim.simRun()
    scriptGlobals.MainFrame.Delay(5)
    if (testContinue == True):
        # set to high level for factory reset
        if (scriptGlobals.SignalType.ToLower() == "dbhz"):
            defaultAtten = Utilities.HelperFunctions.GetCalibrationAtten(
                scriptGlobals.CableLoss, 40, scriptGlobals.SignalType)
        elif (scriptGlobals.SignalType.ToLower() == "dbm"):
            defaultAtten = Utilities.HelperFunctions.GetCalibrationAtten(
                scriptGlobals.CableLoss, -130, scriptGlobals.SignalType)
        else:
            print "Signal Type is not correct"
            defaultAtten = 0
        # set atten
        scriptUtilities.setAtten(defaultAtten)
        scriptGlobals.getTTFFs = []
        scriptGlobals.getNavs = []

        rxInit()

        # wait for nav
        waitTTFFLoops = 0
        while (waitTTFFLoops < 13):
            if (scriptUtilities.waitForNav() == True):
                break
            else:
                mainFrame.Delay(10)
            waitTTFFLoops = waitTTFFLoops + 1
            mainFrame.Delay(10)
Esempio n. 5
0
	else:
	    scriptSim.simLoad(scriptGlobals.SimFile)
	    # scriptSim.simSetAllChanAtten(scriptGlobals.SimInitialAtten)
	    scriptSim.simRun()
    scriptGlobals.MainFrame.Delay(5)
    if (testContinue == True):	
	# set to high level for factory reset
	if (scriptGlobals.SignalType.ToLower() == "dbhz"):
	    defaultAtten = Utilities.HelperFunctions.GetCalibrationAtten(scriptGlobals.CableLoss,40,scriptGlobals.SignalType)
	elif (scriptGlobals.SignalType.ToLower() == "dbm"):
	    defaultAtten = Utilities.HelperFunctions.GetCalibrationAtten(scriptGlobals.CableLoss,-130,scriptGlobals.SignalType)
	else:
	    print "Signal Type is not correct"
	    defaultAtten = 0
	# set atten
	scriptUtilities.setAtten(defaultAtten) 
	atten = defaultAtten
	scriptGlobals.getTTFFs = []
	scriptGlobals.getNavs = []
	
	rxInit()
	Now = time.localtime(time.time())
	timeNowStr = time.strftime("%m%d%Y_%H%M%S", Now)
	comIdx = 0	
	for usePort in scriptGlobals.DutMainPortsList:	
	    if (usePort < 0):
		comIdx = comIdx + 1
		continue
	    
	    myPort = scriptGlobals.DutPortManagersList[comIdx]
	    myPort.comm.RxCtrl.PollSWVersion()
Esempio n. 6
0
                mainFrame.SimCtrl.EndScenario(False)
                mainFrame.SimCtrl.SelectScenario(simFilePath)
                mainFrame.Delay(5)
                if (test == 0):
                    # Sensitivity test set margin
                    for chan in range(0, 4):
                        mainFrame.SimCtrl.SetPowerLevel(
                            "-", -19 + atten, chan, True, False, True)
                    # change SPAz
                    if (SPAzAtten != 0):
                        SPAzAtten = 0
                        print "Bring SPAz atten to %d dB" % (SPAzAtten)
                        scriptGlobals.MainFrame.SpazCtrl.WriteSPAzAtten(
                            SPAzAtten)
                else:
                    scriptUtilities.setAtten(atten)
                    # change SPAz
                    if (SPAzAtten == 0):
                        SPAzAtten = 20
                        print "Bring SPAz atten to %d dB" % (SPAzAtten)
                        scriptGlobals.MainFrame.SpazCtrl.WriteSPAzAtten(
                            SPAzAtten)

                mainFrame.SimCtrl.RunScenario()

                currentTestRun = "%s %s Margin %s" % (
                    aidingName[aidingTypeIndex], testName[test], marginStr)
                General.clsGlobal.CurrentRunningTest = currentTestRun
                print "Current Test: %s" % (currentTestRun)

                comIdx = 0
Esempio n. 7
0
		logString = "Loading: " + simFilePath
		scriptUtilities.logApp("*", logString)
		mainFrame.SimCtrl.EndScenario(False)
		mainFrame.SimCtrl.SelectScenario(simFilePath)
		mainFrame.Delay(5)
		if (test == 0):
		    # Sensitivity test set margin
		    for chan in range(0,4):			
			mainFrame.SimCtrl.SetPowerLevel("-",-19+atten,chan,True,False,True)
		    # change SPAz
		    if (SPAzAtten != 0):
			SPAzAtten = 0
			print "Bring SPAz atten to %d dB" % (SPAzAtten)
			scriptGlobals.MainFrame.SpazCtrl.WriteSPAzAtten(SPAzAtten)
		else:
		    scriptUtilities.setAtten(atten)
		    # change SPAz
		    if (SPAzAtten == 0):
			SPAzAtten = 20
			print "Bring SPAz atten to %d dB" % (SPAzAtten)
			scriptGlobals.MainFrame.SpazCtrl.WriteSPAzAtten(SPAzAtten)
		    
		mainFrame.SimCtrl.RunScenario()	
		
		currentTestRun = "%s %s Margin %s" % (aidingName[aidingTypeIndex],testName[test], marginStr)	
		General.clsGlobal.CurrentRunningTest = currentTestRun
		print "Current Test: %s" %(currentTestRun)		
		
		comIdx = 0 
		for usePort in scriptGlobals.DutMainPortsList:
		    if (usePort < 0):