Re: Virtual serial ports
Re: Virtual serial ports
- Subject: Re: Virtual serial ports
- From: Terry Lambert <email@hidden>
- Date: Wed, 12 Sep 2007 15:35:33 -0700
Yes, for certain classes of the problem, you can use the slave e
course), but the code to glue them together can live in user space.
The problems where this works all assume that the seral port acts like
it has a null-modem cable hooking it to another serial port (i.e. all
out of band signals over the wire are meaningless).
The interesting driver (which has to be done in kernel space) is a
device driver that looks like a serial port to a vmware client, and
looks like a serial port to the host OS on the other end. That lets
you do serial gdb from the host OS to your victim (Julian Elischer
wrote one of these for FreeBSD at one point in time). Effectively,
that gets you two machine debugging on one machine. You could use
something like this on Mac OS X to debug say Linux or FreeBSD clients
from a Mac OS X host.
-- Terry
On Sep 12, 2007, at 1:06 PM, Andreas Fink wrote:
This sounds like something which would have been useful in the past
to me many times.
Are you saying this can be done completely in userspace?
On 11.09.2007, at 22:35, Thomas Hauk wrote:
I'm doing cross-platform development of a product that accesses
custom hardware connected to the USB port, which acts like a serial
device.
On Windows I can send and receive data to the COM port associated
with the device. For testing, I downloaded the open source com0com
project, which creates a pair of virtual serial ports which are
connected to each other; the output for one is the input for the
other. This allows me to test my software against a "virtual
device" program I have written.
Does a similar software package to com0com exist for Mac OS X?
In this sense, I guess it would create a pair of psuedo-ttys that
are connected to each other in the background.
I read through the archives of this list and found a similar
question a while back, but the question wasn't phrased clearly and
it isn't the same question as I am posing above, so that's why I'm
writing now.
If an existing solution doesn't exist, I suppose I could write my
own. Any thoughts on the complexity of such a task?
Cheers,
T
Andreas Fink
Fink Consulting GmbH
Global Networks Schweiz AG
BebbiCell AG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden