GPS conf question... - T-Mobile LG G2x

Below is my gps conf file. Is there anything I can do to alleviate the 10 minute lock on?
I live about an hour northwest of Chicago.
NTP_SERVER=time-a.timefreq.bldrdoc.gov
NTP_SERVER=time-b.timefreq.bldrdoc.gov
NTP_SERVER=time-c.timefreq.bldrdoc.gov
NTP_SERVER=utcnist.colorado.edu
NTP_SERVER=utcnist.colorado.edu
NTP_SERVER=time.nist.gov
NTP_SERVER=now.okstate.edu
NTP_SERVER=ntp1.kansas.net
NTP_SERVER=ntp2.kansas.net
NTP_SERVER=ntp1.jtsage.com
NTP_SERVER=ntp.jentfoo.com
NTP_SERVER=ntp2.jtsage.com
NTP_SERVER=ntp.squirrels.us
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
NTP_SERVER=north-america.pool.ntp.org
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
AGPS=http://xtra1.gpsonextra.net/xtra.bin
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
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
REPORT_POSITION_USE_SUPL_REFLOC=1
QOS_ACCURACY=50
QOS_TIME_OUT_STANDALONE=60
QOS_TIME_OUT_agps=89
QosHorizontalThreshold=1000
QosVerticalThreshold=500
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
# 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=5000
################################
##### AGPS server settings #####
################################
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
# FOR SUPL SUPPORT, set the following
SUPL_HOST=FQDN
SUPL_HOST=lbs.geo.t-mobile.com
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
SUPL_CERT=/etc/SuplRootCert
################################
# EXTRA SETTINGS
################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
CURRENT_CARRIER=common
PHONE_TYPE=UMTS

What ROM are you running? I get 3-6m locks in under a minute on CM 7.2.0 without even touching the gps.conf file.
Sent from my LG-P999 using xda premium

I'm running Tsugi 11-28 roll up.

I added the google supl settings, and it worked like a charm.

I had to change my supl host to supl.google.com After the first lock which took a few minutes, it locks within 5 seconds now as long as I have clear view of the sky.
Here is my gps.conf
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_CERT=/etc/SuplRootCert
SUPL_PORT=7275
PHONE_TYPE=UMTS
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=7275
################################
# EXTRA SETTINGS
################################
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
Sent from my LG-P999 using XDA App

Beekersguy said:
I added the google supl settings, and it worked like a charm.
Click to expand...
Click to collapse
Could you be a little more specific as to exactly which settings you added/changed? I'm a little confused, because in your original post you already had "SUPL_HOST=supl.google.com" in the gps.conf you quoted. Thanks.
More generally, what is the relationship between what is shown in the "GPS Test" system settings you get to from the hidden menu and what's in gps.conf? I changed the system settings via the hidden menu, but /etc/gps.conf is still the original version.

I went into the hidden menu and in SUPL settings, I added the info about google supl servers that is listed in my conf.

Ah, okay; thanks for the clarification.

http://forum.xda-developers.com/showthread.php?t=1222022 Here you go

Beekersguy said:
I went into the hidden menu and in SUPL settings, I added the info about google supl servers that is listed in my conf.
Click to expand...
Click to collapse
A quick followup on this: I had done that numerous times with various supl servers, including Google's, on previous ROMs with little or no effect. I did it again last night and just got a 14-second TTFF this morning! That's the first time that's ever happened (after allowing a suitable delay to let the data expire to ensure that I was not getting a hot fix from the previous fix). The only differences from what I had done before were: 1) used port 7276 instead of 7275; 2) set the SuplCert path; 3) used the Tsugi ROM (previous attempts were with Froyo and Gingerbread stock ROMs).
I'm not sure what, if anything, is significant in those differences or if this speed-up will persist, but I've never gotten a warm fix in less than 60 seconds before, with most taking 2-3 minutes, so I'm cautiously optimistic.

Beekersguy said:
I went into the hidden menu and in SUPL settings, I added the info about google supl servers that is listed in my conf.
Click to expand...
Click to collapse
How do I get to the hidden menu?

Depends on the ROM you are using. You dial 1809#*xxx#, where "xxx" represents the model number of the phone: 999 for stock ROMs, 95 for ROMs based on the leaked 2.3.4 Tracfone ROM like Tsugi. That brings up the "hidden menu," which has a "GPS Test" command. If you wander around in the System Settings, you'll find the places to set the supl server, etc.

If the phone code does not work for you because your on a custom rom that doesn't support phone codes on the dialer do this
Download Anycut from market
Long press home screen Shortcuts -> Any Cut -> Activity -> HiddenMenu
You now have a shortcut to hiddenmenu ^_^

Did you flash the latest baseband and ril?
Sent from my LG-P999 using xda premium

Related

Disabling Direct Push on Dolphin 9900 Handset

I have a Dolphin 9900 handset which runs WM 6.1. Each day at 12:00PM and 12:00AM the device turns on automatically. There are no e-mail accounts setup on this device. I have tried to disable Direct Push, assuming that's the reason for its issue, but nothing has worked. I have tried the following:
[HKEY_CURRENT_USER\ControlPanel\Notifications\Remin ders\AutoSnooze]
"AutoSnoozeMins"=dword:0
HKCU\ControlPanel\Notifications\{A877D65A239C-47a7-9304-0D347F580408}
set value "Options" to 20000000 (hexadecimal) or 536870912 (decimal)
And the steps found here:
The Exchange Security Policy (4131) updates the device policy:
HKLM\Security\Policies\00001023: 0 = Enabled; 1 = Disabled
To change the inactivity timer:
HKLM\Comm\Security\Policy\LASSD\AE\{50C13377-C66D-400C-889E-C316FC4AB374}\
AEFrequencyType: 0 = No inactivity time; 1 = Activity time enable
AEFrequencyValue: = number of minutes before timeout
To change the password strength policy:
HKLM\Comm\Security\Policy\LASSD\LAP\lap_pw\
MinimumPasswordLength: minimum number of characters in password (0 defaults to 1)
PasswordComplexity: 0 = Require Alphanumeric; 1 = Require numeric (PIN); 2 = No restriction
And finally to change the Device wipe settings:
HKLM\Comm\Security\Policy\LASSD\
DeviceWipeThreshold: -1 = disabled; (any positive number) = # failed attempts before device memory gets whacked
CodewordFrequency: # of attempts before a codeword is displayed to prevent accidental device wipe.
None of these steps worked as the device still turns on at 12:00 each time. Does anyone have any suggestions?

[Tutorial] Any Android Phone On Any Carrier

Yes you read the title correctly, in this thread you will be shown how to put any android device on any carrier regardless of radio. Currently the process is long and a bit complicated. Voice works but not so well. However if this sounds like something for you then read on my friends.
Contributors
kmobs - helped me discover how to enable Ad-Hoc networking on Android
grunted - for his excellent tutorial on SIP and Google Voice.
Prerequisites
An Android phone
A "slave" device (ex. Another phone on the carrier you want to be on.)
Google Voice
Known Issues
With the current method there is a big latency issue when it comes to voice calling. Depending on network speed there can be a 1-5 second delay from the time you say something to the time it takes the person on the other end to hear it. It's very much like a Sat-Com. Any help improving performance is greatly appreciated.
On some devices, when changing wpa_supplicant.conf you will receive an error wile trying to turn on wifi after a reboot. The only known fix is to hot swap and push the file back onto the phone after every reboot.
My Setup
Though this guide can be adapted to any Android device, some slight changes may need to be made. This guide is being written from my experiences with the devices I have at hand. They are the following:
Phone: HTC Evo 4G
Carrier: Sprint
Firmware: Android 2.2
Slave: T-Mobile G1
Carrier: T-Mobile
Firmware: Android 2.1
Method One
In this method we will be using Wireless Tether for Root Users to handle data. SMS is handled through Google Voice for Android and voice is handled by a combination of Google Voice, SIPDroid, SIPGate, SIPSorcery, and PBXes.
Data
Getting data to work is fairly easy. The slave device needs to act as a hot spot, for this we will be using Wireless Tether for Root Users with the following settings:
Wifi Encryption Enabled
Passphrase: abcdefghijklm
SSID: Slave
Change other settings at your desecration.
Now on your main device turn on wifi and search for the slave device. If you do not see the "Slave" ssid in your list you need to perform the following steps in order to enable Ad-Hoc networking on your main device.
On The Main Device
1. In WiFi settings choose to add a new network.
2. Use the following to set up your network.
SSID: Slave
Encryption: WEP
Passphrase: abcdefghijklm
3. Disable WiFi.
4. Open /data/misc/wifi/wpa_supplicant.conf in your favorite text editor either on the device or pulled off using ADB.
5. Your config should look something like this:
Code:
ctrl_interface=eth0
update_config=1
network={
ssid="Slave"
scan_ssid=1
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0="abcdefghijklm"
}
We need to change it to look like this:
Code:
[B]ap_scan=2[/B]
ctrl_interface=eth0
update_config=1
network={
ssid="Slave"
[B]mode=1[/B]
scan_ssid=1
key_mgmt=NONE
auth_alg=OPEN SHARED
wep_key0="abcdefghijklm"
}
6. Now turn WiFi back on and your device should connect to the slave.
If the following steps are done correctly you should now have data access on your main device.
SMS
Once data access has been achieved, SMS is simple. The Google Voice app will allow you to send and receive SMS over wifi. Download the app and set up your voice account, your done.
Voice
SIPGate Setup
1. Head on over to sipgate.com and create a SIPGate ONE account, it's free.
2. Go to Settings and click the Phone Numbers tab.
3. Click Buy Phone Number, don't worry the first one is free.
4. Go back to My Settings and click the Phone Numbers menu button.
5. Select your new number and save.
6. Click the Extensions menu button.
7. Enter a new extension (I used 99) and save.
8. Click the VoIP menu button and create a new VoIP phone.
9. Hover over your new VoIP phone and click SIP Credentials, make a note of your SIP-ID and Password.
SIPSorcery Setup
1. Head to sipsorcery.com and create a free account.
2. Go to SIP Providers and click Add.
3. Use the following settings:
Provider Name: SIPGate
User Name: [SIP-ID from SIPGate]
Password: [SIP-Password from SIPGate]
Server: sipgate.com
Register: Checked
Register Contact: [auto generated]
4. Now go to Dial Plans and click Add.
5. Use the following settings:
Dial Plan Name: Google Voice
Trace Email Address: [blank]
Script Type: Ruby
Script: [this is a template and edits need to be made where comments are left]
Code:
# Copyright(c) 2010 Mike Telis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
AREA_CODE = '717' # my area code
GV_USER = '[email protected]' # my GV e-mail address ([email protected])
GV_PASS = 'GV password' # my GV password
CB_NUMBER = '1aaaxxxyyyy' # my 11-digit SIP number (only one)
SPEED_DIAL = { # my speed dial numbers
'1' => '19879879876', # Mom
'123' => '12345678901', # Work
'45' => '17479876543', # Gizmo BFF
'411' => '8004664411', # Google 411
'266' => '[email protected]', # CNN Headlines
}
begin
sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"
if sys.Out # if outbound call
num = req.URI.User.to_s # Get a string copy of the number to dial
num = SPEED_DIAL[num] || num # Substitute with speed dial entry, if any
case num
when /@/ then sys.Dial num # URI dialing
when /^[2-9]\d{6}$/ # Local call, 7-digit number
num = '1'+ AREA_CODE + num # prefix it with country and area code
when /^[01]?([2-9]\d{9})/ # US number with or without country code
num = '1' + $1 # add country code and truncate number to 10-digit
when /^(011|00|\+)(\d{10,})/ # international number
num = '+' + $2 # GoogleVoiceCall works with '+' prefix only
else sys.Respond 603, 'Wrong number, check & dial again'
end
sys.Log "Calling #{num} via Google Voice"
sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30
else # sys.Out
sys.Dial "#{sys.Username}@local"
end
rescue
sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./
end
6. Go to SIP Accounts and change your Out Dial Plan to Google Voice.
PBXes Setup
1. Go to pbxes.org and setup an account. (This is the last account to setup and of course, is free.)
2. Go to Trunks and click ADD SIP Trunk.
3. Change the following fields and leave the rest as they are:
Trunk Name: SipSorcery
username: [Your username at SIPSorcery]
password: [Your SIPSorcery password]
SIP Server: sip.sipsorcery.com
register: yes
4. Go to Extensions and click Add Extension.
5. Change the following fields and leave the rest as they are:
Extension Number: [Your SIPGate extension]
Display Name: [Choose one which will be used to login though SIPDroid]
Password: [Choose one which will be used to login though SIPDroid]
Voicmail & Directory: Disabled
6. Go to Inbound Routing and click Add Incoming Route.
7. Change the following fields and leave the rest as they are:
Trunk: SipSorcery
Regular Hours: [Extension radio button checked with your extension]
After Hours: [Extension radio button checked with your extension]
8. Go to Outbound Routing and click Add Route.
9. Change the following fields and leave the rest as they are:
Route Name: SipSorcery
Trunk Sequence: SIP/SipSorcery
SIPDroid Setup
1. Download SIPDroid for free on the market.
2. Hit menu and go to settings. Make the folowing changes:
Perferred Call Type: Sipdroid Only
SIP Account Settings
Authorization Username: [Your PBXes Extension Display Name and Extension in this format: DisplayName-Extension (ex. tehdust-99)]
Password: [Your PBXes Extension password]
Server: pbxes.com
Protocol: TCP
Change other settings at your descretion
Google Voice Setup
1. In settings choose Add Another Phone.
2. Choose Home for your phone type and use your SIPGate phone number.
3. Google Voice should call your device through SIPDroid. Answer the call and input the number given.
You should now be able to make calls.
Tips
Use a under volt kernel on your slave and set the cpu low enough to only be able to operate as an access point. Use no widgets and keep the screen dimmed or off. Do everything you can for better battery life.
Experiment and tell me about any new methods or improvements you come up with. You will receive full credit and be added to this post.

GPS Problems

My GPS is not locking at all and I've searched thru n found a couple things to try but nothing seems to work. Anybody?
G2x Deez Nuts
Same issue, change SLP to Google, Nokia, always the same issue. GPS is spotty.
Sent from my LG-P999 using Tapatalk
How do I change the spl?
G2x Deez Nuts
Dial 1809#*999#
GPS Test
Settings
According to the GPS test App I have 10/10 sats.......but the Google maps wont locate me and neither will other programs!!
G2x Deez Nuts
When I run Get Position under the LocMgrPD Test Menu (1809#*999#) and it locks, then all my GPS apps, Navigation, Telenav, Waze, Maps, etc will work. However, Get Position will only find me 7 out 10 times. I added a Any Cut Activity to my desktop with a link direct to LocMgrPD so I could Get Position quick and bypass the 1809#*999# entry. This has been the only way I have been able to get Nav and GPS to sometimes work.
I hope the GB Update includes a fix for the GPS Driver and this is not a hardware issue. I suppose if it is hardware, once the GB Update is out I can always return the phone and get a new one under the warranty as the GPS should really work. This and a minor Screen Bleed have been the only flaws in what is now my 2nd G2X.
By the way, try to run the Get Position in the LocMgrPD. It does the same thing as GPS Test, but for me it locks, while GPS Test never does.
Below is from another XDA poster...
Nokia SUPL - locks in about 16 seconds (GPS Status)
1. Go into the LG hidden menu (1809#*999#)
2. Go into GPS Test
3. Go into System Settings
4. MOLR Protocol (is set to User-Plane)
5. SULP Setting -> SLP Server Setting, I created a new one for the nokia servers (slp address: supl.nokia.com, port: 7275, no cert and no TLS setting)
6. SLP Auto Provision is activated
Google SUPL - locks in about 7 seconds (GPS Status)
1. Go into the LG hidden menu (1809#*999#)
2. Go into GPS Test
3. Go into System Settings
4. MOLR Protocol (is set to User-Plane)
5. SULP Setting -> SLP Server Setting, I created a new one for the Google (slp address: supl.google.com, port: 7275, cert NULL and Yes to TLS setting)
6. SLP Auto Provision is activated
Note: I personally believe it has something to do with the SLP Auto Provision. Mine was off by default when i launched hiddenmenu.
Its there a way to restore the LG menu to CM7 roms? Someone upload the hiddenmenu.apk maybe?
Sent from my Nexus 5g using XDA Ultimate App
jabhome said:
By the way, try to run the Get Position in the LocMgrPD. It does the same thing as GPS Test, but for me it locks, while GPS Test never does.
Below is from another XDA poster...
Nokia SUPL - locks in about 16 seconds (GPS Status)
1. Go into the LG hidden menu (1809#*999#)
2. Go into GPS Test
3. Go into System Settings
4. MOLR Protocol (is set to User-Plane)
5. SULP Setting -> SLP Server Setting, I created a new one for the nokia servers (slp address: supl.nokia.com, port: 7275, no cert and no TLS setting)
6. SLP Auto Provision is activated
Google SUPL - locks in about 7 seconds (GPS Status)
1. Go into the LG hidden menu (1809#*999#)
2. Go into GPS Test
3. Go into System Settings
4. MOLR Protocol (is set to User-Plane)
5. SULP Setting -> SLP Server Setting, I created a new one for the Google (slp address: supl.google.com, port: 7275, cert NULL and Yes to TLS setting)
6. SLP Auto Provision is activated
Note: I personally believe it has something to do with the SLP Auto Provision. Mine was off by default when i launched hiddenmenu.
Click to expand...
Click to collapse
Thanks for this. Unfortunately, setting the SLP server to supl.google.com didn't help; it still took GPS Status 106 seconds for the first fix (which is very much in line with what I had been getting, and indicative of the AGPS data not being used). A couple of specific questions (which I realize you may not have the answers to, since you were quoting this from another poster):
The MOLR protocol button is grayed-out on my phone, so I have no idea whether it's set to User-Plane or C-Plane. Is there anything I need to do to enable this button?
Also, the supl.google.com instructions say "cert NULL" -- does that mean putting the exact characters N U L L into that box, or leaving it empty, or something else?
Yep, beyond my pay grade, no idea how these phones actually work. I left Cert blank and my MOLR was grayed too.
I wish someone with knowledge of how this phone actually worked would respond to the GPS issue threads, but everyone around here seems to be preoccupied with arguing over the merits of a G2x and Sendation.

Modded GPS.conf [need ROOT]

This is a GPS.conf script inside the CM, after i had problem with GPS, i learn very basic GPS
i mod this script to optimize the locking speed for Device only GPS mode, and optimize AGPS for LTE network,
Please try and report if its work for you
replace the GPS.conf in system/etc/gps.conf with this :
https://www.dropbox.com/s/94gqm8r1n7msrz4/gps.conf?dl=0
or edit the GPS.conf in editor mode and paste this script (dont forget to back up the old file) - save
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin
#Version check for XTRA
#DISABLE = 0
#AUTO = 1
#XTRA2 = 2
#XTRA3 = 3
XTRA_VERSION_CHECK=0
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
#Test
NTP_SERVER=time.gpsonextra.net
#Global
#NTP_SERVER=pool.ntp.org
#Asia
# NTP_SERVER=asia.pool.ntp.org
# NTP_SERVER=0.asia.pool.ntp.org
# NTP_SERVER=1.asia.pool.ntp.org
# NTP_SERVER=2.asia.pool.ntp.org
#Europe
# 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
#North America
# NTP_SERVER=north-america.pool.ntp.org
# NTP_SERVER=0.north-america.pool.ntp.org
# NTP_SERVER=1.north-america.pool.ntp.org
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
DEBUG_LEVEL=4
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Below bit mask configures how GPS functionalities
# should be locked when user turns off GPS on Settings
# Set bit 0x1 if MO GPS functionalities are to be locked
# Set bit 0x2 if NI GPS functionalities are to be locked
# default - non is locked for backward compatibility
#GPS_LOCK = 0x2
# supl version 2.0
SUPL_VER=0x20000
# Emergency SUPL, 1=enable, 0=disable
SUPL_ES=1
#Choose PDN for Emergency SUPL
#1 - Use emergency PDN
#0 - Use regular SUPL PDN for Emergency SUPL
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1
#SUPL_MODE is a bit mask set in config.xml per carrier by default.
#If it is uncommented here, this value will over write the value from
#config.xml.
#MSA=0X2
#MSB=0X1
#SUPL_MODE=0x1
# GPS Capabilities bit mask
# SCHEDULING = 0x01
# MSB = 0x02
# MSA = 0x04
# ON_DEMAND_TIME = 0x10
# GEOFENCE = 0x20
# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
CAPABILITIES=0x37
# 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.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
# Bitmask of slots that are available
# for write/install to, where 1s indicate writable,
# and the default value is 0 where no slots
# are writable. For example, AGPS_CERT_WRITABLE_MASK
# of b1000001010 makes 3 slots available
# and the remaining 7 slots unwritable.
#AGPS_CERT_WRITABLE_MASK=0
####################################
# LTE Positioning Profile Settings
####################################
# 0: Enable RRLP on LTE(Default)
# 1: Enable LPP_User_Plane on LTE
# 2: Enable LPP_Control_Plane
# 3: Enable both LPP_User_Plane and LPP_Control_Plane
LPP_PROFILE=3
################################
# EXTRA SETTINGS
################################
# NMEA provider (1=Modem Processor, 0=Application Processor)
NMEA_PROVIDER=0
# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
SGLTE_TARGET=1
##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT=0x4
Click to expand...
Click to collapse
you can also change / add the NTP server based on your region from here http://www.pool.ntp.org/en/
Enjoy
I did also experience some difficulties with the GPS accuracy in the past. I did test all the settings above and they work, but there is no/little deference.
The last stable MIUI 7.5 version 7.5.4.0 does not have problems any more.
It usually takes very long time to lock with that setting, but once u locked, it'll be much faster on next use

I think my gps.conf file is wrong for my location (EU) but I don't know how to change

So the title says most of it. My gps is only finding GPS satellites, and no galileo or glonass satellites. It was showing them a day or two ago, but since I've been having a lot of GPS issues (no fixes, long fixes etc) I've been trying a lot of stuff and probably somehow broke something (included format, new rom, new firmware). Taking a look through my gps.conf file shows that the ntp servers are maybe not good for my location? (Portugal, Europe)
Can anyone tell me what do I need to replace? Are the NTP_SERVER the only thing that needs a change to
NTP_SERVER = ntp.ist.utl.pt
NTP_SERVER_1 = 0.pt.pool.ntp.org
NTP_SERVER_2 = 1.pt.pool.ntp.org
NTP_SERVER_3 = europe.pool.ntp.org
NTP_SERVER_4 = 0.europe.pool.ntp.org
NTP_SERVER_5 = 1.europe.pool.ntp.org
NTP_SERVER_6 = 2.europe.pool.ntp.org
NTP_SERVER_7 = 3.europe.pool.ntp.org
Or should I change anything else in the file in order to see all the other satelittes?
Thank you
Code:
##################################################
# GPS almanac settings
##################################################
# Whether to use the predefined XTRA servers
# below (XTRA_SERVER_), or to query them from the
# modem.
#
# Values: 0 - use predefined, 1 - query modem
XTRA_SERVER_QUERY = 0
# The predefined XTRA servers to be used if modem
# querying (XTRA_SERVER_QUERY) is off.
#
# Values: URL
XTRA_SERVER_1 = https://xtrapath1.izatcloud.net/xtra3grc.bin
XTRA_SERVER_2 = https://xtrapath2.izatcloud.net/xtra3grc.bin
XTRA_SERVER_3 = https://xtrapath3.izatcloud.net/xtra3grc.bin
XTRA_SERVER_4 = https://ssl.gpsonextra.net/xtra3grc.bin
XTRA_SERVER_5 = https://ssl.izatcloud.net/xtra3grc.bin
# Whether or not to test for XTRA support.
#
# Values: 0 - don't test, 1 - test
XTRA_TEST_ENABLED = 1
# The version of the XTRA data used. XTRA v3
# supports digital signing and is advised.
#
# Values: 0 - disable XTRA, 1 - automatic check,
# 2 - XTRA v2, 3 - XTRA v3
XTRA_VERSION_CHECK = 3
# Path to the CA certificates used to validate
# the XTRA data.
#
# Values: path
XTRA_CA_PATH = /system/etc/security/cacerts
##################################################
# Error estimatation
##################################################
# Whether or not to use error estimation.
#
# Values: 0 - don't use, 1 - use
ERR_ESTIMATE = 0
##################################################
# NTP server
##################################################
# The NTP servers used for time synchronisation.
#
# Values: URL
NTP_SERVER = rhel.pool.ntp.org
NTP_SERVER_1 = 0.rhel.pool.ntp.org
NTP_SERVER_2 = 1.rhel.pool.ntp.org
NTP_SERVER_3 = 2.rhel.pool.ntp.org
NTP_SERVER_4 = 3.rhel.pool.ntp.org
##################################################
# Debugging
##################################################
# The Android logging level of the GPS service. If
# commented out, then Android's default logging
# level will be used.
#
# Values: 0 - none, 1 - error, 2 - warning, 3 - info
# 4 - debug, 5 - verbose
DEBUG_LEVEL = 1
##################################################
# Intermediate position reporting
##################################################
# Whether or not to report intermediate positions.
#
# Values: 0 - don't report, 1 - report
INTERMEDIATE_POS = 1
# Accuracy threshold for intermediate positions.
# Set to 0 to pass all positions.
#
# Values: unknown
ACCURACY_THRES = 1
##################################################
#
##################################################
# Functionalities to switch off when GPS is disabled.
# Default is to lock nothing for backward
# compatibility.
#
# Bitmask: 0x1 - lock MO GPS, 0x2 - lock NI GPS
GPS_LOCK = 0
# Provider for NMEA.
#
# Values: 0 - application, 1 - modem
NMEA_PROVIDER = 1
# Whether the device supports being a SGLTE
# target.
#
# Values: 0 - not supported, 1 - supported
SGLTE_TARGET = 1
##################################################
# GPS supplement settings
##################################################
# The version of SUPL to be used.
#
# Values: bitmask
SUPL_VER = 0x30000
# Whether to report the reference SUPL location as
# the current position.
#
# Values: 0 - don't report, 1 - report
REPORT_POSITION_USE_SUPL_REFLOC = 1
# Whether to use SUPL in an emergency situations
# (eg. calling emergency services).
#
# Values: 0 - disable, 1 - enable
SUPL_ES = 1
# The PDN to ve used for emergency SUPL.
#
# Values: 0 - emergency PDN, 1 - regular SUPL PDN
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL = 1
# Carrier-set GPS mode for SUPL.
# If commented, will be taken from config.xml.
#
# Bitmask: 0x2 - MSA, 0x2 - MSB
SUPL_MODE = 0x2
# The SUPL server used.
#
# Values: URL, IP
SUPL_HOST = supl.google.com
# The port to connect to the SUPL server.
#
# Values: port
SUPL_PORT = 7275
##################################################
# GPS capabilities
##################################################
# GPS features which are supported.
#
# Bitmask: 0x01 - scheduling, 0x02 - MSB,
# 0x04 - MSA, 0x10 - on-demand time,
# 0x20 - geofencing
CAPABILITIES = 0x37
# Whether to use WiFi positioning.
#
# Values: 0 - disable, 1 - enable
ENABLE_WIPER = 1
##################################################
# C2K server settings
##################################################
# The C2K PDE server used.
#
# Values: URL, IP
C2K_HOST =
# The port to connect to the C2K PDE server.
#
# Values: port
C2K_PORT =
##################################################
# A-GPS settings
##################################################
# Slots writable to install A-GPS infomation to.
#
# Values: bitmask
AGPS_CERT_WRITABLE_MASK = 0
# Whether to use A-GPS configuration injection.
#
# Values: 0 - disable, 1 - enable
AGPS_CONFIG_INJECT = 1
##################################################
# LTE positioning profile
##################################################
# LTE positioning mode.
#
# Values: 0 - RRLP, 1 - LPP_User_Plane,
# 2 - LPP_Control_Plane,
# 3 - LPP_Control_Plane and LPP_User_Plane
LPP_PROFILE = 3
##################################################
# A-GLONASS protocol
##################################################
# The A-GLONASS positioning protocol used.
#
# Bitmask: 0x1 - RRC CPlane, 0x2 - RRLP UPlane,
# 0x4 - LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0x4
##################################################
# LPPe settings
##################################################
# The LPPe control plane method.
#
# Bitmask: 0x1 - DBH, 0x2 - WLAN AP measurements,
# 0x4 - SRN AP measurement,
# 0x8 - Sensor barometer measurement
LPPE_CP_TECHNOLOGY = 0x10
# The LPPe user plane method.
#
# Bitmask: 0x1 - DBH, 0x2 - WLAN AP measurements,
# 0x4 - SRN AP measurement,
# 0x8 - Sensor barometer measurement
LPPE_UP_TECHNOLOGY = 0x10
##################################################
# AP settings
##################################################
# The AP coarse timestamp uncertainty until the
# GNSS receiver is able to acquire better timing
# information.
#
# Values: unknown
AP_TIMESTAMP_UNCERTAINTY = 10
# The quality of the APPS processor clock. Used to
# calculate AP timestamp uncertainty.
#
# Values: PPM
AP_CLOCK_PPM = 100
##################################################
# QDR engine availability
##################################################
# Whether to use the QDR configuration.
# Recommended for automobile use cases. If used,
# the DR_AP_Service needs to be enabled.
#
# Values: 0 - disable, 1 - enable
EXTERNAL_DR_ENABLED = 0
##################################################
# Pulse settings
##################################################
# Whether to use the Linux PPS driver to make use
# of events generated by DR_SYNC pulse.
#
# Values: 0 - disable, 1 - enable
DR_SYNC_ENABLED = 0
# The path to the Linux PPS device.
#
# Values: path
PPS_DEVICENAME = /dev/pps0
# The path time threshold to validate any missing
# PPS pulses.
#
# Values: ms
MISSING_PULSE_TIME_DELTA = 900
# Whether to use time uncertainty propagation
# logic in the case of missing PPS pulse.
#
# Values: 0 - don't use, 1 - use
PROPAGATION_TIME_UNCERTAINTY = 1

Categories

Resources