Created
January 28, 2011 10:25
-
-
Save tomaskavalek/800082 to your computer and use it in GitHub Desktop.
Reading port in embed PC with worse Linux.
This file contains 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
#!/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