maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Nokia N900 A-GPS Not Working Anymore (https://talk.maemo.org/showthread.php?t=90651)

sicelo 2018-04-24 09:48

Re: Nokia N900 A-GPS Not Working Anymore
 
so seems to work for me with 52.200.182.188 in /etc/hosts

unless i'm just benefitting from cached data since i haven't travelled much

jonwil 2018-04-27 12:09

Re: Nokia N900 A-GPS Not Working Anymore
 
Switching my /etc/hosts to that address has fixed GPS for me as well.

pichlo 2018-06-23 05:39

Re: Nokia N900 A-GPS Not Working Anymore
 
A naive question: Can't you just set the A-GPS URL directly to that IP address and leave hosts alone? I am tempted to fire up my N900 and try... :D

peterleinchen 2018-06-23 07:18

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by pichlo (Post 1545715)
A naive question: Can't you just set the A-GPS URL directly to that IP address and leave hosts alone? I am tempted to fire up my N900 and try... :D

Nopd.
For whatever reason the settings field for supl server only accepts fully qualified server name, no IP addresses.

(And iirc the same counts for the e-mail server fields.)

peterleinchen 2018-06-24 13:21

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by shaihkritzer (Post 1545751)
... why then such topic would count 30 pages?

'cause it is not only about IP address against full server name? :D

sicelo 2018-10-03 20:46

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1543573)
so seems to work for me with 52.200.182.188 in /etc/hosts

unless i'm just benefitting from cached data since i haven't travelled much

Today I noticed that this host does not seem to respond ... or is the problem with my network? So A-GPS is once again broken for me.

peterleinchen 2018-10-03 21:07

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1549105)
Today I noticed that this host does not seem to respond ... or is the problem with my network? So A-GPS is once again broken for me.

This server does not respont to ping nor to telnet.
So either down or blocked.

nieldk 2018-10-04 04:16

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by peterleinchen (Post 1549107)
This server does not respont to ping nor to telnet.
So either down or blocked.

Have you tried this, from a few posts back

http://talk.maemo.org/showpost.php?p...&postcount=283

sicelo 2018-10-04 11:49

Re: Nokia N900 A-GPS Not Working Anymore
 
So, supl.nokia.com has finally completely disappeared off the face of the earth (or at least DNS),
https://www.whatsmydns.net/#A/supl.nokia.com

glo-worm 2018-10-04 11:50

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1549121)
So, supl.nokia.com has finally completely disappeared off the face of the earth (or at least DNS),
https://www.whatsmydns.net/#A/supl.nokia.com

whats the current recommended alternative? supl.google.com?

Maemish 2019-08-30 08:33

Re: Nokia N900 A-GPS Not Working Anymore
 
Can it be confirmed that changing this 173.194.198.192 supl.google.com to /etc/hosts and chantging to supl.google.com is a right solution for this problem? At least I got location with cellnet apps.

Koiruus 2019-08-30 17:30

Re: Nokia N900 A-GPS Not Working Anymore
 
Yeah, just pick any of those IP's here https://www.whatsmydns.net/#A/supl.google.com
Preferably nearest one I guess, but it won't matter too much..

biketool 2019-09-01 06:21

Re: Nokia N900 A-GPS Not Working Anymore
 
This de-googling guide gives five SUPL servers right now https://www.reddit.com/r/privacy/com...ageos_in_2019/

Code:

Servers found:

    supl.sonyericsson.com - Working (port 7275 is open), located in Ireland, hosted with Amazon.

    supl.vodafone.com - Working (port 7275 is open), located in Germany, self-hosted.

    agpss.orange.fr - live, but port is filtered, located in France, self-hosted.

    agps.supl.telstra.com - live, but port is filtered, located in Australia, self-hosted.

    221.176.0.55 - default Xiaomi SUPL server IP, belonging to state-owned China Mobile and hosted in Beijing. Please share if you voluntarily choose this over Google.

Also some good ideas for those of us floating out at sea with what amounts to hacked firmware devices still waiting for our next unicorn gnu Linux(w/FOSS drivers) device pref with hw kb removable battery 3.5mm analog audio, & fm tx along with the good current flagship trends. As I usually do I plug LineageOS with Microg as a spare tire stopgap in a world where we are stuck with android kernel bin-blob drivers only and cant boot a normal kernel with x11 until we get another N900 level device(has bin blob issue too)). https://lineage.microg.org/

ric9K 2019-11-26 21:30

Re: Nokia N900 A-GPS Not Working Anymore
 
Great!

However most of these servers seems to work, it is very difficult to test as the device seem to remember where was the last location.
So, inside a house, far from the window with agps deactivated, the n900 is able to give the position.

I have found out the last known position is stored in

/etc/osso-af-init/gconf-dir/system/nokia/location/lastknown/%gconf.xml

And can be displayed reading into the file or with
Code:

gconftool-2 -R /system/nokia/location/lastknown
A bit rough but I tried to delete both file and gconftool-2 entry with
Code:

rm -f /etc/osso-af-init/gconf-dir/system/nokia/location/lastknown/%gconf.xml
gconftool-2 --recursive-unset /system/nokia/location/lastknown

Then, I verified, file and entry were inexistant.

But still, when I start modrana, it finds the position in about 30 seconds. (only GPS before supl fix was dozens of minutes and outdoor.)

So, where is that data (last location) stored? GPS chip?
And how can we test these servers in a neutral way, without the help from the memory of the last one tested?

sicelo 2019-11-26 21:53

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by ric9K (Post 1562664)
But still, when I start modrana, it finds the position in about 30 seconds. (only GPS before supl fix was dozens of minutes and outdoor.)

So, where is that data (last location) stored? GPS chip?
And how can we test these servers in a neutral way, without the help from the memory of the last one tested?

There's a little tool in the following URL that might help you. YMMV.

https://bugs.maemo.org/show_bug.cgi?id=7026#c35

ric9K 2019-11-29 22:21

Re: Nokia N900 A-GPS Not Working Anymore
 
Thanks sicelo, cool little app.
But yes, YMMV a lot!

Results are very inconsistent, I mean non linear, changing.
I tried to test these supl servers for hours but I'm not f*ç%&%& able to get an objective result. I still cannot know which is the most efficient and reliable. Once I get a lock fast with google, sometimes it takes like 10 minutes, sometimes forever... Some other servers work, then no more... (I allways test from the same place)

Tried to put all servers ans IPs into /etc/hosts, than tried just with one by one (allways keeping localhost, of corse)...

After all, i'd say google gives the "less whorse" results though, but it's just an impression.

I have also tried the supl package but I think I haven't ben able to set it up correctly however I followed the wiki page strictly.
I didn't understand really how to deal with the domain that
"does not necessarily need to exist however, but it is a good idea to use a domain that you have control of" hmm...

Another impression: lock is coming faster on the stock n900 than on the CSSU-t one. Sometimes lock is ok in seconds with stock one.

Can it be that the supl package had leaved some perturbing traces on the system after removing it?

Did someone get more serious results?
With proxy or without?

I know it'd be easier with a brand new temptating Pro1 but no no no, I'll not be weak, I I keep using on my n900 every day! (until tomorrow at least).


edit: I ended up by rebooting between every test.
My pesudo should have been editman...

sicelo 2019-11-29 22:39

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by ric9K (Post 1562798)
I have also tried the supl package but I think I haven't ben able to set it up correctly however I followed the wiki page strictly.
I didn't understand really how to deal with the domain that
"does not necessarily need to exist however, but it is a good idea to use a domain that you have control of" hmm...

I wrote that wiki page, and sorry if it is confusing.

Otherwise, the section in question means - create a certificate by using a valid-looking domain name. For, example, preferably not supl.a, since that doesn't look valid at all. You can use a real, existing domain name, but since the proxy does not even check, it can just be an imaginary domain too. The part about "control" is just saying preferably don't create a certificate for talk.maemo.org, for example, which is not a domain you own (or are likely to own).

Please edit the wiki to make it less confusing :)

ric9K 2019-11-30 20:11

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1562799)
I wrote that wiki page, and sorry if it is confusing.
own).

I didn't mean it was not clear...just my skills which might no be at the right level. Hope I didn't hurt anyway.

Quote:

Please edit the wiki to make it less confusing :)
With pleasure. But first, I'd be better to be able to make it work on my side to know what I did wrong and what I could improve in explanation.

At the moment, I get an error of certificate... I like so much more photograpy, coffee, hacking, cinema, dish washing than certificates but let me search what happens, I'll be back.

sicelo 2019-11-30 20:24

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by ric9K (Post 1562826)
At the moment, I get an error of certificate...

Interesting. I would like to see the error, if you don't mind. Perhaps please send us a log, or attach a screenshot.

ric9K 2019-11-30 21:16

Re: Nokia N900 A-GPS Not Working Anymore
 
Yes, sorry, I was reading the supl proxy creator's page.
What I thought being an error seems not to be an error (Client does not have certificate).

Here is my command and output. I launch modrana right after having entered the command.

Code:

~/supl$ supl-proxy supl.google.com

Connection from 127.0.0.1:64149
SSL connection using AES256-SHA
Client does not have certificate.
zsh: exit 214  supl-proxy supl.google.com

More details:
Connection: wifi
Sim card (working) from another country
Installed from devel (is there something related?):
libssl1.1
openssl
libqt4-core

/etc/hosts:
Code:

127.0.0.1 Nokia-N900 localhost
127.0.0.1 supl.thisdomainnameisnotinuse.com
#74.125.140.192 supl.google.com
#52.208.237.98 supl.sonyericsson.com
#46.190.239.145 supl.vodafone.com
#94.124.135.87 agpss.orange.fr

And setting in settings -> positionning -> agps is supl.thisdomainnameisnotinuse.com

Btw, fremantle.com does exist and is absolutely in my taste :D

edit: added some clarity

sicelo 2019-11-30 21:51

Re: Nokia N900 A-GPS Not Working Anymore
 
you'll need to change the 'fake' supl server's IP address in /etc/hosts to maybe 127.0.0.2.

after making the change, either reboot the device or do:
Code:

$ sudo stop dnsmasq
$ sudo start dnsmasq

Btw, the supl proxy does NOT necessarily lead to a gps lock. What it does is to inform your gps/modem about the satelites in your area (without the gps having to find them on its own). the gps must still exchange data with the sats, and if it fails, you're not getting a lock, even though a satelite monitor will show a dozen visible (available) sats

ric9K 2019-11-30 22:02

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1562834)
...
Btw, the supl proxy does NOT necessarily lead to a gps lock...

Ok got it. But the command should output what is exchanged with the proxy/server isn't it?

Ok, Ill change the IP, reboot and post asap (tho a n900 takes some time to do so .-))

ric9K 2019-11-30 22:18

Re: Nokia N900 A-GPS Not Working Anymore
 
After IP change and rebooting:

No changes, no output from supl-proxy and immediate exit 214 after modrana has started.

Edit: the same happends with location-test-gui instead of modrana:
Right after reboot,
Using location-test-gui, number of satellites in GNSS mode before launching the proxy: 6 to 9.
Launching the proxy and relaunch location-test-gui in AGNSS mode,
Same number of sat and same exit without output.

When using supl.google.com directly ( set in location agps settings and with corresponding IP in /etc/hosts), I don't get more satellites but the lock can happen within less than one minute.

------------

(good/bad) Question:
On his page, the developper says:

Quote:

Before running make you must change DOMAIN in src/cert/Makefile.am to the DNS name of you proxy server. This DNS name must match what your should entered in N900 settings below.
Does that mean that there is any hardcoded proxy name into the program after compilation that could not correspond to the settings we entered?

I searched into the sources but what I found might bi some old default or fallback servers isn't it?

Code:

~/prov/supl% grep -Rin nokia   
                           
supl-1.0.6/src/supl-client.c:307:  server = "supl.nokia.com";
supl-1.0.6/src/supl-client.c:307:  server = "supl.nokia.com";

And as ,iirc, makefile is generated before making, it cannot be there, so what was used for compilation, I don't know...

sicelo 2019-12-01 05:05

Re: Nokia N900 A-GPS Not Working Anymore
 
supl.nokia.com is hardcoded, yes, and used when you don't supply your own supl server. this is not the problem you are encountering, since you do supply a supl server (supl.google.com) when running the proxy.

the supl domain name you created should be used in 3 places: (1) in the domain of the certificate you created, (2) in Settings > Location, and (3) in /etc/hosts. Can you confirm this is true in your case?

ric9K 2019-12-01 11:17

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1562843)
the supl domain name you created should be used in 3 places: (1) in the domain of the certificate you created, (2) in Settings > Location, and (3) in /etc/hosts. Can you confirm this is true in your case?

Yes, I confirm it is absolutely true in my case.
I have deleted what was in /home/user/supl and then recreated with the instructions given in the wiki for the new domain name corresponding to what is in settings > location and /etc/hosts. Absolutely.

sicelo 2019-12-01 12:11

Re: Nokia N900 A-GPS Not Working Anymore
 
Then I'm not sure what's up. Perhaps someone else can try the wiki steps and reproduce, or you can try strace or other tools.

ric9K 2019-12-01 20:41

Re: Nokia N900 A-GPS Not Working Anymore
 
PROGRESS --- so simple
Great, thanks, I installed and used strace.
A lot of ununderstandable things came out but,
I saw somewhere in the output "network is unreachable".
I switched the connection from wifi to gprs and it worked, a lock came in seconds.
Though the ADSL modem firewall is inactive, it is not working via wifi nor usb networking.
Any clue of the reason? (all prior tests with wifi were done in "phone mode" but without gprs internet connection)

WIKI
So now, I can add some infos to the wiki. I guess I shouldn't delete or add into your text but below it with an "edit:". Am I right?
Also, how can I login to the wiki. Seems not to be the same account than here. (searched on different places in maemo.org but found nothing about that).

sicelo 2019-12-01 21:05

Re: Nokia N900 A-GPS Not Working Anymore
 
Network problem ... no surprise there

Wiki - edit it as best as you see fit. Even if you adjust/remove parts of the existing text, if anyone ever needs to compare, Wiki has a history, like Git :)

I forgot how to create a Wiki account - I remember some things need you to register a Garage Account, https://garage.maemo.org/account/register.php

I can't be too sure if wiki was one of those, but it's possible. Maybe someone more knowledgeable will chime in

ric9K 2019-12-01 21:18

Re: Nokia N900 A-GPS Not Working Anymore
 
History, great, I can dive!
Ok, I'll investigate.
(btw, the url is https://garage.maemo.org/account/register.php, not https://garage.maemo.org/account-register.php)

peterleinchen 2019-12-01 22:24

Re: Nokia N900 A-GPS Not Working Anymore
 
Yes, wiki should be garage account as well as bugs.
Share all one account.

Only TMO needs a different one.

And about network: I do remember that for A-GPS only mobile network is working on N900 (no idea why but it is), WiFibdoes not help.

ric9K 2019-12-01 22:44

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by peterleinchen (Post 1562872)
Yes, wiki should be garage account as well as bugs.
Share all one account.

Do you mean I should have logged as "garage"?

Quote:

Only TMO needs a different one.

And about network: I do remember that for A-GPS only mobile network is working on N900 (no idea why but it is), WiFibdoes not help.
Anyway, the wiki page about supl-proxy and a note on how tu use suppl.google.com has been updated with my first contribution. :cool:

edit: should the title of this thread be changed to "Nokia N900 A-GPS working again"?
N900 is not dead!

sicelo 2019-12-02 06:30

Re: Nokia N900 A-GPS Not Working Anymore
 
Interesting that it shouldn't work on Wi-Fi for at least two of you. It has been working for me since day one (the proxy, that is).

Thanks for the wiki edit. I have a comment/observation about the Google part. I wonder if it is really necessary to make an entry for it in /etc/hosts, since this will get resolved normally as part of the A-GPS request anyway.

Also, at least as of now, Maemo still has valid certificates for connecting to Google's supl server,
Code:

cmcli -T common-ca -v supl.google.com:7275

ric9K 2019-12-02 11:39

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by sicelo (Post 1562877)
...
I wonder if it is really necessary to make an entry for it in /etc/hosts, since this will get resolved normally as part of the A-GPS request anyway.

I'd say it is necessary.
Tests made into a building:
I flashed + Installed a fresh CSSU-t. No traces from previous tests.
Changed nokia to google in settings...
Without entry en /etc/hosts, no lock.
Added entry in /etc/hosts
Rebooted
Got a lock (modrana indicates my right pos + sat icon not blinking) in less than 30s.

Quote:

Also, at least as of now, Maemo still has valid certificates for connecting to Google's supl server,
Also verified, this is correct. No need for google cert at the moment.
Sorry for badly interpreting/repeating inexact infos.

Maemish 2019-12-02 14:54

Re: Nokia N900 A-GPS Not Working Anymore
 
Which maps you are using with Modrana? And are you using QML version? For me it won't load any map, just loading... And I have changed the supl.google and also edited the /etc/hosts and restarted dnsmasq. Would really like to get a working navigation on my device. Have now used two years without.

I would just need a map to use in Finland while driving with a car.

juiceme 2019-12-02 17:14

Re: Nokia N900 A-GPS Not Working Anymore
 
Quote:

Originally Posted by ric9K (Post 1562873)
Do you mean I should have logged as "garage"?

No, of course not. What is meant is that accounts are shared across garage and wiki, you should use your garage account when logging in to wiki.
(I assume you know that there are separate garage and TMO accounts and usually people link those together to get karma for TMO postings...)

ric9K 2019-12-02 18:35

Re: Nokia N900 A-GPS Not Working Anymore
 
@ Juiceme, Thanks for explaination

@ Maemish, I didnt remember Modrana QML version existance, don't even know what it is.
As maps, I am using OpenStreetMap, Google, sometimes Sat view but actually I don't use mapping nor routing very often.

But I noticed routing doesn't work at the moment...

In your case, getting a lock and displaying maps are two different problems which must be treated separately.

To test your gps/agps, try another map application or the one referred in the wiki as location-test-gui.

About Mordana display staying white, you can try to verify its configuration, launch it from terminal to see the output or even launch it with strace.
-Settings > Connectivity > Location > Network Positioning is supl.google.com, not supl.google.
-How does your /etc/hosts look?
Did you test positionning after rebooting and recheck Settings > Connectivity > Location > Network ? In my device, it sometimes comes back to supl.nokia.com by itself.
Did you try with gprs and wifi?
Is your device in phone mode with the simcard registered and active?

Maemish 2019-12-02 19:14

Re: Nokia N900 A-GPS Not Working Anymore
 
/etc/hosts: 127.0.0.2 Nokia-N900 localhost

I forgot, was I supposed to change the Nokia-N900 to something else?

And yes, I have supple.google.com in navigation setup.

ric9K 2019-12-02 19:52

Re: Nokia N900 A-GPS Not Working Anymore
 
No, no,
I'd suggest you to reread this thread from here
As Koiruus explained, you should search for an IP for google which suits your geographic area (more or less) and put it into /etc/hosts but don't delete the first line, it is your device!
Your /etc/host could look like this:
Code:

127.0.0.1 Nokia-N900 localhost
74.125.140.192 supl.google.com

About navigation setup, you wrote supple.google.com. It is not "suple" but "supl". I guess it was a typo in your message.

Maemish 2019-12-02 22:20

Re: Nokia N900 A-GPS Not Working Anymore
 
Thanks for help. Now I have google maps with a very good location match. And it only took two years to get it. Tried once and a while but always did something wrong.

Now if Sulu will someday in the future have time and strength to make a new debbie image with netsurf 3.9 I think I will get most things I need on this phone.

Next thing to do would be to have dos emulator and have good games (mario type and space invader type) on it. I think I have seen emulator in HAM but how to get games (from where and how to install them on the phone, probably some instructions can be found from the forum) and play - yet unknown stuff for me.

endsormeans 2019-12-03 22:55

Re: Nokia N900 A-GPS Not Working Anymore
 
emulators and games are the easy part.
there are plenty of n900 game emulators and tons of games on the web to harvest..nintendo, super, mame etc...
of course ...this is where a n900 game gripper would be handy for ease of play.


All times are GMT. The time now is 05:45.

vBulletin® Version 3.8.8