Linux Serial subsystem development
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Subodh Nijsure <nijsure.subodh@gmail.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: Connecting serial ports back to back.
Date: Tue, 20 Dec 2011 11:13:52 +0000	[thread overview]
Message-ID: <20111220111352.32e82ce3@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <CAMFeL9JMTo_ms6TUVeA3imqB0iymPONOGk=hBPmmGM2gY1ZArg@mail.gmail.com>

On Mon, 19 Dec 2011 16:15:43 -0800
Subodh Nijsure <nijsure.subodh@gmail.com> wrote:

> I have hardware where we have two ports that need to be connected back
> to back.  One serial port is /dev/ttyAPP2 and other is /dev/ttyUSB0
> 
> Basically what I want to make happen is data coming from /dev/ttyUSB0
> should be sent to /dev/ttyAPP2 and vice versa.
> 
> It appears that I should be able to do this using the n_tracesink and
> n_tracerouter line discipline drivers.
> 
> Has anyone been successful in hooking up serial ports back-to-back
> using these two line discipline drivers?

tracerouter/sink are a bit more specialist than that. But for general
data copying you can just run an application to do it.

Alan

      reply	other threads:[~2011-12-20 11:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20  0:15 Connecting serial ports back to back Subodh Nijsure
2011-12-20 11:13 ` Alan Cox [this message]

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=20111220111352.32e82ce3@pyramind.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-serial@vger.kernel.org \
    --cc=nijsure.subodh@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox