Re: [2008.12] GPS from python

2009-03-08 Thread Daniel Willmann
On Fri, 06 Mar 2009 14:39:33 +0100
GNUtoo gnu...@no-log.org wrote:

 On Thu, 2009-03-05 at 22:27 +0100, Francesco de Virgilio wrote:
  It seems not work on SHR-testing :(
 That's normal...you are using the gpsd bindings on your desktop
 computer.
 They permit you to talk to a gpsd compatible device
 I tested it with fso-gpsd(python on my desktop with the gpsd
 bindings(so I needed to install gpsd on my desktop to get the
 bindings) and fso-gpsd on the openmoko)

Oh, that's interesting. fso-gpsd should actually be gpsd compatible.
Could you explain more why it's not working/what is not working or what
gps.py actually does to talk to gpsd.

One problem you might encounter is that ogpsd and fso-gpsd only switch
on the GPS when there's actually a program that needs GPS. In the case
of fso-gpsd that happens when you connect to the gpsd port.
My guess is that the connection is either made at the constructor
(g = gps.gps()) or for every call (g.query(admosy)).
At this point the chip will not have any fix for sure, even with
hotstart working it usually takes ~16 seconds.

What you can do to test my hypothesis is start a different program like
the GPS view in zhone and wait until GPS actually has a fix and then
try with your program. If you get a fix then you can request the
resource GPS to make sure GPS stays on.

 So you have 2 solutions:
 1)replace fso-gpsd by gpsd
 2)use dbus to talk to the GPS

3)Make fso-gpsd compatible with gpsd so gps.py works.

Regards,
Daniel Willmann


signature.asc
Description: PGP signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [2008.12] GPS from python

2009-03-06 Thread GNUtoo
On Thu, 2009-03-05 at 22:27 +0100, Francesco de Virgilio wrote:
 It seems not work on SHR-testing :(
That's normal...you are using the gpsd bindings on your desktop
computer.
They permit you to talk to a gpsd compatible device
I tested it with fso-gpsd(python on my desktop with the gpsd bindings(so
I needed to install gpsd on my desktop to get the bindings) and fso-gpsd
on the openmoko)
So you have 2 solutions:
1)replace fso-gpsd by gpsd
2)use dbus to talk to the GPS
Denis.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [2008.12] GPS from python

2009-01-25 Thread Robert Damphousse
I have always used the gps.py module that is included with linux on my
desktop distros (debian, ubuntu etc).  It can usually be found here:
/var/lib/python-support/python2.5/gps.py

I am dunning Debian on my Freerunner, I copied gps.py from my desktop to the
same location on the phone and it works just fine!  Usage goes like this:

Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type help, copyright, credits or license for more information.
 import gps
 g = gps.gps()
 g.query(admosy)
 g.fix.latitude
34.432875

More examples using gps.py here:

http://www.perrygeo.net/wordpress/?p=13

On Tue, Jan 13, 2009 at 5:23 AM, Nicolas Laurance nlaura...@zindep.comwrote:

 you might want to read the thread

 http://lists.openmoko.org/nabble.html#nabble-td786643


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [2008.12] GPS from python

2009-01-13 Thread Nicolas Laurance
you might want to read the thread

http://lists.openmoko.org/nabble.html#nabble-td786643


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[2008.12] GPS from python

2009-01-12 Thread Francesco de Virgilio
Hi all :)
Could someone explain me which is the most easy way to catch lat, lon 
and time from GPS after the fix, using Python?
I use gpsd, TangoGPS etc, and I'm working on a Python app for 
OpenStreetMap smart tagging in real time ;)

I installed python-pygps but it appears that no infos are available 
after the fix, so it appears to me pretty useless.

Any tip / faq / man?
Regards,
-- 
Francesco de Virgilio
*Ubuntu-it Member and Wiki Editor*
mailto:frad...@ubuntu-it.org
http://wiki.ubuntu-it.org/FrancescoDeVirgilio
*Wikimedia Italia Member*
http://en.wikipedia.org/wiki/User:Fradeve11
*OpenStreetMap Mapper*
http://www.openstreetmap.org/user/Fradeve11
*Blog*
http://fradeve.netsons.org
Love - Peace - Freedom - Free Software

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community