GSM modems can be controlled by a number of different protocols. Because of this, NetworkManager uses a second component called ModemManager to interface with them.
On the PiRAT, we can do this:
$ mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, Incorporated] EM7455
From here, I see that the current modem number is 0.
To query the status of the modem, just specify the -m
option to select the modem you wish to query
$ mmcli -m 0
--------------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: <redacted>
--------------------------------
Hardware | manufacturer: Sierra Wireless, Incorporated
| model: EM7455
[...various information omitted ...]
--------------------------------
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
| state: registered
| power state: on
| access tech: umts
| signal quality: 59% (recent)
--------------------------------
[...more information...]
$ mmcli -m 0 --signal-get
----------------------
Signal | refresh rate: 0 seconds
$ mmcli -m 0 --signal-setup=10
Successfully setup extended signal information retrieval
$ mmcli -m 0 --signal-get
----------------------
Signal | refresh rate: 10 seconds
----------------------
UMTS | rssi: -77.00 dBm
| ecio: -3.50 dB