AT command for network registration but for me it just answers '':
A lot easier and verbose (works for Mobian):
or
since boot for all messages.
You will see e.g.:
and when I turn data on:
and when I turn data off:
For Manjaro Plasma Mobile using ofonod / ofonoctl, see https://forum.pine64.org/showthread.php?tid=13213
You can use:
and you will see logs from:
eg25manager
pinephone-modem-setup.sh
manjaro:modem-setup
NetworkManager
ofonod
ofonoctl
or
will give you good info
e.g.
You have the ofono commands in the link I posted above:
to check registration.
for wwan info.
To get the IP / gateway / route assigned
and
to see the IP address and routes.
NOTE currently WWAN DEFAULT ROUTE HAS PRIORITY over Wifi so BEWARE.
And the Mobile Data toggle in the settings does not work (not for several of us anyway).
So to turn off mobile data delete the wwan0 ip address
Code:
mmcli -m any --command='AT+CREG'
A lot easier and verbose (works for Mobian):
Code:
sudo journalctl --since "5 minutes ago" | grep ModemManager
Code:
sudo journalctl -b
You will see e.g.:
Code:
ModemManager[435]: <info> [modem8] 3GPP registration state changed (registering -> home)
ModemManager[435]: <info> [modem8] state changed (enabled -> registered)
Code:
ModemManager[435]: <info> [modem8] simple connect started...
ModemManager[435]: <info> [modem8] simple connect state (4/8): wait to get fully enabled
ModemManager[435]: <info> [modem8] simple connect state (5/8): register
ModemManager[435]: <info> [modem8] simple connect state (6/8): bearer
ModemManager[435]: <info> [modem8] simple connect state (7/8): connect
ModemManager[435]: <info> [modem8] state changed (registered -> connecting)
ModemManager[435]: [/dev/cdc-wdm0] Allocating new client ID...
ModemManager[435]: [/dev/cdc-wdm0] Registered 'wds' (version 1.67) client with ID '17'
ModemManager[435]: <info> [modem8/bearer2] QMI IPv4 Settings:
ModemManager[435]: <info> [modem8/bearer2] address: 10.70.25.25/30
ModemManager[435]: <info> [modem8/bearer2] gateway: 10.70.25.26
ModemManager[435]: <info> [modem8/bearer2] DNS #1: 10.5.195.164
ModemManager[435]: <info> [modem8/bearer2] DNS #2: 10.5.68.232
ModemManager[435]: <info> [modem8/bearer2] MTU: 1460
and when I turn data off:
Code:
ModemManager[435]: <info> [modem8] state changed (connected -> disconnecting)
ModemManager[435]: <info> [modem8] state changed (disconnecting -> registered)
ModemManager[435]: <info> [modem8/bearer2] connection #1 finished: duration 472s, tx: 236 bytes, rx :0 bytes
For Manjaro Plasma Mobile using ofonod / ofonoctl, see https://forum.pine64.org/showthread.php?tid=13213
You can use:
Code:
sudo systemctl -b
eg25manager
pinephone-modem-setup.sh
manjaro:modem-setup
NetworkManager
ofonod
ofonoctl
Code:
sudo systemctl -b | grep NetworkManager
Code:
sudo systemctl -b | grep modem
e.g.
Code:
NetworkManager[3754]: <info> [1614200469.7254] modem["quectelqmi_0"]: modem state changed, 'searching' --> 'registered' (reason: modem ready)
NetworkManager[3754]: <info> [1614200470.0141] modem-ofono[quectelqmi_0]: Attached true -> false
NetworkManager[3754]: <info> [1614200470.0143] modem-ofono[quectelqmi_0]: 'Attached': false 'Online': true 'IMSI': 505015601536136
NetworkManager[3754]: <info> [1614200470.0143] modem["quectelqmi_0"]: modem state changed, 'registered' --> 'searching' (reason: modem searching)
NetworkManager[3754]: <info> [1614200470.5266] modem-ofono[quectelqmi_0]: Attached false -> true
NetworkManager[3754]: <info> [1614200470.5268] modem-ofono[quectelqmi_0]: 'Attached': true 'Online': true 'IMSI': 505015601536136
You have the ofono commands in the link I posted above:
Code:
ofonoctl list
Code:
ofonoctl wan
To get the IP / gateway / route assigned
Code:
sudo ofonoctl wan --connect
Code:
ip a
Code:
ip r
NOTE currently WWAN DEFAULT ROUTE HAS PRIORITY over Wifi so BEWARE.
And the Mobile Data toggle in the settings does not work (not for several of us anyway).
So to turn off mobile data delete the wwan0 ip address
Code:
sudo ip a del <ip_address/xx> dev wwan0
Pinephone v1.2 UBports CE. Adelaide, Australia using Amaysim SIM (Optus network, VoLTE enabled) with Mobian SD card. VoLTE working also with Felix / Vodafone AU and Aldimobile / Telstra AU.
Manjaro Plasma Mobile on EMMC.
Manjaro Plasma Mobile on EMMC.