All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Matthias Fuchs <mfuchs@ma-fu.de>
Cc: linux-serial@vger.kernel.org
Subject: Re: Enabling auto RS485 half-duplex control
Date: Wed, 17 Dec 2008 22:32:00 -0500	[thread overview]
Message-ID: <20081218033200.GB9871@mit.edu> (raw)
In-Reply-To: <200812172224.13608.mfuchs@ma-fu.de>

On Wed, Dec 17, 2008 at 10:24:13PM +0100, Matthias Fuchs wrote:
> Hi,
> 
> some Exar UARTs like the XR16C2850 support a feature
> called auto RS485 half-duplex control. In this mode the
> RTS line has a special role when using the UART for 
> RS485 communication.

So I haven't maintained the serial driver for a long time, but when I
did, I refused to try to implement hardware half-duplex control
because there was absolutely no standards in this space.  Which RS-232
lines are involved wasn't standardized, and there was often very
strange timing restrictions as well.  Some devices required there to
be a minimum delay of XX milliseconds between when RTS is raised
and when DTR is raised.  Other devices have a maximum time between
when one side raises RTS and the others side raises DTR.

So the challenge is designing an interface for half-duplex which is
sufficiently general that it will actually work for all/most of the
half-dozen people in the world who still care about half-ruplex RS-232
communications.  :-)

						- Ted

  reply	other threads:[~2008-12-18  3:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17 21:24 Enabling auto RS485 half-duplex control Matthias Fuchs
2008-12-18  3:32 ` Theodore Tso [this message]
2008-12-18  5:59   ` Matthias Fuchs
2008-12-18 15:51   ` Grant Edwards
2008-12-19  4:10     ` Theodore Tso
2008-12-18  9:35 ` Wolfram Sang
2008-12-18 23:42   ` Matthias Fuchs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081218033200.GB9871@mit.edu \
    --to=tytso@mit.edu \
    --cc=linux-serial@vger.kernel.org \
    --cc=mfuchs@ma-fu.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.