Skip to content

Instantly share code, notes, and snippets.

@midnight-wonderer
Last active August 20, 2021 07:42
Show Gist options
  • Save midnight-wonderer/781facfe2fb6ee108a0e to your computer and use it in GitHub Desktop.
Save midnight-wonderer/781facfe2fb6ee108a0e to your computer and use it in GitHub Desktop.

Serial port uart loopback test in linux

Configuration https://unix.stackexchange.com/questions/220657

stty -F /dev/ttyUSB0 115200 raw -echo -echoe -echok -echoctl -echoke

On a terminal

cat -v < /dev/ttyUSB0

On another terminal

echo -e "Loopback success!" > /dev/ttyUSB0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment