* Enhancing pty driver to act like a serial port?
@ 2008-03-21 16:49 Grant Edwards
0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2008-03-21 16:49 UTC (permalink / raw)
To: linux-serial
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: you can't set parity or word length, and the modem
control/status ioctl() calls fail.
That means that many applications just won't run when told to
use a pty instead of a normal serial port.
If one were to enhance the pty driver to support the same
operations as a serial port, would the "powers that be" be
amenable to accepting such changes into the main pty driver
sources?
Or is this even the right place to discuss the pty driver?
--
Grant
^ permalink raw reply [flat|nested] 3+ messages in thread
* Enhancing pty driver to act like a serial port?
@ 2008-06-22 18:26 Peter Åstrand
2008-06-22 20:02 ` Grant Edwards
0 siblings, 1 reply; 3+ messages in thread
From: Peter Åstrand @ 2008-06-22 18:26 UTC (permalink / raw)
To: linux-serial; +Cc: Grant Edwards
[-- Attachment #1: Type: TEXT/PLAIN, Size: 973 bytes --]
>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.
>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.
Best regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.se
Wallenbergs gata 4
583 30 Linköping Phone: +46-13-21 46 00
---
Open Source Developers wanted - http://www.cendio.com/about-cendio/career
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Enhancing pty driver to act like a serial port?
2008-06-22 18:26 Peter Åstrand
@ 2008-06-22 20:02 ` Grant Edwards
0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2008-06-22 20:02 UTC (permalink / raw)
To: linux-serial
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-22 20:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 16:49 Enhancing pty driver to act like a serial port? Grant Edwards
-- strict thread matches above, loose matches on Subject: below --
2008-06-22 18:26 Peter Åstrand
2008-06-22 20:02 ` Grant Edwards
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).