Skip to content

Instantly share code, notes, and snippets.

@Thom-x
Thom-x / tcptoserial.service
Created March 3, 2025 12:05
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