The SIM card and the APN settings have been verified in a smartphone, where the data connection works fine.
On the Quectel RM520N-GL the connection fails immediately with a “(6,38): [3gpp] network-failure” reason. What does this error code mean?
bedrock@bedrock-pc:~$ sudo mmcli -m 2 --simple-connect=“apn=orange,user=orange,password=orange,operator-id=20801”
error: couldn’t connect the modem: ‘GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.NetworkFailureAttach: Network failure (attach)’
ModemManager[16309]: [1718698761.084770] [modem2/bearer7] couldn’t start network: QMI protocol error (14): ‘CallFailed’
ModemManager[16309]: [1718698761.084793] [modem2/bearer7] verbose call end reason (6,38): [3gpp] network-failure
ModemManager[16309]: [1718698761.084820] [modem2/bearer7] connection attempt #1 failed: Network failure (attach)
ModemManager[16309]: [1718698761.084947] [modem2] state changed (connecting → registered)
bedrock@bedrock-pc:~$ sudo mmcli -m 2
General | path: /org/freedesktop/ModemManager1/Modem/2
| device id: f8e6844662ff444d755fdea488e02cba369bbadf
Hardware | manufacturer: Quectel
| model: RM520N-GL
| firmware revision: RM520NGLAAR01A06M4G
| carrier config: France-Commercial-Orange
| carrier config revision: 0A010B21
| h/w revision: 20000
| supported: gsm-umts, lte, 5gnr
| current: gsm-umts, lte, 5gnr
| equipment id: 868371050298567
System | device: /sys/devices/pci0000:00/0000:00:08.3/0000:09:00.4/usb8/8-1/8-1.4
| drivers: qmi_wwan, option
| plugin: quectel
| primary port: cdc-wdm1
| ports: cdc-wdm1 (qmi), ttyUSB2 (at), ttyUSB3 (at), wwan0 (net)
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: registered
| power state: on
| access tech: lte, 5gnr
| signal quality: 62% (recent)
| packet service state: attached
3GPP EPS | ue mode of operation: csps-2
| initial bearer path: /org/freedesktop/ModemManager1/Bearer/6
| initial bearer ip type: ipv4v6
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/1
| sim slot paths: slot 1: none
| slot 2: /org/freedesktop/ModemManager1/SIM/1 (active)