Re: GPS phone pocketpc development

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Andrew Enfield \(MS\) (andrewe_at_microsoft.com)
Date: 09/22/04


Date: Wed, 22 Sep 2004 09:07:24 -0700

Mateusz's correct. There's nothing on CE that provides single-step API
access to GPS information. Instead, your code would call CreateFile to open
the COM port to which the GPS device is attached, call ReadFile to get
binary data from the device, and then parse it according to the NMEA
(National Marine Electronics Association) spec. I haven't tested code like
this myself against multiple GPS devices, but, as long as the devices attach
via a COM port (either physically or virtually), and return valid NMEA data,
it should be possible to write code that works with multiple GPS devices.

More info:
- NMEA site: www.nmea.org, I think you need $350 or so to purchase the spec,
but you might not need this, given info at places like the next link.
- Peter Bennett's GPS and NMEA Site: http://vancouver-webpages.com/peter

-- 
Andrew Enfield
Programmer Writer, Windows CE
This posting is provided AS IS with no warranties, and confers no rights.
"Mateusz Łoskot" <antispam@see.my.signature> wrote in message 
news:mem3d.293143$vG5.8628@news.chello.at...
> On 9/18/2004 7:40 PM, Dave Moore wrote:
>> 1). If I purchase a PPC with a GPS add-on, is there a software API 
>> available
>> in Pocket Windows that would allow my application to access the current 
>> GPS
>> location?.
>
> I don't think so. GPS usually is connected through COM port (also virtual 
> COM). So you have to know how to read data stream from COM then you have 
> to know how to parse NMEA format of GPS data. There is some NMEA 
> specification on the Internet.
>
> Greets
>
> -- 
>
> Mateusz Łoskot
> mateusz at loskot dot net 


Relevant Pages

  • Re: USB not working with NG TOPO
    ... I've changed the connection type to USB in the TOPO, confirmed GPS interface setting set to GARMIN....what am I missing? ... When the serial to USB converter is PNP'd by the system, it creates a virtual COM port for it. ... If the Garmin has NMEA on, or NMEA out on then the NG software may need to be set to NMEA or generic or something like that to get it to work. ...
    (sci.geo.satellite-nav)
  • GpsMap 276C NMEA Interface Problem
    ... about, but I have a 36 ft sailboat, several Garmin Gps and an Autohelm ... GpsMap 276C NMEA Interface Problem ...
    (sci.geo.satellite-nav)
  • Re: Looking for Notebook GPS with both USB and Serial outputs
    ... > Is there such a GPS with both USB and serial connectors? ... simply look for a GPS with that will output non-proprietary NMEA ... serial to USB adapter on a USB port, or with a Socket R-I/O PCMCIA ...
    (sci.geo.satellite-nav)
  • Re: GPS application crashing -help
    ... other than storing system time in a few vars that you ... more than one GPS app at a time. ... So although it's a great idea from the developers point of view (no NMEA ... Erik, show us the code you're using to analyse the NMEA strings, and ...
    (microsoft.public.pocketpc.developer)
  • Re: Display course and speed on external screen
    ... Years ago when I took a course in computer programming ... device, if I can only get the right stuff ot from the GPS, ... NMEA through a paralell port. ... I don't know why you would want NMEA ...
    (sci.geo.satellite-nav)