943,634 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2146
  • C++ RSS
Aug 24th, 2008
0

COM port emulator

Expand Post »
Hey everyone,

I'm trying to write code that will be sent out of the COM port to a PIC microcontroller. However, I don't have the controller available yet. Is there an emulation software that will allow me to virtualize a COM port and capture the data that's being sent to it? Maybe that will help me to make sure I have the code functioning properly.

I've tried one program but I must have been doing something wrong, because when I try to transfer data to it, it says Access Denied in the debugger. However, when I try to send data to the actual COM port on my computer without the emulator running, everything looks to be running fine. But I can't be positive about that until I can actually capture the data leaving my COM port.

Thanks for any help!
Similar Threads
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Aug 24th, 2008
0

Re: COM port emulator

A loopback test would verify that.
http://zone.ni.com/devzone/cda/tut/p/id/3450
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Aug 25th, 2008
0

Re: COM port emulator

Thanks!
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Aug 25th, 2008
0

Re: COM port emulator

If anyone else has an emulator solution, please post as well. The loopback will work for my home PC, but I often code from school machines and would like to have a software solution available.

Thanks!
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Aug 26th, 2008
0

Re: COM port emulator

I've used com0com - a serial port/null-modem emulator. See http://sourceforge.net/projects/com0com/
or just google com0com.

Each null modem emulation creates 2 virtual serial ports - i.e. each end of a serial cable; you'll need a program on the other port to loopback/modify data as required. You may need admin access to install it.
Reputation Points: 85
Solved Threads: 45
Posting Whiz in Training
dougy83 is offline Offline
275 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Connection Pool -- Locking, Concurrent Access
Next Thread in C++ Forum Timeline: Shared Memory Object Access





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC