Link to home
Start Free TrialLog in
Avatar of Vincentpiraino
Vincentpiraino

asked on

Spy on comm port using VB

I would like to spy (peek, sniff, capture, redirect) data sent to a comm (RS232) port from an existing application that cannot be modified for purposes of modifying that information into a new data stream for export to another RS323 port. I have a navigation program that sends out  tracking information through an RS232 port using the newer NMEA 0183 protocal. I would like to modify this data to an older NMEA 0180 protocal so that my vintage auto pilot will accept it. I am looking for a VB 6.0 preferrable application. the application cannot interfere with the communications, it should only be able to read the data being sent out the RS232 port.
Avatar of Matti
Matti
Flag of Finland image

Need an extra port for this.
Connect two ports whit a null modem cable. One of these would be the formal output. Then you can set up two MS Comm controls in VB app and get access to data in middle and send it to third port after modifications.

Matti

Avatar of Vincentpiraino
Vincentpiraino

ASKER

Unfortunately, this and many newer laptops are coming without any RS232 ports; I need a non-hardware dependant solution, thank you for your post Matti.
If your existing application allows you to select a serial port, then you could use a virtual serial port driver to redirect the data to your application (in theory).  These are third party drivers and it seems there are many out there, some costing more than others.

Here is one example:
http://www.virtualperipherals.com/vsp.htm

Hope it helps!
Hi!

Won't found these on VB
Here is on but it's developed on Win2000 DDK and VC++

http://www.ircomm2k.de/english/

It's GPL opensource, not a demo.

Matti
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Erick37, thanks for your solution, not exactly what I was looking for but it will work, solutions range $69-$99 and come with their own SDK, pretty neat, thanks.