As the series work about the improvement of vacuum DAQ, I improved behavior of a process for making web plot and succeeded to remove serial communication errors on DAQ process.
Fig.1 shows the error rate before (left hand side of crosshair) and after (right hand side) this improvement.
Vertical axis shows the error code, so 0 means no error and non-zero value means presence of some kind of error.
Though there were several error in hour before this work, there is no error in recent 4 hours after the improvement.
As I reported in klog#32674, DAQ process and making web plot conflicted (vacuum.sh) with timing accessing serial port because of unmanaged execution timing of vacuum.sh. So I modified the script to making the web plot. In the old implementation, accessing the serial port was executed by an infinite while loop and the sleep function and this implementation induces ambiguity of execution timing. For improving this situation, I anchored the execution timing of this script to the system time by using crontab.
In the past, RaspPi sometimes became too slow its response due to overload, so I also changed the method of access to the server application for CC-10 with the same manner as the DAQ process, instead of using ssh access. (Because RaspPi cannot uses AES-NI, frequent SSH access is so inefficient.) This change reduced the execution time by about ~1/4 (~16s -> ~4s), which should be sufficient for periodical execution even with the cadence of less than a minute.
Finally, I noticed that the server on which vacuum.sh is executed was not synchronized with the reference time, so I started ntpd and configured it to start automatically when the OS starts up. Because this server had also too old DNS information same as klog#32689, ntpd wasn't able to access the time server. So I set latest DNS information by NetworkManager.