Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usb-moded] Detect roaming state from ofono
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
- Loading branch information
1 parent
6132369
commit ee89430
Showing
4 changed files
with
213 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
org.ofono.NetworkRegistration will have the "Status" property of "Roaming" | ||
|
||
[nemo@localhost ~]$ dbus-send --system --print-reply --dest=org.ofono / org.ofono.Manager.GetModems | ||
method return sender=:1.5 -> dest=:1.156 reply_serial=2 | ||
array [ | ||
struct { | ||
object path "/ril_0" | ||
array [ | ||
dict entry( | ||
string "Online" | ||
variant boolean true | ||
) | ||
dict entry( | ||
string "Powered" | ||
variant boolean true | ||
) | ||
dict entry( | ||
string "Lockdown" | ||
variant boolean false | ||
) | ||
dict entry( | ||
string "Emergency" | ||
variant boolean false | ||
) | ||
dict entry( | ||
string "Manufacturer" | ||
variant string "Fake Manufacturer" | ||
) | ||
dict entry( | ||
string "Model" | ||
variant string "Fake Modem Model" | ||
) | ||
dict entry( | ||
string "Revision" | ||
variant string "P4V.43006.JOLLA_SHIP.CLEAN" | ||
) | ||
dict entry( | ||
string "Serial" | ||
variant string "356537050202424" | ||
) | ||
dict entry( | ||
string "Interfaces" | ||
variant array [ | ||
string "org.ofono.CellBroadcast" | ||
string "org.ofono.CallSettings" | ||
string "org.ofono.SupplementaryServices" | ||
string "org.ofono.CallVolume" | ||
string "org.ofono.NetworkRegistration" | ||
string "org.ofono.CallForwarding" | ||
string "org.ofono.Phonebook" | ||
string "org.ofono.RadioSettings" | ||
string "org.ofono.SmartMessaging" | ||
string "org.ofono.PushNotification" | ||
string "org.ofono.MessageManager" | ||
string "org.ofono.VoiceCallManager" | ||
string "org.ofono.ConnectionManager" | ||
string "org.ofono.NetworkTime" | ||
string "org.ofono.MessageWaiting" | ||
string "org.ofono.SimManager" | ||
] | ||
) | ||
dict entry( | ||
string "Features" | ||
variant array [ | ||
string "cbs" | ||
string "ussd" | ||
string "net" | ||
string "rat" | ||
string "sms" | ||
string "gprs" | ||
string "sim" | ||
] | ||
) | ||
dict entry( | ||
string "Type" | ||
variant string "hardware" | ||
) | ||
] | ||
} | ||
] | ||
[nemo@localhost ~]$ dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.NetworkRegistration.GetProperties | ||
method return sender=:1.5 -> dest=:1.157 reply_serial=2 | ||
array [ | ||
dict entry( | ||
string "Status" | ||
variant string "roaming" | ||
) | ||
dict entry( | ||
string "Mode" | ||
variant string "auto" | ||
) | ||
dict entry( | ||
string "LocationAreaCode" | ||
variant uint16 17100 | ||
) | ||
dict entry( | ||
string "CellId" | ||
variant uint32 2020 | ||
) | ||
dict entry( | ||
string "Technology" | ||
variant string "gsm" | ||
) | ||
dict entry( | ||
string "MobileCountryCode" | ||
variant string "206" | ||
) | ||
dict entry( | ||
string "MobileNetworkCode" | ||
variant string "10" | ||
) | ||
dict entry( | ||
string "Name" | ||
variant string "Mobistar BE" | ||
) | ||
dict entry( | ||
string "Strength" | ||
variant byte 51 | ||
) | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters