From dd8b514d26548e5f2f9153fec97b71080e4d621e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20Bron=C3=A8s?=
<romain.broucquart@synchrotron-soleil.fr>
Date: Fri, 1 Dec 2023 17:26:27 +0100
Subject: [PATCH] fofb-opcua relaunch fofb-init upon restart
---
recipes-app/fofb-opcua-server/files/fofb-opcua-server.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/recipes-app/fofb-opcua-server/files/fofb-opcua-server.sh b/recipes-app/fofb-opcua-server/files/fofb-opcua-server.sh
index c2c87ff..478e2b8 100755
--- a/recipes-app/fofb-opcua-server/files/fofb-opcua-server.sh
+++ b/recipes-app/fofb-opcua-server/files/fofb-opcua-server.sh
@@ -26,10 +26,9 @@ start() {
# Wait for server started
(tail -F -n0 $LOG_FILE & ) | grep -q "All application modules are running"
- # Reset the FPGA
- echo "Reset FPGA and reconfigure" >> $LOG_FILE
- /etc/init.d/fw_plreset.sh >> $LOG_FILE
- fofb-configurator --config /opt/fofb/cfg/config_register --dmap /opt/fofb/opcua-server/devices.dmap >> $LOG_FILE
+ # Restart FPGA application because server writes all zeros
+ echo "Restart FPGA application" >> $LOG_FILE
+ /etc/init.d/fofb-init.sh start
### Create the lock file ###
echo "started" > $LOCK_FILE
--
GitLab