pkr2000

I'm about to write an application for Windows Mobile (WM) but I'm not sure of what I'm supposed to do. I'm aware that previous versions of WM only allowed one application to grab hold of the COM ports and therefore made it difficult to share the ports. I'm also belive that WM5 now allows multiple applications to share the GPS data. Plus, I assume for backwards compatibility, you can get WM5 to provide the GPS data to a specific COM port.

What I'm not clear about is is should I still just be opening COM ports to get the GPS data or is there a specific method where I should be asking for for the "GPS data" or something else




Re: .NET Compact Framework Advice about using GPS (port?)

AlexFeinman

GPS intermediate driver in WM5 is a multiplexer, which means that it emulates a COM port that is possible to open by several applications at once (read-only). You can open this port and use it exactly as you did in Wm2003. You can also open the actual COM port to which GPS is connected. This will work as long as no application has opened the multiplexer port (because internally it will open the physical port).

Finally you can use GPS API to interrogate GPS indirectly and get processed position information.






Re: .NET Compact Framework Advice about using GPS (port?)

pkr2000

That's excellent, and the GPS API was exactly the thing I was missing. I really don't want the hassle of opening COM ports...or rather ensuring I don't break other applications running.

Thanks.