4G what is missing?

Know this is one in the row but it seems that I am not smart enough to find
what is missing here =>

q@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 1e0e:9001 Qualcomm / Option SimTech, Incorporated
Bus 001 Device 003: ID 1eaf:0024 Leaflabs uConsole
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
q@raspberrypi:~ $ echo -en “AT+CUSBPIDSWITCH?\r\n” | sudo socat - /dev/ttyUSB2,crnl

+CUSBPIDSWITCH: 9001

OK
q@raspberrypi:~ $ sudo mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [SIMCOM INCORPORATED] SIMCOM_SIM7600G-H
q@raspberrypi:~ $

All contributions is much appreciated.

Happy New uConsole year 2025 to ALL
Dj

…Depending on your 4G module’s firmware version, it may not appear when using lsusb. (I believe it will if the firmware is 9011. Do not take this as an advice to “upgrade”.)

In this case, mmcli -L is the way to check if your modem is up. You may also see an added entry in /dev.

My modem is up just not seen by the net system I guess …

q@raspberrypi:~ $ sudo mmcli --modem=0
** --------------------------------**
** General | dbus path: /org/freedesktop/ModemManager1/Modem/0**
** | device id: 11fc31002347a2d0163fcac029eda66ba817732a**
** --------------------------------**
** Hardware | manufacturer: SIMCOM INCORPORATED**
** | model: SIMCOM_SIM7600G-H**
** | firmware revision: LE20B04SIM7600G22**
** | supported: gsm-umts, lte**
** | current: gsm-umts, lte**
** | equipment id: 862636054744428**
** --------------------------------**
** System | device: /sys/devices/platform/soc/fe980000.usb/usb1/1-1/1-1.3**
** | drivers: option1**
** | plugin: simtech**
** | primary port: ttyUSB2**
** | ports: ttyUSB0 (qcdm), ttyUSB1 (gps), ttyUSB2 (at), ttyUSB3 (at), **
** | ttyUSB4 (audio)**
** --------------------------------**
** Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)**
** | state: registered**
** | power state: on**
** | access tech: lte**
** | signal quality: 64% (recent)**
** --------------------------------**
** Modes | supported: allowed: 2g; preferred: none**
** | allowed: 3g; preferred: none**
** | allowed: 2g, 3g; preferred: none**
** | allowed: 2g, 3g; preferred: 2g**
** | allowed: 2g, 3g; preferred: 3g**
** | allowed: 2g, 3g, 4g; preferred: none**
** | current: allowed: any; preferred: none**
** --------------------------------**
** IP | supported: ipv4, ipv6, ipv4v6**
** --------------------------------**
** 3GPP | imei: NNNNNNNNNNNNNNN**
** | operator id: NNNNN**
** | operator name: TM NNNNNNNN**
** | registration: home**
** --------------------------------**
** 3GPP EPS | ue mode of operation: csps-2**
** --------------------------------**
** SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0**
**q@raspberrypi:~ $ **

NOTE =>
** 3GPP | imei: NNNNNNNNNNNNNNN**
** | operator id: NNNNN**
** | operator name: TM NNNNNNNN**
hiden by me for safety reasons

here
useful tutorial on the subject
https://forums.raspberrypi.com/viewtopic.php?t=302262

Have you checked this part of the wiki?

1 Like

Sure, I started from that :slight_smile:

At the moment have problem with right APN name, just asked provider for instructions.

q@raspberrypi:~ $ sudo mmcli --modem=0 --bearer=0

General | dbus path: /org/freedesktop/ModemManager1/Bearer/0
| type: default

Status | connected: no
| suspended: no
| ip timeout: 20

Properties | roaming: allowed

Statistics | attempts: 4
| attempts: 4
q@raspberrypi:~ $ sudo mmcli -m 0 --simple-connect=apn=telemach.hr,ip-type=ipv4v6
error: couldn’t connect the modem: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: 3GPP connection logic requires APN setting’
q@raspberrypi:~ $ sudo mmcli --modem=0 --enable
successfully enabled the modem
q@raspberrypi:~ $ sudo mmcli -m 0 --simple-connect=apn=telemach.hr,ip-type=ipv4v6
error: couldn’t connect the modem: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: 3GPP connection logic requires APN setting’
q@raspberrypi:~ $

If you have a usb modem or if you use a phone you might get the APN settings automatically. I think I just copied the APN from my phone.

Additionally, I just found out that gsm: NetworkManager Reference Manual there is a auto-config flag defaulting to false, that might configure automatically the GSM

Must study that.
Not sure that mmcli have that option.
Have read somewhere that ModemManager and NetManager are
setting up all in automatic mode. Not in my case…

That particular SIM was in use within the
TELTONIKA RUT950 wan router, only for data.
In fact our home net 3rd spare provider, before
we switched to Starlink and wire ADSL only.

By my experience, you should see an additional entry in NetworkManager a short while after turning on the modem. And then it is a matter of enabling the connection, assuming your access parameters are setup correctly.

It’s been too long since I made mine work without a hitch. I pulled that off on Arch and Alpine, in both cases running GNOME.

1 Like