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 | |
# Anpassung für big endian unter RHEL 7 | |
WDIR=~ | |
while true; do | |
stty -F /dev/ttyUSB0 9600 raw | |
INPUT=$(dd conv=swab bs=10 count=1 </dev/ttyUSB0 2>/dev/null | od -x -N10 |head -n 1|cut -f2-10 -d" "); | |
#Ausgabe | |
#echo $INPUT |