Pool Systems Dashboard

From Fairway Farms Swim Club
Revision as of 22:12, 23 January 2021 by Matt Parnell (talk | contribs) (Created page with "=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 f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.