gps via python, using dbus

Matt matt.joyce at gmail.com
Tue Sep 2 11:39:09 CEST 2008


Firstly thank for posting the code, very intresting to pore over.

However, it has not worked for me.
Any ideas ?

debian-gta02:~# python ogpsd_methods.py
Traceback (most recent call last):
   File "ogpsd_methods.py", line 8, in <module>
     constatus = 
obj.GetConnectionStatus(dbus_interface='org.freedesktop.Gypsy.Device')
   File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in 
__call__
     return self._proxy_method(*args, **keywords)
   File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, 
in __call__
     **keywords)
   File "/var/lib/python-support/python2.5/dbus/connection.py", line 
622, in call_blocking
     message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: 
Method "GetConnectionStatus" with signature "" on interface 
"org.freedesktop.Gypsy.Device" doesn't exist

debian-gta02:~# python ogpsd_methods.py
Traceback (most recent call last):
   File "ogpsd_methods.py", line 8, in <module>
     constatus = 
obj.GetConnectionStatus(dbus_interface='org.freedesktop.Gypsy.Device')
   File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in 
__call__
     return self._proxy_method(*args, **keywords)
   File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, 
in __call__
     **keywords)
   File "/var/lib/python-support/python2.5/dbus/connection.py", line 
622, in call_blocking
     message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: 
Method "GetConnectionStatus" with signature "" on interface 
"org.freedesktop.Gypsy.Device" doesn't exist



Sascha Wessel wrote:
>> Could someone kind and helpful post an example of python code to get gps 
>> data via dbus?
> 
> ogpsd_signals.py listens for gypsy signals
> ogpsd_methods.py calls gypsy methods once and exits
> ogpsd_resource.py requests the GPS resource from ousaged (power on while running, see
> /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/neo1973-pm-gps.0/pwron)
> 
> Greetings,
> Sascha
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> support mailing list
> support at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support




More information about the support mailing list