I just got a new phone, a Motorola Q9c running Windows Mobile 6.0 ... and it has GPS.
The GPS is awesome and I've been running Google Maps (Live Search Maps couldn't seem to find my GPS and needed me to tell it what port is was on or something... and I had no idea what to tell it) and loving it, but of course I want to code against it myself.
What I want is a simple piece of sample code that just gets and displays the current co-ordinates... that's all... I can handle everything else I want to do from there, but polling the device and getting data out of it is what I'm lacking.
I browsed through MSDN, I searched, I found nothing that was nice and simple ... so I turn to you folks! ![]()
Anyone already done this, or care to point me in the right direction?
-
-
OpenNetCF has a GPS lib, it might be a good starting point but the NMEA stuff isn't too hard to parse if you're feeling frisky (aka overzealous).
-
GPS and WM is indeed a really interesing topic, hoping to read more here

So, this is what I came about:
http://blogs.msdn.com/coding4fun/archive/2006/10/31/912287.aspx
http://www.codeplex.com/SharpGPS
http://www.paul-abraham.com/ArticleDP/gps.htm
HTH,
Nils -
If you go look in the WM6 SDK, you can search for "GPS Intermediate Driver"
From the SDK:The GPS Intermediate Driver is useful to developers writing applications that use GPS (Global Positioning System) devices as well as to GPS hardware manufacturers. It is useful because it provides an intermediate layer that abstracts the actual GPS device from developers and manufacturers. Ideally, this enables application developers to write code that works with any GPS hardware, and GPS device manufacturers to produce hardware that works with any application.
All of the GPS Intermediate Driver documentation should be useful for both application developers and device manufacturers. With that said, there are particular sections that may be of special interest to each group:
- Application Developers. The GPS Intermediate Driver Application Development topic (and subtopics) provide information about using the GPS Intermediate Driver from an application. Of most interest may be the
Accessing Parsed GPS Data and Accessing Raw GPS Data topics, which explain how to write code that uses GPS Intermediate Driver location data.
- GPS Hardware Manufacturers. The Integrating GPS Hardware with the GPS Intermediate Driver topic (and subtopics) provide information for hardware manufacturers, including how to implement special GPS IOCTLs and how to make GPS hardware configure
itself automatically using Windows Embedded CE plug and play functionality.
- Application Developers. The GPS Intermediate Driver Application Development topic (and subtopics) provide information about using the GPS Intermediate Driver from an application. Of most interest may be the
Accessing Parsed GPS Data and Accessing Raw GPS Data topics, which explain how to write code that uses GPS Intermediate Driver location data.
-
I think you should make a search about P/Invokes of GpsApi.dll... This api has existed since WM 5 as far as I know.
-
I though that even now, all GPS devices operate on COM ports, and that you could just connect to them as such.canbilgin said:I think you should make a search about P/Invokes of GpsApi.dll... This api has existed since WM 5 as far as I know.
Could be wrong tho, as I have never done it.
-
Yeah you are correct. It's indeed basically a COM port wich you can read data from.jh71283 said:
I though that even now, all GPS devices operate on COM ports, and that you could just connect to them as such.canbilgin said:*snip*
Could be wrong tho, as I have never done it.
My SamSung phone has a option that Windows Mobile manages the base COM port and redistributes it among all the listeners. So you can have multiple GPS apps connected to the same COM port.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.