A complete review of the ITF_LOCK code is ongoing to spot pieces of code that would trigger delays respect the 1sec frame generation cycle and thus data loss.
Checking ITF_LOCK and FbmAlp log files it was possible to confirm that the recent adoption of a blocking call for the LNFS driving is creating part of the data missing:
2017-11-17T08:52:17.761Z ITF_LOCK Reached LOW_NOISE_2 configuration for NE/WE/BS actuation
Sent AMPL 1 0 1 command to LNFS
Sent AMPL 1 -1 1 command to LNFS
Sent AMPL 1 -2 1 command to LNFS
Sent AMPL 1 -3 1 command to LNFS
Sent AMPL 1 -4 1 command to LNFS
Sent AMPL 1 -5 1 command to LNFS
Sent AMPL 1 -6 1 command to LNFS
Sent AMPL 1 -7 1 command to LNFS
Sent AMPL 1 -8 1 command to LNFS
Sent AMPL 1 -9 1 command to LNFS
Sent AMPL 1 -10 1 command to LNFS
Sent AMPL 1 -11 1 command to LNFS
Sent AMPL 1 -12 1 command to LNFS
Sent AMPL 1 -13 1 command to LNFS
Sent AMPL 1 -14 1 command to LNFS
Sent AMPL 1 -15 1 command to LNFS
2017-11-17T08:52:32.221Z ITF_LOCK EDGE: LOW_NOISE_2->ACQUIRE_LOW_NOISE_3
---------------------------------------------------------
2017-11-17-08h52m24-UTC>WARNING-FdFrMrgr: Could not wait longer for frame parts, output 1194943953.0, nSources=26 first:FbsDet
2017-11-17-08h52m24-UTC>WARNING-FdFrMrgr:1194943953.0 frames from ITF_LOCK start to be missing
2017-11-17-08h52m24-UTC>WARNING-FdFrMrgr:1194943953.0 frames from ITF_LOCK start to be missing
So I have just step back on the use of the non-blocking Popen (a more appropriate solution will be soon implemented)
#self.lnfs = subprocess.check_call(set_lnfs_script.split())
self.lnfs = Popen(set_lnfs_script.split())
Also another identified piece of code was the action_multiple_QPD() function. In action_multiple_QPD() multiple threads are launched, in each thread a blocking subprocess.call() is used and then a blocking join() call is used while waiting for the end of all threads.
This can create a delay of several seconds because the underlying actions correspond to telnet connections.
A new, non blocking implementation of the action_multiple_QPD() function has been made into an offline version of the code and will be tested as soon as Commissioning activities allow (since it represent a more invasive modification that need to be checked separately).