Vacuum DAQ for the old Raspberry Pi system
Contents
List of Raspberry Pi
IP |
Port |
Channel |
172.16.34.180 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_X_IXA |
172.16.34.181 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_Y_IYA |
172.16.34.182 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_Y_15 |
172.16.34.183 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_X_15 |
172.16.34.184 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_X_EXGV |
172.16.34.184 |
/dev/ttyUSB1 |
K1:VAC-PRESSURE_X_EXA2 |
172.16.34.184 |
/dev/ttyUSB2 |
K1:VAC-PRESSURE_X_EXA1 |
172.16.34.185 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_Y_EYGV |
172.16.34.187 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_CS_BSSR2 |
172.16.34.187 |
/dev/ttyUSB1 |
K1:VAC-PRESSURE_CS_PR2 |
172.16.34.187 |
/dev/ttyUSB3 |
K1:VAC-PRESSURE_CS_PR3 |
172.16.34.189 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_X_EXT |
172.16.34.189 |
/dev/ttyUSB1 |
K1:VAC-PRESSURE_X_EXC |
172.16.34.190 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_Y_EYT |
172.16.34.193 |
/dev/ttyUSB0 |
K1:VAC-PRESSURE_CS_OMMTGV |
172.16.34.193 |
/dev/ttyUSB1 |
K1:VAC-PRESSURE_CS_SRMGV |
DAQ Software
System diagram
[ CC10.py @client_1 ] --(5000/tcp)--> | CC10Listener.py | | | --(Serial)--> [ CC10 device ] [ CC10.py @client_2 ] --(5000/tcp)--> | @raspberrypi |
System Component
- CC10Listener.py
- Server application launched on each Raspberry Pi
pi@raspberrypi: Documents/bin/CC10Listener.py
controls@DGS: /users/DAQ/EpicsDAQ/bin/CC10Listener.py
- Managed by systemd-user
pi@raspberrypi:~ $ systemctl --user status CC10Listener.service ● CC10Listener.service - CC10Listener Loaded: loaded (/home/pi/.config/systemd/user/CC10Listener.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2026-01-28 13:11:12 JST; 20h ago Process: 21836 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Main PID: 21839 (python3) CGroup: /user.slice/user-1000.slice/user@1000.service/CC10Listener.service └─21839 /usr/bin/python3 /home/pi/Documents/bin/CC10Listener.py --ipaddr 172.16.34.189 --port 5000
- Service control
pi@raspberrypi:~ $ systemctl --user {start,stop,restart,enable,disable} CC10Listener.service
- Server side logs
pi@raspberrypi:~ $ journalctl --user-unit CC10Listener.service -- Logs begin at Wed 2026-01-28 07:07:38 JST. -- Jan 29 10:31:04 raspberrypi python3[21839]: [2026/01/29 10:30:18] Read devices from 172.16.33.11 Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB0 2.5e-05 b'\x020S1\r\x020S2505\r' Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB1 1.3e-05 b'\x020S1\r\x020S1305\r' Jan 29 10:31:04 raspberrypi python3[21839]: [2026/01/29 10:30:34] Read devices from 172.16.33.39 Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB1 1.3e-05 b'\x020S1\r\x020S1305\r' Jan 29 10:31:04 raspberrypi python3[21839]: [2026/01/29 10:30:34] Read devices from 172.16.33.39 Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB0 2.5e-05 b'\x020S1\r\x020S2505\r' Jan 29 10:31:04 raspberrypi python3[21839]: [2026/01/29 10:30:48] Read devices from 172.16.33.11 Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB0 2.5e-05 b'\x020S1\r\x020S2505\r' Jan 29 10:31:04 raspberrypi python3[21839]: /dev/ttyUSB1 1.3e-05 b'\x020S1\r\x020S1305\r'
- Server application launched on each Raspberry Pi
- CC10.py
- Client application launched on k1script1
controls@DGS: /users/DAQ/EpicsDAQ/bin/CC10.py
- Managed by crontab
controls@k1script1:~ $ crontab -l * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 15 > /tmp/crontest-cc10.log 2>&1 * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
- Client side logs
controls@k1script1:~$ cat /tmp/crontest-cc10.log [2026/01/29 10:43:19] Write to EPICS K1:VAC-PRESSURE_FLAG: 0.0 => 0 K1:VAC-PRESSURE_X_IXA: 2.2e-05 => 2.2e-05 K1:VAC-PRESSURE_Y_IYA: 2.6e-05 => 2.6e-05 K1:VAC-PRESSURE_Y_15: 9.3e-07 => 9.3e-07 K1:VAC-PRESSURE_X_15: 1e-06 => 1e-06 K1:VAC-PRESSURE_X_EXGV: 9.9e-06 => 9.9e-06 K1:VAC-PRESSURE_X_EXA2: 1.9e-05 => 1.9e-05 K1:VAC-PRESSURE_X_EXA1: 9.5e-06 => 9.5e-06 K1:VAC-PRESSURE_Y_EYGV: 1.6e-05 => 1.6e-05 K1:VAC-PRESSURE_CS_BSSR2: 3.3e-05 => 3.3e-05 K1:VAC-PRESSURE_CS_PR2: 2.6e-05 => 2.6e-05 K1:VAC-PRESSURE_CS_PR3: 2.6e-05 => 2.6e-05 K1:VAC-PRESSURE_X_EXT: 2.5e-05 => 2.5e-05 K1:VAC-PRESSURE_X_EXC: 1.3e-05 => 1.3e-05 K1:VAC-PRESSURE_Y_EYT: 4.7e-05 => 4.7e-05 K1:VAC-PRESSURE_CS_OMMTGV: 4.8e-05 => 4.8e-05 K1:VAC-PRESSURE_CS_SRMGV: 3.4e-05 => 3.3e-05
- Client application launched on k1script1
Channel definition
- DAQ-ed VAC channels are available in /opt/rtcds/kamioka/k1/chans/daq/K1EDCU_VAC_GAUGE.ini.
- EPICS records in DGS network are defined by vac_ioc@k1script1
controls@k1script1:~$ sudo supervisorctl status vac_ioc vac_ioc RUNNING pid 762, uptime 314 days, 1:32:06 controls@k1script1:~$ cat /etc/supervisor/conf.d/k1vac.conf [program:vac_ioc] command=bash -c 'cd /opt/rtcds/kamioka/k1/target/k1vac/iocBoot/iock1vac/ && ./st.cmd' autorestart=true autostart=true redirect_stderr=true stdout_logfile=/opt/rtcds/kamioka/k1/target/k1vac/vac_ioc.log
