From d2dca33e07201f382dff6e16acc342e1fe541c12 Mon Sep 17 00:00:00 2001 From: Menno Norden <norden@astron.nl> Date: Mon, 7 Nov 2011 11:14:22 +0000 Subject: [PATCH] task #1723: new version --- .gitattributes | 2 +- LCU/StationTest/test/envcontroltest/isEcLib.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 LCU/StationTest/test/envcontroltest/isEcLib.py diff --git a/.gitattributes b/.gitattributes index 706fe337e79..4f80fbf9ef7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1115,7 +1115,7 @@ LCU/StationTest/test/beamformertest/beamformertest_LBH_RCU96.sh eol=lf LCU/StationTest/test/beamformertest/beamformertest_LBL_RCU96.sh eol=lf LCU/StationTest/test/beamformertest/beamformertest_splitter.sh eol=lf LCU/StationTest/test/beamformertest/hba0_hba1_azel.sh eol=lf -LCU/StationTest/test/envcontroltest/isEcLib.py -text +LCU/StationTest/test/envcontroltest/isEcLib.py eol=lf LCU/StationTest/test/envcontroltest/isReset48V.py -text LCU/StationTest/test/envcontroltest/isStatus.py -text LCU/StationTest/test/envcontroltest/nlEcLib.py -text diff --git a/LCU/StationTest/test/envcontroltest/isEcLib.py b/LCU/StationTest/test/envcontroltest/isEcLib.py old mode 100644 new mode 100755 index ab64deb43e0..8e4152e684e --- a/LCU/StationTest/test/envcontroltest/isEcLib.py +++ b/LCU/StationTest/test/envcontroltest/isEcLib.py @@ -22,6 +22,7 @@ class EC: EC_VERSION = 5 EC_SET_HEATER = 17 EC_RESET_48 = 22 + EC_RESET_LCU = 27 PWR_OFF = 0 PWR_ON = 1 @@ -147,6 +148,12 @@ class EC: (cmdId, status, PL) = self.recvAck() self.setInfo('PowerReset 48V') + #--------------------------------------- + def resetLCU(self): + self.sendCmd(self.EC_RESET_LCU, 0, 0) + (cmdId, status, PL) = self.recvAck() + self.setInfo('PowerReset LCU') + #--------------------------------------- def setHeater(self, mode=0): self.sendCmd(self.EC_SET_HEATER, -1, mode) @@ -213,3 +220,4 @@ class EC: (cmdId, status, PL) = self.recvAck() self.addInfo('Power: 48V = %s, LCU = %s' %(state[(PL[28] & 1)], state[(PL[28] >> 1)])) + -- GitLab