Created
March 17, 2021 16:23
-
-
Save wpyoga/ed239bdfcfa6c7ee446494aeb36e1b62 to your computer and use it in GitHub Desktop.
Linux virtual serial port pair connected by null modem
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
socat -d -d pty,raw,echo=0 pty,raw,echo=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without
echo=0
, we need to use minicom and open the serial port on the other side. Otherwise when we write something to the serial port, we may read back garbage.