... | ... | @@ -99,10 +99,10 @@ The proper way to 'get' and 'set' per-connection settings, if wanting to do from |
|
|
To get modem information:
|
|
|
* Firstly, `mmcli -L`
|
|
|
to list the modems. For example, gives: /org/freedesktop/ModemManager1/Modem/**1**
|
|
|
So the modem index to use at this moment in time is ‘1’.
|
|
|
- so the modem index to use at this moment in time is ‘1’.
|
|
|
* Then, `mmcli -m M` where M is replaced with the modem index.
|
|
|
* You can check, in passing, your own phone number (`mmcli -m 1 | grep own:`) and get the SIM index (`mmcli -m 1 | grep SIM`)
|
|
|
* You can also check what mobile network you are on with `mmcli -m 1 | grep operator`. The operator id comprises three digits for the Mobile Country Code (MCC) followed by two or three digits for the Mobile Network Code (MNC).
|
|
|
* You can check, in passing, your own phone number (`mmcli -m M | grep own:`) and get the SIM index (`mmcli -m M | grep SIM`)
|
|
|
* You can also check what mobile network you are on with `mmcli -m M | grep operator`. The operator id comprises three digits for the Mobile Country Code (MCC) followed by two or three digits for the Mobile Network Code (MNC).
|
|
|
* The output for the SIM index looks like: SIM | dbus path: /org/freedesktop/ModemManager1/SIM/**1** - so the SIM index is 1.
|
|
|
* Finally, `mmcli -i S` where S is replaced with the SIM index.
|
|
|
That will show you your IMSI, among other pieces of information.
|
... | ... | @@ -111,4 +111,4 @@ That will show you your IMSI, among other pieces of information. |
|
|
## Mobile Country Reference Data
|
|
|
|
|
|
* Reference data for APNs (used to access the internet on the mobile network) is stored in the directory `/usr/share/mobile-broadband-provider-info`
|
|
|
* Reference data for international dialling is stored in the locale file, in the LC_TELEPHONE section e.g. /usr/share/i18n/locales/ll_CC where ll is the language code and CC is the country code. |
|
|
\ No newline at end of file |
|
|
* Reference data for international dialling is stored in the locale file, in the LC_TELEPHONE section e.g. `/usr/share/i18n/locales/ll_CC` where `ll` is the language code and `CC` is the country code. |
|
|
\ No newline at end of file |