Re: (another) serial port question



On 2006-06-01, Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:
Grant Edwards <grante@xxxxxxxx> wrote:
On 2006-05-31, Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:

You are setting CLOCAL here, but down a bit you set CRTSCTS.
If you want hardware flow control to work, do *not* turn off
the modem control lines!

If he wants to ignore CD but enable RTS/CTS flow control, then
setting CLOCAL and CRTSCTS is correct.

CLOCAL controls whether operations will set DTR and then block
waiting for CD or not.

Maybe that's not what the Posix spec says, but that's how the
Linux driver works.

Interesting. I thought (but had never looked to see) that it
disabled *all* of the control lines.

I have memories of things waiting on CD and DSR as well, but
that may have been under DOS or CP/M.

It looks like CLOCAL also prevents the "automatic" assertion of
DTR when the port is opened.

--
Grant Edwards grante Yow! Can I have an IMPULSE
at ITEM instead?
visi.com
.



Relevant Pages

  • RE: bce packet loss
    ... you can't set RX flow control and disable TX flow control with ... "XON/XOFF" frames, which I assume are flow control messages, but there's ... One the one host I just set to full auto, the switch claims to have negotiated 1000FD w/flow control. ...
    (freebsd-net)
  • RE: [PATCH v1] 8250: add support for DTR/DSR hardware flow control
    ... In my opinion, DSR/DTR is another way to do RTS/CTS flow control, so ... I would have it implemented in setserial as a modifier to the CRTSCTS flag. ... struct rs485_control { ...
    (Linux-Kernel)
  • Re: Runtime Syntax Checker
    ... you've never implemented a custom control structure. ... of a flow control mechanism it ends up pulling tricks which have ... abuse, but I fully understand the reason that it is abused. ...
    (comp.lang.tcl)
  • Re: 802.3x flow control - sending pause frames
    ... :> Don't - rely on using TCP or another reliable Transport protocol to ... :> control the data flow. ... Then there will be packet drop! ... can be cases of pathological interaction between the flow control at layer ...
    (comp.os.linux.embedded)
  • Re: Buffer size in serial port???
    ... Can i say if both sides are auto-flow control awared, ... If your PXA device is using hardware flow control correctly, ... FUART and GSM modem. ...
    (microsoft.public.windowsce.platbuilder)