views:

112

answers:

7

I have a Delphi application that reads/writes to a COM port connected to a large hardware device, so I don't usually have the hardware available during development. That said, the communication protocol is fairly simple, so I can generally do the development and have someone onsite test it, and it usually works. Occasionally I run into a harder problem, though. To solve this, I'd like to setup a virtual COM port where one side of the COM port is my application and the other side is a very simple COM port debug console (similar to the old modem terminal programs), where ASCII commands my app sends are logged onscreen and I can type in some ASCII command to send back to my application to simulate the hardware device. I've been unable to find any tools that provide a virtual/software COM port and a console/terminal to debug with. Does anyone have software suggestions and steps to set something like this up?

The software/virtual COM port and terminal need to support Windows 7 64-bit (or Vista 32 if necessary).

A: 

I can't vouch for it, but sounds like something like this is what you're looking for. http://www.windows7download.com/win7-free-virtual-serial-ports-emulator/yarqmowu.html

Myles
+1  A: 

I'm doing something similar with paired virtual COM ports created by http://com0com.sourceforge.net/

Stijn Sanders
I use this as well
Remy Lebeau - TeamB
I'm using that one too. Works like a charm. I usually create 2 applications. 1 hardware device emulator, and one application to control it. With com0com I can run and debug everything on 1 pc. By emulating the hardware device, I can test all sort of edge-cases that would be difficult to mimic with the real device.
Wouter van Nifterick
+1  A: 

Can't you just insert a redirector at the lowest level of your application which will pop up a console instead of writing data to COM? Should not take long.

himself
+1  A: 

I'm using Advanced Virtual COM Port and I'm quite happy with it. Not free, but works like a charm - even with Win7-x64.

Uwe Raabe
I ended up using this tool. It has a free 64-bit trial, works good, and was easy to install and configure, compared to com0com (which requires modifying your 64-bit machine to allow unsigned drivers). I used [232ANALYZER](http://www.commfront.com/CommFront-Downloads.htm) as the COM port debugging console/terminal, but I didn't find that program as reliable or well-designed, so there are likely better options out there for a debugging terminal.
Anagoge
A: 

I have used Eterlogic's Virtual Serial Ports Emulator successfully for exactly this on a laptop with no serial ports. It's a bit easier to set up than Com0Com, which I have also used. It's also useful for serial port spying if you need to reverse engineer any communications The 32-bit version is free, the 64-bit version is currently $25. Try it out on Vista32 to see if it does what you need.

HMcG
A: 

Hello,

I developed a serial port programming language in C# and I believe it really makes it easy to develop serial port applications. It has a built-in debugger also to find and fix the errors just in time.

Would you please take a look and try it ? It is freely available on sourceforge.

Project homepage

Download Link

If you have any questions, please feel free to ask.

Thank you,

Orhan

albay
Your tool looks nice, based on what I read and saw in the screenshots. I've already fixed all of my known serial port problems, so I'm not still looking, but I'll try your tool if I get into trouble again. Best of luck with it!
Anagoge
Thank you. When you will use the application, if you'll have any issues or questions, please feel free to ask.
albay
A: 

I use Com0Com for this purpose, but I don't know whether it works with anything more recent than Windows XP.

dummzeuch