Listen to RS232

Posted on 2008-11-09
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 ?
Question by:HESUS
    LVL 3

    Expert Comment

    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:

    Author Comment

    Thanks, but I need myown code so I can use the data I read, for another application.
    LVL 3

    Accepted Solution

    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:

    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 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.

    Author Comment

    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.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    how to center only a line in richedit? 4 41
    sum28 challenge 31 82
    copyEndy  challenge 15 40
    wordappend challenge 8 47
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
    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…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now