From: Grant Edwards <grante@visi.com>
To: linux-serial@vger.kernel.org
Subject: Re: Enhancing pty driver to act like a serial port?
Date: Sun, 22 Jun 2008 20:02:22 +0000 (UTC) [thread overview]
Message-ID: <g3mb4e$52v$1@ger.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.64.0806221455410.18596@maggie.lkpg.cendio.se
On 2008-06-22, Peter Åstrand <astrand@cendio.se> wrote:
>
>>The question of emulating a serial port in user-space has come
>>up a number of times in various contexts during the past few
>>years.
>>
>>The current pty driver isn't really sufficient when the
>>application actually expects to be connected to a physical
>>serial port:
>
> A better userspace solution would be great. I'm maintaining
> cyclades-serial-client. It relies on LD_PRELOAD, which is not
> very elegant.
I can imagine. (I used a few Cyclades 8-port boards many
years ago, and always liked Cyclades' product lines).
>>you can't set parity or word length, and the modem
>>control/status ioctl() calls fail.
>
> Oh. I was just investigating why it's not possible to set
> "cs7" on the pty. stty fails with:
>
> $ stty cs7 -F /my/pty
> stty: /my/pty: unable to perform all requested operations
>
> I guess this explains it.
Yup. It wouldn't be difficult at all to make the pty driver
act like a serial device, but there's a huge difference between
something being easy to change and getting those changes
accepted. Judging by the silence I got in response to my query
the chances of such a change being accepted are pretty much
zero.
--
Grant Edwards grante Yow! The PINK SOCKS were
at ORIGINALLY from 1952!! But
visi.com they went to MARS around
1953!!
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-06-22 20:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-22 18:26 Enhancing pty driver to act like a serial port? Peter Åstrand
2008-06-22 20:02 ` Grant Edwards [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-21 16:49 Grant Edwards
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='g3mb4e$52v$1@ger.gmane.org' \
--to=grante@visi.com \
--cc=linux-serial@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 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.