Connecting Tech Pros Worldwide Help | Site Map

C# Gps always returning 0 vals for Lat & Lng (Winmobile5, Treo700)

Newbie
 
Join Date: Apr 2008
Posts: 31
#1: Nov 5 '08
I'm using the Gps wrapper from the Windows Mobile 6 SDK Example. It's straightforward, and technically, all the code seems to work just fine. The problem is that it never picks up any values, satellites, nothing. It always returns 0s.

I tested outside with a Palm Treo 700 when I tested, and have waited for periods of up to 20 minutes, never getting any data returned (I was keeping the Gps alive, for those who know it automatically dies after X time)

I know the Treo has GPS capability, and it's on. Now I'm beginning to wonder if it's GPS isn't actually what I thought it was, and possibly the code is looking for an external GPS device? I tried searching for this scenario and came up with absolutely nothing. 'Course it could be something I'm overlooking entirely!

If ANYBODY has any input I would very much appreciate it.
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#2: Nov 5 '08

re: C# Gps always returning 0 vals for Lat & Lng (Winmobile5, Treo700)


Hey,

I have had this EXACT same problem with a few other devices. It usually boils down to one of two things...

Baud Rate / Program Port / Hardware Ports being set wrong...

Some 3rd party corrected GPS or other GPS software hogging the connection regardless of the "Let windows manage GPS" box being checked.

Try playing around with your baud rates and make sure you have program / hardware ports set correctly.

If you try things then keep coming back here and letting me know how you get on I can help you troubleshoot this.

Mark
Newbie
 
Join Date: Apr 2008
Posts: 31
#3: Nov 5 '08

re: C# Gps always returning 0 vals for Lat & Lng (Winmobile5, Treo700)


Just to be clear, so I SHOULD definitely be able to grab GPS info from my phone.

Currently, I set the GPS program port to COM0, hardware port to COM6, the Baud rate to the highest available: 115200, Manage GPS automatically is enabled.

I'll play around with the rates & ports, see if there's a change, but I simply don't know how to go about trying to debug what's holding it up aside from that...
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#4: Nov 5 '08

re: C# Gps always returning 0 vals for Lat & Lng (Winmobile5, Treo700)


Quote:

Originally Posted by Cyprus106

Just to be clear, so I SHOULD definitely be able to grab GPS info from my phone.

Currently, I set the GPS program port to COM0, hardware port to COM6, the Baud rate to the highest available: 115200, Manage GPS automatically is enabled.

I'll play around with the rates & ports, see if there's a change, but I simply don't know how to go about trying to debug what's holding it up aside from that...

I bet you that's it mate... try pulling the baud rate right down to like 9000 or 90000 or whatever the lower settings are.
Newbie
 
Join Date: Apr 2008
Posts: 31
#5: Nov 6 '08

re: C# Gps always returning 0 vals for Lat & Lng (Winmobile5, Treo700)


Alright, so I tried nearly all of the baud rates, changed the com ports a couple of times and tried it over again. I tried it on a different winmobile device and it worked perfectly. I used the exact same GPS settings and mine still didn't work. Does anybody have any ideas?
Reply