From e3401ca38622e42e44a4e37a3b2533d03227e232 Mon Sep 17 00:00:00 2001 From: Menno Norden <norden@astron.nl> Date: Fri, 23 Nov 2018 08:27:42 +0000 Subject: [PATCH] Task #1411: New script to check HBA-FE version (current V11) --- .gitattributes | 1 + LCU/StationTest/hbaversion.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 LCU/StationTest/hbaversion.sh diff --git a/.gitattributes b/.gitattributes index 6b3e29c0407..50ee33fa6cb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1876,6 +1876,7 @@ LCU/StationTest/gold/xst_160.gold -text LCU/StationTest/gold/xst_200_even.gold -text LCU/StationTest/gold/xst_200_odd.gold -text LCU/StationTest/hbacontrol.txt eol=lf +LCU/StationTest/hbaversion.sh -text LCU/StationTest/i2c_spu.py eol=lf LCU/StationTest/i2c_td.py eol=lf LCU/StationTest/ledcheck.sh eol=lf diff --git a/LCU/StationTest/hbaversion.sh b/LCU/StationTest/hbaversion.sh new file mode 100644 index 00000000000..9173d1d4e3f --- /dev/null +++ b/LCU/StationTest/hbaversion.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# +# check the modem software version of the HBA-FE unit. +# modified for international and national +# version 10 HBA-FE is default on +# version 11 HBA-FE is default off (from PL610 2016 onwards) +# only check on element one in each tile +# 23-11-2018, M.J.Norden + +let rspboards=`sed -n 's/^\s*RS\.N_RSPBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` +let nrcus=8*$rspboards + +version=11 + + +if [ $nrcus -eq 96 ] ; then + echo "HBA-FE modem version V-$version check national station" + sleep 2 + python verify.py --brd rsp0 --fpga blp0 --te tc/hba_server.py --server 2 --server_access uc --server_reg version --server_func gb --data $version + + python verify.py --brd rsp0,rsp1,rsp2,rsp3,rsp4,rsp5,rsp6,rsp7,rsp8,rsp9,rsp10,rsp11 --fpga blp0,blp1,blp2,blp3 --te tc/hba_server.py --server 1 --server_access uc --server_reg version --server_func gb --data $version +else + echo "HBA-FE modem version V-$version check international station" + sleep 2 + python verify.py --brd rsp0,rsp1,rsp2,rsp3,rsp4,rsp5,rsp6,rsp7,rsp8,rsp9,rsp10,rsp11,rsp12,rsp13,rsp14,rsp15,rsp16,rsp17,rsp18,rsp19,rsp20,rsp21,rsp22,rsp23 --fpga blp0,blp1,blp2,blp3 --te tc/hba_server.py --server 1 --server_access uc --server_reg version --server_func gb --data $version +fi + + -- GitLab