Reply
Thread Tools
Posts: 1 | Thanked: 1 time | Joined on May 2011
#1
phone in service for multiple phone towers.
if you get them cellid and signal strength that a triangulation can be more accurately determine your location


HTML Code:
def cell_signal_handler(*args):
        net, cid, lac = int(args[3]), int(args[2]), int(args[1])
        quality = re.findall('byte ([0-9]*)',os.popen('dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_signal_strength').read())

if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
        bus = dbus.SystemBus()
        bus.add_signal_receiver(cell_signal_handler, dbus_interface = "Phone.Net", signal_name = "registration_status_change")
        bus.add_signal_receiver(cell_signal_handler, dbus_interface = "Phone.Net", signal_name = "cell_info_change")

        loop = gobject.MainLoop()
        loop.run()
But I do not trust this method
Have any ideas? sorry for my bad english
 

The Following User Says Thank You to exzec For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:13.