Strange thing with E3372

I have strange thing with huawei dongle:

Model: E3372
Revision: 21.297.05.00.264

It is configured according to:

and so far it worked perfeclty.
But suddenly it cannot start.
all commands are sent to modem:

Sat Dec 23 13:01:16 2023 daemon.notice netifd: wwan (6488): sending -> ATE1
Sat Dec 23 13:01:17 2023 daemon.notice netifd: wwan (6488): sending -> ATS0=0
Sat Dec 23 13:01:18 2023 daemon.notice netifd: wwan (6488): sending -> AT+CGDCONT=1,"IP","internet"
Sat Dec 23 13:01:20 2023 daemon.notice netifd: wwan (6488): SIM ready
Sat Dec 23 13:01:20 2023 daemon.notice netifd: wwan (6488): PIN set successfully
Sat Dec 23 13:01:20 2023 daemon.notice netifd: wwan (6488): Configuring modem
Sat Dec 23 13:01:20 2023 daemon.notice netifd: wwan (6488): Starting network wwan
Sat Dec 23 13:01:20 2023 daemon.notice netifd: wwan (6488): Connecting modem
Sat Dec 23 13:01:21 2023 daemon.notice netifd: wwan (6488): sending -> AT^NDISDUP=1,1,"internet"
Sat Dec 23 13:01:21 2023 daemon.notice netifd: wwan (6488): Setting up wwan0
Sat Dec 23 13:01:21 2023 daemon.notice netifd: Interface 'wwan' is now up
Sat Dec 23 13:01:21 2023 daemon.notice netifd: Network device 'wwan0' link is up
Sat Dec 23 13:01:21 2023 daemon.notice netifd: Network alias 'wwan0' link is up
Sat Dec 23 13:01:22 2023 daemon.notice netifd: Interface 'wwan_4' is enabled
Sat Dec 23 13:01:22 2023 daemon.notice netifd: Interface 'wwan_4' has link connectivity
Sat Dec 23 13:01:22 2023 daemon.notice netifd: Interface 'wwan_4' is setting up now
Sat Dec 23 13:01:22 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: started, v1.36.1

then I have:

Sat Dec 23 13:01:25 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:28 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:31 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:35 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:38 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:41 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: broadcasting discover
Sat Dec 23 13:01:42 2023 daemon.notice netifd: Interface 'wwan_4' is disabled
Sat Dec 23 13:01:42 2023 daemon.notice netifd: Network alias '' link is down
Sat Dec 23 13:01:42 2023 daemon.notice netifd: Interface 'wwan_4' has link connectivity loss
Sat Dec 23 13:01:42 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: received SIGTERM
Sat Dec 23 13:01:42 2023 daemon.notice netifd: wwan_4 (6554): udhcpc: entering released state
Sat Dec 23 13:01:42 2023 daemon.notice netifd: wwan (6611): Stopping network wwan

Modem work perfectly with different sim card.
Moreover this modem + card work with laptop.


config interface 'wwan'
	option proto 'ncm'
	option auto '0'
	option ifname 'wwan0'
	option device '/dev/cdc-wdm0'
	option apn 'internet'
	option pincode '0000' #redacted
	option delay '10'
	option dhcp '1'
	option aux_device '/dev/ttyUSB0'
	option broadcast '1' #tested as kind of last resort
	option clientid "40ed00cfb99b" #tested as kind of last resort

Any hints?

If the dongle works fine with another sim card, maybe you could ask your ISP if they see some issue from their side? Because from your logs we can only see that it times out waiting for a response from DHCP.

But the same pair (sim+modem) works with laptop.

Disable PIN code on the SIM.
Make the minimalistic config:

config interface 'wwan'
        option proto 'ncm'
        option device '/dev/cdc-wdm0'
        option apn 'internet'

Make sure APN is correct for the given carrier/plan/etc.
Then check on the modem:

AT^SETPORT?
AT+CEREG?
AT+CGDCONT?
AT+CGPADDR

Thanks for the last command
In auxiliary (/dev/ttyUSB0) port I issued them and:

AT^SETPORT?
^SETPORT:A1,A2;12,1,16,A1,A2
AT+CEREG?
+CEREG: 0,1
AT+CGDCONT?
+CGDCONT: 0,"IP","","",0,0,0,0
+CGDCONT: 1,"IP","internet","",0,0,0,0

When modem looks connected:

AT+CGPADDR
+CGPADDR: 1,"10.86.93.162"

OK

So if I understand correctly - operator sends the IP

BTW values from working card are the same (except the IP of course.

The modem is registered to the network and has an IP from the carrier.
Change to AT^SETPORT="FF;10,12,16"
Modify the interface configuration as advised earlier and share a fragment of the System Log showing the connection attempt.

What does that mean? (Doc?)

I changed that (without other changes) and now modem is working , but I have no idea if this is true reason. Maybe later I will find some time to more testing.

Today this pair (card+mode) had problem again, but, it has also problem when connected to laptop directly. So I would lean towards the operator's guilt hypothesis :confused:
Pity. :frowning:

1 Like