Help needed with GSM Geolocation without GPS

robin spielraum at
Tue Nov 6 12:37:47 CET 2012

hi daniele,

maybe you can help me with your code: what I get
import dbus
from dbus.mainloop.glib import DBusGMainLoop

bus = dbus.SystemBus()

gsm_device_obj = bus.get_object( 'org.freesmartphone.ogsmd', 
 '/org/freesmartphone/GSM/Device' )
gsm_cell_monitor = dbus.Interface(gsm_device_obj, 

gsm_connected_cell =  gsm_cell_monitor.GetServingCellInformation()

lac = int(gsm_connected_cell["lac"]) 
cellid = int(gsm_connected_cell["cid"])
quality = int(gsm_connected_cell["rxlev"])

print "--------- Information about the Connected Cell --------------"
print str(lac)+" / "+str(cellid)+" / "+str(quality)

gsm_neighbour_cells = gsm_cell_monitor.GetNeighbourCellInformation()
print gsm_neighbour_cells

I can now get the info about the connected cell but for the neighbours I get:

root at om-gta02:~# python /media/card/Maps/Cells/ 
--------- Information about the Connected Cell --------------
296 / 25326 / 39
Traceback (most recent call last):
  File "/media/card/Maps/Cells/", line 19, in <module>
    gsm_neighbour_cells = gsm_cell_monitor.GetNeighbourCellInformation()
  File "/usr/lib/python2.7/site-packages/dbus/", line 145, in 
    __call__ **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/", line 651, in 
    call_blocking message, timeout)
dbus.exceptions.DBusException: org.freesmartphone.GSM.DeviceFailed: OK

any ideas why the call does not work?



More information about the community mailing list