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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cyprus106
    New Member
    • Apr 2008
    • 31

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

    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
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    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

    Comment

    • Cyprus106
      New Member
      • Apr 2008
      • 31

      #3
      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...

      Comment

      • markmcgookin
        Recognized Expert Contributor
        • Dec 2006
        • 648

        #4
        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.

        Comment

        • Cyprus106
          New Member
          • Apr 2008
          • 31

          #5
          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?

          Comment

          Working...