From: Johan Hovold <johan@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Johan Hovold <johan@kernel.org>, Bin Liu <b-liu@ti.com>,
Felipe Balbi <balbi@kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Kieran Bingham <kbingham@kernel.org>,
USB list <linux-usb@vger.kernel.org>
Subject: Re: USB multi-serial using few endpoints?
Date: Fri, 13 Nov 2020 15:37:38 +0100 [thread overview]
Message-ID: <X66aMn2K4Kla/s5T@localhost> (raw)
In-Reply-To: <CAMuHMdU4VQ8kvM=1bXpDmVGicU7-T78f0uZw8G2wZWctnwsJog@mail.gmail.com>
On Fri, Nov 13, 2020 at 02:07:41PM +0100, Geert Uytterhoeven wrote:
> Hi all,
>
> TL;DR: I'm looking for a USB-to-multi-serial solution that uses as few
> USB endpoints as possible. Anyone with a good suggestion?
Moxa has a device with 16 ports that only use three endpoints; see the
mxuport driver.
> While I cannot replace USB-serial convertors on development boards, I
> can replace the USB serial implementation on the Teensy. Hence I'm
> looking for a more efficient USB-multi-serial protocol (preferably one
> that has a Linux driver), using as few endpoints as possible.
> I'm not a USB expert, but If I'm not mistaken, an N-port
> USB-multi-serial adapter could be implemented using only 2 or 3
> endpoints (one "locked" input endpoint for signalling, and one (TX/RX
> combined) or two (TX and RX separated) multiplexed endpoints for data)?
Right, you'd (typically) need two bulk endpoints for tx and rx. The Moxa
protocol use a third for signalling events. (And USB devices always have
a control endpoint, which I don't count here).
> If no such thing exists, I guess I can use the mos7840 protocol instead?
> Or is there a better solution?
You can always roll your own minimal mux protocol in case the moxa one
is too complex (and we may want to keep an alternative implementation
separate for other reasons).
And then there's the n_gsm line discipline...
Johan
next prev parent reply other threads:[~2020-11-13 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-13 13:07 USB multi-serial using few endpoints? Geert Uytterhoeven
2020-11-13 14:37 ` Johan Hovold [this message]
2022-12-16 15:05 ` Geert Uytterhoeven
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=X66aMn2K4Kla/s5T@localhost \
--to=johan@kernel.org \
--cc=b-liu@ti.com \
--cc=balbi@kernel.org \
--cc=geert@linux-m68k.org \
--cc=kbingham@kernel.org \
--cc=khilman@baylibre.com \
--cc=linux-usb@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).