Related
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.
Hello,
I search since a while how to change the server settings because I can't have a triangular position! I have to activate Gps for have a position! (In a second with my old iPhone)
can someone help?
Cordially
Fix
Es explorer + system/etc/gps.conf
what is the benefit of changing this? are there any changes to the gps file that you suggest? any better Agps servers?
gps file fix
This might help
http://forum.xda-developers.com/showthread.php?goto=newpost&t=1239713&highlight=gps+htc+desire+hd
Easiest way is by downloading Faster Fix from Play Store and select which region you are in.
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.
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 ****.
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