Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Aug 25, 2018 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

martin:

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.

@openwrt-bot
Copy link
Author

martin:

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.

@openwrt-bot
Copy link
Author

ThomasCr:

Is it possible to reboot the modem with AT Command?

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

@openwrt-bot
Copy link
Author

martin:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant