[INFO] Everything GPS! - Galaxy Ace S5830 Q&A, Help & Troubleshooting

Everything GPS!​About GPS, AGPS, GLONASS and more!​Please feel free to ask about anything!​
I consider myself as a GPS nerd because I use it every day geocaching. I noticed some people do not know about this technology, what GPS and AGPS both do, and how they are related. I will probably be updating this regularly.
First of all, a short lesson on GPS.
GPS stands for Global Positioning System. The system is made up of lots of satellites that broadcast the EXACT time. Currently there are two types of satellite that the public can use. The first is the American "GPS". This is the original system to get co-ords of your current position and has 32 active satellites. The second is the British/Russian "GLONASS" or Global Navigation Satellite System (Originally designed in Putin's reign and opened to the general public in 2007), and has 31 satellites, with only 24 active currently. With "GLONASS" coverage is much better than GPS, and can obtain a good signal indoors and also in areas that GPS cannot normally reach. The Galaxy Ace's chipset doesn't support GLONASS, but interestingly the SII's chipset does, although no one has managed to get it to work, presumably because Android was only designed to be used with GPS.
Both systems work in roughly the same way. The satellites broadcast the current time as well as their location in space. GPS cannot be compared to WiFi, but is more like Radio or Terrestrial TV ( Ie. Devices don't connect to it, but they search for a signal and not actually communicate to the transmitter)
Your device needs at least 4 satellites before it can work out where you are. These give your device some data to work with - Latitude, Longitude and Elevation. The 4th (and subsequent) satellites are used to cross-reference your position, making for higher accuracy.
For AGPS to work, GPS must also be enabled.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The way AGPS works is that when an app calls for your location, it will grab the time from the virtual international atomic clocks. This works as an extra cross-reference point. Using this time data, it can find the satellites quicker. So essentialy AGPS is useless without GPS.
Google also have their own location data using WiFi access points to locate you. This info is collected via Street View cars, and despite the press saying they stole peoples' information, this is wrong and all they grabbed were the MAC addresses of each AP.
If your phone requires 10/11 satellites before it gets a signal, it means you have an accuracy threshold set, so the provider will only return co-ords if you have a good accuracy level.
I hope this gave you some insight into GPS and AGPS, and how it all works.
I have lots more info, but I'll leave it at this for the moment.

Great! I know more about GPS & AGPS now.
Volkswagen is cool and I hope to own one.

CallMeLewis said:
Great! I know more about GPS & AGPS now.
Volkswagen is cool and I hope to own one.
Click to expand...
Click to collapse
Great to know it helped you.
Sent from my GT-S5830 using Tapatalk 2

A nice and informative thread..
:thumbup:
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________

You are certainly a real GPS nerd
Sent from my HTC Desire using xda app-developers app

this is a very nice rundown of the info i have to try to grind into a paragraph every now and then to try and help users understand the agps, now i have a post i can just reference them to that has all the info in the first whack, and more detail too.
cheers buddy:highfive:

Finally! I wanted to ask this since a long time.
My Ace always was slow locking the GPS. When I installed a custom Rom in it, and did some changes on the gps file, it improve somewhat, but was still slow.
I installed GPS test to check what was going on, and what I discover was that, even if it has the gps signal from 10/11 satellites, it still didn't get the current position. Examples attached.
I wonder why it need so much time to get the position and why it seems to need around 10/11 satellites, when I read that with 4 is enough.
Thanks!

shibumi77 said:
Finally! I wanted to ask this since a long time.
My Ace always was slow locking the GPS. When I installed a custom Rom in it, and did some changes on the gps file, it improve somewhat, but was still slow.
I installed GPS test to check what was going on, and what I discover was that, even if it has the gps signal from 10/11 satellites, it still didn't get the current position. Examples attached.
I wonder why it need so much time to get the position and why it seems to need around 10/11 satellites, when I read that with 4 is enough.
Thanks!
Click to expand...
Click to collapse
Setup the right ntp servers for your region in gps.conf should give you a faster gps lock.
Sent from my GT-S5830 using xda app-developers app

Mardon said:
Setup the right ntp servers for your region in gps.conf should give you a faster gps lock.
Click to expand...
Click to collapse
I already did that, and the time to find satellites improved. But even after detecting many satellites, it took too long to give me a position (sometimes like 10 min).
And when for some reason could not detect more than 5/6, then chances are it will not give the position at all-

You're phone has a set accuracy level. My handheld GPS only needs 4, but you phone has been set up, so that it will only give your location if the accuracy is below (For Example) 200 meters. You can change this in the GPS.conf file.
Sent from my GT-S5830 using Tapatalk 2

NathanBookham said:
You're phone has a set accuracy level. My handheld GPS only needs 4, but you phone has been set up, so that it will only give your location if the accuracy is below (For Example) 200 meters. You can change this in the GPS.conf file.
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
Thanks Nathan, that might actually be the explanation. Looking at the conf file, there is a "accuracy_thres=0" line, that might be what are you talking about, but not sure what should be the value instead of 0 then.

very informative post man...
Sent from my GT-S5570 using Tapatalk 2

Is this normal ?
There are no yellow and orange satelites like in post 7, second picture.
In Maps says that "Your temporary location it's unavailable for now".
I'm on cm7
My gps.conf :
Code:
NTP_SERVER=ro.pool.ntp.org
NTP_SERVER=0.ro.pool.ntp.org
NTP_SERVER=1.ro.pool.ntp.org
NTP_SERVER=2.ro.pool.ntp.org
NTP_SERVER=3.ro.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# 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

Cryss said:
Is this normal ?
There are no yellow and orange satelites like in post 7, second picture.
In Maps says that "Your temporary location it's unavailable for now".
I'm on cm7
My gps.conf :
Code:
NTP_SERVER=ro.pool.ntp.org
NTP_SERVER=0.ro.pool.ntp.org
NTP_SERVER=1.ro.pool.ntp.org
NTP_SERVER=2.ro.pool.ntp.org
NTP_SERVER=3.ro.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# 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
Click to expand...
Click to collapse
I think that gps fix is for cm9
Sent from my GT-S5830 using xda premium

So yesterday I went to a place. It took me around half hour walking. Along the way I was checking the gps, I had up to 9 gps satellites detected and no less than than 6 at any moment, but still I didn't give me my current position. Very annoying, really.
What takes to the gps to start "using" a satellite?

My problem appear after i use S2E.
I move dalvin cache Only!!!

shibumi77 said:
What takes to the gps to start "using" a satellite?
Click to expand...
Click to collapse
This is the problem. A lot of consumer GPS devices are dumbed down. This is good for the average person, but if there's a problem, its a pain in the ass because you can't see what's going on.
My guess is that the phone only gets a location once its got a optimal signal. My GPS receiver doesn't care what signal you have got, as long as you have 4 sats.
I might find out if there is some CLI for the GPS.
Sent from my GT-S5830 using Tapatalk 2

Any news?

Not yet, as I have been busy lately. Sorry.
Sent from my GT-S5830 using Tapatalk 2

Cryss said:
Is this normal ?
There are no yellow and orange satelites like in post 7, second picture.
In Maps says that "Your temporary location it's unavailable for now".
I'm on cm7
My gps.conf :
Code:
NTP_SERVER=ro.pool.ntp.org
NTP_SERVER=0.ro.pool.ntp.org
NTP_SERVER=1.ro.pool.ntp.org
NTP_SERVER=2.ro.pool.ntp.org
NTP_SERVER=3.ro.pool.ntp.org
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# 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
Click to expand...
Click to collapse
Thanks for the explanations of gps.conf.
---------- Post added at 11:19 ---------- Previous post was at 11:10 ----------
Thanks for the explanations.

Related

[MOD] GPS Speed Fix!

No credits for me, i only want to purpose an interesting thread to speed up your GPS fix!
http://forum.xda-developers.com/showthread.php?t=1060963
Really awesome!
Try yourself!
call me retarded if need be but i didnt understand much of what he said, do you think you could explain what you did for me, any help is greatly appreciated, as i havent been able to use my gps in a long time.
You have do edit this file, use Root Explorer to copy it without using adb.
/etc/gps.conf
Delete all content and put this:
Code:
NTP_SERVER=0.fr.pool.ntp.org
NTP_SERVER=1.fr.pool.ntp.org
NTP_SERVER=2.fr.pool.ntp.org
NTP_SERVER=3.fr.pool.ntp.org
XTRA_SERVER_1=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra1.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=7276
SUPL_SECURE_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
#################################
##### 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
Open this site(http://www.pool.ntp.org/en/) and choose your favourites NTP servers from the right menu (Active servers), which have to be replaced in these strings.
For example I am Italian, in the site i have finded these servers:
Code:
server 0.it.pool.ntp.org
server 1.it.pool.ntp.org
server 2.it.pool.ntp.org
server 3.it.pool.ntp.org
Now in my gps.conf I have to replace first four lines with:
Code:
NTP_SERVER=0.it.pool.ntp.org
NTP_SERVER=1.it.pool.ntp.org
NTP_SERVER=2.it.pool.ntp.org
NTP_SERVER=3.it.pool.ntp.org
Save your file, delete original /etc/gps.conf and place your new gps.conf.
NOTE: Be sure to assign at the new file the same permissions of the old. Using root explorer for this, long-press to the file -> permissions.
Sorry for my bad english!
worked amazingly well, gps lock immediate, normally it only seemed to be a maybe thing. and every program is now accurate, for some reason only google navigation could read properly when it worked. thank you very much, and your english was very easy to understand.
Works amazingly, locked on in 10 second.
fede91it said:
You have do edit this file, use Root Explorer to copy it without using adb.
/etc/gps.conf
Delete all content and put this:
Code:
NTP_SERVER=0.fr.pool.ntp.org
NTP_SERVER=1.fr.pool.ntp.org
NTP_SERVER=2.fr.pool.ntp.org
NTP_SERVER=3.fr.pool.ntp.org
XTRA_SERVER_1=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra1.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=7276
SUPL_SECURE_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
#################################
##### 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
Open this site(http://www.pool.ntp.org/en/) and choose your favourites NTP servers from the right menu (Active servers), which have to be replaced in these strings.
For example I am Italian, in the site i have finded these servers:
Code:
server 0.it.pool.ntp.org
server 1.it.pool.ntp.org
server 2.it.pool.ntp.org
server 3.it.pool.ntp.org
Now in my gps.conf I have to replace first four lines with:
Code:
NTP_SERVER=0.it.pool.ntp.org
NTP_SERVER=1.it.pool.ntp.org
NTP_SERVER=2.it.pool.ntp.org
NTP_SERVER=3.it.pool.ntp.org
Save your file, delete original /etc/gps.conf and place your new gps.conf.
NOTE: Be sure to assign at the new file the same permissions of the old. Using root explorer for this, long-press to the file -> permissions.
Sorry for my bad english!
Click to expand...
Click to collapse
Great tweak ! by the way, i use FasterFix and i write "2.be.pool.ntp.org" in the field and the effect seems the same one, .. but you made me discover NTP servers and I thank you!
Sky
alain.duchateau said:
Great tweak ! by the way, i use FasterFix and i write "2.be.pool.ntp.org" in the field and the effect seems the same one, .. but you made me discover NTP servers and I thank you!
Sky
Click to expand...
Click to collapse
With FasterFix you only change NTP server, you don't add all extra specifications and AGPS directives.
flashed the zip from the original post in the Nexus S thread and it works like a charm. faster en better fix then ever. Seems a lot easier than all the editing. Or am I missing something?
If you don't want to change FR servers you haven't to do other. I have changed them to IT servers, for this reason i haven't used flash zip but manual method.
can someone create a zip file for United States? I've used root explorer but it doesn't seem to change to US.. Oh, one more question, the zip file can be installed using rom manager?
Thanks in advance.
Oh, this thread is so full of wrongness it would easily win the world championship of fudge.
Of all the parameters mentioned here additionally to the NTP and EXTRA server settings only
Code:
gps_conf.INTERMEDIATE_POS = 0;
gps_conf.ACCURACY_THRES = 0;
gps_conf.ENABLE_WIPER = 0;
gps_conf.DEBUG_LEVEL = 4;
are actually implemented.
ENABLE_WIPER doesn't even have any effect at all (it's never checked anywhere). WiFi position reporting can be enabled in the system settings.
Please share your corrected gps.conf
fede91it said:
Please share your corrected gps.conf
Click to expand...
Click to collapse
for Belgium, here is my gps.conf :
NTP_SERVER=0.be.pool.ntp.org
NTP_SERVER=1.be.pool.ntp.org
NTP_SERVER=1.fr.pool.ntp.org
XTRA_SERVER_1=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra1.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=7276
SUPL_SECURE_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
#################################
##### 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
I hope this can help you
With the updated gps.conf, i get fixed in 10 secs

CM9 GPS Problem

Hi all
Ive moved from CM7 to CM9 and ive noticed that on every CM9 rom my gps doesnt show current position.
Ive did quick search and applied patches but it doesnt help.
My position is always:
Code:
D/libloc ( 267): Latitude: 51.9199973 (intermediate)
D/libloc ( 267): Longitude: 19.1299975
D/libloc ( 267): Accuracy: 0.0000000
D/libloc ( 267): loc_eng_deferred_action_thread signalled
D/libloc ( 267): loc_eng_deferred_action_thread event 1
D/libloc ( 267): loc_eng_process_loc_event: 1
D/libloc ( 267): loc_eng_deferred_action_thread. waiting for events
D/RPC ( 267): 3100008c:327681 sending RPC reply (XID 1669)
D/RPC ( 267): 3000008c:00050000 received CALL.
no matter where i am.
My gps.conf:
Code:
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
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=4
# 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=20
# 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=lbs.geo.t-mobile.com
SUPL_TLS_CERT_1=/etc/T-Mobile_USA_Root_CA.der
SUPL_TLS_CERT_2=/etc/T-Mobile_USA_Intermediate_CA_01.der
SUPL_TLS_CERT_3=/etc/T-Mobile_USA_Issuer_CA_01.der
SUPL_TLS_CERT_4=/etc/T-Mobile_USA_Issuer_CA_02.der
# 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
#Tweak by Mardon
It happens only with CM9 roms. Is there any fix for this?
Please help i rellay need to get this working
gbr161 said:
Hi all
Ive moved from CM7 to CM9 and ive noticed that on every CM9 rom my gps doesnt show current position.
Ive did quick search and applied patches but it doesnt help.
My position is always:
Code:
D/libloc ( 267): Latitude: 51.9199973 (intermediate)
D/libloc ( 267): Longitude: 19.1299975
D/libloc ( 267): Accuracy: 0.0000000
D/libloc ( 267): loc_eng_deferred_action_thread signalled
D/libloc ( 267): loc_eng_deferred_action_thread event 1
D/libloc ( 267): loc_eng_process_loc_event: 1
D/libloc ( 267): loc_eng_deferred_action_thread. waiting for events
D/RPC ( 267): 3100008c:327681 sending RPC reply (XID 1669)
D/RPC ( 267): 3000008c:00050000 received CALL.
no matter where i am.
My gps.conf:
Code:
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
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=4
# 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=20
# 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=lbs.geo.t-mobile.com
SUPL_TLS_CERT_1=/etc/T-Mobile_USA_Root_CA.der
SUPL_TLS_CERT_2=/etc/T-Mobile_USA_Intermediate_CA_01.der
SUPL_TLS_CERT_3=/etc/T-Mobile_USA_Issuer_CA_01.der
SUPL_TLS_CERT_4=/etc/T-Mobile_USA_Issuer_CA_02.der
# 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
#Tweak by Mardon
It happens only with CM9 roms. Is there any fix for this?
Please help i rellay need to get this working
Click to expand...
Click to collapse
Wrong section mate ...
You must read rules before posting nothing, so the next time go to Q&A THREAD, we need to contribute to keep clear General Thread
Anyways you can ask for this issue in the rom's thread
Thank you for understanding it
Ok im sorry about misplacement of my topic and thank you for moving it in the right place
Ive asked in rom thread but they didnt help much.
Ok so if anyone need working gps in CM9 rom please do what follows:
-Using ADB or file manager with root access delete /system/etc/gps.conf
-Use CM7 gps.conf or if you dont have one, create new gps.conf and paste this in it:
Code:
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
-Put new gps.conf in /system/etc and chmod it to 644
-In your build prop comment(put # at the beggining of the line) or delete these lines:
Code:
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
-Save the file
This will disable AGPS and will calculate your position using only gps receiver. It will take up to 30 seconds or more depending where you are (city or open area) or how cloudy it is.
If something is not clear enough please ask
gbr161 said:
Ok im sorry about misplacement of my topic and thank you for moving it in the right place
Ive asked in rom thread but they didnt help much.
Click to expand...
Click to collapse
The fix you are using should work some roms need to change one thing
you only need to change this line
Code:
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
Set it to 0
some roms not support it

Q&A: GPS on Custom Roms

Since I keep seeing this problem raised in all the development threads I've decided to add this information here.
I hope this will help others too. I had no problem with GPS on any Custom ROM like CM, Carbon, OMNI or AOKP after following the instructions below.
87Fra87 said:
What i can do to resolve the problem of GPS?
Click to expand...
Click to collapse
First thing is first: TIME is ESSENTIAL for GPS, and here is why:
Essentially, the GPS receiver compares the time a signal was transmitted by a satellite with the time it was received. The time difference tells the GPS receiver how far away the satellite is. Now, with distance measurements from a few more satellites, the receiver can determine the user's position and display it on the unit's electronic map.
Click to expand...
Click to collapse
In order for you to get the correct time you will need to edit the GPS.conf file and add the NTP servers for your geography (country and continent).
Find your NTP server here:
http://www.pool.ntp.org/en/
Preferably use a GPS.conf file from your stock XV Rom as template (I've added one below)
NTP_SERVER=time.gpsonextra.net
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.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
# supl version 1.0
SUPL_VER=0x10000
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# ULP = 0x20
# default = MSA | MSB | SCHEDULING | ULP
CAPABILITIES=0x3
# 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
################################
# Sensor Settings
################################
# Needs to be set explicitly based on sensor
# There is no default value.
#GYRO_BIAS_RANDOM_WALK=
# Sensor Sampling Rate Parameters for Low-Data Rate Filter (should be greater than 0)
SENSOR_ACCEL_BATCHES_PER_SEC=2
SENSOR_ACCEL_SAMPLES_PER_BATCH=5
SENSOR_GYRO_BATCHES_PER_SEC=2
SENSOR_GYRO_SAMPLES_PER_BATCH=5
# Sensor Sampling Rate Parameters for High-Data Rate Filter (should be greater than 0)
SENSOR_ACCEL_BATCHES_PER_SEC_HIGH=4
SENSOR_ACCEL_SAMPLES_PER_BATCH_HIGH=25
SENSOR_GYRO_BATCHES_PER_SEC_HIGH=4
SENSOR_GYRO_SAMPLES_PER_BATCH_HIGH=25
# Sensor Control Mode (0=AUTO, 1=FORCE_ON)
SENSOR_CONTROL_MODE=0
# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable)
SENSOR_USAGE=1
# Choose GSIFF sensor provider (1=DSPS, 2=Android NDK)
SENSOR_PROVIDER=1
################################
# Indoor Positioning Settings
################################
# 0: QUIPC disabled, 1: QUIPC enabled, 2: forced QUIPC only
QUIPC_ENABLED = 0
################################
# EXTRA SETTINGS
################################
# Enable or Disable Wiper (1=Enable, 0=Disable)
ENABLE_WIPER=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 = 0
Click to expand...
Click to collapse
Supplementary, look on the internet and see how is the Glonass satellite coverage in your area - if it's problematic, this may impede getting a fast first fix.
GLONASS coverage:
http://glonass-iac.ru/en/
After implementing the change use a good navigation application to get the FIRST fix - I prefer Sygic.
There is a big difference - I get a MUCH faster fix with Sygic than with other applications such as (but not limited to) GPS Status&Toolbox.
Afterwards, your TTFF (time to first fix) will drastically improve, even in other apps, such as Ingress.
!!! > Not properly tested yet:
Differential Global Positioning System (DGPS) is an enhancement to Global Positioning System that provides improved location accuracy, from the 15-meter nominal GPS accuracy to about 10 cm in case of the best implementations.
DGPS uses a network of fixed, ground-based reference stations to broadcast the difference between the positions indicated by the satellite systems and the known fixed positions. These stations broadcast the difference between the measured satellite pseudoranges and actual (internally computed) pseudoranges, and receiver stations may correct their pseudoranges by the same amount. The digital correction signal is typically broadcast locally over ground-based transmitters of shorter range.
The term refers to a general technique of augmentation
You should be able to use DGPS corrections in Europe via custom application for SISnet receiving correction signals from EGNOS augmentation satellites.
The Android app is available under the link below:
http://egnos-portal.gsa.europa.eu/news/egnos-gets-invite-your-smartphone-11
Sent from my Xperia V using Tapatalk

guide to fix slow gps fix

i found out how to speed it up, the problem is the wrong gps settings in conf file
im in the uk, change the 4 #uk server ones to your countries settings, a quick google will find them
go to
system/etc/gps.conf
this is the contents of my conf file
#Uncommenting these urls would only enable
#the power up auto injection and force injection(test case).
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
#Test
NTP_SERVER=time.gpsonextra.net
#Asia
# NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
#uk server
# NTP_SERVER=0.uk.pool.ntp.org
1.uk.pool.ntp.org
2.uk.pool.ntp.org
3.uk.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
# supl version 1.0
SUPL_VER=0x10000
# 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
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
####################################
# 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 = 0 # Sensor R&D : This will not be injected to MODEM
################################
# EXTRA SETTINGS
################################
# NMEA provider (1=Modem Processor, 0=Application Processor)
NMEA_PROVIDER=1
##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0x0
##################################################
# Delete only Ephemeris files
##################################################
#0 : off - default
#1 : on - Erase only eph files when we use 'delete aiding data' function.
DEL_EPH_ONLY = 0
My gps works pretty fast...well we can't fix what isn't broken.
Sent from my SM-G900F using XDA Free mobile app
trettet said:
My gps works pretty fast...well we can't fix what isn't broken.
Sent from my SM-G900F using XDA Free mobile app
Click to expand...
Click to collapse
Same here, GPS is really fast.
But thanks for posting.
Best regards
Franck
trettet said:
My gps works pretty fast...well we can't fix what isn't broken.
Sent from my SM-G900F using XDA Free mobile app
Click to expand...
Click to collapse
you do realise not everyone is selfcentered on here.
because the majority of rom developers come from say the us the settings for them dont always work that well in other countries.
the gps-conf is an example of just one of these things, the gps works by locking onto multiple gps sources.
not everyone on here is a septic ignorant of the outside world
Thanks @shanky887614
Did you happen to take average fix times before and after your update to see just how much of an improvement it made?
Diskb0x said:
Thanks @shanky887614
Did you happen to take average fix times before and after your update to see just how much of an improvement it made?
Click to expand...
Click to collapse
it went from a couple mins to fix to a couple seconds.
this is why internet on, it is much quicker.
if you want some help to do this ill try.
Hi,
it's not exactly clear to me what has to be changed.
Do you recommend to change the NTP_SERVER line? Because your NTP_SERVER lines after "#uk server" are commented out, so it's normally not used.
Regards,
meiser

[GUIDE] How to FIX your GPS | Slow/Not Working/Not Fixing/Not Finding GPS [OP3/T]

Code:
/*
* Your warranty is... still valid?
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this Kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Hello guys!
On this guide, I'll guide you on how to fix the GPS of your OP3/T. Technically this should work on any device as some of the techniques used are just universal for all devices, but some of the stuff shown is only applicable to the OP3/T and therefore the guide will be focused on this 2 devices.
Both the OP3/T are known for not having the greatest GPS on the market, although, that doesn't mean it shouldn't work. It's still more than capable (If working fine) to be used on Google Maps, Waze and some Fit apps like Strava, RunKepper etc
First of all, let's narrow down the problem. A normal working GPS should be able to get a full 3D Fix in about 30 seconds outside on a clear sky. If you are testing this inside your house or office the times may variate.
This is a what a properly working GPS Looks like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And this is a what a not working GPS Looks like.
I recommend GPS Test for all the test we're going to do.
It will give you pretty much all the information you need to know.
GPS Test
​
[*]If your GPS takes a while to get a Fix/Or it's quite inaccurate then I recommend trying Method 1 & 2
[*]If your GPS can see the GPS Satellites but won't connect to any of them I recommend trying Method 3
[*]If you are having problems with GPS just while using 4G/LTE, I recommend Method 2 or Click HERE
[*]If your phone is not detecting your GPS Sensor I recommend Method 3 & 4
[*]Although I'd suggest trying all the Method until you can get your GPS properly working
Method 1: (Non-Root Method)
Let's get the obvious things over.
Make sure that Location Services are enable
Turn OFF and ON location
Switch from all 3 different modes. Devices Only, Battery Saving and High Accuracy
Reboot the Phone
Make sure Location History is enabled. Not sure why and how, but this seems to help with getting faster and better location.
Most likely this won't fix it, but it was worth to try.
Now let's try other methods.
Download the following app.
GPS Status
Open the app and go to the Sensor Diagnostic.
Press the GPS sensor and do Reset and then Download GPS Assistance.
Calibrate as well your Magnetic Field Sensor.
Test GPS.
Method 2: (Root Method)
I recommend performing a full backup before attending any of the following steps.
Once again let's get the obvious thing over.
Wipe both Cache and Dalvik
Try changing ROMs or Update your current ROM
Try updating or reflashing the lastest or your current Firmware/Modem
Try changing Kernel
Doing this we eliminate most of the possible problem related to your apps or configuration that you're currently using.
You might turn off or blocked some Alarm/Service/Wakelock that left you completely with GPS or Location service at all.
Now we are going to tweak our gps.conf file!
This should fix Slow Fixing or Not Accurate GPS.
I found this 2014 XDA Article about Faster GPS.
Open the link found on the Article or just click HERE
Search for your country/region and download the zip file there
Transfer it over your devices
Now we have a couple options to do.
You can replace your whole gps.conf for the one that you've downloaded or modify your current one.
On both case:
Open your fav File Explorer
Go to /system/etc/
Search for the gps.conf and back it up to a safe location
From here you can unzip the file you did download previously and copy and paste on /system/etc/ make sure that it's set to perms 644 or rw-rw-r--
There are a couple apps on the Google Place that does this as well.
The best ones in my option:
Faster GPS | TopNTP
What I like to do is take the default gps.conf and modify it with the additional setting found in both the apps and the zip file from above.
I like to this file and apps just substitute the whole gps.conf file and there is some additional information found in the default gps.conf that's not found on the replaced files. These settings are particular to the device, so it'd be interesting to keep it. Anyways, this what you have to do:
Do a backup of your current gps.conf
We are going to search for the new active NTP service for your region.
Go to http://www.pool.ntp.org/en/
Lock for "Active Servers". Click your region
For example, If you click Europe it will show: 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 at the list down below. Example: Spain — 2.es.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org
Write down all this information somewhere, take as well the NTP information from the zip files you've downloaded previously.
We should have something like this.
NTP_SERVER=hora.roa.es
NTP_SERVER=hora.oxixares.com
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=es.pool.ntp.org
NTP_SERVER=0.es.pool.ntp.org
NTP_SERVER=2.es.pool.ntp.org
Now we are going to modify our gps.conf file
Open it and add or uncomment (remove "#" before the line) the following lines of code.
Code:
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
NTP_SERVER=COUNTRY.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=5000 //This can be reduced If you are not quite getting all servers (Even by 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
####################################
# 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 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
Make sure the file was the right perms 644 or rw-rw-r---
Reboot your phone
This is how my gps.conf looks like. Use it as a comparison, but I don't recommend just copying and pasting into your own file unless you live in Spain.
Code:
#Uncommenting these urls would only enable
#the power up auto injection and force injection(test case).
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
#ifdef VENDOR_EDIT
# [email protected] add gps xtra server for speed up gps cold start
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
#endif
#ifdef VENDOR_EDIT
# [email protected],XTRA download config for debug
XTRA_TEST_ENABLED = 1
XTRA_THROTTLE_ENABLED = 0
#endif
#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
#NTP server
NTP_SERVER=hora.roa.es
NTP_SERVER=hora.oxixares.com
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=es.pool.ntp.org
NTP_SERVER=0.es.pool.ntp.org
NTP_SERVER=2.es.pool.ntp.org
#NTP_SERVER=time.izatcloud.net
#XTRA CA path
XTRA_CA_PATH=/system/etc/security/cacerts
# 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 = 0
# 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 = 0
# supl version 1.0
SUPL_VER=0x10000
# Emergency SUPL, 1=enable, 0=disable
SUPL_ES=0
#Choose PDN for Emergency SUPL
#1 - Use emergency PDN
#0 - Use regular SUPL PDN for Emergency SUPL
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=0
#SUPL_MODE is a bit mask set in config.xml per carrier by default.
#If it is uncommented here, this value will overwrite the value from
#config.xml.
#MSA=0X2
#MSB=0X1
#SUPL_MODE=
# 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=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
# 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=0
##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
#ifndef [email protected] enable all bit mask for GLONASS
#A_GLONASS_POS_PROTOCOL_SELECT = 0
#else
A_GLONASS_POS_PROTOCOL_SELECT = 15
#endif
##################################################
# Select technology for LPPe Control Plane
##################################################
# 0x1: DBH for LPPe CP
# 0x2: WLAN AP Measurements for LPPe CP
LPPE_CP_TECHNOLOGY = 0
##################################################
# Select technology for LPPe User Plane
##################################################
# 0x1: DBH for LPPe UP
# 0x2: WLAN AP Measurements for LPPe UP
LPPE_UP_TECHNOLOGY = 0
##################################################
# AGPS_CONFIG_INJECT
##################################################
# enable/disable injection of AGPS configurations:
# SUPL_VER
# SUPL_HOST
# SUPL_PORT
# C2K_HOST
# C2K_PORT
# LPP_PROFILE
# A_GLONASS_POS_PROTOCOL_SELECT
# 0: disable
# 1: enable
AGPS_CONFIG_INJECT = 1
# AP Coarse Timestamp Uncertainty
##################################################
# default : 10
# or as per clock uncertainty of product
AP_TIMESTAMP_UNCERTAINTY = 10
#####################################
# GNSS PPS settings
#####################################
#AP DR engine availability status
# 0 : NO AP DR (default)
# 1 : AP DR enabled
#EXTERNAL_DR_ENABLED = 0
#####################################
#DR_SYNC Pulse Availability
#####################################
# 0 : DR_SYNC pulse not available (default)
# 1 : DR_SYNC pulse available
DR_SYNC_ENABLED = 0
#####################################
#PPS Device name
#####################################
PPS_DEVICENAME = /dev/pps0
#####################################
#AP Clock Accuracy
#####################################
AP_CLOCK_PPM = 100
#####################################
#MAX ms difference to detect missing pulse
#####################################
MISSING_PULSE_TIME_DELTA = 900
#####################################
#Propagation time uncertainty
#####################################
PROPAGATION_TIME_UNCERTAINTY = 1
Alright, after this I'd recommend Downloading again AGPS Data (Assistance GPS), you can use GPS Status again or any other app that does this.
They are called AGPS Injectors, you can use them for getting it faster GPS fix by the AGPS from time to time, but If your GPS is not working this most likely won't do anything.
Method 3: (Using Un-Brick Tool)
If nothing of the above have worked for you, don't worry there is still hope.
This is the method that actually Fixed my GPS which was not getting a fix. It would find the Satellites (See them) but could connect to them.
As I said, we are going to use the MEGA Unbrick Tool. Credits to @Naman Bhalla
Backup everything and transfer it to your PC!!!
Go to the following link
Download the Method 2 and follow the instructions there
But wait, now there is no need to backup everything as Method 2 does no longer erase your Internal Storage.
Yes and No, it's true that now deleting a line will make it so it doesn't delete your Internal Storage, but we DON'T want this.
I have found that If we don't delete the internal it won't fix anything. If you want to try you can do it without the Data wipe, but If that doesn't work you have lost a lot of time...
Once you have performed the FULL Method 2
Boot to System (OOS 3.1.2)
There try downloading the apps mentioned before and test whether your GPS is working or not
If it's working you can install TWRP and start getting everything restored
I recommend doing a CLEAN install of the ROM and then install all your apps, just in case something was wrong with your previous System partition
Method 4: (Hardware Issue)
If anything has worked so far a possible case is that it's a Hardware and not software issue.
That means as well, that when open GPS Test or any GPS app the GPS Sensor WILL NOT BE FOUND.
If it does not the case and the GPS is Found but it cannot get a FIX (But sees the different GPS Satellites) or straight doesn't see any GPS Satellites.
*DISCLAIMER* Opening your phone avoids you Warranty, so If your phone is under warranty I'd recommend sending it back to One Plus
What can be done?
Well... If your phone is still under warranty I'd recommend opening an RMA Ticket and sending your phone for repair.
If your phone is not under warranty, and your GPS Sensor is not found at all, most likely your GPS is just broken, you can attempt the following method, but instead of putting tin foil you should reconnect the pins or buy a new replacement and installing it.
If your phone still sees GPS Satellites you can do the following guide.
This guide was designed for the S4 but it will work on the OP3/T (and any other phones)
http://www.instructables.com/id/Galaxy-S4-GPS-repair/
Here is a video from JerryRigEverything on the disablement of the OP3/T
https://www.youtube.com/watch?v=Hh_XgrcQ9oo
With all this, you should be able to Fix your GPS no matter what had happened to it.
I'll update adding additional pictures.
Reserved.
Good work for this topic, although I don't think this solves anything. I only have a decent GPS when I set my connection to 2g/3g. When 4g is enabled strange things occurs.
Tried that not sure if it helps, although some claim that it helped.
Darkje said:
Good work for this topic, although I don't think this solves anything. I only have a decent GPS when I set my connection to 2g/3g. When 4g is enabled strange things occurs.
Click to expand...
Click to collapse
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
Yes please!
Darkje said:
Yes please!
Click to expand...
Click to collapse
The article I was refering to -> Expert Advice: Positioning Protocol for Next-Gen Cell Phones
Another article about the topic -> LTE, Positioning, and the Implications for GNSS Over-the-Air Testing
And a full written paper about the matter -> LTE Location Based Services Technology Introduction
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
It is set to option 2. So I quess I should try option 3 right
Darkje said:
It is set to option 2. So I quess I should try option 3 right
Click to expand...
Click to collapse
Probably, from what I've read Control_Plane doesn't work really good
Hi asiier, in fact I did try most of the method before.
1: fully wipe my phone with unbrick tool.
2: using GPS status box etc.
3: change ROM, firmware etc.
But the above method doesn't solve my GPS issued. The weird part was whenever I changed a new Rom. Gps locked or detected very fast.. After sometimes, the problem came back.
Also for my temporary fixed was to reboot the device. This method mostly worked for me. But sometimes when I reset my GPS data, I can't detect the satellite. Required reboot few times.
This gps issued hunted me for months now. It frustrated and disappointed with oneplus. I'm a waze user and using daily. :crying:

			
				
Flasher8 said:
Hi asiier, in fact I did try most of the method before.
1: fully wipe my phone with unbrick tool.
2: using GPS status box etc.
3: change ROM, firmware etc.
But the above method doesn't solve my GPS issued. The weird part was whenever I changed a new Rom. Gps locked or detected very fast.. After sometimes, the problem came back.
Also for my temporary fixed was to reboot the device. This method mostly worked for me. But sometimes when I reset my GPS data, I can't detect the satellite. Required reboot few times.
This gps issued hunted me for months now. It frustrated and disappointed with oneplus. I'm a waze user and using daily. :crying:
Click to expand...
Click to collapse
Flasher8 said:
Click to expand...
Click to collapse
Then something is wrong with the settings you apply to your ROM and not your GPS.
Do you use Amplify, block any Wakelocks, alarms? Use some weird apps that could cause some problems?
And about the reset. I think it's a bug, because it happens to me as well, If I reset (Cold Start) my AGPS Data sometimes won't find any GPS Satellite unless I reboot.
So just don't reset it, just Download new AGPS data, it will replace the previous one, so there is no need in actually resetting.
Asiier said:
Then something is wrong with the settings you apply to your ROM and not your GPS.
Do you use Amplify, block any Wakelocks, alarms? Use some weird apps that could cause some problems?
And about the reset. I think it's a bug, because it happens to me as well, If I reset (Cold Start) my AGPS Data sometimes won't find any GPS Satellite unless I reboot.
So just don't reset it, just Download new AGPS data, it will replace the previous one, so there is no need in actually resetting.
Click to expand...
Click to collapse
No amplify, block and wakelocks etc.. Just normal usage. Even Oos and ob room having same issued. Im thinking hardware problem but mostly reboot could solve temporary. Damn op.
Wtf... I'm dam frustrated when need to use gps
Flasher8 said:
No amplify, block and wakelocks etc.. Just normal usage. Even Oos and ob room having same issued. Im thinking hardware problem but mostly reboot could solve temporary. Damn op.
Click to expand...
Click to collapse
Flasher8 said:
Wtf... I'm dam frustrated when need to use gps
Click to expand...
Click to collapse
If your GPS is getting signal from time to time and even getting a lock I won't say it's a hardware issue
If you give me more information maybe we can find out. Try to replicate it and record the screen or something
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Nobody07 said:
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Click to expand...
Click to collapse
Is true that the GPS is independent of Cell Signal, but currently since 3.5G If a cell connection is found the GPS will take advantage of that and get the Satellites fixed faster as it will "focus" on those near to Cell tower connected.
Nobody07 said:
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Click to expand...
Click to collapse
Then please explain me why I have a perfect GPS connection on 2G/3G and a bad one on 4G?
I can get a lock but problem is when I try recording path I get lots of drift and didn't record some of my route
Darkje said:
Then please explain me why I have a perfect GPS connection on 2G/3G and a bad one on 4G?
Click to expand...
Click to collapse
Bug or hardware issue with the SoC. May i ask how reception is with mobile connection completely shut off? Like in plane mode for instance.

Categories

Resources