Linux Serial subsystem development
 help / color / mirror / Atom feed
* Default ECHO on TTYs causes unwanted garbage chars
@ 2020-06-09 11:38 Joakim Tjernlund
  2020-06-09 11:57 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Joakim Tjernlund @ 2020-06-09 11:38 UTC (permalink / raw)
  To: linux-serial@vger.kernel.org; +Cc: oneukum@suse.com

Hi List

I was advised to come here with this problem(started on the USB list).

We have a USB to RS232 bridge which presents itself as an ttyACM and the first connect after power on,
we see some garbage chars transmitted back from USB host(PC) to out device which becomes input to
the device.

After much debugging I found that this are chars sent early in the boot process which then
are buffered and the TTYs default to ECHO chars is the cause.

When the TTY is opened, any chars in the this buffer is ECHOed back over USB to the device,
before one has a chance to disable ECHO. The device then thinks these chars are regular input.

Seems to me that this behaviour is unwanted in general and and app. should get a chance to flush/discard
any chars so this does not happen.

What do you think?
 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-06-15 10:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 11:38 Default ECHO on TTYs causes unwanted garbage chars Joakim Tjernlund
2020-06-09 11:57 ` Greg KH
2020-06-09 13:13   ` Joakim Tjernlund
2020-06-09 14:22     ` gregkh
2020-06-09 15:01       ` Joakim Tjernlund
2020-06-09 21:26         ` Maarten Brock
2020-06-10  7:34           ` Joakim Tjernlund
2020-06-10  7:24         ` gregkh
2020-06-10  7:42           ` Joakim Tjernlund
2020-06-15 10:55             ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox