Jump to content

Android and iPhone How To's


Elfenstar
 Share

Recommended Posts

If you find yourself using your Android phone's GPS facility frequently then you will find my post useful. basically i have compiled a self help DIY which will help you to acquire faster and more accurate GPS locks.

This method works for all ROMs for Gingerbread only 2.3.x I have managed to acquire GPS locks under a minute at the windowside (indoors) with an accuracy of 6 to 8m. This is taken from my own thread at xda forums.

 

My Thread

 

Before you continue further, here are the prerequisites

 

1.) Root permissions

2.) Root explorer or similar file manager with root access

 

Please google on how the GPS transceiver in your Ace works. Basically what i am doing is to change the ntp time servers that your Ace contacts. You will be tasked to change the time servers to those which are physically closer to your current location.

 

Why? Because before the GPS transceiver is able to establish the rough position(s) of the satellite, it needs to contact time servers.

 

Also, Skyhook (again please google) and A-GPS will enabled in your gps.conf that will help your Ace acquire GPS locks more quickly.

 

There are two files that you need to acquire from here.

 

gps.conf and secgps.conf

 

gps.conf

 

Code:
NTP_SERVER=0.sg.pool.ntp.org
NTP_SERVER=0.asia.pool.ntp.org
NTP_SERVER=3.asia.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_4=http://xtra4.gpsonextra.net/xtra.bin
INTERMEDIATE_POS=0
ACCURACY_THRES=0
DEBUG_LEVEL=3
ENABLE_WIPER=0
ENABLE_XTRA=TRUE
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_HOST=supl.skyhook.com
SUPL_PORT=7278
CURRENT_CARRIER=common
#REPORT_POSITION_USE_SUPL_REFLOC=1 
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
#START_MODE=WARM
#OPERATION_MODE=STANDALONE
PHONE_TYPE=UMTS

 

Instructions:

Observe that in the top most section of the code there is the line "NTP_SERVER=". I want you to go to this website http://www.pool.ntp.org/en/, click on your country and find the list of NTP servers that can be used. For e.g. for my case in Singapore it will be

 

0.sg.pool.ntp.org

0.asia.pool.ntp.org

3.asia.pool.ntp.org

 

Next, insert the servers which you have just copied onto the line "NTP_SERVER=" immediately after the = without the quotations. Please verify by using cmd in Windows to ensure that the time servers you have chosen are active and online. Just simply do a ping and a tracert.

 

Note: if you find the ping times are ridiculous, you can opt to use the continental time servers e.g. i can use Asia NTP servers instead. Good ping times are about 20ms or less.

 

Ok, now copy and paste the whole code (which you have inserted your new NTP servers earlier on) onto Notepad and saved as gps.conf (all files instead of .txt)

 

Copy and paste this gps.conf to overwrite the original gps.conf at /system/etc.

 

Original gps.conf

 

Code:

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
PHONE_TYPE=UMTS

 

secgps.conf

 

Code:

#Generated by GpsLocationProvider.
#Thu Dec 02 13:09:21 EST 2010
SSL=1
SSL_TYPE=0
POSITION_MODE=7
OPERATION_TEST_MODE=0
ACCURACY=50
SESSION_TYPE=1
SERVER_MODE=0
ENABLE_NMEA=false
START_MODE=HOT
GPS_LOGGING=0
AGPS_MODE=0
DYNAMIC_ACCURACY=1
ADDRESS_MODE=1
TIME_BTW_FIX=2000
OPERATION_MODE=MSBASED
USE_DEFAULT=true
DYNAMIC_ACCURACY_VALUE=50
SUPL_PORT=7276
ENABLE_XTRA=true
SUPL_HOST=supl.google.com
NUM_OF_FIX=999999999
TIMEOUT=3600Instructions:

 

Copy and paste the code above for secgps.conf onto Notepad and save as secgps.conf (all files type instead of .txt) Use Root explorer to copy and paste this file in /data/gps.

================================================== ================================================== =====================================

I was inspired by the thread over here

 

http://forum.xda-developers.com/show....php?t=1034631

 

My motivation to do up my gps.conf and secgps.conf is partly of the fact that PFGPS fix didn't work for me and configuring the GPS using the secret code ie *#*#1472365#*#* didn't work as well.

 

Please don't blame me if this breaks anything. I have tested this on my system and i got a GPS lock by the windowside (indoors) under a minute. Accuracy is 6~8m which i thought was impressive. it should work on all ROMs because i have tested this on a stock ROM, XXKPO.

 

Note: if you have applied PFGPS fix, this WILL overwrite whatever settings PFGPS fix has made. Be warned.

Link to post
Share on other sites

If you find yourself using your Android phone's GPS facility frequently then you will find my post useful. basically i have compiled a self help DIY which will help you to acquire faster and more accurate GPS locks.

This method works for all ROMs for Gingerbread only 2.3.x I have managed to acquire GPS locks under a minute at the windowside (indoors) with an accuracy of 6 to 8m. This is taken from my own thread at xda forums.

 

My Thread

 

Before you continue further, here are the prerequisites

 

1.) Root permissions

2.) Root explorer or similar file manager with root access

 

Please google on how the GPS transceiver in your Ace works. Basically what i am doing is to change the ntp time servers that your Ace contacts. You will be tasked to change the time servers to those which are physically closer to your current location.

 

Why? Because before the GPS transceiver is able to establish the rough position(s) of the satellite, it needs to contact time servers.

 

Also, Skyhook (again please google) and A-GPS will enabled in your gps.conf that will help your Ace acquire GPS locks more quickly.

 

There are two files that you need to acquire from here.

 

gps.conf and secgps.conf

 

gps.conf

 

Code:
NTP_SERVER=0.sg.pool.ntp.org
NTP_SERVER=0.asia.pool.ntp.org
NTP_SERVER=3.asia.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_4=http://xtra4.gpsonextra.net/xtra.bin
INTERMEDIATE_POS=0
ACCURACY_THRES=0
DEBUG_LEVEL=3
ENABLE_WIPER=0
ENABLE_XTRA=TRUE
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_HOST=supl.skyhook.com
SUPL_PORT=7278
CURRENT_CARRIER=common
#REPORT_POSITION_USE_SUPL_REFLOC=1 
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
#START_MODE=WARM
#OPERATION_MODE=STANDALONE
PHONE_TYPE=UMTS

 

Instructions:

Observe that in the top most section of the code there is the line "NTP_SERVER=". I want you to go to this website http://www.pool.ntp.org/en/, click on your country and find the list of NTP servers that can be used. For e.g. for my case in Singapore it will be

 

0.sg.pool.ntp.org

0.asia.pool.ntp.org

3.asia.pool.ntp.org

 

Next, insert the servers which you have just copied onto the line "NTP_SERVER=" immediately after the = without the quotations. Please verify by using cmd in Windows to ensure that the time servers you have chosen are active and online. Just simply do a ping and a tracert.

 

Note: if you find the ping times are ridiculous, you can opt to use the continental time servers e.g. i can use Asia NTP servers instead. Good ping times are about 20ms or less.

 

Ok, now copy and paste the whole code (which you have inserted your new NTP servers earlier on) onto Notepad and saved as gps.conf (all files instead of .txt)

 

Copy and paste this gps.conf to overwrite the original gps.conf at /system/etc.

 

Original gps.conf

 

Code:

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
PHONE_TYPE=UMTS

 

secgps.conf

 

Code:

#Generated by GpsLocationProvider.
#Thu Dec 02 13:09:21 EST 2010
SSL=1
SSL_TYPE=0
POSITION_MODE=7
OPERATION_TEST_MODE=0
ACCURACY=50
SESSION_TYPE=1
SERVER_MODE=0
ENABLE_NMEA=false
START_MODE=HOT
GPS_LOGGING=0
AGPS_MODE=0
DYNAMIC_ACCURACY=1
ADDRESS_MODE=1
TIME_BTW_FIX=2000
OPERATION_MODE=MSBASED
USE_DEFAULT=true
DYNAMIC_ACCURACY_VALUE=50
SUPL_PORT=7276
ENABLE_XTRA=true
SUPL_HOST=supl.google.com
NUM_OF_FIX=999999999
TIMEOUT=3600Instructions:

 

Copy and paste the code above for secgps.conf onto Notepad and save as secgps.conf (all files type instead of .txt) Use Root explorer to copy and paste this file in /data/gps.

================================================== ================================================== =====================================

I was inspired by the thread over here

 

http://forum.xda-developers.com/show....php?t=1034631

 

My motivation to do up my gps.conf and secgps.conf is partly of the fact that PFGPS fix didn't work for me and configuring the GPS using the secret code ie *#*#1472365#*#* didn't work as well.

 

Please don't blame me if this breaks anything. I have tested this on my system and i got a GPS lock by the windowside (indoors) under a minute. Accuracy is 6~8m which i thought was impressive. it should work on all ROMs because i have tested this on a stock ROM, XXKPO.

 

Note: if you have applied PFGPS fix, this WILL overwrite whatever settings PFGPS fix has made. Be warned.

 

 

So troublesome and technical..... luckily my desire with papago could lock down in less than 20sec most of the time....and if lucky, less than 5sec occasionally ....

Link to post
Share on other sites

But AGPS need 3G data network to connect, will it still work without that?

 

I find iPhone GPS faster in locating.

 

yes because A GPS is just used initially for the phone to establish the rough positions of the various satellites during a warm startup. otherwise, time is wasted to do random polling in order to search for satellites

Link to post
Share on other sites

So troublesome and technical..... luckily my desire with papago could lock down in less than 20sec most of the time....and if lucky, less than 5sec occasionally ....

 

Good for you then. Well, just sharing for those who are keen. *Shrugs

Link to post
Share on other sites

yes because A GPS is just used initially for the phone to establish the rough positions of the various satellites during a warm startup. otherwise, time is wasted to do random polling in order to search for satellites

 

 

not good for overseas if no network (data roaming very expensive!), last i went to Perth with the Navfone on iphone without data connection, very fast and accurate.

Link to post
Share on other sites

not good for overseas if no network (data roaming very expensive!), last i went to Perth with the Navfone on iphone without data connection, very fast and accurate.

 

If you check no roaming in Settings, then that will automatically override AGPS because data cannot be sent over GPRS/3G/HSDPA.

 

Under my gps.conf, i have configured the GPS transceiver to use not just AGPS but also SUPL (Secure User Plane Location) and also Skyhook. I have not tested when overseas though.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...