Created
March 3, 2025 12:05
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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