You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Thumbs up [announce] LocationRequestor module (location API) ! - 2007-05-24, 19:25

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
hello ,

Hey it's a great day today (so many apps and new modules !) Perhaps a new version of PyS60 (1.3.22 ?)

mwibbels has created and publish another GPS module : locationrequestor.pyd implementing symbian location API ...

LocationRequestor is a Python extension that allows access to the Location Acquisition API (which connects to, for example, an internal and/or external GPS). It supports both blocking calls and callbacks. It is based on the 'lbsreference' example in the Symbian SDK.

links : LocationRequestor module (source,2ndFP2+3rd binaries+API documentation)

EDIT : don't download the package on the site it's broken
I remove temporarly the old links

ContextWatcher site
locationrequestor for 2nd FP2
locationrequestor for 3rd unsigned
locationrequestor source

PS : There's another lib from bergerc forumer for GPS : gps_location.pyd


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2007-06-01 at 20:38. Reason: corrupted package -> correct package temporary
Reply With Quote

#2 Old Re: [announce] LocationRequestor module (location API) ! - 2007-05-24, 19:43

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
to mwibbels :

feedback :
- example code in source file is only in the doc file ! Please put it in a test_locationrequestor.py file ...
- the locationrequestor.py stub is not needed now (this bug has been fixed now !) the part with testing pyd file ...
- When I try the example code I have the following error :
line 10 : TypeError : locationRequestor() takes exactly 2 arguments (0 given)
Have you got this one ?

Tested with N95 and pys60 1.3.21

Thanks


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: [announce] LocationRequestor module (location API) ! - 2007-05-24, 19:51

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
it's me again

When I look in the source code I found differences between the locationrequestor.py installed in c:\ressource on the device and in the source code (constant definition are missing in the device at least in the 3rd edition

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#4 Old Re: [announce] LocationRequestor module (location API) ! - 2007-05-28, 10:00

Join Date: Jul 2005
Posts: 66
Location: Espoo, Finland
tsharju
Offline
Regular Contributor
For 2nd edition the .sis package does not even include the locationrequestor.py script and it complains that these constant definitions are missing. This would be a great library and I would want to start using it. Has someone contacted the developers to get this fixed? Should be simple since it just seems that no one has tested these packages before releasing them.

- Teemu
Reply With Quote

#5 Old Re: [announce] LocationRequestor module (location API) ! - 2007-05-31, 09:24

Join Date: May 2007
Posts: 20
mwibbels
Offline
Registered User
Yes, someone has

I don't know what happened there, must have had a bad day, I obviously posted a mixup of versions .

I just tested the stuff again on 2nd and for me it works. These same sources work in the emulator on 3rd (N95 is at work but I'm not). I put them here temporarily, they will appear at the site mentioned at the start of this thread in time.

Let me know if there still are problems (lost my confidence now ...)

Quote:
Originally Posted by tsharju
For 2nd edition the .sis package does not even include the locationrequestor.py script and it complains that these constant definitions are missing. This would be a great library and I would want to start using it. Has someone contacted the developers to get this fixed? Should be simple since it just seems that no one has tested these packages before releasing them.

- Teemu
Last edited by mwibbels : 2007-05-31 at 10:08.
Reply With Quote

#6 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-01, 17:16

Join Date: Jul 2005
Posts: 66
Location: Espoo, Finland
tsharju
Offline
Regular Contributor
Quote:
Originally Posted by mwibbels
Let me know if there still are problems (lost my confidence now ...)
Hi again. I tried now again and it seems to work just fine on the 2nd edition. Thanks... this is a very useful module.
Reply With Quote

#7 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-01, 18:32

Join Date: May 2007
Posts: 20
mwibbels
Offline
Registered User
Phew Thanks for the feedback!
Quote:
Originally Posted by tsharju
Hi again. I tried now again and it seems to work just fine on the 2nd edition. Thanks... this is a very useful module.
Reply With Quote

#8 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-05, 11:07

Join Date: Jan 2006
Posts: 27
gagravarr
Offline
Registered User
This module looks really cool, I'm looking forward to having a play with it

One question though - is it possible to get the details on the satellites (position in the sky, signal strength, satellite id etc)? I see there's a way to call up the signal strength dialogue, and that a fix might have the numbers in view + used, but nothing programatic to get the full details.

(I'm looking at doing a LocationRequestor version of a python bluetooth app I've written, which currently talks to bluetooth nmea devices. The satellite details are all that's missing)

Nick
Reply With Quote

#9 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-05, 13:12

Join Date: May 2007
Posts: 9
dpeddi
Offline
Registered User
mwibbels, I think the file "Location Aquisition API.doc" you used as your reference, seems to be outdated, since it lacks detail about extended location tuple.

[...] the Location Acquisition API is also able to return extended information (such as speed) and also technology specific data (e.g. satellite data).[...]

GetSatelliteData()

TPositionSatelliteInfo gives physical information about the GPS network services used by the positioning device. This is a list of the visible and used GPS satellites, their properties and common satellite information. The satellites are described by TSatelliteData.

As http://forum.nokia.com/main/resource..._services.html Location Acquisition API (updated) say, it seems that satellite details is implemented by API but not yet by python module.

Eddi
Reply With Quote

#10 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-05, 14:10

Join Date: May 2007
Posts: 20
mwibbels
Offline
Registered User
dpeddi: You're quoting the SDK docs, whereas the "Location Aquisition API.doc" (my spelling mistake, btw) describes the Python interface. That interface did not include satellite data.

gagravarr: the satellite data was not accessbile through Python simply because we did not need it, it is however available through the Symbian API. I now added a method GetSatelliteData() which allows access to that data. The new version will appear on the official site (mentioned in the original post) shortly, in the mean-time you can find it here.

Is this what you meant?

Martin

Quote:
Originally Posted by dpeddi
mwibbels, I think the file "Location Aquisition API.doc" you used as your reference, seems to be outdated, since it lacks detail about extended location tuple.

[...] the Location Acquisition API is also able to return extended information (such as speed) and also technology specific data (e.g. satellite data).[...]

GetSatelliteData()

TPositionSatelliteInfo gives physical information about the GPS network services used by the positioning device. This is a list of the visible and used GPS satellites, their properties and common satellite information. The satellites are described by TSatelliteData.

As http://forum.nokia.com/main/resource..._services.html Location Acquisition API (updated) say, it seems that satellite details is implemented by API but not yet by python module.

Eddi
Reply With Quote

#11 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-05, 16:09

Join Date: Jan 2006
Posts: 27
gagravarr
Offline
Registered User
Quote:
Originally Posted by mwibbels
gagravarr: the satellite data was not accessbile through Python simply because we did not need it, it is however available through the Symbian API. I now added a method GetSatelliteData() which allows access to that data.
Thanks, that looks exactly like the data I was after

I'll try doing a LocationRequestor version of my code tonight, and will report back how I get on.

Cheers
Nick
Reply With Quote

#12 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-06, 01:03

Join Date: Jan 2006
Posts: 27
gagravarr
Offline
Registered User
Quote:
Originally Posted by gagravarr
I'll try doing a LocationRequestor version of my code tonight, and will report back how I get on.
The module worked like a charm

If anyone's interested, my python gps viewer (which previously only worked with nmea bluetooth gps's) will now use LocationRequestor if present, and works quite happily with the internal GPS in my N95
http://gagravarr.org/code/#nmea_info

Nick
Reply With Quote

#13 Old Question Re: [announce] LocationRequestor module (location API) ! - 2007-06-11, 08:13

Join Date: Jun 2007
Posts: 13
sarathgopalr
Offline
Registered User
iam a beginner in pys60.will location requestor work in emulator???
Reply With Quote

#14 Old Re: [announce] LocationRequestor module (location API) ! - 2007-06-12, 09:57

Join Date: Feb 2005
Posts: 35
janimr
Offline
Registered User
I haven't tested this module, but you can simulate location at least with SDK examples.
See "Simulation PSY User’s Guide" from 3rd Ed SDK help.

- janimr
Reply With Quote

#15 Old Re: [announce] LocationRequestor module (location API) ! - 2007-07-19, 21:50

Join Date: May 2007
Posts: 9
dpeddi
Offline
Registered User
Hi mwibbels,

I found your module works with PyS60 1.4.0 too (by rebuild it).
If you want to use it without rebuild PyS60 you have to adjust capabilities of PyS60 with the same you have for LocationRequestor using ensymble.

However, using nmea_info I found a bug on LocationRequestor:

While LBSReferenceApp.cpp
Code:
const TReal SpeedRatio = 36.0/10.0;

    if ( !Math::IsNaN(speedAccuracy) )
        {
        // Convert to km/h
        speedAccuracy = speedAccuracy * SpeedRatio;
        }
locationrequestor.cpp
Code:
TReal32 CLocationRequestor::toKmPerHour(TReal32 mPerS)
{
    if ( !Math::IsNaN(STATIC_CAST(TReal64,mPerS)) )
    {
        // Convert to km/h
        mPerS = (mPerS * 10) / 36;				WRONG
    }
    return mPerS;
}
While it should be
Code:
TReal32 CLocationRequestor::toKmPerHour(TReal32 mPerS)
{
    if ( !Math::IsNaN(STATIC_CAST(TReal64,mPerS)) )
    {
        // Convert to km/h
        mPerS = (mPerS * 36) / 10;
    }
    return mPerS;
}
If you want you can get this: http://usa.dpeddi.com/locationreques...d_unsigned.sis (build against python 1.4)

Best Regards,

Eddi
Last edited by dpeddi : 2007-07-25 at 21:23.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Location Based Services - Location API - JSR179 aminuddin09 Mobile Java General 6 2009-08-05 10:51
PC Suite error: (Code: Init IMediaControl2) HELP?! chunkyspudmonkey General Discussion 29 2008-06-30 12:47
Location API, but no GPS redsmurph Mobile Java General 3 2007-01-30 21:59
Location API security limitations? jkirma Mobile Java Networking & Messaging & Security 2 2006-05-29 07:10
did Nokia series was supports the Location API lakshmanraob Mobile Java General 5 2005-11-16 05:37

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2010 Nokia