AutoCAD Map 3D Developer

Reply
Member
cvradis
Posts: 3
Registered: ‎11-04-2002
Message 1 of 5 (120 Views)

Reading GPS output on a serial port with VBA

120 Views, 4 Replies
12-03-2001 05:18 PM
My apologies for cross-posting.

Does anyone know how to read the GPS receiver output connected to a serial port and have the location (Lat-Long or XY doesn't make any difference to me) dislayed on an AutoCAD drawing in real-time?

I have a Trimble GPS (4700 receiver) connected to the serial port and I have tried to directly read the NMEA output on that port with VBA. After searching on the Web I found out that this is done with some OCX named MSCOMM which programatically controls the computer's serial port. Unfortunately, this OCX does not work with VBA but only with VB (when I try to place it on a VBA form there's a message saying: The control could not be created because it is not properly licensed). Perhaps someone knows some DLL or other OCX that may be used with VBA??

I know about Trimble Link but it seems it doesn't support real-time connection with the GPS receiver.

I have to say that I have spend quite a few days searching for anything similar on the Web without any succes.
****Any*** help, hint, alternative approach or suggestion would be immensely appreciated.

TIA
Christoforos Vradis
Contributor
gerardog
Posts: 12
Registered: ‎12-26-2001
Message 2 of 5 (120 Views)

Re: Reading GPS output on a serial port with VBA

12-26-2001 03:27 AM in reply to: cvradis
Hi! :smileyhappy:
Serial port data handling throug vb does not always work very good. A few times I've tryied this aproach, and it did not work. Trimble has some code for reading gps data in C (I had a look at it while working with a trimble cross-check). I'd suggest to use a c application for doing the serial io, and send messages to an application running inside autocad and handle them...

I hope this helps.
regards,
gg.

(gg@cvision.com.uy)
New Member
jbump
Posts: 2
Registered: ‎02-05-2002
Message 3 of 5 (120 Views)

Re: Reading GPS output on a serial port with VBA

02-05-2002 09:58 PM in reply to: cvradis
I have had good results with using a dll/ocx from Blue Marble Geographics called GeoTracker. They have both a stand alone GeoTracker Application as well as an OCX/DLL toolkit. The control works with Motorola Binary, NMEA 0183 2.0, Trimble TSIP, and Trimble TAIP protocols. I have used it for both automated tracking/panning and realtime data collection. www.bluemarblegeo.com
Active Contributor idp
Active Contributor
idp
Posts: 32
Registered: ‎08-24-2003
Message 4 of 5 (120 Views)

Re:

02-07-2002 03:25 PM in reply to: cvradis
Another ocx/dll Toolkit to read NMEA from GPS receivers is the NMEA.OCX / CoConEa Toolkit from Gaenger + Bruckner (http://www.gaenger-bruckner.de). It's even able to do coordinate transformations from/to more than 200 international coordinate systems. Niels
*Allaire, Yves
Message 5 of 5 (120 Views)

Re:

02-18-2002 05:20 AM in reply to: cvradis
Do you have an idea where can I get trimble's
code... or the specs to write one myself.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi!
:smileyhappy:
Serial port data handling throug vb does not always work very good. A
few times I've tryied this aproach, and it did not work. Trimble has some code
for reading gps data in C (I had a look at it while working with a trimble
cross-check). I'd suggest to use a c application for doing the serial io, and
send messages to an application running inside autocad and handle them...

I hope this helps.
regards,
gg.

(gg@cvision.com.uy)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community