Skip to content

Instantly share code, notes, and snippets.

@tomaskavalek
Created January 28, 2011 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaskavalek/800082 to your computer and use it in GitHub Desktop.
Save tomaskavalek/800082 to your computer and use it in GitHub Desktop.
Reading port in embed PC with worse Linux.
#!/bin/bash
# Nastaveni prenosu dat
stty -F /dev/ttyS1 raw speed 9600
# Smycka
while [ 1 ]; do
READ=`dd if=/dev/ttyS1 count=1`
echo $READ
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment