Skip to content

Instantly share code, notes, and snippets.

@wpyoga
Created March 17, 2021 16:23
Show Gist options
  • Save wpyoga/ed239bdfcfa6c7ee446494aeb36e1b62 to your computer and use it in GitHub Desktop.
Save wpyoga/ed239bdfcfa6c7ee446494aeb36e1b62 to your computer and use it in GitHub Desktop.
Linux virtual serial port pair connected by null modem
socat -d -d pty,raw,echo=0 pty,raw,echo=0
@wpyoga
Copy link
Author

wpyoga commented Mar 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment