Created
July 3, 2025 00:51
-
-
Save noslin005/ddc4ceceab8d981a3716f7fbb970910c to your computer and use it in GitHub Desktop.
Revisions
-
noslin005 created this gist
Jul 3, 2025 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Socat **Receiver** ```bash socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,interface=eth0,reuseaddr FILE:/dev/ttyS1,raw,echo=0 socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,interface=eth0,reuseaddr PTY,raw,echo=0,link=/tmp/virtual-tty socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,reuseaddr SYSTEM:'tee /dev/ttyS1 > /tmp/mirror' ``` **Sender** ``` socat -d -d PTY,raw,echo=0,link=/dev/ttyS1 UDP-DATAGRAM:239.0.0.1:9000,interface=eth0 ```