Help needed with GSM Geolocation without GPS
Daniele Forsi
dforsi at gmail.com
Tue Nov 6 17:02:55 CET 2012
2012/11/6 robin:
> so is there any other way to get this information?
GetNeighbourCellInformation works on the GTA02, I used it
the following code works for me, I just checked it with SHR-20101205,
it used to work also on Debian but some update broke something, and I
can't get it to work with QTmoko 48 I installed fso from neocontrol
and rebooted the phone, but I guess I need to edit a configuration
file to start fso
it is almost identical to yours except the try/except block and in
fact it fails often to print neighbour cells:
#!/usr/bin/env python
# License CC0
import dbus
import time
bus = dbus.SystemBus()
gsm_device_obj = bus.get_object( 'org.freesmartphone.ogsmd',
'/org/freesmartphone/GSM/Device' )
gsm_monitor_iface = dbus.Interface(gsm_device_obj,
'org.freesmartphone.GSM.Monitor')
while True:
try:
print (gsm_monitor_iface.GetServingCellInformation(),
gsm_monitor_iface.GetNeighbourCellInformation())
except:
pass
time.sleep(10)
--
Daniele Forsi
More information about the community
mailing list