Skip to content

Instantly share code, notes, and snippets.

@DavesCodeMusings
Last active January 10, 2026 16:06
Show Gist options
  • Select an option

  • Save DavesCodeMusings/6ca2f84c16ebec71b62e1027f78da5c6 to your computer and use it in GitHub Desktop.

Select an option

Save DavesCodeMusings/6ca2f84c16ebec71b62e1027f78da5c6 to your computer and use it in GitHub Desktop.
Display data from serial attached GPS device for testing.
#! /bin/sh
# Display data from serial attached GPS device for testing.
PORT=/dev/ttyACM0
SPEED=9600
echo "Reading from $PORT at $SPEED bps."
stty -F $PORT $SPEED
while read LINE < $PORT; do
echo $LINE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment