Skip to content

Instantly share code, notes, and snippets.

@tomaskavalek
Created January 28, 2011 10:25
Show Gist options
  • 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