Log in

No account? Create an account
Using the internal GPS with nmea_info.py - Nick [entries|archive|friends|userinfo]

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Using the internal GPS with nmea_info.py [Jul. 16th, 2007|03:03 pm]
I had a few questions on the weekend about using nmea_info.py with the internal GPS on a N95 (or similar S60 v3 phone). It's fairly simple:

  • Get the DevCert for your phone, if you don't have it already
  • Download S60 Python 1.4.1 (or 1.3.22, but you'll need a different LocationRequestor sis file)
  • Download the 3rd edition .sis file of LocationRequestor for your version of Python:
    LocationRequestor for 1.4.x or LocationRequestor for 1.3.22
  • Install the main Python for S60 sis file (it's already handily signed)
  • Sign the python shell sis files, and the LocationRequestor sis file, with your devcert, and be sure to give them all the full set of devcert permissions.
  • Install the signed python shell and LocationRequestor on your phone
  • Either:
    • Install the .py version of nmea_info on your phone, and run it from the python shell
    • or sign the v3 .sis of nmea_info with your devcert, giving it full devcert permissions, and install that on the phone
  • Slide the cover open, and hold the phone upside-down, looking like a bit of a prat
  • Enjoy the internal GPS goodness with your N95 and nmea_info

OK, maybe it does take 5-10 minutes (longer if the symbian signed site has crashed again...), but that's what we get by buying a phone with all the symbian signed restrictions crap on it :/

Update: Now works with Python 1.4.0, if you get a different LocationRequestor .sis file (thanks to Eddie for compiling it)
Update 2: Python 1.4.1 is correctly signed by Nokia, so you don't need to re-sign. You still need to sign LocationRequestor, the Python Shell, and nmea_info. Isn't platsec such a wonderful advancement for S60?

[User Picture]From: nedrichards
2007-07-17 11:44 am (UTC)
Sidenote: with the v12 firmware AGPS is much faster to lock on on the N95 now. But thanks for the guide!
(Reply) (Thread)
From: (Anonymous)
2007-08-06 09:35 pm (UTC)


Hi there

What a great tool! Thanks a lot for that.

It works perfect. Well... not 100%. Everything works fine. But when I use LocationRequestor in a Python-Script, Python crashes when it quits. :-( This also applies to NMEA_info.

Whatever I do. As soon as there is the line "import locationrequestor", not even creating an instance only importing the library, on app exit it crashes.

Any ideas?

Thanks a lot

(Reply) (Thread)
From: gagravarr
2007-08-06 09:46 pm (UTC)

Re: locationrequestor

That sounds like a bug in the LocationRequestor module. It probably isn't releasing all the resources on python unload. You'll need to report that to the author, probably via forum nokia (just reply to the thread announcing the module).
(Reply) (Parent) (Thread)
From: (Anonymous)
2007-08-06 10:13 pm (UTC)

Re: locationrequestor

Thanks for the quick response! :-)

I will try your advice, Thanks.

Btw: I wrote a little tool to sync the device time with the gps satellite time. If you are interested, please let me know.
(Reply) (Parent) (Thread)
From: gagravarr
2007-08-06 11:00 pm (UTC)

Re: locationrequestor

Sounds interesting. Send me a link and I'll give it a gander :)

You may also want to list it on http://wiki.opensource.nokia.com/projects/PyS60_applications
(Reply) (Parent) (Thread)
From: (Anonymous)
2007-08-06 09:39 pm (UTC)

again, locationrequestor

sorry, I forgot to give my details:

Nokia N95
Python 1.4.0
(Reply) (Thread)
From: (Anonymous)
2008-03-09 11:54 pm (UTC)

Signing Python


How do you sign the Python Shell?

I don't have a Developer ID with Symbian... so I used the Open symbian signing tools (March 2008).

(Link=> https://www.symbiansigned.com/app/page/public/openSignedOnline.do)

This worked fine for the LocationRequester but when attempting the same procedure with Python shell unsigned I'm told I cannot get it signed as my email address doesn't tally up with the one who created the .SIS.

As I understand the reason that Python is unable to use the signed LocationRequestor is that the Python Shell itself is not trusted (signed). Therefore if I can get it signed for my phone all should be OK!?

(Reply) (Thread)
From: gagravarr
2008-03-12 11:23 am (UTC)

Re: Signing Python

Looks like this is a major snag with OpenSigning

I guess in future, the python guys will release sis files that can be opensigned by other people (needs to use a different uid range). For now, just get a devcert the old way, and sign with that
(Reply) (Parent) (Thread)
From: (Anonymous)
2008-03-13 10:25 pm (UTC)

Re: Signing Python

Thanks gagravarr...
How do you get a devcert the old way?

I downloaded the tools to generate a Certificate request.. but when I go back online to make it into a certificate I'm told by Symbian that I'm not eligible for those tools.. unless I have an account with them at $200 per year.

Is there any other way to get a single certificate for 1 phone for development?

Ta for your help!
(Reply) (Parent) (Thread)
From: (Anonymous)
2008-04-23 02:41 pm (UTC)

Thanks for the info

Hi there,
I've been having a few issues with the GPS in PyS60 too recently. Just came accross this post of yours and it was a bit of a help.
Thanks very much,
Mike (http://www.terzza.com)
(Reply) (Thread)