Working modem?
#22
AT command for network registration but for me it just answers '':
Code:
mmcli -m any --command='AT+CREG'

A lot easier and verbose (works for Mobian):
Code:
sudo journalctl --since "5 minutes ago" | grep ModemManager
or
Code:
sudo journalctl -b
since boot for all messages.

You will see e.g.:
Code:
ModemManager[435]: <info>  [modem8] 3GPP registration state changed (registering -> home)
ModemManager[435]: <info>  [modem8] state changed (enabled -> registered)
and when I turn data on:
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
and you will see logs from:
eg25manager
pinephone-modem-setup.sh
manjaro:modem-setup
NetworkManager
ofonod
ofonoctl

Code:
sudo systemctl -b | grep NetworkManager
or
Code:
sudo systemctl -b | grep modem
will give you good info

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
to check registration.
Code:
ofonoctl wan
for wwan info.

To get the IP / gateway / route assigned
Code:
sudo ofonoctl wan --connect
Code:
ip a
and
Code:
ip r
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:
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.
  Reply


Messages In This Thread
Working modem? - by Barugon - 02-14-2021, 10:17 PM
RE: Working modem? - by rocket2nfinity - 02-14-2021, 11:31 PM
RE: Working modem? - by Barugon - 02-15-2021, 04:46 AM
RE: Working modem? - by rocket2nfinity - 02-15-2021, 09:54 PM
RE: Working modem? - by Barugon - 02-15-2021, 11:04 PM
RE: Working modem? - by rocket2nfinity - 02-16-2021, 05:03 AM
RE: Working modem? - by Barugon - 02-16-2021, 09:29 PM
RE: Working modem? - by rocket2nfinity - 02-17-2021, 01:02 AM
RE: Working modem? - by rocket2nfinity - 02-17-2021, 01:35 PM
RE: Working modem? - by Barugon - 02-19-2021, 04:25 AM
RE: Working modem? - by Barugon - 02-21-2021, 04:31 AM
RE: Working modem? - by MtnSk8 - 02-21-2021, 08:25 AM
RE: Working modem? - by Juergen - 02-21-2021, 08:57 AM
RE: Working modem? - by Barugon - 02-21-2021, 04:25 PM
RE: Working modem? - by C0ffeeFreak - 02-21-2021, 05:24 PM
RE: Working modem? - by MtnSk8 - 02-21-2021, 11:14 PM
RE: Working modem? - by Barugon - 02-23-2021, 09:10 PM
RE: Working modem? - by Barugon - 02-23-2021, 11:23 PM
RE: Working modem? - by dcinoz - 02-24-2021, 02:21 AM
RE: Working modem? - by Barugon - 02-24-2021, 02:40 AM
RE: Working modem? - by dcinoz - 02-24-2021, 05:51 AM
RE: Working modem? - by dcinoz - 02-24-2021, 02:46 PM
RE: Working modem? - by dcinoz - 02-24-2021, 04:22 PM
RE: Working modem? - by dcinoz - 02-25-2021, 03:47 AM
RE: Working modem? - by Barugon - 02-26-2021, 03:49 AM
RE: Working modem? - by Barugon - 03-02-2021, 05:47 PM
RE: Working modem? - by rocket2nfinity - 03-03-2021, 07:15 PM
RE: Working modem? - by Barugon - 03-03-2021, 07:37 PM
RE: Working modem? - by desca - 03-04-2021, 10:18 AM
RE: Working modem? - by Barugon - 03-04-2021, 03:26 PM
RE: Working modem? - by rocket2nfinity - 03-03-2021, 08:47 PM
RE: Working modem? - by Barugon - 03-04-2021, 03:53 AM
RE: Working modem? - by rocket2nfinity - 03-04-2021, 07:44 AM
RE: Working modem? - by Barugon - 03-05-2021, 07:07 PM
RE: Working modem? - by dawg161 - 03-04-2021, 08:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  My new phone stopped working. gunnygee 1 613 08-02-2024, 07:20 AM
Last Post: mikehenson
  4G VoLTE calls confirmed working with carrier x dcinoz 15 15,300 03-09-2024, 11:38 PM
Last Post: dcinoz
  Modem white list aular 7 2,192 02-13-2024, 04:35 PM
Last Post: aular
  qcell modem id aular 6 2,096 01-15-2024, 10:05 PM
Last Post: aular
  Temporary fix for Modem Not Coming Back on in SXMO Postmarketos Pinephone kebab 2 2,643 07-16-2023, 11:14 AM
Last Post: kebab
  Modem gets disabled on every suspend jojuma 5 2,623 03-27-2023, 02:51 AM
Last Post: jojuma
  Modem audio settings jack1 2 1,783 02-04-2023, 04:01 PM
Last Post: jack1
  MMS sending stopped working amindfv 2 1,708 01-16-2023, 09:44 PM
Last Post: treebeard
  Instructions to get pinephone working on USA carrier omarcomputing 1 1,765 10-08-2022, 04:45 PM
Last Post: treebeard
  JumpDrive isn't working phytocube 2 2,305 06-05-2022, 03:22 PM
Last Post: phytocube

Forum Jump:


Users browsing this thread: 2 Guest(s)