Connecting Tech Pros Worldwide Forums | Help | Site Map

Windows equivalent of Linux Pseudo Terminals?

Newbie
 
Join Date: Dec 2008
Posts: 2
#1: Dec 23 '08
Hello,

I hope this is the best place to ask my question. I was wondering if there was such a thing as a pseudo terminal in Windows.

For those unfamiliar, in Linux/Unix one can create a pseudo terminal which to an application looks and acts like a regular com port (tty device in Linux-ease). The purpose of such a thing is to allow an application which communicates via a com port to remain the same (except for changing its com port name/number) but have another application intercept that serial data before it goes out to a "real" physical com port. I have used this on Linux to intercept serial data from an existing application to share it with other apps.
My code now needs to be ported to Windows and I was wondering if such a things as pseudo terminal existed there.

I was thinking virtual com port but in my mind I associate that with comms over a physical USB port so it isn't clear that the same thing can be accomplished.

Thanks,

bytehunter

DonRayner's Avatar
Expert
 
Join Date: Sep 2008
Location: Canada
Posts: 494
#2: Dec 23 '08

re: Windows equivalent of Linux Pseudo Terminals?


Not sure it it's what you're after, but you might want to take a look at Microsoft Virtual PC.

http://www.microsoft.com/windows/pro...c/default.mspx
Newbie
 
Join Date: Dec 2008
Posts: 2
#3: Dec 24 '08

re: Windows equivalent of Linux Pseudo Terminals?


Don,

Thanks for the reply but I think I found what I need (should have looked harder before posting). On sourceforge there is an project called com0com. It basically allows one to create virtual serial com port pairs, sending data to one virtual port is received on the other and vice-versa.

For me this means as long as I can get the installed application to use one of the virtual com pairs then my app can connect to the other and then onto one of the real physical COM ports (see illustration below).

App<===>VirtualCOMA<===>VirtualCOMB<===>MyApp<===> PhysicalCOM1

ByteHunter
DonRayner's Avatar
Expert
 
Join Date: Sep 2008
Location: Canada
Posts: 494
#4: Dec 24 '08

re: Windows equivalent of Linux Pseudo Terminals?


It's nice when you can solve your own problems ;) Good luck with your project.

Don
Reply