APN issues on ZyXEL LTE5398-M904

Hi

So I've installed OpenWrt SNAPSHOT r26733-2b6772c82c on a ZyXEL LTE5398-M904.

The device is supposed to provide access (from internet) into remote locations. For this I've ordered a data card with fixed IP from my ISP. This SIM card should use APN "fixed.ip" according to them, however I have no success connecting ("connection refused" IIRC). I have set up the APN in the web interface using luci-proto-qmi.

I have another data card from the same ISP in my laptop, which is not fixed IP and doesn't need an APN (or "internet"). When I try this card in the router (using APN "internet") it works.

When I use the router's fixed IP data card in my laptop with APN "fixed.ip" it also works. So, if I switch the cards around both work - but I need the fixed IP card to be in the router. This makes me think that there is a problem setting the APN on the router, since the working card doesn't need an APN set. I have tried to create the connection manually using the instructions from https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle but failed to diagnose the issue further (uqmi is a pretty silent tool!). I would appreciate some help.

Please share the config files that you are using for both cards, and the configs on the laptop too.

1 Like

The relevant part of the network config looks like this:

config interface 'wwan'
	option proto 'qmi'
	option device '/dev/cdc-wdm0'
	option auth 'none'
	option pdptype 'ipv4'
	option apn 'fixed.ip'

Here's the log with the working data card (dynamic IP and APN "internet"):

Fri Jul  5 16:48:44 2024 daemon.notice netifd: wwan (7528): "Failed to connect to service"
Fri Jul  5 16:48:47 2024 daemon.notice netifd: wwan (7528): "Failed to connect to service"
Fri Jul  5 16:48:49 2024 daemon.notice netifd: wwan (7528): Request timed out
Fri Jul  5 16:48:49 2024 daemon.notice netifd: wwan (7528): Failed to parse message data
Fri Jul  5 16:48:49 2024 daemon.notice netifd: wwan (7528): SIM in illegal state - Power-cycling SIM
Fri Jul  5 16:48:54 2024 daemon.notice netifd: wwan (7528): Failed to parse message data
Fri Jul  5 16:48:54 2024 daemon.notice netifd: wwan (7528): PIN verification is disabled
Fri Jul  5 16:48:55 2024 daemon.notice netifd: wwan (7528): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Fri Jul  5 16:48:55 2024 daemon.notice netifd: wwan (7528): Waiting for network registration
Fri Jul  5 16:49:00 2024 daemon.notice netifd: wwan (7528): Starting network wwan
Fri Jul  5 16:49:01 2024 daemon.notice netifd: wwan (7528): Setting up wwan0
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Interface 'wwan' is now up
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Network device 'wwan0' link is up
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Network alias 'wwan0' link is up
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Interface 'wwan_4' is enabled
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Interface 'wwan_4' has link connectivity
Fri Jul  5 16:49:01 2024 daemon.notice netifd: Interface 'wwan_4' is setting up now
Fri Jul  5 16:49:01 2024 daemon.notice netifd: wwan_4 (7644): udhcpc: started, v1.36.1
Fri Jul  5 16:49:01 2024 user.notice firewall: Reloading firewall due to ifup of wwan (wwan0)
Fri Jul  5 16:49:01 2024 daemon.notice netifd: wwan_4 (7644): udhcpc: broadcasting discover
Fri Jul  5 16:49:02 2024 daemon.notice netifd: wwan_4 (7644): udhcpc: broadcasting select for 10.131.XX.YY, server 10.131.XX.ZZ
Fri Jul  5 16:49:02 2024 daemon.notice netifd: wwan_4 (7644): udhcpc: lease of 10.131.XX.YY obtained from 10.131.XX.ZZ, lease time 7200
Fri Jul  5 16:49:02 2024 daemon.notice netifd: Interface 'wwan_4' is now up

This is the log for the non-working data card (static IP and APN "fixed.ip"):

Fri Jul  5 16:52:30 2024 daemon.notice netifd: wwan (3542): "Failed to connect to service"
Fri Jul  5 16:52:33 2024 daemon.notice netifd: wwan (3542): Request timed out
Fri Jul  5 16:52:33 2024 daemon.notice netifd: wwan (3542): Failed to parse message data
Fri Jul  5 16:52:33 2024 daemon.notice netifd: wwan (3542): SIM in illegal state - Power-cycling SIM
Fri Jul  5 16:52:38 2024 daemon.notice netifd: wwan (3542): Failed to parse message data
Fri Jul  5 16:52:38 2024 daemon.notice netifd: wwan (3542): PIN verification is disabled
Fri Jul  5 16:52:39 2024 daemon.notice netifd: wwan (3542): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Fri Jul  5 16:52:39 2024 daemon.notice netifd: wwan (3542): Waiting for network registration
Fri Jul  5 16:52:56 2024 daemon.notice netifd: wwan (3542): Network registration failed, registration timeout reached
Fri Jul  5 16:52:56 2024 daemon.notice netifd: wwan (3754): Stopping network wwan
Fri Jul  5 16:52:56 2024 daemon.notice netifd: wwan (3754): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Fri Jul  5 16:52:56 2024 daemon.notice netifd: Interface 'wwan' is now down
Fri Jul  5 16:52:56 2024 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Jul  5 16:52:57 2024 daemon.warn odhcpd[1754]: No default route present, overriding ra_lifetime to 0!
Fri Jul  5 16:53:26 2024 daemon.notice netifd: wwan (3762): Waiting for SIM initialization
Fri Jul  5 16:53:27 2024 daemon.notice netifd: wwan (3762): Failed to parse message data
Fri Jul  5 16:53:27 2024 daemon.notice netifd: wwan (3762): PIN verification is disabled
Fri Jul  5 16:53:28 2024 daemon.notice netifd: wwan (3762): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Fri Jul  5 16:53:28 2024 daemon.notice netifd: wwan (3762): Waiting for network registration
Fri Jul  5 16:53:45 2024 daemon.notice netifd: wwan (3762): Network registration failed, registration timeout reached
Fri Jul  5 16:53:45 2024 daemon.notice netifd: wwan (3943): Stopping network wwan
Fri Jul  5 16:53:46 2024 daemon.notice netifd: wwan (3943): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Fri Jul  5 16:53:46 2024 daemon.notice netifd: Interface 'wwan' is now down
Fri Jul  5 16:53:46 2024 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Jul  5 16:53:47 2024 daemon.warn odhcpd[1754]: No default route present, overriding ra_lifetime to 0!

Disable MBN as shown here: Registration denied on Lebara Sim - #7 by AndrewZ

Check/set the APN on the modem using a terminal as shown in the wiki:
https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle#lte_or_5g_modem_preparation

The problem was that the default 3gpp profile had "internet" as APN. I would have expected the apn UCI configuration parameter to have overridden the profile, but apparently it doesn't.

So to use the right APN, I had to modify the default profile like so:

qmicli -d /dev/cdc-wdm0  --wds-modify-profile=3gpp,1,apn="fixed.ip"

Thanks for the pointers, both :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.