From a88f4e03c59a2feaaa1dba3c6dfc4384d4d03c5e Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Tue, 24 Jul 2018 14:42:54 +0000
Subject: [PATCH] In MArch 2018 the workaround to read BSN monitor twice was
 fixed by setting g_mesh_sync_timeout = 256 M > 1.024 sec in
 node_apertif_unb1_fn_beamformer.vhd.

---
 applications/apertif/commissioning/dish_status.sh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/applications/apertif/commissioning/dish_status.sh b/applications/apertif/commissioning/dish_status.sh
index 0e443692c3..54abff5efe 100755
--- a/applications/apertif/commissioning/dish_status.sh
+++ b/applications/apertif/commissioning/dish_status.sh
@@ -173,12 +173,9 @@ else
 
     ###############################################################################
     # Get number of BSN timeouts
-    # . FIXME Read 2 times as workaround for too tight BSN timeout parameter in VHDL
     ###############################################################################
-    NOF_BSN_TIMEOUTS_0=$(python $UPE/peripherals/util_bsn_monitor.py --unb $UNBS --fn 0:3 -n 1 -r 0 | grep -c "timeout = 1")
-    sleep 1.024
-    NOF_BSN_TIMEOUTS_1=$(python $UPE/peripherals/util_bsn_monitor.py --unb $UNBS --fn 0:3 -n 1 -r 0 | grep -c "timeout = 1")
-    if [ "$NOF_BSN_TIMEOUTS_0" == "0" ] || [ "$NOF_BSN_TIMEOUTS_1" == "0" ]; then
+    NOF_BSN_TIMEOUTS=$(python $UPE/peripherals/util_bsn_monitor.py --unb $UNBS --fn 0:3 -n 1 -r 0 | grep -c "timeout = 1")
+    if [ "$NOF_BSN_TIMEOUTS" == "0" ]; then
         echo dish_status.sh: Passed - Found no BSN timeouts 
     else
         echo dish_status.sh: Error - one or more BSN timeouts found
@@ -187,9 +184,9 @@ else
 
     NOF_BSN_SOPS=$(python $UPE/peripherals/util_bsn_monitor.py --unb $UNBS --fn 0:3 -n 1 -r 0 | grep -c "nof_sop = 800000")
     if [ "$NOF_BSN_SOPS" == "$NOF_BSN_SOPS_EXPECTED" ]; then
-        echo dish_status.sh: Passed - Found 800000 SOPs per FN BSN monitor
+        echo dish_status.sh: Passed - Found 800000 SOPs per Front Node BSN monitor
     else
-        echo "dish_status.sh: Error - Not enough SOPs for BSN monitor(s)"
+        echo "dish_status.sh: Error - Not enough SOPs for Front Node BSN monitor(s)"
         exit 1
     fi 
 
-- 
GitLab