Editing N900 GPS Proxy

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
As of 2019, supl.nokia.com is not working, thus the N900 cannot get GPS assistance information. So getting a GPS fix can take a very long time as there is no network assistance.
+
As of 2019, supl.nokia.com is not working, thus the N900 cannot get GPS assistance information. On the other hand, the N900 is also unable to communicate with Google's supl server, supl.google.com. So getting a GPS fix can take a very long time as there is no network assistance.
-
 
+
-
Some are able to use Google's supl server directly, while for others it does not work. Even if it works for you out of the box, you might care about [https://blog.wirelessmoves.com/2014/08/supl-reveals-my-identity-and-location-to-google.html privacy concerns.]
+
The use of an A-GPS proxy, such as [https://www.tajuma.com/supl/index.html https://www.tajuma.com/supl/index.html] can get around the problem. It is already [http://maemo.org/packages/view/supl/ packaged], and available from Extras-Devel (you can temporarily enable -devel, then disable it afterwards)
The use of an A-GPS proxy, such as [https://www.tajuma.com/supl/index.html https://www.tajuma.com/supl/index.html] can get around the problem. It is already [http://maemo.org/packages/view/supl/ packaged], and available from Extras-Devel (you can temporarily enable -devel, then disable it afterwards)
 +
 +
edit: It has been found out supl.google.com can be used:
 +
 +
*In '''Settings > Connectivity > Location > Network Positioning''', replace supl.nokia.com with supl.google.com
 +
*Find the supl.google.com IP near to you by looking [https://www.whatsmydns.net/#A/supl.google.com https://www.whatsmydns.net/#A/supl.google.com]
 +
*In /etc/hosts, fill one line with the IP you found, one space and "supl.google.com"
 +
*May be optionnal, to confirm: get the certificate for supl.google.com: [https://censys.io/certificates/95c074e35902a14abd9d19afb6e7f80e669ff8e2363270539d963613f04aaa21/pem], put it in /etc/certs/common-ca/ and test it with
 +
<pre>openssl s_client -connect supl.google.com:7275 -CApath /etc/certs/common-ca/</pre>
 +
 +
*Reboot and control that the '''Settings > Connectivity > Location > Network Positioning''' setting survived the reboot (sometimes comming back to nokia in my N900)
 +
 +
However this is working, you might care about [https://blog.wirelessmoves.com/2014/08/supl-reveals-my-identity-and-location-to-google.html privacy concerns], then examine the possibility to use the proxy as explained below.
==Configuration==
==Configuration==
Line 13: Line 23:
<pre>
<pre>
~$ mkdir supl && cd supl/
~$ mkdir supl && cd supl/
-
~/supl$ supl-cert supl.maemo-fremantle.com
+
~/supl$ supl-cert supl.fremantle.com
</pre>
</pre>
* Install the CA certificate via cmcli:
* Install the CA certificate via cmcli:
Line 27: Line 37:
==Use==
==Use==
-
* Connect the N900 to the internet with mobile network (wifi seems not to work).
+
* Start the proxy and point it to supl.google.com (or any other supl server you know works):
-
* Start the proxy and point it to supl.google.com (or any other supl server you know works, some are listed here: [https://www.reddit.com/r/privacy/comments/cldrym/how_to_degoogle_lineageos_in_2019/ https://www.reddit.com/r/privacy/comments/cldrym/how_to_degoogle_lineageos_in_2019/] ):
+
<pre>
<pre>
~$ cd supl/
~$ cd supl/
Line 34: Line 43:
</pre>
</pre>
* Run your GPS consumer application
* Run your GPS consumer application
-
If all went well, you should see a lot of output from the proxy, after which it will exit. Hopefully you will get a fix in a few seconds.
+
If all went well, you should see a lot of output from the proxy, after which it will exit. Hopefully you get a fix in a few seconds.
==Notes==
==Notes==
Line 44: Line 53:
</pre>
</pre>
*Also, it seems that a new supl request can be issued after a change in CellID, so moving to a different location may help.
*Also, it seems that a new supl request can be issued after a change in CellID, so moving to a different location may help.
-
*You can use [https://bugs.maemo.org/show_bug.cgi?id=7026#c35 this tool] to clear the GPS cache which may induce wrong conclusions about last changes/test.
 
-
*You can use [http://maemo.org/packages/view/location-test-gui/ location-test-gui] to test your gps/a-gps.
 
-
*It may not always work with a wifi connection. In this case, try a gprs internet connection.
 
-
 
-
For further information, search the forum for threads like [https://talk.maemo.org/showthread.php?t=90651&page=30 this one]
 
Please update this wiki with your observations.
Please update this wiki with your observations.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)