With some irony given the two threads running in the debate, I have got this
working, but regrettably not in Delphi; have had to switch to VB.Net to do
it. Franson make a component that allows you to create virtual com ports
which you can write data to; so I create one of these, read in the real GPS
location, do the math to offset it, and then write out the offset location
to the virtual com port at which point my other software can then connect to
it.

http://franson.com/serialtools/

It's also available as an ActiveX control, which would mean I could do it in
Delphi (and use my old friend TComPort) which I'm now playing with ... 

Thought I'd pass on what I've found. Thanks for all the responses ... 

Simon Garton
GIS/IT Consultant
email : [EMAIL PROTECTED] 
mob : +64 21 227 4666
lat/long : 36º53'17" S, 174º46'50" E
www : http://www.simongarton.co.nz 
      http://www.treecapture.co.nz

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Garton
Sent: 24 July 2008 2:15 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Faking a serial port

I have an interesting request ... I write a lot of GPS based apps, and am
quite familiar with reading data from via a COM port from the GPS. A client
needs that GPS position offset - rather than exactly where the GPS is, he
needs it to read (e.g.) at right angles to the direction of travel and a
certain distance away ... so he can drive past Telecom poles, and click a
button, but record the position of the pole on the berm, not the truck on
the road.

That's fine if it's internal to my app, as I can do the math, but he has
another app which is a black box and hooks into a camera system, and I have
no access to this software.

What I want to do is write a little app that reads the GPS COM Port, does
the offset, and then "streams the offset data out to another COM Port" ...
and the camera box can then read this COM Port.

Is this even possible ? To write an app that streams data to a COM Port so
that another application on the same computer can read it ? It's a bit of an
odd one, and I don't know where to start looking ... 

Simon Garton
GIS/IT Consultant
email : [EMAIL PROTECTED] 
mob : +64 21 227 4666
lat/long : 36º53'17" S, 174º46'50" E
www : http://www.simongarton.co.nz 
      http://www.treecapture.co.nz




_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject:
unsubscribe


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to