/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mxgstest.sections; import mxgsegse.MXGSEGSE; import mxgstest.MxgsTestException; import mxgstest.Output; import mxgstest.egse.Basic; import mxgstest.egse.Power; import mxgstest.mxgs.Dpu; import mxgstest.mxgs.Hk; /** * * @author egse */ public class Section5_08 { MXGSEGSE egse; Output output; public Section5_08(MXGSEGSE egse, Output output) throws Throwable { this.egse = egse; this.output = output; } Dpu dpu = new Dpu(); Power pow = new Power(); Basic bas = new Basic(); Hk hke = new Hk(); public void step5_8_1() throws Throwable { try{ output.printSubSectionStart("5.8.1", "DPU Power On"); output.printStepStart("5.8.1-1", "DPU Power On"); pow.powerOnDPU(egse); bas.waitForBoot(egse); pow.verifySupplyDPU(egse, 0.31, 0.10); output.printStepStart("", "Monitored HK"); hke.verifyMonHKReceiving(egse, 5); Thread.sleep(3000); hke.verifyMonHKUtcTime(egse); String[][] MonHK = { {"UTC", "0", "0"}, {"Alive Counter", "0", "0"}, {"Boot Status", "67", "0"}, {"SW Mode", "0", "0"}, {"SW Submode", "0", "0"}, {"Errors and Warnings", "0", "0"} }; hke.verifyMonHKarr(egse, 30, MonHK, 7); } catch(MxgsTestException e) { output.printStepStatus("5.8.1", false, e.getMessage()); throw e; } output.printStepStatus("5.8.1", true); output.printSubSectionEnd("5.8.1"); } public void step5_8_2() throws Throwable { try{ output.printSubSectionStart("5.8.2", "Enter Configuration Mode"); output.printStepStart("5.8.2-1","Enter Configuration Mode"); dpu.sendEnterConfigurationModeTc(egse); Thread.sleep(5000); output.printStepStart("", "Monitored HK"); String[][] MonHK1 = { {"SW Mode", "1", "0"}, {"SW Submode", "0", "0"} }; hke.verifyMonHKarr(egse, 40, MonHK1, 2); } catch(MxgsTestException e) { output.printStepStatus("5.8.2", false, e.getMessage()); throw e; } output.printStepStatus("5.8.2", true); output.printSubSectionEnd("5.8.2"); } public void step5_8_3() throws Throwable { try{ output.printSubSectionStart("5.8.3", "Disable Start Cycle Requests"); output.printStepStart("5.8.3-1","Disable Start Cycle Requests"); // egse.dhpu.setStartCycleRequestTcName(null); output.printStepStart("5.8.3-2","Wait 10 TCPs"); Thread.sleep(10000); bas.dontThrowAnything(); } catch(MxgsTestException e) { output.printStepStatus("5.8.3", false, e.getMessage()); throw e; } output.printStepStatus("5.8.3", true); output.printSubSectionEnd("5.8.3"); } public void step5_8_4() throws Throwable { try{ output.printSubSectionStart("5.8.4", "Enable Start Cycle Requests"); output.printStepStart("5.8.4-1","Enable Start Cycle Requests"); // egse.dhpu.setStartCycleRequestTcName("StartCycleRequestTC"); output.printStepStart("5.8.4-2","Verify Boot Mode"); Thread.sleep(5000); output.printStepStart("", "Monitored HK"); String[][] MonHK1 = { {"SW Mode", "0", "0"}, {"SW Submode", "0", "0"} }; hke.verifyMonHKarr(egse, 40, MonHK1, 2); } catch(MxgsTestException e) { output.printStepStatus("5.8.4", false, e.getMessage()); throw e; } output.printStepStatus("5.8.4", true); output.printSubSectionEnd("5.8.4"); } public void step5_8_5() throws Throwable { try{ output.printSubSectionStart("5.8.5", "Power Off DPU"); output.printStepStart("5.8.5-1", "Power Off DPU"); pow.powerOffDPU(egse); Thread.sleep(4000); pow.verifySupplyDPU(egse, 0, 0.01); } catch(MxgsTestException e) { output.printStepStatus("5.8.5", false, e.getMessage()); throw e; } output.printStepStatus("5.8.5", true); output.printSubSectionEnd("5.8.5"); } }