gpslib.gif (1100 bytes)GPSCom v1.06 / IConnectionPointImplMT v1.02

Welcome to GPSCom, a simple shareware COM based library which can be used to add GPS support to your Windows applications. GPSCom is a standard COM EXE developed in ATL in VC 2005 SP1. This component is intended as a complete replacement for the existing GPSLib DLL developed by the author. GPSCom internally uses an advanced ATL class called IConnectionPointImplMT. This module is licensed differently than GPSCom and is freeware, that is you are free to use it under the standard licensing conditions for my freeware source code. Please note that all the other modules inside of GPSCom are not open source.

Features
History
Installation & Redistribution
Usage
API Reference
Shareware Notice
Planned Enhancements
Contacting the Author

 

 

 

Features

 

 

 

History

V1.0 (21 June 2002)

V1.01 (1 January 2003)

V1.02 (13 January 2004)

V1.03 (20 July 2006)

V1.04 GPSCom / v1.0 IConnectionPointImplMP (23 January 2007)

V1.05 GPSCom / v1.01 IConnectionPointImplMP (8 February 2008)

V1.06 GPSCom / v1.02 IConnectionPointImplMP (21 March 2010)

 

 

 

Installation & Redistribution

The GPSCom EXE is a standard self-registering COM EXE so registration / un-registration is handled using the "/RegServer" or "/UnRegServer" command line parameters. If you are using a MSI based installer, then the recommended way to register the component is to avoid self registration and instead extract the registration details into the MSI tables.

The zip file comes with a ready to ship Unicode Release of GPSCom in the "Unicode Release" directory which will work on Windows NT 4 or later.

When it comes time to distribute your applications you will need to ship "GPSCom.exe" and the VC 2005 SP1 runtimes. if you are using the VS 2005 Bootstrapper then you can use the standard vcredist_x86 or vcredist_x64 prerequisites.

 

 

 

Usage

To start developing client applications using GPSCom, all you need to do is pull in the GPSCom library using whatever support your development environment provides for using COM objects. Please note that internally the code makes use of a COM mechanism called the "Global Interface Table" which is only available on Windows NT SP 3 or later or Windows 95 (or later) with DCOM version 1.1 or later installed.

To create a connection to a GPS device you can use the GPSConnections class which provides a standard COM collection of all the existing GPSConnections currently created. Alternatively use the GPSPort::CreateConnection method to create a new connection. The properties of the GPSPort decide how the serial port is to be opened. Using the default values will open the connection to the device thro COM1 with no Init String (Some GPS devices require a custom init string to get them to start sending data), 4800 baud, 8 data bits, 1 stop bit and no parity.

Once you have a GPSConnection object you can then either poll it's two main properties GGA and RMC which correspond to the latest NMEA sentences of this name.

The GGA sentence provides the distance above the WGS84 ellipsoid in metres, type of Fix obtained (enums are provided for this property as well as all other numeric enum values) and the Number of Satellites.

The RMC sentence provides the date and time of the fix, Latitude (as an integer value of hundreds of arc seconds and always positive), Longitude (again as an integer value of hundreds of arc seconds and always positive), Speed over the ground in knots and Compass Bearing from East of North. The Northing boolean properties indicates if the latitude is North or South of the Equator, while the Easting property indicates if the longitude is East or West of the Prime Meridian.

 

Included with the download is a very simple VB 6 app which exercises all of the functionality of the library. You should be able to get an idea on how to use the library by examining the code in this sample.

 

 

 

Shareware Notice

GPCom is shareware and this trial version is a fully functional evaluation copy. This means that you are free to evaluate GPSCom for up to 30 days. After this period if you are still using GPSCom and/or wish to include it in a project of yours, then you are legally obliged to register GPSCom with the author. Registration will entitle you to comprehensive email support from the author. The cost is $20 US dollars. I do not support online registration for this product yet so you must register via normal post. Remember to include your email address in your letter so that I can quickly confirm receipt of your registration. Payment should be made by cheque and be made out to:

PJ Naughter,
Clonganny,
Ballygarrett,
Gorey,
Co. Wexford.
Ireland

The registration fee is very small and its a great incentive for me to keep improving GPSCom. Once I have received the registration you are entitled to unlimited email support for GPSCom.

 

 

 

Planned Enhancements

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
21 March 2010