linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tcflow(TCOON/TCOOFF) vs. received XON/XOFF characters
@ 2014-07-16 17:20 Grant Edwards
  2014-07-17 13:09 ` Peter Hurley
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2014-07-16 17:20 UTC (permalink / raw)
  To: linux-serial

I'm working on the regression test appliction I use to test the serial
drivers I maintain, and I've run into a problem with interaction
between tcflow(TCOON/TCOOFF) and XON/XOFF using bog-standard 16x50
UARTs and the normal in-kernel driver.

When I call tcflow(TCOOFF) on a tty device and then write data to that
tty device, the data isn't sent. That's what I expect. But, when an
XON is then received by that port, it does not start the tx data.

Conversly, when a serial port receives an XOFF, it stops sending
data as it should, but a subsequent call to tcflow(TCOON) does not
casue it to start sending data.

Am I misunderstanding how tcflow(TCOxxx) is supposed to interact with
XON/XOFF flow control?

Or is something broken in the tty layer or uart driver?

-- 
Grant Edwards               grant.b.edwards        Yow! This is a NO-FRILLS
                                  at               flight -- hold th' CANADIAN
                              gmail.com            BACON!!


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

end of thread, other threads:[~2014-07-17 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 17:20 tcflow(TCOON/TCOOFF) vs. received XON/XOFF characters Grant Edwards
2014-07-17 13:09 ` Peter Hurley
2014-07-17 14:03   ` Grant Edwards
2014-07-17 18:18     ` Peter Hurley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).