View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#66
Originally Posted by noobmonkey View Post
Waiting on liblocation to get some decent pymaemo calls, device.cell_info would be great! (Although could be a long wait?!)
You don't strictly need liblocation for cell information.

Look at the command "dbus-send --system --print-reply --type=method_call
--dest=com.nokia.phone.net /com/nokia/phone/net
Phone.Net.get_registration_status"

The following snippet, from
http://www.bleb.org/software/maemo/telephony-maemo.c, explains the
return values:
DBUS_TYPE_BYTE, &status,
DBUS_TYPE_UINT16, &lac,
DBUS_TYPE_UINT32, &cell_id,
DBUS_TYPE_UINT32, &operator_code,
DBUS_TYPE_UINT32, &country_code,
DBUS_TYPE_BYTE, &network_type,
DBUS_TYPE_BYTE, &supported_services,
DBUS_TYPE_INT32, &net_err,

I don't know dbus-python, but http://repository.maemo.org/extras-d...urce/n/netmon/ could probably help in that regard.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post: