Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question about serial port in C++

Status
Not open for further replies.

mucko

Member level 1
Joined
Sep 6, 2004
Messages
40
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Activity points
290
I want to develop a software which is responsible for monitorin serial port that is used by another program for protocol based analysis.For such a configration, i dont know how to sniff the serial port in WIN32 api platform..

is there anybody who knows these??

thanks in advance...
 

well,
you do not even need a special software for this if you just
want to analyze a serial port for txed and rxed data.

You can use another computers serial port for this.
If the communication is half duplex than it is OK. This
communicaiton can be traced from another computer.
I mean both txed and rxed data can be traced at the same time.

You just need a simple and specific rs232 cable.
Cable should have rx tx and gnd only.. The tx and rx lines
must have a diode wired to each other and they both will go directy
to the rx of rs232 db9 connector. (this db9 is the place you sniff the protocol)

You will plug this cables tx,rx and gnd parallel to the communication you
want to sniff.
As you have a diode in tx and rx the serial ports cannot be damaged.
And the perfect benefit is that you can trace both the rxed and txed in its
respective order.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top