Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Port Monitoring

Status
Not open for further replies.

adeorkim

Technical User
Oct 23, 2001
6
AU
Hi, Im trying to find a program that will help me to set up an automatic download of data stored onboard earthmoving machines. We have a system that stores data on the on-board electronic system and allows us to manually download that data for analysis. But what I want to do is try and find a program that will allow the download to start automatically whenever there is activity sensed at the serial port. E.G when the serial port cable is hooked onto the machine, maybe allow an .exe file to be run whenever activity is sensed. Or maybe a marco can be started to activate the .exe file and then close the program in 10 minutes. This would allow the unattended computer to be ready for the next machine. Any help here would be greatly appreciated
adrian.clement@westrac.com.au
 
This is largely going to depend on the protocol used by the earth-moving equipment. You might be able to detect a "ready to send" signal, and react on that.
Otherwise, you might need to simply try every X seconds and handle a possible timeout. Do you have a ready-made program for unloading which you simply want to activate, or will you write your own? Accessing the same port with two programs is going to be hell. (You can hardwire both comports on your PC together and use one port as "activity sniffer". Start reading hardware manuals!!!)
If the standard RS232 driver from Microsoft is not good enough, you can buy one from National Instruments in their "Measurement Studio" package.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top