OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version openwrt-18.06
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by martin - 25.08.2018

FS#1816 - D-Link DWR-921 C3’s WWAN connection/LTE modem hangs/stops working after some hours/2 days.

Internet connection stops working, pinging 8.8.8.8 directly from router doesn’t work. It seems to happen most often after 2 days since booting, but I’m pretty sure it had happened very soon after restarting too (restart was done because of this exact problem). Before it happens, everything works perfectly. Nothing like this happens on stock D-Link firmware.

logread output: attached
dmesg output: attached
Both done after I noticed internet is down in the morning, it had to go down at night.

Steps to reproduce:
flash OpenWrt 18.06.0 r7188-b0b5c64c22 / LuCI openwrt-18.06 branch (git-18.210.69179-6df9a57) factory image on DWR-921 C3
configure it the following way (this is exactly all the configuration that was done on the device prior to flashing openwrt):

passwd
uci set network.wwan=interface
uci set network.wwan.proto='qmi'
uci set network.wwan.device='/dev/cdc-wdm0'
uci set network.wwan.apn='internet'
uci set network.wwan.modes='lte'
uci commit network
uci set firewall.@zone[1].network='wan wwan wan6'
uci commit firewall
ifup wwan
opkg update
opkg install luci-proto-qmi
/etc/init.d/uhttpd restart
reboot

wait (2 days should be enough, but no warranties)

My attempts at working around the problem:
ifdown wwan and ifup wwan don’t help, same with restarting wwan in luci, output of uqmi -d /dev/cdc-wdm0 –get-data-status is “disconnected”. uqmi -d /dev/cdc-wdm0 –start-network doesn’t help.

I also tried playing with lte_modem_enable gpio. I’ll try this when the bug materializes again.
internet works ok
I do echo “0” > /sys/class/gpio/lte_modem_enable/value
then echo “1” > /sys/class/gpio/lte_modem_enable/value
internet doesn’t work
logread output:

Fri Aug 24 19:57:21 2018 kern.info kernel: [ 1133.343003] usb 1-1: USB disconnect, device number 2
Fri Aug 24 19:57:21 2018 kern.info kernel: [ 1133.357143] qmi_wwan 1-1:1.4 wwan0: unregister 'qmi_wwan' usb-101c0000.ehci-1, WWAN/QMI device
Fri Aug 24 19:57:21 2018 daemon.notice netifd: Network device 'wwan0' link is down
Fri Aug 24 19:57:21 2018 daemon.notice netifd: Network alias 'wwan0' link is down
Fri Aug 24 19:57:21 2018 daemon.notice netifd: Interface 'wwan_4' has link connectivity loss
Fri Aug 24 19:57:21 2018 daemon.notice netifd: Interface 'wwan_4' is disabled
Fri Aug 24 19:57:21 2018 daemon.notice netifd: wwan_4 (1378): udhcpc: SIOCGIFINDEX: No such device
Fri Aug 24 19:57:21 2018 daemon.notice netifd: wwan_4 (1378): udhcpc: SIOCGIFINDEX: No such device
Fri Aug 24 19:59:02 2018 kern.info kernel: [ 1179.698888] usb 1-1: new high-speed USB device number 3 using ehci-platform
Fri Aug 24 19:59:02 2018 kern.info kernel: [ 1179.846894] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
Fri Aug 24 19:59:02 2018 daemon.notice netifd: Interface 'wwan_4' is enabled
Fri Aug 24 19:59:02 2018 kern.info kernel: [ 1179.912948] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, mac

ifup wwan, ifdown wwan and ifup wwan

Fri Aug 24 20:01:29 2018 daemon.notice netifd: Interface 'wwan_4' is disabled
Fri Aug 24 20:01:29 2018 daemon.notice netifd: wwan (2431): Stopping network wwan
Fri Aug 24 20:01:34 2018 daemon.notice netifd: Interface 'wwan' is now down
Fri Aug 24 20:01:34 2018 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Aug 24 20:01:52 2018 daemon.notice netifd: wwan (2542): Stopping network wwan
Fri Aug 24 20:01:52 2018 daemon.notice netifd: wwan (2542): Command failed: Permission denied
Fri Aug 24 20:01:52 2018 daemon.notice netifd: Interface 'wwan' is now down
Fri Aug 24 20:01:52 2018 daemon.notice netifd: Interface 'wwan' is setting up now

ifup wwan

Fri Aug 24 20:03:17 2018 daemon.notice netifd: wwan (2765): Stopping network wwan
Fri Aug 24 20:03:17 2018 daemon.notice netifd: wwan (2765): Command failed: Permission denied
Fri Aug 24 20:03:17 2018 daemon.notice netifd: Interface 'wwan' is now down
Fri Aug 24 20:03:17 2018 daemon.notice netifd: Interface 'wwan' is setting up now

ifdown wwan

Fri Aug 24 20:04:06 2018 daemon.notice netifd: wwan (2850): Stopping network wwan
Fri Aug 24 20:04:06 2018 daemon.notice netifd: wwan (2850): Command failed: Permission denied
Fri Aug 24 20:04:06 2018 daemon.notice netifd: Interface 'wwan' is now down

ifup wwan

Fri Aug 24 20:04:22 2018 daemon.notice netifd: Interface 'wwan' is setting up now

few minutes later ifstatus wwan

{
    "up": false,
    "pending": true,
    "available": true,
    "autostart": true,
    "dynamic": false,
    "proto": "qmi",
    "data": {
       
    }
}

stopped wwan in luci

Fri Aug 24 20:08:23 2018 daemon.notice netifd: wwan (3540): Stopping network wwan
Fri Aug 24 20:08:23 2018 daemon.notice netifd: wwan (3540): Command failed: Permission denied
Fri Aug 24 20:08:23 2018 daemon.notice netifd: Interface 'wwan' is now down

started wwan in luci

Fri Aug 24 20:08:53 2018 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Aug 24 20:08:54 2018 daemon.notice netifd: wwan (3631): "No effect"
Fri Aug 24 20:08:54 2018 daemon.notice netifd: wwan (3631): "Failed to connect to service"

internet still not working, I reboot and it works.

martin commented on 29.08.2018 14:58

The bug materialized again today (after 3 days of uptime). I tried doing echo “0” > /sys/class/gpio/lte_modem_enable/value and then echo “1” > /sys/class/gpio/lte_modem_enable/value and seeing if it helps. It didn't. What I noticed though is that the interface disappeared from the Network IPv4 Upstream pane in luci's main view, it shows 'not connected' instead whereas before playing with lte_modem_enable value it showed the interface the same as when it works properly, ie. all the data, uptime, dns, netmask, ip, mac etc.

The attachment contains outputs of all the commands I tried while playing with lte_modem_enable and trying to get internet working again which might be of some help.

Currently the only thing that fixes the bug that I know of is reboot.

ThomasCr commented on 01.09.2018 01:34

Is it possible to reboot the modem with AT Command?

maybe: echo 'at^reset' > /dev/ttyUSB0

martin commented on 03.09.2018 18:14

echo 'at^reset' > /dev/cdc-wdm0 didn't restart the modem.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing