?
Solved

Listen to RS232

Posted on 2008-11-09
5
Medium Priority
?
1,699 Views
Last Modified: 2013-11-23
Hello Experts.
I have a Program that is running and writting to the RS232 Comm Port. I do not have the source to that program.
I need a program - running on the same machine - that can 'Listen' to the Comm Port.
Can you please assist me ?
Thanks
0
Comment
Question by:HESUS
  • 2
4 Comments
 
LVL 3

Expert Comment

by:stesom
ID: 22919587
I know where you're comming from, I was in the exact same situation a while ago.
I used the free edition of the following listener: http://www.serial-port-monitor.com/
0
 

Author Comment

by:HESUS
ID: 22920512
Thanks, but I need myown code so I can use the data I read, for another application.
0
 
LVL 3

Accepted Solution

by:
huferry earned 200 total points
ID: 22937579
Normally you'll need a machine with 2 com ports and a cross cable. The writting program can use COM1 and the listening program can use COM2. You have to cross the two hardware COM ports using a cross serial cable. Make sure that both programs are connected using the same baudrate, number of bits, etc.

An alternative, if you don't have hardware COM ports you can use a program that creates virtual COM ports and transfer the data using TCP/IP. I have use one of those:

http://www.hw-group.com/products/hw_vsp/index_en.html

You can run the program twice and sets,

Program 1, creates COM3 and acts as a TCP server that listen to port 9000.
Program 2, creates COM4 and connects to 127.0.0.1 on port 9000 (it's important that you start the server first).

If you've done this you'll have COM3 and COM4 virtually and crossed each other.
Then you can start your applications which use the serial port and connect them to COM3 and COM4.
0
 

Author Comment

by:HESUS
ID: 22937965
Thank you very much.
I am looking for an option to write the code myself, using Delphi or C. Then I can be much more flexible with the data, and make it as part of another program.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question