Erratic GPS locations on multiple android devices using opencpn - General Questions and Answers

Its hard to describe exactly what's going on but Ive got two completely different android phones, different manufactures and running different android versions and yet I experience the same erratic GPS location issues in OpenCPN, a marine navigation application. The problem is intermittent but serious as I am navigating and the error is significant. With one of the phones I can sometime restart the phone and the error goes away and I get a correct fix for a while.
In an attempt to understand the problem I installed various GPS test apps and I have noticed the error in location does not affect these apps. Ie. The GPS is getting accurate fixes but not the opencpn app.
In opencpn I can observe the nmea data it receives and when the error is present I can see the nmea lat and long do not match the location reported by the GPS test apps.
How can this be? Do apps have different ways to interrogate the internal GPS to obtain the location? Is the NMEA data which the opencpn app monitors not native to the GPS hardware and somehow able to be miscalculated or corrupted?
Any pointers to how I can figure out a solution?

Contact devs of OpenCPN app.

Related

O2 XDA Serra (Touch Pro) - more GPS problems

Sorry - not a development issue as such but I'm hoping you guys can help with another HTC Touch Pro (A)GPS query. I have read a number of other posts on this but they appear to be inconclusive and I'm not sure if the problems widely reported elsewhere are supposed to have been resolved in the latest shipped ROMS.
I'm experiencing very long acquisition times with the internal GPS on the O2 XDA Serra (just released in the UK), to the point where the GPS is virtually unusable. Cold lock can take anywhere between 15 and 30 minutes, even in open ground in good weather with a clear view of satellites. By comparison, a Garmin eTrex Vista in the same location gets a lock in seconds. I never expected the XDA Serra to equal the performance of a dedicated handheld GPS but I would have expected it to get an initial lock in less than 5 minutes in clear sight.
If and when a lock is acquired, it seems to hold OK and I've experienced no major lag problems.
I'm using Tom Tom Navigator 5, Memory Map Pocket Navigator OS 5 and Google Maps. I've also installed a couple of GPS utilities from this forum - Chartcross GPS Test 1.04 and the HTC GPS Tool v1.1.1.0. These are all configured to point to COM4 at 38400 baud (as per advice in this forum), and I've never had a problem detecting the GPS.
What is bizarre and frustrating is that there is absolutely no mention of GPS functionality in the supplied O2 manual, other than a brief warning about not operating a GPS while driving. The XDA Serra is not supplied with any GPS software or utilities out of the box other than an "External GPS" utility in the System folder, which is completely undocumented. I'm unclear in what circumstances you are supposed to use this utility, but I'm assuming it allows you to set a hardware COM port for an external GPS device (presumably bluetooth?) and select whether or not it is managed by Windows. I've tried turning this off but it appears to make no difference.
I'm aware that the XDA Serra is AGPS capable but I'm unclear exactly what this means in this context (i.e. which particular AGPS technique it actually uses), and how - in the absence of an explicit Program or System setting - my installed GPS applications are supposed to invoke it. I have checked the relevant registry settings in HKLM\Software\HTC\SUPL AGPS:
EnableAGPS 0x00000000 (0)
GPSMode 0x00000002 (2)
Number Fixes 0x3b9ac9ff (9999999999)
QoS Accuracy 0x00000032 (50)
QoS Performance 0x00000059 (89)
Server IP 10.1.101.63
Server Port 0x00001cb6 (7275)
TimeBetweenFixes 0x00000001 (1)
... and can see that the AGPS function is currently disabled (the default), but is this supposed to be enabled programmatically by the GPS application, or do you have to set it explicitly? If the latter, how can you do this other than by hacking the registry?
I have followed advice in this forum about disabling GPS logging (it was disabled by default) using the Schapman Advanced Configuration Tool v3.3.0.0. I have tried enabling the AGPS function using a registry editor, but again it appears to make no difference. In addition, I could see no evidence of it having downloaded an emphemeris file anywhere (unless it's hidden in system ROM), which I presume is how it is supposed to work? If I enable it, doesn this necessarily mean that any of my GPS apps will actually use it?
I have tried using SeaSGEE to download emphemeris data to no avail - it downloads what looks like a good packedEmphemeris.ee file OK but it makes absolutely no difference to performance. I have since uninstalled this and deleted the //windows/packedEmphemeris.ee file.
Finally, if I connect an external bluetooth GPS adapter (the Emtac BTGPS) on COM6 I generally get a good cold lock in less than a minute. I used this all the time on my old XDA Mini S (HTC Wizard) and never had a problem.
So, basically, I'd like to understand how native AGPS works on the Touch Po, how it is supposed to be invoked by GPS applications, and whether there are any tweaks I can try to improve performance over and above the ones I've already tried. Is this a problem that is likely to be improved in subsequent ROM or Radio versions or is this simply a fundamental limitation of a crappy internal GPS chip?
Any advice greatly appreciated.
AGPS
AGPS is basically a utility for operator to be able to track your device for various local ads etc. It uses servers to track instead of GPS.For example Google maps would be able to track your position inside building but with tolerance of a few miles (I guess it is your closest tower) Seems to be some kind of bug when operating with regular GPS (in my case it shuts off GPS every 10-15 seconds making Tomtom unusable.You should see settings for AGPS at Settings-System-AGPS. Disable both tabs. On tomtom use other wired GPS receiver at Baud rate 38400 com port 4. restart after setting AGPS. It did work for me.I have Fuze - same as HTC Touch Pro. Let me know if it works better.
This is exactly how the Fuze is acting. Cold locks (after a soft reset or power off/on) take up to 30 minutes to get. But once you do get a lock, things work as they should. Even AT&T sales reps sat there with me, with 3 different Fuzes and witnessed all three phones doing the same thing. It must be the built in GPS chipset. The Sprint Touch Pro I had for a week, never had any cold lock issues.
I was worried that O2 had modified versions without the GPS module becuase I have never managed to get a lock with the device. Nomatter what I do GPS doesn't seem to work.
It is annoying as I've managed to fix every other problem the Serra ships with. Including getting rid of the default home page for opera when launched vial TFL3D. That was a huge pain in the ass as the XML file cannot be deleted or modified easily, it is an undying file. Damn file protectiona and access rules on WM devices.
is there still isues with gps on this phone?
i'm due an upgrade, currently using a diamond, and find gps is fantastic, locks in a couple of seconds nearly everytime, even after not using it for week still seems to get a fix in under 20 seconds, was looking at the touch hd as i thought it was essentialy the same phone, buf beefed up a bit, but i use gps 3-4 hours everyday, so far this phone seems perfect apart from the gps issues..
i've tried searching but can't find any clear information about it, seen various tweaks but no one can confirm it definatly works, my phone's primary use is gps, would i be a fool to upgrade to the serra?
Tyr said:
I was worried that O2 had modified versions without the GPS module becuase I have never managed to get a lock with the device. Nomatter what I do GPS doesn't seem to work.
It is annoying as I've managed to fix every other problem the Serra ships with. Including getting rid of the default home page for opera when launched vial TFL3D. That was a huge pain in the ass as the XML file cannot be deleted or modified easily, it is an undying file. Damn file protectiona and access rules on WM devices.
Click to expand...
Click to collapse
OK. I had the same problem, never got locked on GPS.
It is ALL software issue. Flash different rom, new radio (recommend 20M1) and use tomtom7. Older tomtoms for some reason do not invoke gps receiver on touch pro. GPS on serra works perfect, on mine it takes about 20-30 seconds to get satellite lock. Relax Just flash rom different that the o2 one.
The GPS is rock solid on my XDA Serra with fast GPS start-up times with the PROven ROM - http://forum.xda-developers.com/showthread.php?t=444653.
I did have GPS problems with the standard O2 ROM, as others have said it's a software issue.
All issues have been SOLVED
Hi. just go to this post and you will have a gps lock in a matter of seconds. enjoy. thanks
http://forum.xda-developers.com/showthread.php?t=467374
Go to http://www.my-xda.com/software_updates.jsp to download the latest software updates for every O2 XDA mobile!
Yes I just updated my ROM and the difference is HUGE. Almost instant connection with my GPS.
Yes, apparently O2 removed QuickGPS because at some point they planned to enable their own AGPS servers, but did not get round to it and forgot to add back QuickGPS.......
The Avatar said:
Yes I just updated my ROM and the difference is HUGE. Almost instant connection with my GPS.
Click to expand...
Click to collapse
hi the avatar
which ROM did you go for on your serra, i am having similar probs
just when i thought i had sorted it following other suggestions on this forum, beginning to think the gps was single use
cheers
r

GPS annoyance

basically the only program i can get to work with my GPS location is google maps and its usually off a few city blocks. no other prgram can even get my location including sprint navigator. is there anything i can do to help fix this problem?
Have you downloaded the satelittes via quick gps? If so did you make sure to enable GPS in the programs? I know for google maps you have to do Menu > Settings > Enable GPS
This might fix all your GPS troubles
I used to have a big problem with my GPS too. I installed the GPS Mod Driver by Mach2003 and now applications like TomTom and Navigon are able to find my GPS far quicker and I have more control over my GPS settings.
How it works is by simply creating a layer between the GPS native driver and the application. This layer, communicates with both the native driver and the application and is pretty robust. It gets the job done better than the native driver could by providing extra options like cell tower triangulation and path guessing.
Try it, it might fix your problem.
The forum link is:
http://forum.xda-developers.com/showthread.php?p=4729010#post4729010
Mach2003 said:
This Driver installs between your gps application and the GPSID driver that reads the hardware gps data.
Lag is compensated, by guessing your position 'some number' of milliseconds in the future, current course and speed changes are included in the guess.
It corrects for invalid data in the gps strings, Out of range DOP values, and Heading values of 'NaN' (Not A Number). Position, Speed, and course are reported, even though the distance traveled is less than 30 meters.
Click to expand...
Click to collapse
I know it might be stupid, but have you enabled the location settings on the phone. If its not enabled googlemaps will use triangulation to get the location within a few hundred to a thousand feet. With location enabled googlemaps will get my position within about 15-20 feet. I would check that then do the other things that are posted above.
My guess is that location setting needs to be changed from 911 only to on

Official Bugs/Issues Thread

Categories
General
In the contact, the history/activities won't save the selected "View by"
~Solution Unknown
Unlock Phone - Reference
~Use turbosim
~Use Giz02's Methodology
~Keep contacting ATT (not a guaranteed solution)
Touchwiz
Text Message
Out of order - Reference
~Use handsent from market
Delete Words from Dictionary - Reference
~Use User Dictionary Manager from market
Call
GPS
Slow Locking Time
~Samsung is currently working on it.
Report any bugs (or suggest solutions to the bugs) here,
so we'll be able to compile all bugs into a single thread.
Hint: Be specific and thorough. Use precise and concise language.
Thanks
GPS tracking issue:
GPS works good for the first couple of days then fails until a hard reset is performed. See above post.
WIFI communication issue on Enterprise networks using DHCP:
WiFi connects, but will not transmit data on enterprise class Cisco networks. AT&T buggered something up with their "customization." UK galaxy S users do not report this problem, most likely driver related. Can be mitigated to some extent by setting static network settings. No known fix, effects all Captivates.
Compass issue:
compass is erratic and buggy, related to chip firmware. No known fix, effects all Captivates.
Random shut down while idle affects some
no know fix but some say its advanced task killer, set cpu, and/or a few other apps

GPS Time is wrong.

Explaining a little background.
GPS time is supposed to be collected from the gps signal, so any device that has the ability to recognize a gps signal, can sync their internal clock to the atomic clocks that are on the gps satellites.
GPS time is used on some activities, to precisely log the gps track. They are common on hanggliding and paragliding races, where we use gps tracks as the main method for measuring the performance of the competitors.
All the pilots have the same exact time on their devices.
There are some flight logger applications that uses the gps capabilities of the android devices, such as gaggle and xcsoar.
There´s also a nice application called gps time, that you can download for free from the market, in order to sync your internal android clock with the atomic clock of the gps satellite network. It does not use data but only gps radio frecuencies, so it will work without phone coverage, or without wifi on.
Last night I found out that my Inspire 4G android phone is not actually reading the gps time. I changed the internal clock of the phone on 25 minutes while unticked the autosync option.
Then when opening any gps application (gps test, gps essentials, gps status, gps time, xcsoar) the gps time would be the "wrong system time".
Testing the same on a Samsung galaxy tab without gsm capabilities (I.E. without 3g and without agps i´m guessing), the gps time would be the correct gps time, regardless of the system time that I use or miss-set.
I´ve double checked the gps time with an actual garmin gps (gecco) that I use for hanggliding, and while the samsung galaxy (android) would show the exact time, the inspire 4g will show the wrong one (all three devices were of course, having good gps readings with more than 6 sats).
So, I´m a little worried that the gps time is not being used on the Inspire, or somehow the internal clock is overruning the gps time sentences.
I´m hopping for a fix. I tried messing up with the build.prop to disable agps (set "ro.ril.def.agps.mode = 0") under \system to see if the agps was overwhelming the gps time signal, but there was no luck.
Any ideas or any help on this matter would be really appreciated.
I also invite you guys to try it for yourself.
Just download gps time, and clocksync (the last one would use network to sync the clock with an atomic clock, that should be pretty close to the gps time).
Try to see if the phone is actually using the gps time or the internal system time.
Wrong place for this buddy. This is is not development related
Ugh one of these threads again
Sent from my SGH-I777 using Tapatalk 2 Beta-5
No!!! Wait.
It´s different from the other "NO GPS SIGNAL" kind of posts.
I don´t have a problem with the gps signal.
I put it on the developer section as there has been some software related issues around gps and fixes that seems to be related to developers.
This is definitively an issue that can cause a lot of trouble on some software developers, as any syncing between multiple devices using gps time could lead to problems.
I was hopping that maybe one of the developers that have worked with the gps drivers or the parameters of the config files for the agps will give some insight on why this is happening and if this happens to everybody or just some custom roms.
If the problem affects all the roms, then It should be addressed by the developers, I´m guessing.
Mods please consider deleting or moving due to not being in The correct thread.
Sent from my Desire HD using Tapatalk 2
cwhitney24 said:
Mods please consider deleting or moving due to not being in The correct thread.
Sent from my Desire HD using Tapatalk 2
Click to expand...
Click to collapse
+1. Think I'm in wrong thread too.
If you can read this, I's been a drinkin

[Q] GPS/Maps bug?

I have recently encountered more of an annoyance rather than a problem that got my head scratching. It is location and GPS related, so I searched for Galaxy S6 GPS problems in google, and I have noticed that some owners experience a lot of signal loss/searching in their phones. What I have found annoying in my case is that whenever the GPS signal is lost, Google Maps puts me in a wrong location that I have not been to for a while (around one month). I have lived in that location before, but I have since moved and no longer stay there. I have purchased the phone after moving. After a bit of experimenting I came to the conclusion that the building I currently live in blocks the GPS signal, since whenever I am in the balcony/near a window I get a signal and I'm put in the correct location in Google Maps. As soon as the signal is lost, Maps automatically puts me in that old location. This has also effected Google Now where I'm given incorrect travel times and directions, but not my weather location (set on current).
I have set 'Home' to my new location, I have also tried deleting my location history from google, tried a few GPS fixing apps, reinstalling Maps, and also installing other map applications like Here and Waze, which behave the same way and give me the same old location as my current.
At first I thought it could be a GPS hardware defect in the galaxy, but I turned on my old HTC One (M8) and it acted and behaved in the same way putting me in my old location. So it seems to me there's something in the Android OS perhaps since Here and Waze act in the same way. I also tested with the Maps app on an iPhone 6 and it gave the correct location although not 100% accurate. So is there anyway I can make Maps at least remember my last location before signal loss?
It is also absurd that my laptop can pinpoint my correct location while connected on Wifi while my phone with GPS, wifi and cell network cannot, which in conclusion seems like an android bug or something with location history in my google account which as I said already tried deleting the whole history.
Also note that the GPS and Maps work perfectly fine whenever I'm outside the building.
Google Maps has had weird location issues on Android since January or February. Affected the GPS accuracy / function of my Nexus 5 as well. I think the bug is actually in Google Play Services framework, not in AOSP or the Maps app.
s6 gps issue
ab1983 said:
I have recently encountered more of an annoyance rather than a problem that got my head scratching. It is location and GPS related, so I searched for Galaxy S6 GPS problems in google, and I have noticed that some owners experience a lot of signal loss/searching in their phones. What I have found annoying in my case is that whenever the GPS signal is lost, Google Maps puts me in a wrong location that I have not been to for a while (around one month). I have lived in that location before, but I have since moved and no longer stay there. I have purchased the phone after moving. After a bit of experimenting I came to the conclusion that the building I currently live in blocks the GPS signal, since whenever I am in the balcony/near a window I get a signal and I'm put in the correct location in Google Maps. As soon as the signal is lost, Maps automatically puts me in that old location. This has also effected Google Now where I'm given incorrect travel times and directions, but not my weather location (set on current).
I have set 'Home' to my new location, I have also tried deleting my location history from google, tried a few GPS fixing apps, reinstalling Maps, and also installing other map applications like Here and Waze, which behave the same way and give me the same old location as my current.
At first I thought it could be a GPS hardware defect in the galaxy, but I turned on my old HTC One (M8) and it acted and behaved in the same way putting me in my old location. So it seems to me there's something in the Android OS perhaps since Here and Waze act in the same way. I also tested with the Maps app on an iPhone 6 and it gave the correct location although not 100% accurate. So is there anyway I can make Maps at least remember my last location before signal loss?
It is also absurd that my laptop can pinpoint my correct location while connected on Wifi while my phone with GPS, wifi and cell network cannot, which in conclusion seems like an android bug or something with location history in my google account which as I said already tried deleting the whole history.
Also note that the GPS and Maps work perfectly fine whenever I'm outside the building.
Click to expand...
Click to collapse
I bought a case that was supposed to be a clear view but doesn't work and needs a proximity sensor app installed to work. It has the magnet and a lump for the chip. I also couldn't get a gps lock. Was seeing up to 6 satellites but not locking. I removed the case and got 17+ and a 3d lock straight away.
I came to the conclusion that my building blocks the GPS signal, but the annoyance comes from Google maps locating me in a default location far away from me whenever there is no signal.

Categories

Resources