maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Tutorial] Faster A-GPS response on Nokia N9 (https://talk.maemo.org/showthread.php?t=80287)

elieserleao 2011-11-23 03:04

[Tutorial] Faster A-GPS response on Nokia N9
 
Hi guys!

Today I was trying to change my SUPL server on my Nokia N9, but surprisingly, I cannot do it by Settings. I tried to search on Google, but not found anything about it.
So I started to search where it is configured and change.
Here it is!!

Step 1: Enable developer mode and open Terminal
Step 2: On Terminal type
Code:

~ $ devel-su -
If you not changed your password yet, it will be "rootme"

Step 3: edit the file below by typing
Code:

~ # nano /etc/xdg/nokia/location-settings.conf
Inside that file, edit it to be like the one below (in bold the edited strings)

Code:

PrimarySuplServer=supl.google.com
PrimarySuplAllowHome=true
PrimarySuplAllowRoaming=true
PrimarySuplOnlyGprs=false
SecondarySuplServer=supl.nokia.com
SecondarySuplAllowHome=true
SecondarySuplAllowRoaming=true
SuplForced=true

Step 4: save the file using "CTRL X"
Step 5: reboot the phone

From now, your GPS will be 'locked' faster than before!!
In my tests the GPS locked in less than 10 seconds (after Nokia Maps fully loaded)!
Before, the lock was around 40 seconds to 1 minute.

It's known the SUPL Nokia server is slow, and in Brazil (where I live) it's outdated, so the solution is to use Google servers.

I hope it helps! =D

PS: If you not have 'nano' and receive 'not found', install it using command:
Code:

~ # apt-get install nano
PS2: I use "true" to "SuplForced", 'cause I always have internet connection, but if you don't have it, leave it "false". ;)

SamGan 2011-11-23 04:01

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by elieserleao (Post 1127647)
PS2: I use "true" to "SuplForced", 'cause I always have internet connection, but if you don't have it, leave it "false". ;)

Thanks for this tip. If SuplForced is false, will this mod make the GPS lock faster?

elieserleao 2011-11-23 04:27

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by SamGan (Post 1127659)
Thanks for this tip. If SuplForced is false, will this mod make the GPS lock faster?

Your GPS will lock faster if you use SUPL servers (A-GPS)!

A-GPS use cells informations to triangulate your position, and to get coordinates of the cells it will query SUPL servers... ;)

So the property will be "true" if you wanna ALWAYS use SUPL servers (A-GPS) instead of waiting regular-GPS satellites to respond.

Get it?! :)

cddiede 2011-11-23 05:46

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Not knowing how to change my SUPL server on the N9 was driving me Crazy!! Thanks so much!

jalyst 2011-11-24 06:54

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
excellent finding, thanks for sharing!

randomdood 2011-11-24 07:08

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
normally when i'm in the car i get a lock very quickly without having this modded... i shall mod and see if there is a noticeable difference

crisscross 2011-11-27 22:22

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Tried to ping supl.nokia.com:
18-20 ms
supl.google.com:
134-256 ms

This was from Sweden. I would say this mods effect will highly depend on your location.

jonnyl 2011-11-27 23:15

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by crisscross (Post 1129762)
Tried to ping supl.nokia.com:
18-20 ms
supl.google.com:
134-256 ms

This was from Sweden. I would say this mods effect will highly depend on your location.

Aye, in the US I have the opposite effect.

elieserleao 2011-11-29 01:18

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by crisscross (Post 1129762)
This was from Sweden. I would say this mods effect will highly depend on your location.

That's what I'm talking about. In Brasil the pings not differ so much, but the Google Database is more accurate and updated... ;)

Jmenka 2013-02-07 21:08

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Please, can anybody explain how to edit file with configurations in step 3. I just can't change the code :(

justadude 2013-02-07 21:31

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
I live in pennsylvania in the states. Pinged nokia and got an average of 71ms. Pinged google and got 128ms. Maybe in certain parts of the country is better?

joerg_rw 2013-07-18 13:46

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by elieserleao (Post 1127666)
Your GPS will lock faster if you use SUPL servers (A-GPS)!

A-GPS use cells informations to triangulate your position, and to get coordinates of the cells it will query SUPL servers... ;)

So the property will be "true" if you wanna ALWAYS use SUPL servers (A-GPS) instead of waiting regular-GPS satellites to respond.

Get it?! :)

Well that's not entrely correct by the facts, though the result will be same.
SUPL (in MSB mode) provides ephemeris and almanac (data about position and trajectory of visible sats etc, needed to calculate your position based on exact sats' position) for the location you're at (+/- a few 100 miles). Usually - without "A"ssited - this data gets downloaded from the GPS sats at a rate of some iirc 50bits per second, taking up to 12:30minutes for one complete set of data to transfer - if you have no reception dropouts during that time.
To get your initial position to request for the right data set, your phone uses different sources like last known position, CountryCode of your GSM/UMTS network (you're 'located' then in center of that country), or even CellID of the GSM cell (tower) you're in. There's however no such thing like "triangulation" for GSM/UMTS. "Normal" SUPL is via internet, no matter if provided by GSM/UMTS or WLAN or even USB-networking/whatever.

What GSM frequently does is: it provides the same AGPS data (Ephem and Alm) via a hidden data channel in the normal network, see the Radio Resource LCS (Location Service) Protocol as specified first in GSM TS 04.31, or http://security.osmocom.org/trac/wiki/RRLP (interesting read! You'll frown at your phone for what it may do on the [hidden] Control Plane Protocol without telling you)

A sidenote: for systematically obscure reasons the N900 SUPL implementation needs a fairly correct time&date on device to work. Even if SUPL needs some time stamp for delivering the right period of Alm/ephem data (instead of a obvious `NOW´), obviously the devels forgot that - when they already have access to internet to get SUPL data from server - they also can get current time by e.g ntp. Not all carriers provide the (correct version of) timestamp on their network that's used by N900 "automatic time adjustment". Probably exactly when they also don't provide CCP AGPS.

/jOERG

joerg_rw 2013-07-18 13:53

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by justadude (Post 1321600)
I live in pennsylvania in the states. Pinged nokia and got an average of 71ms. Pinged google and got 128ms. Maybe in certain parts of the country is better?

ping time is completely irrelevant for AGPS
/j

hugon9 2013-07-18 15:30

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by Jmenka (Post 1321587)
Please, can anybody explain how to edit file with configurations in step 3. I just can't change the code :(

you need nano editor, do you have installed it?

LinuxCub 2013-07-18 15:56

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Quote:

Originally Posted by hugon9 (Post 1359875)
you need nano editor, do you have installed it?

unless something odd is going on, like nano having some sort of superpowers, no-one _needs_ nano !

Anyone doing anything on a unix-like OS needs (yes) to know vi.

So would y'all stop being so weird

*end rant*

chilango 2016-03-07 18:11

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
I was using since now supl.nokia.com but positioning needs a lot of time.
Now checking with ping to supl.nokia.com, it seems the nokia server is down.

Will see if positioning now it will be faster

RasLikesN9 2017-07-22 00:00

Re: [Tutorial] Faster A-GPS response on Nokia N9
 
Chilango, I have been experiencing the same thing. Of course, that's after I learned that I have to open the Drive app, it sits at the startup screen, swipe it sideways and look at all apps running and watch until it shows a map, then click on it to be the app on the full screen.

I just took a vacation with the family and noticed it took a very long time for maps to come up (and I downloaded the entire country map long ago). I came here to find out what may be wrong and had the same discovery - supl.nokia.com resolves to something else, but gets no ping replies. I left the nokia site as the secondary provider, but now Google is the primary and it comes up quickly.

Thank you (years later) for this find, elieserleao, if you even still check these forums. :)

Now to find out why my N9 is moving slower in all other apps these days than in the past.


All times are GMT. The time now is 04:00.

vBulletin® Version 3.8.8