Files
quectel-rgmii-toolkit/socat-at-bridge/smd7_tty2_systemd_units/socat-smd7.service
iamromulan 369e3ad673 Add new files for 2nd Socat bridge
-Create a new set of systemd units to chose from for the creation of ttyIN2 and ttyOUT2 for a 2nd separate AT channel
-Create a new script that kills the smd7 port bridge when smd7 is needed for use by ttyOUT or ttyOUT2
2024-02-26 22:43:47 -05:00

14 lines
365 B
Desktop File

[Unit]
Description=Socat Serial Emulation for smd7
After=ql-netd.service
[Service]
ExecStart=/usrdata/socat-at-bridge/socat-armel-static -d -d pty,link=/dev/ttyIN2,raw,echo=0 pty,link=/dev/ttyOUT2,raw,echo=1
# Add a delay to prevent the clients from starting too early
ExecStartPost=/bin/sleep 2s
Restart=always
RestartSec=1s
[Install]
WantedBy=multi-user.target