473,387 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Nov 5 '08 #1
4 2774
markmcgookin
648 Expert 512MB
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
Nov 5 '08 #2
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...
Nov 5 '08 #3
markmcgookin
648 Expert 512MB
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.
Nov 5 '08 #4
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?
Nov 6 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Victor Bazarov | last post by:
In the project I'm maintaining I've seen two distinct techniques used for returning an object from a function. One is AType function(AType const& arg) { AType retval(arg); // or default...
1
by: maadhuu | last post by:
what is the use of returning "const & "from a function in C++ ?? Is it used somewhere at all ?? thank you, Ranjan.
17
by: orekinbck | last post by:
Hi There Say I want to check if object1.Property1 is equal to a value, but object1 could be null. At the moment I have code like this: if (object1 != null) { if (object1.Property ==...
3
by: darrel | last post by:
This might be a really dumb question, but when should/shouldn't one use the exit function command? If I have this: function() if something then do this return that else
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. >strong<...
13
by: jois.de.vivre | last post by:
Hi All, I'm trying to write a wrapper class for std::vector to extend some of its functionality. The problem I'm getting into is returning an iterator type from a member function. Here is the...
4
by: scparker | last post by:
Hello, We have a stored procedure that does a basic insert of values. I am then able to retrieve the ID number created for this new record. We are currently using ASP.NET 2.0 and use N-Tier...
2
by: merrittr | last post by:
Hi all, i am struggling with c strings still here is what i want, pass in 2 string vals convert them to doubles add them then convert the result back to a char string and return it to a printf...
2
by: satyanarayan sahoo | last post by:
Can we write a method which returns multiple values?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.