Difference between revisions of "Status/Mobile Data/Dev"
From Maemo Leste Wiki
Jump to navigationJump to search(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page contains various dbus calls to Nokia N900 Fremantle cellular daemons, often beyond what is covered here: https://wiki.maemo.org/Phone_control | This page contains various dbus calls to Nokia N900 Fremantle cellular daemons, often beyond what is covered here: https://wiki.maemo.org/Phone_control | ||
TODO: | |||
* cancel_select_network | |||
* select_network | |||
* select_network_mode | |||
* set_selected_radio_access_technology | |||
* get_operator_name | |||
(Modem online or not) | (Modem online or not) | ||
Line 7: | Line 15: | ||
string "online" | string "online" | ||
</pre> | </pre> | ||
Other modem states | |||
<pre> | |||
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.get_modem_state | |||
method return sender=:1.19 -> dest=:1.1731 reply_serial=2 | |||
string "sim_ready" | |||
</pre> | |||
I guess there are at least a couple more, see https://github.com/maemo-leste/connui-cellular/blob/aec1443964ec08f4575dcbe4a1ef1083a966fca4/lib/code-ui.c#L679 | |||
Line 26: | Line 44: | ||
</pre> | </pre> | ||
Registration status | Registration status | ||
<pre> | <pre> | ||
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status | Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status | ||
Line 51: | Line 69: | ||
</pre> | </pre> | ||
Network selection mode (mode, | Network selection mode (mode, err val) | ||
<pre> | <pre> | ||
Line 57: | Line 75: | ||
method return sender=:1.19 -> dest=:1.1319 reply_serial=2 | method return sender=:1.19 -> dest=:1.1319 reply_serial=2 | ||
byte 2 | byte 2 | ||
int32 0 | |||
</pre> | |||
Scan for available networks: | |||
<pre> | |||
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_available_network | |||
method return sender=:1.19 -> dest=:1.1438 reply_serial=2 | |||
array [ | |||
byte 2 | |||
byte 3 | |||
byte 3 | |||
] | |||
array [ | |||
string "16" | |||
string "04" | |||
string "08" | |||
] | |||
array [ | |||
string "204" | |||
string "204" | |||
string "204" | |||
] | |||
array [ | |||
string "T-Mobile NL" | |||
string "vodafone NL" | |||
string "NL KPN" | |||
] | |||
array [ | |||
byte 0 | |||
byte 2 | |||
byte 2 | |||
] | |||
array [ | |||
byte 1 | |||
byte 1 | |||
byte 1 | |||
] | |||
int32 0 | int32 0 | ||
</pre> | </pre> |
Latest revision as of 18:51, 25 August 2019
This page contains various dbus calls to Nokia N900 Fremantle cellular daemons, often beyond what is covered here: https://wiki.maemo.org/Phone_control
TODO:
- cancel_select_network
- select_network
- select_network_mode
- set_selected_radio_access_technology
- get_operator_name
(Modem online or not)
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.get_modem_state method return sender=:1.18 -> dest=:1.1112 reply_serial=2 string "online"
Other modem states
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.get_modem_state method return sender=:1.19 -> dest=:1.1731 reply_serial=2 string "sim_ready"
I guess there are at least a couple more, see https://github.com/maemo-leste/connui-cellular/blob/aec1443964ec08f4575dcbe4a1ef1083a966fca4/lib/code-ui.c#L679
(Registered to network, network operation mode - normal or GAN only, the int is unknown - probably err val)
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_cs_state method return sender=:1.19 -> dest=:1.1150 reply_serial=2 byte 1 byte 0 int32 0
Radio access technology
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_radio_access_technology method return sender=:1.19 -> dest=:1.1247 reply_serial=2 byte 2 int32 0
Registration status
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status method return sender=:1.19 -> dest=:1.1271 reply_serial=2 byte 0 uint16 1521 uint32 13377698 uint32 16 uint32 204 byte 0 byte 27 int32 0 dbus_g_proxy_end_call(proxy, call_id, &error, G_TYPE_UCHAR, &network_reg_status, G_TYPE_UINT, &network_current_lac, G_TYPE_UINT, &network_current_cell_id, G_TYPE_UINT, &network_operator_code, G_TYPE_UINT, &network_country_code, G_TYPE_UCHAR, &network_type, G_TYPE_UCHAR, &network_supported_services, G_TYPE_INT, &error_value, G_TYPE_INVALID);
Network selection mode (mode, err val)
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_network_selection_mode method return sender=:1.19 -> dest=:1.1319 reply_serial=2 byte 2 int32 0
Scan for available networks:
Nokia-N900:~# dbus-send --system --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_available_network method return sender=:1.19 -> dest=:1.1438 reply_serial=2 array [ byte 2 byte 3 byte 3 ] array [ string "16" string "04" string "08" ] array [ string "204" string "204" string "204" ] array [ string "T-Mobile NL" string "vodafone NL" string "NL KPN" ] array [ byte 0 byte 2 byte 2 ] array [ byte 1 byte 1 byte 1 ] int32 0