virtual serial port and connection

Hi,
I want to build a multiplexer that multiplexes three virtual serial ports to
one physical serial port.
What I would like to do is to (virtually) connect two virtual serial ports
that they send the information to each other instead of sending it to
hardware. The two use cases are:

(a) an application writes to one of the virtual ports and my multiplexer
reads from the other one, multiplexes the data and writes it to the driver
of the real serial port
(b) the multiplexer reads data from the real port, demultiplexes it and
sends it to one of the virtual ports and an application can read the data
from the other virtual port

I want to do this for the reason, that I skip all the buffer and queue
handling and just need to do the (de-)multiplexing.

Does someone know if there are drivers for virtual serial ports in QNX that
can be used that way or if there is a possibility to interconnect two
drivers for real serial ports that way?


Jens

To my knowledge it doesn’t exists, but it shouldn’t be difficult to modify
the serial driver to do that.

“Jens Neumann” <jneumann@de.ibm.com> wrote in message
news:cd35ub$mgg$1@inn.qnx.com

Hi,
I want to build a multiplexer that multiplexes three virtual serial ports
to
one physical serial port.
What I would like to do is to (virtually) connect two virtual serial ports
that they send the information to each other instead of sending it to
hardware. The two use cases are:

(a) an application writes to one of the virtual ports and my multiplexer
reads from the other one, multiplexes the data and writes it to the driver
of the real serial port
(b) the multiplexer reads data from the real port, demultiplexes it and
sends it to one of the virtual ports and an application can read the data
from the other virtual port

I want to do this for the reason, that I skip all the buffer and queue
handling and just need to do the (de-)multiplexing.

Does someone know if there are drivers for virtual serial ports in QNX
that
can be used that way or if there is a possibility to interconnect two
drivers for real serial ports that way?


Jens

Yes. See “devc-pty”, the “psuedoteletype” resource manager.
That should do exactly what you are asking.

John Nagle
Team Overbot

Jens Neumann wrote:

Hi,
I want to build a multiplexer that multiplexes three virtual serial ports to
one physical serial port.
What I would like to do is to (virtually) connect two virtual serial ports
that they send the information to each other instead of sending it to
hardware. The two use cases are:

(a) an application writes to one of the virtual ports and my multiplexer
reads from the other one, multiplexes the data and writes it to the driver
of the real serial port
(b) the multiplexer reads data from the real port, demultiplexes it and
sends it to one of the virtual ports and an application can read the data
from the other virtual port

I want to do this for the reason, that I skip all the buffer and queue
handling and just need to do the (de-)multiplexing.

Does someone know if there are drivers for virtual serial ports in QNX that
can be used that way or if there is a possibility to interconnect two
drivers for real serial ports that way?


Jens

“John Nagle” <nagle@downside.com> wrote in message
news:cd4un8$494$1@inn.qnx.com

Yes. See “devc-pty”, the “psuedoteletype” resource manager.
That should do exactly what you are asking.

Really, and it supports such thing as simulated baud rate and alike?

John Nagle
Team Overbot

Jens Neumann wrote:
Hi,
I want to build a multiplexer that multiplexes three virtual serial ports
to
one physical serial port.
What I would like to do is to (virtually) connect two virtual serial
ports
that they send the information to each other instead of sending it to
hardware. The two use cases are:

(a) an application writes to one of the virtual ports and my multiplexer
reads from the other one, multiplexes the data and writes it to the
driver
of the real serial port
(b) the multiplexer reads data from the real port, demultiplexes it and
sends it to one of the virtual ports and an application can read the data
from the other virtual port

I want to do this for the reason, that I skip all the buffer and queue
handling and just need to do the (de-)multiplexing.

Does someone know if there are drivers for virtual serial ports in QNX
that
can be used that way or if there is a possibility to interconnect two
drivers for real serial ports that way?


Jens

On Wed, 14 Jul 2004 14:15:24 +0200, Jens Neumann <jneumann@de.ibm.com>
wrote:

Does someone know if there are drivers for virtual serial ports in QNX
that
can be used that way or if there is a possibility to interconnect two
drivers for real serial ports that way?

HW Solution:
There is a product which will allow you to monitor comms
in a non-intrusive pass through way:
http://www.connecttech.com/sub/Products/BlueHeatPCI_PTM.asp
I don’t know what the QNX driver situation is.

SW Solution:
Since the source for the serial port driver is available
in the DDK, you could modify it to do what you want.


Using Opera’s revolutionary e-mail client: http://www.opera.com/m2/