Pool Systems Dashboard
Jump to navigation
Jump to search
Virtual Serial Ports
Create two files to support two virtual serial ports:
- socat-serial-ttyV0.service
- socat-serial-ttyV1.service
The contents of these files are as follows (replacing V0/v0 for V1/v1 as required):
[Unit] Description=Socat Serial ttyV0 Wants=network-online.target After=network-online.target [Service] Type=simple StandardOutput=syslog StandardError=syslog SyslogIdentifier=socat-serial-ttyv0 ExecStart=/usr/bin/socat pty,link=/dev/ttyV0,group=dialout,perm=0666,raw tcp:[ip]:[port] Restart=always [Install] WantedBy=multi-user.target
The [ip] and [port] values are redacted for security reasons; consult internal IT documentation for details.