Hi Greg, What kernel version is this? >>>kernel - 3..4.14 ported on ARM custom board. Are there any kernel logs showing any errors? >> no error log showing >> we are just waiting for '#' prompt using chat command and comparing the result and printing "OK" in success case and "ERROR" in failure >> Command : # usb-serial test sub-shell ( stty -F /dev/ttyUSB0 115200 -echo -echoe -echok -onlcr -icrnl exec >/dev/ttyUSB0 exec </dev/ttyUSB0 chat ' ' ls '#' ) result=$? if [ $result -ne 0 ] ; then echo "ERROR" exit 1 else echo "OK" fi What flow control have you set for this serial port? >>> no flow control is used Thanks Shishir On Tue, Jun 14, 2016 at 9:17 PM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > On Tue, Jun 14, 2016 at 08:27:30PM +0530, shishir tiwari wrote: >> Hi , >> >> We are trying to open and close ttyUSB0 port and using 'chat' command >> to communicate in while loop using shell script.but after 30-40 times >> '#' reply is not coming for 'ls' command. >> >> shell script:: >> while >> ( >> stty -F /dev/ttyUSB0 115200 -echo >> exec > /dev/ttyUSB0 >> exec < /dev/ttyUSB0 >> chat '' ls '#' >> ) >> result =$? >> >> platform : custom >> serial driver : pl2303 >> host controller :xhci > > What kernel version is this? Are there any kernel logs showing any > errors? What flow control have you set for this serial port? > > thanks, > > greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html