| Reply | « Previous Thread | Next Thread » |
|
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
|
|
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/ |
|
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/ |
|
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 |
|
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:
Last edited by mwibbels : 2007-05-31 at 10:08.
|
|
Quote:
|
|
Phew
Thanks for the feedback!Quote:
|
|
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 |
|
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 |
|
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:
|
|
Quote:
![]() I'll try doing a LocationRequestor version of my code tonight, and will report back how I get on. Cheers Nick |
|
Quote:
![]() 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 |
|
iam a beginner in pys60.will location requestor work in emulator???
|
| sarathgopalr |
| View Public Profile |
| Find all posts by sarathgopalr |
|
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 |
|
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;
}
Code:
TReal32 CLocationRequestor::toKmPerHour(TReal32 mPerS)
{
if ( !Math::IsNaN(STATIC_CAST(TReal64,mPerS)) )
{
// Convert to km/h
mPerS = (mPerS * 10) / 36; WRONG
}
return mPerS;
}
Code:
TReal32 CLocationRequestor::toKmPerHour(TReal32 mPerS)
{
if ( !Math::IsNaN(STATIC_CAST(TReal64,mPerS)) )
{
// Convert to km/h
mPerS = (mPerS * 36) / 10;
}
return mPerS;
}
Best Regards, Eddi
Last edited by dpeddi : 2007-07-25 at 21:23.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |