From 49ed366e83818ac5ce8b830a41d94b9420eb94bb Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Fri, 23 Jun 2017 10:55:11 +0000
Subject: [PATCH] Added read UniBoard sensors and ADU temperatures.

---
 applications/apertif/commissioning/dish_status.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/applications/apertif/commissioning/dish_status.sh b/applications/apertif/commissioning/dish_status.sh
index 01276c9023..25e0c0152a 100755
--- a/applications/apertif/commissioning/dish_status.sh
+++ b/applications/apertif/commissioning/dish_status.sh
@@ -112,6 +112,20 @@ else
         exit 1
     fi
 
+    ###############################################################################
+
+    # read Uniboard sensors per type
+    python $UPE/peripherals/util_unb_sens.py -v 3 --unb $UNBS --fn 0:3 --bn 0:3 -n 1  # FPGA temperatures
+    python $UPE/peripherals/util_unb_sens.py -v 3 --unb $UNBS --fn 0:3 --bn 0:3 -n 2  # ETH temperatures
+    python $UPE/peripherals/util_unb_sens.py -v 3 --unb $UNBS --fn 0:3 --bn 0:3 -n 3  # Current
+    python $UPE/peripherals/util_unb_sens.py -v 3 --unb $UNBS --fn 0:3 --bn 0:3 -n 4  # Voltage
+    python $UPE/peripherals/util_unb_sens.py -v 3 --unb $UNBS --fn 0:3 --bn 0:3 -n 5  # Power = Current * Voltage
+    
+    # read ADU temperatures
+    python $UPE/peripherals/util_adu_i2c_commander.py -v 3 --unb $UNBS --bn 0:3 --sp 0:3 -n 0
+
+    ###############################################################################
+
     # PPS stable? (Pre-read)
     python $UPE/peripherals/util_ppsh.py --unb $UNBS --bn 0:3 -n 8 >/dev/null 2>&1
     sleep 2
-- 
GitLab