View Single Post
Old November 5th, 2011, 01:00 AM   #614 (permalink)
lriv
Member
 
lriv's Avatar
 
Join Date: Apr 2011
Location: Hempville, USA
Posts: 163
 
Device(s): Huawei Ascend
Carrier: Not Provided

Thanks: 118
Thanked 41 Times in 33 Posts
Default Speed Up Satelite Fix for GPS on Android

Searched this in the android forum and did not find it...

This is a file mod, not an app, but I think it still belongs here... if not please move it to the proper forum... Thanks...

I did this to my M860 and it worked like a dream!! I edited the gps.conf file from my phone, I did not download it from the provided link that is below...

Here is what is contained in mine... it does not contain as much data as the one provided in the quoted post below, but it was from my phone and all that needed editing was at the top...

Code:
NTP_server=0.north-america.pool.ntp.org 
NTP_server=1.north-america.pool.ntp.org
NTP_server=2.north-america.pool.ntp.org
NTP_server=3.north-america.pool.ntp.org
NTP_server=0.us.pool.ntp.org
NTP_server=1.us.pool.ntp.org
NTP_server=2.us.pool.ntp.org
NTP_server=3.us.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
# 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
# Wiper (wifi positioning), 1=enable, 0=disable
# ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
This is not my work, found it over at xda...

Quote:

Guys,

I decided to write this because a lot of us here still facing GPS issue on their device. I almost give up on my HTC Desire HD because of the GPS problem. After I find this trick, now I realized that HTC devices have one of the most brilliant GPS hardware. It always get a location lock within 5 - 15 seconds.

This trick not only to speedup the satelite fixing. Some also found that it increase the reception (strong signal even during cloudy, light raining, and inside building's window). I am one of this case .

Here is the tricks. It is tested on HTC desire HD, SGSII, and speculated to work on most Android device (Please note that it is in sequential order):






Requirements:
  • Rooted Device
  • File Manager: e.g. Root Explorer

1. Searching for NTP server information
  • At the right side of webpage, there is "Active Servers". Go in and look for the setting of your 1)region and 2)country
  • For example, one's region is Europe then you write down the NTP server for that: 0.europe.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org; 3.europe.pool.ntp.org
  • Then the servers for your country from the list down there and click the link(Example: Switzerland — ch.pool.ntp.org; 0.ch.pool.ntp.org; 1.ch.pool.ntp.org; 2.ch.pool.ntp.org; 3.ch.pool.ntp.org
  • The "Italic" words are the information you need to jot down for later use








3. Modify the gps.conf file (Most Crucial Stage)
  • Download Modified gps.conf file from http://logfile.x10.mx/ to your device / OR As a alternative way, you can copy the codes in grey box (in first post) to a notepad, then change the extension name from .txt to .conf then copy to your phone
  • Use file manager to copy to this location: /etc/gps.conf and replace the original gps.conf
  • Open and Edit the gps.conf using rootexplorer or others file managers
  • Change the COUNTRY and REGION in following lines with the info you got from the website just now. Keep other values unchange unless you know what it is. Example of REGION such as NorthAmerica, Asia, Africa, Europe.
  • Your new gps.conf should look as below:
NTP_SERVER=COUNTRY.pool.ntp.org
NTP_SERVER=0.COUNTRY.pool.ntp.org
NTP_SERVER=1.COUNTRY.pool.ntp.org
NTP_SERVER=2.COUNTRY.pool.ntp.org
NTP_SERVER=3.COUNTRY.pool.ntp.org
NTP_SERVER=0.REGION.pool.ntp.org
NTP_SERVER=1.REGION.pool.ntp.org
NTP_SERVER=2.REGION.pool.ntp.org
NTP_SERVER=3.REGION.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

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0

# 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=0

# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1

# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1

################################
##### AGPS server settings #####
################################

# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert

# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234

CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE

  • Make sure the permission of the file is rw-r--r--
4. Reboot
  • Go setting, turn on your "use GPS satelites" and "Integrate Google Navigation"
  • Restart the device (normal restart)[/B]
5. Use GPS status and Toolbox
  • Tool available in market for free, please donate so developers are encouraged for better release in the future[/B]
  • Open app> tools> manage A-GPS state>Reset
  • Open app> tools> manage A-GPS state>Download
  • Optional restart device (not compulsory)
  • Use GPS status to start fixing satelites
  • Your satelite fixing speed should VERY FAST now
  • After get a successul GPS Lock, open your GPS applications and use like normal (e.g. Copilot, Sygic, or TomTom)
Extra Suggestion: Please make sure your GPS is enabled before your device is turnoff or restart. It won't actually use GPS unless you open map-related app or google.com.

CAUTION!!!: DO NOT use fasterfix after this. It will overwrite all the content in gps.conf


Credits: Thanks for JMax and Vault Killer for the gps.conf file
WARNING: Please do backup before messing with your device
Do it at your own risk, I cannot be held resposible for any damage or dysfunctional of your device
Source page
[Trick] Speed Up Satelite Fix for GPS on Android - xda-developers
lriv is offline  
Last edited by lriv; November 5th, 2011 at 01:06 AM.
Reply With Quote
The Following 3 Users Say Thank You to lriv For This Useful Post:
Can0dope (November 7th, 2011), KOLIO (November 5th, 2011), Scur (November 12th, 2011)