This file contains 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 |