Skip to content

Instantly share code, notes, and snippets.

@Thom-x
Created March 3, 2025 12:05
Show Gist options
  • Save Thom-x/1702c106c8dd1d2f38a7103adfff4765 to your computer and use it in GitHub Desktop.
Save Thom-x/1702c106c8dd1d2f38a7103adfff4765 to your computer and use it in GitHub Desktop.
Systemd Relay serial GRBL connection to TCP to be available on Lightburn (Works on wifi)
[Unit]
Description=TCP to Serial Bridge
After=network.target
[Service]
ExecStartPre=/usr/bin/stty -F /dev/ttyACM0 speed 115200 cs8 -parenb -cstopb raw -ixon -ixoff -crtscts
ExecStart=/bin/sh -c 'socat -d -d TCP-LISTEN:23,reuseaddr,fork FILE:/dev/ttyACM0,raw,echo=0'
Restart=always
RestartSec=5
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment