Hi,Say I have device /dev/ttyACM0. If I `stty -F /dev/ttyACM0 raw`, then `cat /dev/ttyACM0` in one term, and `echo -e "QUERYCOMMAND" > /dev/ttyACM0` in another term. I would get the data in first term.But if echo first, then cat. The data seemed lost. Cat would not get anything. So I think these two commands must be run at the same time.So I put this process be in a script like this:--(stty -F $tty rawcurrentSettings=""while [ 1 ]doc=`dd if=$tty count=1`currentSettings=${currentSettings}${c}if [ c == '.' ]thenbreakfidoneecho -n $currentSettings > $conf) &echo -e "${query}?." > $ttyuntil [ -e $conf ]dosleep 1donecurrentSettings=`cat $conf`The script stuck at dd, it did not get anything.What should I do?
竹密岂妨流水过
山高哪阻野云飞
And for G+, please use magiclouds#gmail.com.