stty -F /dev/ttyUSB0 raw speed 9600 sleep 1s stty -F /dev/ttyUSB0 raw speed 9600 echo -e "0 dev\n" > /dev/ttyUSB0 cat /dev/ttyUSB0 > 1.txt & sleep 1s pkill cat if test -s 1.txt;then echo '/dev/ttyUSB0 may be linermotor'> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB1 raw speed 9600 sleep 1s stty -F /dev/ttyUSB1 raw speed 9600 echo -e "0 dev\n" > /dev/ttyUSB1 cat /dev/ttyUSB1 > 1.txt & sleep 1s pkill cat if test -s 1.txt;then echo '/dev/ttyUSB1 may be linermotor'> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB2 raw speed 9600 sleep 1s stty -F /dev/ttyUSB2 raw speed 9600 echo -e "0 dev\n" > /dev/ttyUSB2 cat /dev/ttyUSB2 > 1.txt & sleep 1s pkill cat if test -s 1.txt;then echo '/dev/ttyUSB2 may be linermotor'> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB3 raw speed 9600 sleep 1s stty -F /dev/ttyUSB3 raw speed 9600 echo -e "0 dev\n" > /dev/ttyUSB3 cat /dev/ttyUSB3 > 1.txt & sleep 1s pkill cat if test -s 1.txt;then echo '/dev/ttyUSB3 may be linermotor'> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyS1 raw speed 115200 sleep 1s stty -F /dev/ttyS1 raw speed 115200 cat -e /dev/ttyS1 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyS1 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyS1 is ISIF or IS2'>> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyS2 raw speed 115200 sleep 1s stty -F /dev/ttyS2 raw speed 115200 cat -e /dev/ttyS2 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyS2 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyS2 is ISIF or IS2'>> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB0 raw speed 115200 sleep 1s stty -F /dev/ttyUSB0 raw speed 115200 cat -e /dev/ttyUSB0 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyUSB0 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyUSB0 is IS1'>> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB1 raw speed 115200 sleep 1s stty -F /dev/ttyUSB1 raw speed 115200 cat -e /dev/ttyUSB1 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyS1 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyUSB1 is IS1'>> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB2 raw speed 115200 sleep 1s stty -F /dev/ttyUSB2 raw speed 115200 cat -e /dev/ttyUSB2 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyUSB2 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyUSB2 is IS1'>> /home/data/Setting/tryfindtty.txt fi stty -F /dev/ttyUSB3 raw speed 115200 sleep 1s stty -F /dev/ttyUSB3 raw speed 115200 cat -e /dev/ttyUSB3 > 1.txt & sleep 1s echo aa5500040307 | xxd -r -ps > /dev/ttyUSB3 sleep 1s pkill cat sleep 1s if test -s 1.txt;then echo '/dev/ttyUSB3 is IS1'>> /home/data/Setting/tryfindtty.txt fi