... | @@ -97,13 +97,18 @@ The proper way to 'get' and 'set' per-connection settings, if wanting to do from |
... | @@ -97,13 +97,18 @@ The proper way to 'get' and 'set' per-connection settings, if wanting to do from |
|
|
|
|
|
## Modem Manager
|
|
## Modem Manager
|
|
To get modem information:
|
|
To get modem information:
|
|
Firstly, `mmcli -L`
|
|
* Firstly, `mmcli -L`
|
|
to list the modems. For example, gives: /org/freedesktop/ModemManager1/Modem/**1**
|
|
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 1`
|
|
* Then, `mmcli -m M` where M is replaced with the modem index.
|
|
You can check, in passing, your own phone number (`| grep own:`) and get the SIM index (`| grep SIM`)
|
|
* You can check, in passing, your own phone number (`mmcli -m 1 | grep own:`) and get the SIM index (`mmcli -m 1 | grep SIM`)
|
|
The output for the SIM index looks like: SIM | dbus path: /org/freedesktop/ModemManager1/SIM/**1**
|
|
* 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).
|
|
So the SIM index is 1.
|
|
* 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 1`
|
|
* Finally, `mmcli -i S` where S is replaced with the SIM index.
|
|
That will show you your IMSI, among other pieces of information.
|
|
That will show you your IMSI, among other pieces of information.
|
|
`-i` and `-m` are abbreviated forms of `--sim` and `--modem` respectively. |
|
* `-i` and `-m` are abbreviated forms of `--sim` and `--modem` respectively.
|
|
|
|
|
|
|
|
## 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 |