[SOLUTION] GPS Fix - HD2 Android Q&A, Help & Troubleshooting and Genera

INTRODUCTION
As we all know, we have two applications to have less problems with our GPS on Android builds.
- FasterFix - the app improves the gps ntp time settings in your gps.conf file and add's a gps suppliant host. <c> the_double
- GPS Status - it downloads A-GPS data from the internet every time you launch it, which helps the process of obtaining a gps lock. <c> suppliesidejesus
Some people responds that it works, but for some it does not helps, like for me.
Well, probably there is a solution.
We already know, that we have file named gps.conf in system/etc. It can be edited with e.g. ASTRO Explorer (via Market) or FasterFix software. The problem is, that we did it wrong, FasterFix software did it wrong.
Click to expand...
Click to collapse
STORY LINE
Here is an example of common gps.conf file:
ntp_server=north-america.pool.ntp.org
xtra_server_1=http://xtra1.gpsonextra.net/xtra.bin
xtra_server_2=http://xtra2.gpsonextra.net/xtra.bin
xtra_server_3=http://xtra3.gpsonextra.net/xtra.bin
supl_host=supl.google.com
supl_port=7276
Click to expand...
Click to collapse
And let's say we live in UK (Europe)
When we are editing the file, we edit only the first row: ntp_server=. The same does FasterFix software.
We want a UK, so we edited:
ntp_server=uk.pool.ntp.org
xtra_server_1=http://xtra1.gpsonextra.net/xtra.bin
xtra_server_2=http://xtra2.gpsonextra.net/xtra.bin
xtra_server_3=http://xtra3.gpsonextra.net/xtra.bin
supl_host=supl.google.com
supl_port=7276
Click to expand...
Click to collapse
I beleve that for some of you this can be enough, GPS working great. But not for me. For me and a lot of other people it does not help.
Click to expand...
Click to collapse
THE SOLUTION
Let's use http://www.pool.ntp.org/zone/uk to check our NTP adresses in UK.
We got this from the site above:
uk.pool.ntp.org
server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk.pool.ntp.org
server 3.uk.pool.ntp.org
Click to expand...
Click to collapse
So the solution. Download ASTRO Explorer (via Market). Go with ASTRO to system/etc and find gps.conf. Open it in a text editor. And if you live in UK, edit it this way: (changes are bolded)
ntp_server=uk.pool.ntp.org
xtra_server_1=http://0.uk.pool.ntp.org
xtra_server_2=http://1.uk.pool.ntp.org
xtra_server_3=http://2.uk.pool.ntp.org
xtra_server_4=http://3.uk.pool.ntp.org
supl_host=supl.google.com
supl_port=7276
Click to expand...
Click to collapse
As you can see, i've added one extra xtra_server_4. Why? Because we have 4 servers in uk, why not to use them all?
Save! Reboot! Chech! Leave the feedback!
Click to expand...
Click to collapse
MY STORYLINE
I live in Latvia, but this is Europe. I did the same, but for Europe
NTP link for Europe: http://www.pool.ntp.org/zone/europe
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=0.europe.pool.ntp.org
XTRA_SERVER_2=1.europe.pool.ntp.org
XTRA_SERVER_3=2.europe.pool.ntp.org
XTRA_SERVER_4=3.europe.pool.ntp.org
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Click to expand...
Click to collapse
I don't use http:// in XTRA_SERVERS line. It works without them. Before I could get GPS signal only on WM6.5, but never on Android. Now i got GPS lock in 5-10 seconds with an 2m accuracy error from my home.
Click to expand...
Click to collapse
CREDITS
Great thank's to crunchie-uk for his amazing help and tips.
Click to expand...
Click to collapse
Hope you find that usefull.

Thanks again to crunchie-uk for the code.
Here is a GPS conf that should enable assisted gps and might be worth trying? <crunchie-uk>
Click to expand...
Click to collapse
Code:
NTP_SERVER=xtra1.gpsonextra.net
XTRA_SERVER_1=hxxp://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=hxxp://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=hxxp://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 5
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=2500
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
SUPL_HOST=supl.google.com
SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# EXTRA SETTINGS
################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
#################################
##### AGPS Carrier settings #####
#################################
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE

Tried some combinations with above settings.
The best i got was a 1 minute fix but followed by longer one, usually it takes 2-3 minutes to get a lock if phone is put in a flat position and left there.
For me that's not usable, i was used to take the phone from my pocket, setting a destination, putting it in the cradle and just drive with navigator... now if i'm already moving with car it takes around 5/10 minutes to get a lock. Often i reach the destination before it locks...
A stange behaviour: i can get these times only with SD roms. Any NAND i tried took more or didn't work completely.
I hope developers could fix this once for all.
Last thing:
AGPS is not supported at the moment, i remember a note from gauner1986 reporting it during GB libs development. Should not being supporte in froyo as well (simply, there is no code for AGPS inside libgps.so).
Cheers.

ntp_server=de.pool.ntp.org
xtra_server_1=http://0.uk.pool.ntp.org
xtra_server_2=http://1.uk.pool.ntp.org
xtra_server_3=http://2.uk.pool.ntp.org
xtra_server_4=http://3.uk.pool.ntp.org
xtra_server_5=http://0.europe.pool.ntp.org
xtra_server_6=http://1.europe.pool.ntp.org
xtra_server_7=http://2.europe.pool.ntp.org
xtra_server_8=http://3.europe.pool.ntp.org
xtra_server_9=http://xtra1.gpsonextra.net/xtra.bin
xtra_server_10=http://xtra2.gpsonextra.net/xtra.bin
xtra_server_11=http://xtra3.gpsonextra.net/xtra.bin
supl_host=supl.google.com
supl_port=7276
Click to expand...
Click to collapse
How many xtra servers can I add? My example is a bit overdone, but in gereral is it possible to combine some servers? Or is this not recommended?

cabalist, Some tips for you:
1. If you are using GPS Status, kill that app b4 launching navigator, or it may interferate with a navigator.
2. Try giving your gps.conf a line: INTERMEDIATE_POS=0 It can help
j4n87, I think there is no a strict limit to that. Try to put in your first line:
ntp_server=0.de.pool.ntp.org

Just copied/pasted your quotes.
Forgot to rename it to de.
My gps was working, I only don't get fast fixes all the time, so I wanted to know, if I can speed them up, by adding more servers e.g. my de and additionally the european and gpsonextra servers.

Synoptex said:
cabalist, Some tips for you:
1. If you are using GPS Status, kill that app b4 launching navigator, or it may interferate with a navigator.
2. Try giving your gps.conf a line: INTERMEDIATE_POS=0 It can help
j4n87, I think there is no a strict limit to that. Try to put in your first line:
ntp_server=0.de.pool.ntp.org
Click to expand...
Click to collapse
Ciao Synoptex,
1) Already uninstalled it;
2) i've already tried but i didn't notice any improvment. altough i have to do more intensive tests, hopefully this weekend. Should also find the time to search for some explanation about these parameters, i would like to understand what is their function into this;

I'm in US and tried this ntp_server trick. It did not work even after 2 reboots. Still like 2-3 minutes fix time.
Then I installed GPS Status and did "A-GPS Reset" and "A-GPS Download". Rebooted. Now my fix is 10-15 sec.
I DID try GPS Status BEFORE I tried gps.conf trick - did not help.

if u need legit directions and a fast lock....use BING! its just as fast at locking gps like wp7, while Bing gets the location right, google is still changing location and getting it wrong. (for me) even tho its not fancy turn by turn, it gets the job done.
oh yeah, also follow the instructions in op, worked to increase lock time, in google maps and bing.

I'm just curious at how changing the Network Time Protocol Server makes it work better? Is there some relationship between them and GPS satellites? I don't have an inkling of how they work, so thought I'd ask.
My GPS is somewhat erratic, but that could well be due to buildings etc in my area.

Hi Guys, small improvements here.
Today i saw my first 7 seconds hot lock! And with the same config i've been able to navigate with maps.
However it's still in some way buggy:
cold start with gps status: around 4/5 minutes.
closed and launched it again - 7 sec
closed and launched again - 10 sec
closed and launched again - >5 minutes.....?
closed and launched again - >3 minutes.... wth???
Unfortunately log does not help so i have to solve it by tests.
If i'll be able to let it work in a regular way i'll post the config.
Cheers.

I'm no GPS expert, but this is what I understand:
NTP: Network Time Protocol - used by your device to sync its time (link: http://www.ntp.org/). NTP_SERVER needs to point to one of these servers (eg: europe.pool.ntp.org)
XTRA: Qualcomm's gpsOneXTRA Assistance technology used for speeding up GPS fixes (link: http://www.gsmarena.com/glossary.php3?term=gpsonextra). XTRA_SERVER_x needs to point to a xtra.bin file located on one of the XTRA servers (eg: xtra1.gpsonextra.net/xtra.bin)
Synoptex's solution seems to confuse one for the other, and as far as I know, NTP and XTRA are not interchangeable.

Try this ..
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=0.north-america.pool.ntp.org
XTRA_SERVER_2=1.north-america.pool.ntp.org
XTRA_SERVER_3=2.north-america.pool.ntp.org
XTRA_SERVER_3=3.north-america.pool.ntp.org
SUPL_HOST=lbs.geo.t-mobile.com
SUPL_PORT=7275
Just got a lock in less then 30 secs - Cold Boot ( After Reboot of Phone )
Useing these settings .. best I have ever got

Root
I have GPS status and and so far have never (since installing android) obtained a GPS fix.
I downloaded faster fix but when I run it, it says: error, have root?
ive tried several times just setting it on the dash while driving around, never picks up even 1 sat.
EDIT
my gps.conf looks like this
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276

gps status won't download fix from wifi here

I agree with chong81, xtra are to download small bin files containing satellite extimate position.
NTP is just a time server.
The only way your proposal works better than before is that xtra.bin files you downloaded were totally wrong, so not using them you've a better behaviour.

Related

FIX FOUND: Speeding up GPS Lock??

Just wondering if anyone has discovered how to speed up the GPS lock time.
I am running shubCRAFT CM6RC2/Froyo/Themed V1.1 and while the GPS works the lock time is upto a few minutes.
In windows I will raise an eyebrow after 10 seconds.
I have seen the posts regarding both the latest libgps.so and updating the GPS file but not sure if thats the issue.
Is the GPS using GPSa?
From what I understand the QuickGPS is a map of satellite locations. The idea is once a single satellite is located then the GPS knows what other ones are in the area instead of blindly looking for all of them its just looks for a few. Still slow to find the first satellite.
GPS-a uses a local cell site to tell the GPS where it is. It can then use the QuickGPS to discover what satellites should be overhead and only looks for those. Nice quick lock times.
Are we using GPS-a?
The fix is not to update your gps.conf file and to use local NTP server settings. Whilst it is ideal to use local time servers this does not impact your phones retrieval of the GPS-A data. The time retrieved from the states is exactly the same as Australia.
UPDATE : The Fix
It looks like there maybe an issues with the way Android on HD2 downloads the GPS-A Data. If you download a Tool from the market place called GPS Status. You can use it to download the GPS-A data manually. BAMM. Fresh GPS locks in 3 seconds versus minutes before hand.
Not sure if this process logs any messages and assume it is a cron job but ideally needs some investigation.
Thanks
this has been covered already
Miyagi said:
Install "File Manager" and "Text Edit" (both are free from the market), then open "File Manager", go to "My Phone", (press Ok on warning), the go to /system, /etc and touch on "gps.conf", Open as, Text, and select "Text Edit".
Edit and use your country direction (pool.ntp.org), save and thats all.
Click to expand...
Click to collapse
songokussm said:
i did not for for me at first. you need to use one of the following servers.
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
Click to expand...
Click to collapse
I tried this yesterday and it works great. Change your NTP server to one of the following, if not in the US, look up your country.
Have questions.
Why is changing the time server improve the GPS lock speed. Both the existing server and the new server will provide the same results. Only difference is the reponse time in milliseconds?
Also can edit the file however cannot save it. File is read only.
Can you confirm the Text edit and File manager. There are mulitples in the market. Who are the authors?
Hmm. Readonly file system is going to cause an issue. Back to question 1
What rom are you using? I'm running mattc leo 1.4
File Manager by Adao Team
Text Edit by Paul Mach
I didn't have a problem saving, others reported issues. Try a different text editor.
As far as lock times, before I couldn't get any lock at all. After applying the update I walked outside, instant lock, tried inside, 3-4 second lock.
Thats the difference. I do get a lock but its slow.
I have just queried the north-america.pool.ntp.org server and compared the output to the query from 1.au.pool.ntp.org.
The results are the same. Changing the ntp server won't make a difference.
Now checking if there is some sort of other issue. Noticing dns does not work at console.
dusty_nz said:
Thats the difference. I do get a lock but its slow.
I have just queried the north-america.pool.ntp.org server and compared the output to the query from 1.au.pool.ntp.org.
The results are the same. Changing the ntp server won't make a difference.
Now checking if there is some sort of other issue. Noticing dns does not work at console.
Click to expand...
Click to collapse
did you fill in 1 of the 4 below?:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
You just choose one, for example: "0.us.pool.ntp.org"
Not "north-america.pool.ntp.org"
I had the exact same problem with super slow GPS lock, but i changed the ntp server to point to Canada (since i live in Canada) and my GPS lock was seconds.
I personally think it made a huge difference
**edit
Oh, and i used "Text Edit" and "Linda Manager" to do the changes.
I got the same error saying it was read-only, but it still saved the changes. You need to reboot into Android after you make the changes. After you reboot, just go back in with the File Manager and check if your changes are still there (they should be, even though you get the read-only error)
Then try your GPS lock again.
I use Google maps with Google Navigator and it locked in about 5 seconds.
You can also check your in Android "Settings" - "Location and Secrutiy" to have both "Use Wireless Networks" and "Use GPS Satellites" checked off
Gone further.
Installed a ntp client on the phone and tested both north-america.pool.ntp.org and 1.au.pool.ntp.org and both work and give the same response.
I am in australia so the au one is the pick. Using the shubCRAFT rom and the whole file system is readonly.
Need a windows tool to edit the img files. Any recommendations?
Still confused why the au one os better than the north american one. Both work. They are just time servers.
for some reason my gps.conf is blank. Can someone please post their content of this file for me? (Northeastern US region)
Many thanks
norman505 said:
for some reason my gps.conf is blank. Can someone please post their content of this file for me? (Northeastern US region)
Many thanks
Click to expand...
Click to collapse
Check/Read this thread: http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=7410015
Update. See first post.
If GPS Status actually works to get AGPS going then that's great news. Having more accurate times by using local NTP servers does help lock times slightly, but real, working AGPS is the answer we want, and despite the SIPL setting in gps.conf, it doesn't look like it's working by default on the HD2.
EDIT: It looks like GPS Status grabs the AGPS data on launch for me, so all you need to do is setup Tasker to launch GPS Status whenever GPS is turned on and you should have instant lock. I'll test it out tomorrow when I get outside.
dusty_nz said:
Just wondering if anyone has discovered how to speed up the GPS lock time.
I am running shubCRAFT CM6RC2/Froyo/Themed V1.1 and while the GPS works the lock time is upto a few minutes.
In windows I will raise an eyebrow after 10 seconds.
I have seen the posts regarding both the latest libgps.so and updating the GPS file but not sure if thats the issue.
Is the GPS using GPSa?
From what I understand the QuickGPS is a map of satellite locations. The idea is once a single satellite is located then the GPS knows what other ones are in the area instead of blindly looking for all of them its just looks for a few. Still slow to find the first satellite.
GPS-a uses a local cell site to tell the GPS where it is. It can then use the QuickGPS to discover what satellites should be overhead and only looks for those. Nice quick lock times.
Are we using GPS-a?
The fix is not to update your gps.conf file and to use local NTP server settings. Whilst it is ideal to use local time servers this does not impact your phones retrieval of the GPS-A data. The time retrieved from the states is exactly the same as Australia.
UPDATE : The Fix
It looks like there maybe an issues with the way Android on HD2 downloads the GPS-A Data. If you download a Tool from the market place called GPS Status. You can use it to download the GPS-A data manually. BAMM. Fresh GPS locks in 3 seconds versus minutes before hand.
Not sure if this process logs any messages and assume it is a cron job but ideally needs some investigation.
Thanks
Click to expand...
Click to collapse
It does help in my case, always under 30 seconds lock using MotoNav.
In my experience, if you succesfully lock ones without GPS Status, you should lock on the your GPS quickly again as long as you don't restart your phone. M2C's
Gps status works. Fix is very fast. It even works indoors if you are near the window and there is no big building in front of you.
I wrote about this some time ago.
http://forum.xda-developers.com/showthread.php?p=8366121&highlight=gps+status#post8366121
and
http://forum.xda-developers.com/showthread.php?p=8366105&highlight=gps+status#post8366105
(I provided the links so you can check other posts in two similar threads)
new version of gps status downloads sat data directly on app startup. Or you can use quickgps in winmo and download the data and then android will also fix faster. Both software downoload gps sat data valid for 7 days. I think the downloaded data is also input to the gps chip. (not only just downloaded to internal memory/sd card)
I live in Turkey and ntp servers doesn't matter for me. Even us or north-america works fine. apgs data is needed for fast fix. Some people have empty gps.conf file. gpsonxtra lines are needed for downloading sat data.
This is my gps.conf file: (in /system/etc)
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
You can change your ntp server to us.pool.ntp.org or north-america.pool.ntp.org or yourcountrycode.pool.ntp.org
I went through the entire process.
Changed the NTP server to a local server. Tested the settings using the NTP client. Checked the download link worked. Data seemed valid.
Still would take over 1-3 minutes to get a lock. A second lock within 1/2 hour was quicker but after a few hours it was slow again.
Using GPS status. Sitting in my car. Powered on the phone. Fireed up Google and bank. 2-3 seconds it had my location.
Really happy.
Lock inside 10 sec, downloading agps data with Gps Status. Thx man!
Sent from my HTC HD2 using XDA App
dusty_nz said:
Just wondering if anyone has discovered how to speed up the GPS lock time.
I am running shubCRAFT CM6RC2/Froyo/Themed V1.1 and while the GPS works the lock time is upto a few minutes.
In windows I will raise an eyebrow after 10 seconds.
I have seen the posts regarding both the latest libgps.so and updating the GPS file but not sure if thats the issue.
Is the GPS using GPSa?
From what I understand the QuickGPS is a map of satellite locations. The idea is once a single satellite is located then the GPS knows what other ones are in the area instead of blindly looking for all of them its just looks for a few. Still slow to find the first satellite.
GPS-a uses a local cell site to tell the GPS where it is. It can then use the QuickGPS to discover what satellites should be overhead and only looks for those. Nice quick lock times.
Are we using GPS-a?
The fix is not to update your gps.conf file and to use local NTP server settings. Whilst it is ideal to use local time servers this does not impact your phones retrieval of the GPS-A data. The time retrieved from the states is exactly the same as Australia.
UPDATE : The Fix
It looks like there maybe an issues with the way Android on HD2 downloads the GPS-A Data. If you download a Tool from the market place called GPS Status. You can use it to download the GPS-A data manually. BAMM. Fresh GPS locks in 3 seconds versus minutes before hand.
Not sure if this process logs any messages and assume it is a cron job but ideally needs some investigation.
Thanks
Click to expand...
Click to collapse
Purely outstanding! What a day! It appears there is a fix for the data connection issue and now this fix!
i am trying to make tasker run gps status and update agps data when the phone turns on and boots into android. ideally i'd like this operation to happen in the background and silently.... what are the steps to program tasker to operate in this way? i've never used tasker before.
is downloading the agps data on android boot really worth it, or should i just continue running gps status before i use navigation?
Sadly, I have never gotten compass or quick GPS lock working. I have tried these things as well (changing NTP server, installing GPS Status), several times, on several builds, on 3 different HD2's. Never worked.
On one HD2 I would get a GPS lock after 2-5min. On the other I could not get a lock at all.
Maybe someone in the US can post the contents of their gps.conf?
Tapping "reset" first in gps status app's manage agps settings then tapping download seems to work much better.
Sent from my HTC HD2 using XDA App
Tried. Failed.
Edited the text, now it's blank and I can't re-edit it or copy over my back-up.
EDIT: Let gps lock on. The file is now back to normal, but I can't edit it.

GPS fix poll

Hi,
A lot of people here have a very long GPS fix.
I propose you to post here your android nand or SD version, rom radio, average, max, min fix time and gps.conf file content.
To have pertinent results, I propose you the following procedure :
- Disable 3G and Wifi
- Make a cold restart
- Use gpsfix from Android Labs available in the market.
- make the test during one week each morning and afternoon at the same place (if possible)
I don't know if my thread will have success but i try.
I start
Android : NAND - prj Clean Desire v0.3.2 [Kernel: prj v0.4]
http://forum.xda-developers.com/showthread.php?t=897191
Radio : 2.15.50.14
Fix : Average 2mn30sec, Max : 7min, min 1min.
gps.conf content :
I've tested a lot of configuration so there are a lot of lines commented and uncommented
NTP_SERVER=fr.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
#XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
#XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
#XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
#XTRA_SERVER_1=0.europe.pool.ntp.org
#XTRA_SERVER_2=1.europe.pool.ntp.org
#XTRA_SERVER_3=2.europe.pool.ntp.org
#XTRA_SERVER_4=3.europe.pool.ntp.org
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 3
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=5000
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=0
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
#SUPL_HOST=supl.google.com
#SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# EXTRA SETTINGS
################################
#CURRENT_CARRIER=common
#DEFAULT_AGPS_ENABLE=TRUE
#DEFAULT_SSL_ENABLE=FALSE
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=0
very nice idea, i'll post my results later today hopefully.
I would suggest to also add the approx age of your phone (recent, old etc...) and, very important, a lo.
you can save logs using alogcat (search for it in android market).
Here is what works best for me ..
Here is what works best for me ..
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=0.north-america.pool.ntp.org
XTRA_SERVER_2=1.north-america.pool.ntp.org
XTRA_SERVER_3=2.north-america.pool.ntp.org
XTRA_SERVER_3=3.north-america.pool.ntp.org
SUPL_HOST=lbs.geo.t-mobile.com
SUPL_PORT=7275
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
ENABLE_WIPER=0
Get A Lock Very Quick ..
Cold Start:15-45 Secs
After:5-15
Give it a try.
WarlockW said:
Here is what works best for me ..
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=0.north-america.pool.ntp.org
XTRA_SERVER_2=1.north-america.pool.ntp.org
XTRA_SERVER_3=2.north-america.pool.ntp.org
XTRA_SERVER_3=3.north-america.pool.ntp.org
SUPL_HOST=lbs.geo.t-mobile.com
SUPL_PORT=7275
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
ENABLE_WIPER=0
Get A Lock Very Quick ..
Cold Start:15-45 Secs
After:5-15
Give it a try.
Click to expand...
Click to collapse
It works !!! (i have the same response time as yours and i detect 10 satelites instead of 6/7 before) but i can't understand why.
1 - I'm in france and your file uses a ntp server in america.
2 - Xtra server must point to a file and you use an url to another ntp server
3 - my 3g and wifi are disabled so i can't contact neither the ntp server, neither xtra server, neither the supl host
Why does it work ?
I want to say you a big thanks but you will have to wait until tomorrow evening after another day test
What file are you guys editing to "change" the settings?
htc-hd2 said:
What file are you guys editing to "change" the settings?
Click to expand...
Click to collapse
gps.conf in system/etc
To modify it you have to use a soft like 'root explorer' on android or adb or 'DroidExplorer' on PC.
http://forum.xda-developers.com/showthread.php?t=939385
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=0.europe.pool.ntp.org
XTRA_SERVER_2=1.europe.pool.ntp.org
XTRA_SERVER_3=2.europe.pool.ntp.org
XTRA_SERVER_4=3.europe.pool.ntp.org
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Click to expand...
Click to collapse
RADIO: 2.15.50.14
ROM: MDJ's CyanogenMod 7 v. 2.6
Fix: 5 - 10 min. Sometimes 5-10 seconds, sometimes - never.
htcvidi, better for you to minimize the gps.conf file. You can remove all lines starting with: #
When the row starts with #, that means that this exact row is ignored.
So your gps.conf will look like:
NTP_SERVER=fr.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
DEBUG_LEVEL = 3
INTERMEDIATE_POS=0
ACCURACY_THRES=5000
REPORT_POSITION_USE_SUPL_REFLOC=0
ENABLE_WIPER=0
Click to expand...
Click to collapse
...sorry, just in case.
WarlockW said:
Here is what works best for me ..
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=0.north-america.pool.ntp.org
XTRA_SERVER_2=1.north-america.pool.ntp.org
XTRA_SERVER_3=2.north-america.pool.ntp.org
XTRA_SERVER_3=3.north-america.pool.ntp.org
SUPL_HOST=lbs.geo.t-mobile.com
SUPL_PORT=7275
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
ENABLE_WIPER=0
Get A Lock Very Quick ..
Cold Start:15-45 Secs
After:5-15
Give it a try.
Click to expand...
Click to collapse
The GPS fix was very quick yesterday with your config but, unfortunately, today i have the same trouble : GPS fix time is random.
However, i remarked that when the fix is long (2 minutes or more) if i switch on/off 3g or plane mode, i have very often a fix after few secondes.
I had been having lots of problems with GPS but now after installing the latest Hyperdroid NAND rom (3.0), all seems to be well!
Getting a fix at around 10 seconds now which seems normal.
I have a feeling that the gps in the HD2 is not very sensitive, or somehow the android builds do not have the sensitivity set right?
I think this purely because it seems ok in wide open area, but even in the top room of my house where it is fine in Windows mobile, it is either slow or fails to lock on android.
htcvidi said:
gps.conf in system/etc
To modify it you have to use a soft like 'root explorer' on android or adb or 'DroidExplorer' on PC.
Click to expand...
Click to collapse
i cannot move, delete, or edit the file. ive tried various file explorers such as astro etc etc.
Ive tried searching but All i find is the same question being asked, but no real answer.
I assume I need root access, but considering this is a rom, wouldn't I already have root?
If not, what do I need, and need to do?
Wingnutt said:
i cannot move, delete, or edit the file. ive tried various file explorers such as astro etc etc.
Ive tried searching but All i find is the same question being asked, but no real answer.
I assume I need root access, but considering this is a rom, wouldn't I already have root?
If not, what do I need, and need to do?
Click to expand...
Click to collapse
You need to mount your system as read/write. By default its on read/only. R/W lets you make changes to the files and be able to save them after the changes.
mattfmartin said:
You need to mount your system as read/write. By default its on read/only. R/W lets you make changes to the files and be able to save them after the changes.
Click to expand...
Click to collapse
Can you tell me how it's done?
I'm having this same issue as many other people here. I'm unable to edit the GPS.conf file whatever I do. I've tried Astro, ES File Explorer, Super Manager, Android Mate, etc. Every single program has the same issue. They are unable to edit the GPS.conf file. I've read dozens of topics about this, but nobody has written any clear instructions.
My phone is HD2 with "Stock" NAND Android 2.3. And what I've read, it's already rooted, but I still don't have the right permissions.
Some people say, I should use Root Explorer, but is there any free solutions to this problem? All I want, is to edit the GPS.conf file in order to get the GPS working.
If you want a free solution and have a PC, try DroidExplorer.
It looks like a file explorer but for your android.
With it , you will be able to copy to your pc the gps.conf file, and 'push' it again to android.
htcvidi said:
If you want a free solution and have a PC, try DroidExplorer.
It looks like a file explorer but for your android.
With it , you will be able to copy to your pc the gps.conf file, and 'push' it again to android.
Click to expand...
Click to collapse
Tried it, didn't work. I was able to edit the file, but when I copied the new file back, it seemed to work, but when I opened the file, it still contained the old info. I tried to copy the file many times and even rebooted the device, but no success. So the issue still remains. It seems that the problem is not with the editing software, I just don't have the right permissions to edit, delete, or replace the file.
Esaj2 said:
Can you tell me how it's done?
I'm having this same issue as many other people here. I'm unable to edit the GPS.conf file whatever I do. I've tried Astro, ES File Explorer, Super Manager, Android Mate, etc. Every single program has the same issue. They are unable to edit the GPS.conf file. I've read dozens of topics about this, but nobody has written any clear instructions.
My phone is HD2 with "Stock" NAND Android 2.3. And what I've read, it's already rooted, but I still don't have the right permissions.
Some people say, I should use Root Explorer, but is there any free solutions to this problem? All I want, is to edit the GPS.conf file in order to get the GPS working.
Click to expand...
Click to collapse
If you have ES File Explorer, open the app go to Settings by pressing the middle button and you will see a Root and Mount option, click both. Then you will be able to edit the gps.conf file like I do.
htcvidi said:
Hi,
A lot of people here have a very long GPS fix.
I propose you to post here your android nand or SD version, rom radio, average, max, min fix time and gps.conf file content.
To have pertinent results, I propose you the following procedure :
- Disable 3G and Wifi
- Make a cold restart
- Use gpsfix from Android Labs available in the market.
- make the test during one week each morning and afternoon at the same place (if possible)
I don't know if my thread will have success but i try.
I start
Android : NAND - prj Clean Desire v0.3.2 [Kernel: prj v0.4]
http://forum.xda-developers.com/showthread.php?t=897191
Radio : 2.15.50.14
Fix : Average 2mn30sec, Max : 7min, min 1min.
gps.conf content :
I've tested a lot of configuration so there are a lot of lines commented and uncommented
NTP_SERVER=fr.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
#XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
#XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
#XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
#XTRA_SERVER_1=0.europe.pool.ntp.org
#XTRA_SERVER_2=1.europe.pool.ntp.org
#XTRA_SERVER_3=2.europe.pool.ntp.org
#XTRA_SERVER_4=3.europe.pool.ntp.org
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 3
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=5000
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=0
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
#SUPL_HOST=supl.google.com
#SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# EXTRA SETTINGS
################################
#CURRENT_CARRIER=common
#DEFAULT_AGPS_ENABLE=TRUE
#DEFAULT_SSL_ENABLE=FALSE
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=0
Click to expand...
Click to collapse
Though I am in the US, I am working with AngelDeath, another user on XDA, on creating a very fast GPS solution for the Cmylxgo Stock Desire HD(2) build we are on. I would change your NTP_SERVER command line and add all the servers available for you in France. So instead of you having the "generic" fr.pool.ntp.org line. Go with NTP_SERVER=0.fr.pool.ntp.org, and do it again for servers 1-3. That way you will be accessing all the servers. I would also enable your INTERMEDIATE_POS command line and use the =1 and not =0. Seems to reduce the lock time for me. Do the same for the REPORT_POSITION_USE command line. Also add below the SUPL_PORT=7276 command line SUPL_SECURE_PORT=7275. This helps non-TMOUS carrier users to lock faster as well. I have quite a few changes to the gps.conf file and get cold starts under 25 seconds with relocks in 4-7 seconds. Using nav apps such as Car Home, I am able to get locks within three GPS pulses after first fix. But of course, the command lines I am using are now very specific to my region of the US.
slbenz said:
Though I am in the US, I am working with AngelDeath, another user on XDA, on creating a very fast GPS solution for the Cmylxgo Stock Desire HD(2) build we are on. I would change your NTP_SERVER command line and add all the servers available for you in France. So instead of you having the "generic" fr.pool.ntp.org line. Go with NTP_SERVER=0.fr.pool.ntp.org, and do it again for servers 1-3. That way you will be accessing all the servers. I would also enable your INTERMEDIATE_POS command line and use the =1 and not =0. Seems to reduce the lock time for me. Do the same for the REPORT_POSITION_USE command line. Also add below the SUPL_PORT=7276 command line SUPL_SECURE_PORT=7275. This helps non-TMOUS carrier users to lock faster as well. I have quite a few changes to the gps.conf file and get cold starts under 25 seconds with relocks in 4-7 seconds. Using nav apps such as Car Home, I am able to get locks within three GPS pulses after first fix. But of course, the command lines I am using are now very specific to my region of the US.
Click to expand...
Click to collapse
I'm still confused with all different settings. I'm on tmous, what settings do you recommend for tmous users? I tried to replace gps.conf from Cmylxgo over my ROM but problem still exist.
Okay, if everyone would just give me few days, I am going to open a thread about this and explain what I have learned about the GPS, I know alot of people are having trouble, or even some better people then me have come up with solutions, but it seems that something was over looked when it came to GPS, in the last 3 days I have figured out how all this plays together, and part of me doesnt understand why delevopers (Not talking about rom dev or cookers) did this, its seems at least for the last 3 years we have been going about this all the wrong way.
If everyone would just give me till the end of the week, I will open a thread and explain all this in length, but I also have promised Cmylxgo that if his upcoming rom isnt going to be too far long, then I would hold off until after his release, but I hope to find that out very soon.
Just as a teaser, In the USA region I have now accomplished for the east coast first locks in under 20s and all reboots and reloads to a majority of 3s relocks. At this point I consider this instantaneous and cannot get any faster locks. I also plan to make 6 region files:
USA
Europe
UK
Asia
Oceania
South America
Africa
All the ones for all other countries will not have as extensive commands as the US, for 2 reasons: 1) I dont live in those locations, and two, the servers are not as vast, but I am quite sure it will be better then what anyone has currently running.
slbenz said:
If you have ES File Explorer, open the app go to Settings by pressing the middle button and you will see a Root and Mount option, click both. Then you will be able to edit the gps.conf file like I do.
Click to expand...
Click to collapse
Tried that, but I had problems. When I go to settings and try to activate the Root option, it tells me that this is an experimental feature and when I click "YES", It gives me two choices: Select ROM: 1. Cyanogen Mod / 2. HiAPK. No matter which I choose, it says to me "Sorry test failed, this feature cannot run on your phone". So is there any alternative way of fixing this or any other program, which I could use? Or is there any way to get the gps.conf file writeable?
Could this problem being caused by the custom NAND ROM? I have THIS ROM.
ES file explorer wont work ,says its incompatible with my phone, regardless of which mod (neither of which I have) I select. No surprise.
trying to use droid explorer, but it keeps timing out when saying "downloading tools" and force closing..
Typical, you have a problem, find out what (may) be the solution.. try to get that app/program to fix your original problem, only to fin out the program needed to fix your problem is broke, so now you have to skew off in an entire different direction to try and fix the problem with the program you need to fix your problem.
I love this ****.

[MOD][2.2/2.3] X10 GPS Fix

Fixing your X10 GPS​
Okay, so, I was in the following thread and like the original poster, experienced incredibly horrid and/or slow GPS positioning. This never occurred to myself and other users when using the original Sony Ericsson 2.1 firmware.
Then people started bringing up this gps.conf file and changing NTP servers to allow for a more precise time and thus a more accurate and quicker positioning of your device via the use of the GPS satellites. So, I went along and fiddled around by modifying the contents of that file with local (Oceanic) NTP servers to no avail.
I needed a working GPS a couple of days later (yesterday, as a matter of fact) and then a thought crossed my mind: "If it was working pretty darn good with the official 2.1 firmware, and not the 2.2 firmware... then how about I'll just test to see if the 2.1 gps.conf file works with the 2.2 firmware...", and voila! It did.
So without further ado, I present you all with how to get a working GPS on your Xperia X10 device
This should work on all 2.2.x (and possibly 2.3.x) devices.
Requirements:
An Xperia X10
Rooted
Instructions:
Copy the following code into a new file (using Microsoft Notepad, or another plain-text editing variant), and save it as "gps.conf" onto your desktop.
PHP:
NTP_SERVER=xtra1.gpsonextra.net
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 3
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.sonyericsson.com
SUPL_PORT=7275
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# EXTRA SETTINGS
################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=0
Attach your X10 device and copy that file over to your SD card followed by an unmount.
Within Root Explorer or another folder/file browser, copy the gps.conf file.
Navigate to /system/etc and then activate the paste command to paste and hence replace the existing file (make a backup if necessary).
Restart your GPS and test with your Google Maps application. If necessary, restart your device.
This is the exact method it took to get my GPS working (when it was practically s**t-all beforehand), so please post back if it had or hadn't worked.
Thanks
I had this same issue with my old motherboard.
Well done.
Has anyone else with this problem tested this?
...Then people started bringing up this gps.conf file and changing NTP servers to allow for a more precise time and thus a more accurate and quicker positioning of your device via the use of the GPS satellites. ...
Click to expand...
Click to collapse
ooops,that's me =]
it is not good to use SE SUPL server,too slow
cheers,
L
Sent from my rooted FreeXperia X10
Gps fix
i do the same from the thread
but still stock on message from Google maps location not available
any other fix
i was thinking on editting the config you give by adding my country and America ntp.org gps
you think it would work?
Does GPS require internet connection? I used wifi for GPS, when I was on the bus, I found that my location was moving with sync on the road I was on.
I don't think I had any problem with that though?
Sent from my X10i using Tapatalk
Prodigy said:
Does GPS require internet connection? I used wifi for GPS, when I was on the bus, I found that my location was moving with sync on the road I was on.
I don't think I had any problem with that though?
Sent from my X10i using Tapatalk
Click to expand...
Click to collapse
Loading the maps needs internet
Finding the location is the job of gps
Sent from my GT-I9100 using xda premium
But this does need internet connection to apply AGPS fix? Since servers for it are internet sites?
i use navfree and have only gps on works fine for me its free on the market

[HOWTO] GPS config file for HD2 on JB ROM, very fast fix for me

Hello all, I've been searching the forums for a similar thread but didn't find anything, so I'm going ahead and posting my advice, hope it can be useful to HD2 fellow owners. I came into possession of an euro HD2 one month ago (my mom didn't use it, it's practically new, lucky me), installed straight away an Android ROM, Tytung's "NexusHD2-JellyBean-4.1.2-CM10 V1.3a" (at http://forum.xda-developers.com/showthread.php?t=1930240).
Cool stuff, I was only pretty disappointed with the GPS fix times.
Then I learned about the gps.conf file, went on to open it, and was very surprised to find out that in this ROM it is very basic and short. I don't know about the situation with other ROMs and other Android versions, but the problem could possibly concern many HD2 users.
So I went for a search on XDA and on the general internet, got educated a bit on the matter, then I started experimenting and finally put together a file that's working very well for me - I'm getting cold fixes in under a minute, and warm fixes in seconds flat (all of this indoors, standing by a window). It was a long trial-and error work.
Hint: gps.conf is to be found in /system/etc directory. You'll need a rooted device to access it, and possibly to change permissions to the file to be able to modify it, I don't even remember if I did the latter :laugh:
Here's my take on the code:
#NTP_SERVER=ru.pool.ntp.org
NTP_SERVER=0.ru.pool.ntp.org
NTP_SERVER=1.ru.pool.ntp.org
NTP_SERVER=2.ru.pool.ntp.org
#NTP_SERVER=3.ru.pool.ntp.org
#NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
#NTP_SERVER=2.europe.pool.ntp.org
#NTP_SERVER=3.europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
DEFAULT_USER_PLANE=TRUE
DISABLE_AGPS_WHEN_ROAMING=true
REPORT_POSITION_USE_SUPL_REFLOC=1
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
DEFAULT_SSL_ENABLE=FALSE
INTERMEDIATE_POS=1
QOS_ACCURACY=60
QOS_TIME_OUT_AGPS=120
QOS_TIME_OUT_STANDALONE=180
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
CURRENT_CARRIER=common
ENABLE_WIPER=1
I'll explain a little: NTP URLs are for getting the precise time from a special server, this is necessary for the A-GPS because location is tracked by estimating the time to reception of the satellite's signal (I'm no expert but I shouldn't be much off the mark). So you want to download the time with the shortest network ping (delay) or it will not be accurate, and in order to do this you need to choose a NTP server as close to you as possible. In fact, of all the code I posted, the only part you should personalize to your needs is the lines regarding the NTP servers. I live in Russia, so I have the letters "ru" in the domains. To find the active servers closest to you, go to:
http://www.pool.ntp.org/en/
Also, I added the European servers as a backup (because they are not too far away from Russia), as some people suggest, and I verified that in some cases they get used by my device, possibly because of an excessive delay in receiving an answer from the earlier-listed addresses.
So why did I comment out some of the servers in the code? Well, looks like a failure in receiving an answer from a server can lead to a waste of time because of longish timeouts. In any case, I found out that by using only three servers from my area (and a couple from Europe, not more) I'm getting better fix times. So I left out the others but did not erase them for good, in order to stress the fact that I found a difference from those who suggest to add some eight NTP addresses or more.
So to recap, say you're from Japan, you could use:
NTP_SERVER=0.jp.pool.ntp.org
NTP_SERVER=1.jp.pool.ntp.org
NTP_SERVER=2.jp.pool.ntp.org
and immediately below (optional):
NTP_SERVER=0.asia.pool.ntp.org
NTP_SERVER=1.asia.pool.ntp.org
Then there's the Xtra servers needed to get the satellites' updated position in a format recognized by our Qualcomm chip. One size fits for all, no need to change anything here. The Agps engine relies on them, or in case of necessity falls back on the SUPL hosts (in this case, google.com).
I found out that the SUPL TLS hosts are useless for me, so I erased the following lines, that some people included and some others say are malformed:
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
Also, the much advertised C2K host, and the following lines of code, did not work for me:
C2K_HOST=c2k.pde.com
C2K_PORT=1234
The last line,
ENABLE_WIPER=1
determines the persistence of the (AGPS?) position established by WIFI. It is not clear to me,though, if this is related to the AGPS data unloaded by WIFI, or the geographic position extrapolated by Google from a WIFI networks database (the fix you get when your WIFI is on even without GPS of AGPS). Anyway, 0 stands for inactive, as expected, and 1 for active. I believe modifying this line should not have any negative influence, make your tests.
I recommend you to:
1 - verify that you successfully saved the modified gps.conf file.
2 - reboot the phone (some say one should even turn it off, remove the battery and leave it off for minutes, in order to clean the cache) then use the app "GPS Status" to flush the Agps data and reload said data (and of course wait 1-2 min. the first time). Only then will the effects be visibile.
3 - needless to say, check that your data connection is active.
Also I recommend you not to use programs, like FasterGPS, that work by overwriting the contents of the gps.conf file, or you will have to start anew.
That's it. Please let me know how is your mileage, thanks for your attention.
March 5 edit:
The edited file described above works well until the ephemerides expire (after 2-3 hours from a cold fix). After that, fix times tend to rise, until the 6th hour from the last AGPS data download, at which point (at least on my phone) fresh data get downloaded as per GPS Status app settings (under "download GPS data at start"). My feeling is, since the script does not provide for a routine for assessing data age, and this JB ROM does not include a gpsconfig.xml file, this routine must be missing for good - so the phone tries a warm GPS start using data that are not valid anymore, thence the longer fix times (I may be totally wrong in my diagnosis, so commentaries from more tecnically savvy users are very welcome). I'm going to try and use chunks of a gpsconfig.xml from some other ROM, and see if the newly included gpsconfig.xml file gets recognized at all, to try and include a routine for discerning old from fresh data. Going to update this post further in case of progress.
March 7 note: this problem may be overcome by modifying the already mentioned option "download GPS data at start" choosing the suboption "download if data are older than one hour" under settings in the "GPS Status" app.
This solution is not very elegant from a developing standpoint, plus it involves using the network (and to have it available) more often than the normal ephemerides' expiry term, plus it forces you to use an external app, so I'm looking for a better solution anyway.
March 7 edit: slight modifications to the code. Also, erased the sentence "Important: if you use the app "GPS Status", remember to choose "weak" or "no filter" under "Sensors filter" in the settings" (as this seems to exert little influence with the use of QoS in the code).
Great info
Thanks a bunch, Luther. This helped for me as well. need to see if my cold fix times increase as you mention at the end. Good luck with the xml file development. Hope it works.
gprash said:
Thanks a bunch, Luther. This helped for me as well. need to see if my cold fix times increase as you mention at the end. Good luck with the xml file development. Hope it works.
Click to expand...
Click to collapse
You're welcome, Sir. Please check out the latest amendment to the code.

[IDEA] Improving GPS accuracy

Our Developers are making great work, now we even have dedicated TEAM
But sadly revision after revision we all getting them more and more faster, stable...
But can we do something about GPS ?
I was forced to install GB because of badly accuracy with CM10 GPS. I know you can change NTP server or use other stuffs. But could we have official GUIDE for making GPS on JB better? Its sad because after installing GB alot of apps dont work because they need android 4.0+
Ultimate guide for getting our GPS better.
When im using bus and have hand to hand GB and JB on both i9001, GB have no problem with getting Fix when JB can't get one.
Using Maps JB look like im flying above the city, and GB is tracking me fine with little errors.
Ever played Ingress with that kind of GPS ?
I had the same problem, but in my opinion noone can fix it, because of on JB we using GB libs, which are not fully compatible
There is a post were someone used some specific gps.config file and his/hers GPS is working better then before. If i only could find the post
Code:
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=0.pl.pool.ntp.org
NTP_SERVER=1.pl.pool.ntp.org
NTP_SERVER=2.pl.pool.ntp.org
NTP_SERVER=3.pl.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_TLS_HOST=lbs.geo.t-mobile.com
SUPL_TLS_CERT=/etc/SuplRootCert
INTERMEDIATE_POS=1
ACCURACY_THRES=2500
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=FALSE
Using Brood GPS tool dedicated to GB I got a gps.conf file looking like this
(its for Europe > Poland)
Will try that on CM10 mayby that will help, a bit. Any more teaks/tips ?
przemekamag said:
because of on JB we using GB libs
Click to expand...
Click to collapse
say what
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
sapsa said:
Using Brood GPS tool dedicated to GB
Click to expand...
Click to collapse
or You can simply use FasterFix from android market
lol why would anyone complicate that simple process so much? hmm i think i know - for donations sad
somator said:
say what
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
or You can simply use FasterFix from android market
lol why would anyone complicate that simple process so much? hmm i think i know - for donations sad
Click to expand...
Click to collapse
FasterFix dose the same as GPS Tool.
sapsa said:
FasterFix dose the same as GPS Tool.
Click to expand...
Click to collapse
but from app level (market) - you do not have to enable debbuging and connect dvice to pc
so in other words faster and safer
somator said:
but from app level (market) - you do not have to enable debbuging and connect dvice to pc
so in other words faster and safer
Click to expand...
Click to collapse
but it dosn't use all the commands from gps.conf file, it only set ntp
SUPL_TLS_HOST=lbs.geo.t-mobile.com
Click to expand...
Click to collapse
why tmobile not google, is this correct ?
SUPL_TLS_CERT=/etc/SuplRootCert
Click to expand...
Click to collapse
no such file in stock, and you need this cert to use SUPL_TLS_HOST
SUPL - Secure User Plane Location
- In reference to SUPL_HOST and SUPL_TLS_HOST
The values can either be in FQDN (www .blahblahblah.com) or a direct IP address. They are both ways of retrieving AGPS data, and while both methods are secure to prevent anyone tracking you** the difference lies in the source. SUPL_HOST can be any open server such as Google's or any network your phone can register to, SUPL_TLS requires a security certificate to connect to the site (hence, SUPL_Transport Layer Security). The downside to the SUPL_HOST is that the requests can get flooded or can go down, and with SUPL_TLS the certificates can expire (think expired security certs for webpages). All current information I can find says that only ONE of each SUPL location service is supported by Android.
Furthermore, in the field for SUPL_TLS_CERT you can't just arbitrarily input the value "SuplRootCert." There has to actually be a cert already there for the conf file to call upon. Some SUPL_TLS connections have multiple certificates such as seen in the MyTouch 4G (no slide).
no comment
INTERMEDIATE_POS=1
Click to expand...
Click to collapse
INTERMEDIATE_POS - Intermediate position
Values are 1 for on, 0 for off
This will give a jumpoff location for giving a rough estimate of your location based off cell tower registration. For instance, let's say you live in Dallas and you're driving to Austin. You turn on your GPS mid trip, and the last time you had it on was back home. By default the Dallas location will be loaded, and if this is turned on when you first fire up Maps you should see the map rapidly zoom to an approximate location. This switch is used in conjunction with ACCURACY_THRES.
unrelated to speed or accuracy
ACCURACY_THRES=2500
Click to expand...
Click to collapse
ACCURACY_THRES - Accuracy threshold
Values are numerical, 0 disables the switch
This value is measured in meters(need confirm?), and for the intermediate location you want a pretty large net. The intermediate position gets you a quick and dirty estimate of where you're at while the AGPS/Satellite location data is syncing, and pulls information off what towers you're registered to. A value of 5000 gives you a larger net than 3000, and while 5000 is less accurate the 3000 value will take longer to get you a position.
self explained above - seen 2,5 km accuracy first fix ? if anything this should be set to idk 20000
DEFAULT_AGPS_ENABLE=TRUE
Click to expand...
Click to collapse
it is disaabled ?!
DEFAULT_USER_PLANE=FALSE
Click to expand...
Click to collapse
# TRUE for "User Plane", FALSE for "Control Plane"
Explained #1
Explained #2
PLEASE DO YOUR RESEARCH PRIOR POSTING SOMETHING YOU DO NOT UNDERSTAND
btw NTP_SERVER's are doubled
somator said:
PLEASE DO YOUR RESEARCH PRIOR POSTING SOMETHING YOU DO NOT UNDERSTAND
btw NTP_SERVER's are doubled
Click to expand...
Click to collapse
This is a output from Brood GPS tool that was here from long long time
But with your comments we can optimize this a bit now
daj sobie z tym spokój i popraw lepiej połączenie gps<->płyta główna
tym kupisz sobie najwięcej sekund i dokładności w fiksie
English please
Verstuurd van mijn GT-I9001 met Tapatalk
Maybe someone here would like to try out my Faster*** like app on the play store called TopNTP. The app is developed by me in cooperation with RC @crypted. He maintains an excellent NTP server. All parameters of the gps.conf can be modified. If someone comes up with the most efficient gps.conf for the SGS1 I can update the app with a profile for this device (my first android ever, SGS1 rocks!)
An expert on this matter, @FadeFx once told me to lower ACCURACY_THRES to 500, might be a tip for thos who try.
Link to the app thread: http://forum.xda-developers.com/showthread.php?t=2198319
Link to the app on the play store: https://play.google.com/store/apps/details?id=by.zatta.agps
@Zatta you got me wrong, i did lower accuracy threashold to 20 or 15 even, which did actually help me a lot...
_________________________
tapatalked from GalaxyS3
Zatta said:
like app on the play store called TopNTP.
Click to expand...
Click to collapse
Sadly it dosn't support i9001 and/or GB
you got me wrong, i was typing fast - i ment the donations for the server of derek gordon ...
about NTP:
closer the server, lower the the chance and level of assymetry, thus lower the error
Click to expand...
Click to collapse
source: http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
so how to hell server located somewhere in the world will help me obtain a better fix ???!!!
then the one actualy closest to my location (ping)
as for the xtra.bin
Click to expand...
Click to collapse
so basicly our gordon guy downloads xtra and puts it at own server - WHY ?!?! how is that speeding up the process ?!?!?!
was commenting earlier on other switches he proposed in cfg file - doubtable that they help at all, just allow less accurate first fix if so ... thats not good
and what is most fun that is not only place that we could do some GPS cfg - but no word on that ;]
and you can o real magic there to gps cfg =]
will say it againg - funny anyone that thinks he will do better job on GPS then Googlers on Nexus S GPS files
somator said:
you got me wrong, i was typing fast - i ment the donations for the server of derek gordon ...
about NTP:
source: http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm
so how to hell server located somewhere in the world will help me obtain a better fix ???!!!
then the one actualy closest to my location (ping)
as for the xtra.bin
so basicly our gordon guy downloads xtra and puts it at own server - WHY ?!?! how is that speeding up the process ?!?!?!
was commenting earlier on other switches he proposed in cfg file - doubtable that they help at all, just allow less accurate first fix if so ... thats not good
and what is most fun that is not only place that we could do some GPS cfg - but no word on that ;]
and you can o real magic there to gps cfg =]
will say it againg - funny anyone that thinks he will do better job on GPS then Googlers on Nexus S GPS files
Click to expand...
Click to collapse
You, sir, are ignorant. You rehash discussions over two years old. And, instead of reviewing those many discussions I openly had, you decided to defame me.
Thank you for showing why XDA is becoming worthless to DEV communities.
NTP.ORG has a lot of cable modems and other overloaded and poorly networked time servers. I use Stratum II time servers (look it up). Further, I calculated NETWORK HOPS AND LATENCY from many locations to mobile data connection points. Learn that a little bit and you'll be much better off.
If I'm sitting in Caen, France and my carrier (Orange) has its outpoint for my mobile data traffic as London, England, then using a server near me is nonsense. Further, NTP does not rely on your physical location or timezone. It's absolute time for the almanac data.
XTRA data is a funny one. Let us assume I just copy data. Do a MTR monitoring from about 20 global locations and write a script to pull xtra data to those same 20 locations. See the great latency that occurs through the reliance on the original servers. Then, do the same for mine. You will see a huge decrease in latency and procurement time across almost every mobile carrier I was able to get tests ran on.
Now I don't feel like going on to much more to try to educate someone who refuses to read my previous long postings on these subjects...
But hey, I'm an asshole as you indicated. I did nothing of use. Sadly, over 10 million query's a day say differently.
i am not into the mood tp discus that with you. best latency is something your server IS NOT providing for me so i see no point in using it.
as for the milions of querries
XDA is becoming worthless to DEV communities
Click to expand...
Click to collapse
most developement here is made using other work as own and offering features tweaks and files without proper understanding of the process
fact of changing something is more important than the real impact of it on the system
untill proven otherwise i still think that stock settings and servers are best gps solution
I didn't want to get involved in any discussion and I won't.
Leaves me to say, try the app and use the ntp server, use the app and use one of the xx other servers out there or don't use the app at all.
Some report great results, others don't report anything. We hardly get any negative results reported.
The service is offered for free and remember, if you don't like it eventually, the app backs up your old configuration and is able to restore it also.
I'm always open for suggestions to improve the app or the database. I would love to include an entry special for the gt-i9000 as this device has brought me into android app development.
Taptalked u see .. əəs n pəʞlɐʇdɐʇ
somator said:
i am not into the mood tp discus that with you. best latency is something your server IS NOT providing for me so i see no point in using it.
as for the milions of querries
most developement here is made using other work as own and offering features tweaks and files without proper understanding of the process
fact of changing something is more important than the real impact of it on the system
untill proven otherwise i still think that stock settings and servers are best gps solution
Click to expand...
Click to collapse
I cannot solve every persons issues. Read my threads. I provide default Ntp servers and the like in the 2.x variant. It stays updated to the 3.x. So your point is still null.
Sent from my Galaxy Nexus using xda app-developers app

Categories

Resources