Solved

Spy on comm port using VB

Posted on 2004-09-09
6
456 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:Vincentpiraino
  • 2
  • 2
  • 2
6 Comments
 
LVL 14

Expert Comment

by:Matti
ID: 12030032
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

0
 

Author Comment

by:Vincentpiraino
ID: 12043327
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.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12045493
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!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:Matti
ID: 12047579
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
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 12047811
Right, device drivers aren't written in VB (thank God).  I'm suggesting finding a (shareware or cheapware) utility which will allow the data from one virtual port to be directed to another virtual port.  If the existing application allows the user to select comm5 for example, this should work.

another example:
Virtual Serial Ports Driver XP 4.5
http://www.eltima.com/products/vspdxp/
0
 

Author Comment

by:Vincentpiraino
ID: 12048850
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 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

12 Experts available now in Live!

Get 1:1 Help Now