I cannot find a comprehensive guide to AT commands, but while the qmi cellular interface says it's not connected, with the AT+CGPADDR command I see that the modem gets an IP address.
at+cgpaddr
+CGPADDR: 1,83.48.204.33
+CGPADDR: 2,42.2.145.48.128.149.157.233.24.41.70.222.180.169.238.145
+CGPADDR: 3,10.92.153.130
+CGPADDR: 4,0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
meanwhile in the log (repeated continuosly)
Mon Mar 3 11:23:03 2025 daemon.notice netifd: wwan (11092): Starting network wwan
Mon Mar 3 11:23:09 2025 daemon.notice netifd: wwan (11092): Request timed out
Mon Mar 3 11:23:09 2025 daemon.notice netifd: wwan (11092): Unable to connect IPv4
Mon Mar 3 11:23:09 2025 daemon.notice netifd: wwan (11220): Stopping network wwan
Mon Mar 3 11:23:09 2025 daemon.notice netifd: wwan (11220): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Mon Mar 3 11:23:09 2025 daemon.notice netifd: Interface 'wwan' is now down
Mon Mar 3 11:23:09 2025 daemon.notice netifd: Interface 'wwan' is setting up now
Mon Mar 3 11:23:09 2025 daemon.notice netifd: wwan (11228): Waiting for SIM initialization
Mon Mar 3 11:23:10 2025 daemon.warn odhcpd[1629]: No default route present, overriding ra_lifetime to 0!
Mon Mar 3 11:23:10 2025 daemon.notice netifd: wwan (11228): Failed to parse message data
Mon Mar 3 11:23:10 2025 daemon.notice netifd: wwan (11228): PIN verification is disabled
Mon Mar 3 11:23:11 2025 daemon.notice netifd: wwan (11228): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Mon Mar 3 11:23:11 2025 daemon.notice netifd: wwan (11228): Waiting for network registration
Mon Mar 3 11:23:16 2025 daemon.notice netifd: wwan (11228): Starting network wwan
Mon Mar 3 11:23:22 2025 daemon.notice netifd: wwan (11228): Request timed out
Mon Mar 3 11:23:22 2025 daemon.notice netifd: wwan (11228): Unable to connect IPv4
Mon Mar 3 11:23:22 2025 daemon.notice netifd: wwan (11356): Stopping network wwan
Edit:
I rigged /lib/netifd/proto/qmi.sh
so I can see the uqmi commands sent and their replies.
The reply to the --start-network
command is Unkwnon error
>>> uqmi -d /dev/cdc-wdm0 -t 3000 --get-pin-status
<<< "Not supported"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --get-pin-status
<<< "Not supported"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --uim-get-sim-state
<<< {"card_slot":1,"card_application_state":"ready","pin1_status":"disabled","pin1_verify_tries":3,"pin1_unlock_tries":10,"pin2_status":"not_verified","pin2_verify_tries":3,"pin2_unlock_tries":10}
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --uim-get-sim-state
<<< {"card_slot":1,"card_application_state":"ready","pin1_status":"disabled","pin1_verify_tries":3,"pin1_unlock_tries":10,"pin2_status":"not_verified","pin2_verify_tries":3,"pin2_unlock_tries":10}
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --get-pin-status
<<< "Not supported"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --stop-network 0xffffffff --autoconnect
<<< "No effect"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --set-ip-family ipv6 --stop-network 0xffffffff --autoconnect
<<< "No effect"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --set-device-operating-mode online
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --set-data-format 802.3
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --wda-set-data-format 802.3
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --wda-get-data-format
<<< "raw-ip"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --sync
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 20000 --network-register
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --get-serving-system
<<< {"registration":"registered","radio_interface":["lte"],"plmn_mcc":214,"plmn_mnc":7,"plmn_description":"ͷ==���","roaming":false}
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --modify-profile 3gpp,1 --apn movistar.es --pdp-type ipv4v6
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --get-client-id wds
<<< 19
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --set-client-id wds,19 --set-ip-family ipv4
<<<
>>> uqmi -s -d /dev/cdc-wdm0 -t 5000 --set-client-id wds,19 --start-network --apn movistar.es --auth-type chap --username MOVISTAR --password MOVISTAR
<<< "Unknown error"
>>> uqmi -s -d /dev/cdc-wdm0 -t 1000 --set-client-id wds,19 --release-client-id wds
<<<
I took the apn data from another 4g router working with the same sim, though I also tried with PAP authentication and IPV4 only