Skip to content
Snippets Groups Projects
Commit e3401ca3 authored by Menno Norden's avatar Menno Norden
Browse files

Task #1411: New script to check HBA-FE version (current V11)

parent 93fdebb3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment