Show a fragment of your System Log beginning from the moment you restarted QMI interface in Luci.
ZBT WE826-32M - need help to configure cellular modem (displays "no internet access" when connected)
Sun Dec 10 15:52:37 2023 daemon.notice netifd: Interface 'wwan' is now down
Sun Dec 10 15:52:38 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:52:39 2023 daemon.notice netifd: wan (2677): udhcpc: broadcasting discover
Sun Dec 10 15:52:39 2023 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Dec 10 15:52:39 2023 daemon.info procd: - init complete -
Sun Dec 10 15:52:42 2023 daemon.notice hostapd: Set new config for phy phy0:
Sun Dec 10 15:52:42 2023 daemon.notice wpa_supplicant[1892]: Set new config for phy phy0
Sun Dec 10 15:52:42 2023 daemon.notice netifd: wan (2677): udhcpc: broadcasting discover
Sun Dec 10 15:52:45 2023 daemon.notice netifd: wan (2677): udhcpc: broadcasting discover
Sun Dec 10 15:52:45 2023 daemon.notice netifd: radio0 (2590): sh: out of range
Sun Dec 10 15:52:46 2023 daemon.notice wpa_supplicant[1892]: Set new config for phy phy0
Sun Dec 10 15:52:46 2023 daemon.notice hostapd: Set new config for phy phy0: /var/run/hostapd-phy0.conf
Sun Dec 10 15:52:46 2023 daemon.notice hostapd: Restart interface for phy phy0
Sun Dec 10 15:52:47 2023 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=GH ieee80211d=1 hw_mode=g supported_rates=60 90 120 180 240 360 480 540 basic_rates=60 120 240 beacon_int=100 chanlist=1 noscan=1 #num_global_macaddr=1 ieee80211n=1 ht_coex=0 ht_capab=[SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC12] channel=1 interface=phy0-ap0 bssid=78:a3:51:05:ea:d4 ctrl_interface=/var/run/hostapd ap_isolate=1 bss_load_update_period=60 chan_util_avg_period=600 disassoc_low_ack=1 skip_inactivity_poll=0 preamble=1 wmm_enabled=1 ignore_broadcast_ssid=0 uapsd_advertisement_enabled=1 utf8_ssid=1 multi_ap=0 auth_algs=1 wpa=0 ssid=OpenWrt bridge=br-lan wds_bridge= snoop_iface=br-lan qos_map_set=0,0,2,16,1,1,255,255,18,22,24,38,40,40,44,46,48,56 #default_macaddr nas_identifier=78a35105ead4 (phy phy0) --> new PHY
Sun Dec 10 15:52:47 2023 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sun Dec 10 15:52:54 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.549253] br-lan: port 2(phy0-ap0) entered blocking state
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.555058] br-lan: port 2(phy0-ap0) entered disabled state
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.561168] device phy0-ap0 entered promiscuous mode
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.566383] br-lan: port 2(phy0-ap0) entered blocking state
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.572143] br-lan: port 2(phy0-ap0) entered forwarding state
Sun Dec 10 15:52:57 2023 daemon.info dnsmasq[1]: started, version 2.89 cachesize 1000
Sun Dec 10 15:52:57 2023 kern.info kernel: [ 103.584333] br-lan: port 2(phy0-ap0) entered disabled state
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Dec 10 15:52:58 2023 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sun Dec 10 15:52:58 2023 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Dec 10 15:52:58 2023 daemon.notice hostapd: phy0-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sun Dec 10 15:52:58 2023 kern.info kernel: [ 103.733864] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
Sun Dec 10 15:52:58 2023 kern.info kernel: [ 103.740975] br-lan: port 2(phy0-ap0) entered blocking state
Sun Dec 10 15:52:58 2023 kern.info kernel: [ 103.746686] br-lan: port 2(phy0-ap0) entered forwarding state
Sun Dec 10 15:52:58 2023 daemon.notice netifd: Network device 'phy0-ap0' link is up
Sun Dec 10 15:52:58 2023 daemon.notice hostapd: phy0-ap0: interface state COUNTRY_UPDATE->ENABLED
Sun Dec 10 15:52:58 2023 daemon.notice hostapd: phy0-ap0: AP-ENABLED
Sun Dec 10 15:52:58 2023 daemon.notice netifd: Interface 'wwan1' is enabled
Sun Dec 10 15:52:59 2023 daemon.notice wpa_supplicant[1892]: Set new config for phy phy0
Sun Dec 10 15:52:59 2023 daemon.notice netifd: Wireless device 'radio0' is now up
Sun Dec 10 15:53:00 2023 daemon.notice netifd: Network device 'phy0-ap0' link is down
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.659855] br-lan: port 2(phy0-ap0) entered disabled state
Sun Dec 10 15:53:00 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: SME: Trying to authenticate with bc:91:b5:0c:86:99 (SSID='Infinix HOT S3' freq=2462 MHz)
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.731592] phy0-sta0: authenticate with bc:91:b5:0c:86:99
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.737333] phy0-sta0: 80 MHz not supported, disabling VHT
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.776924] phy0-sta0: send auth to bc:91:b5:0c:86:99 (try 1/3)
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.787468] phy0-sta0: authenticated
Sun Dec 10 15:53:00 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: Trying to associate with bc:91:b5:0c:86:99 (SSID='Infinix HOT S3' freq=2462 MHz)
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.809857] phy0-sta0: associate with bc:91:b5:0c:86:99 (try 1/3)
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.839804] phy0-sta0: RX AssocResp from bc:91:b5:0c:86:99 (capab=0x431 status=0 aid=2)
Sun Dec 10 15:53:00 2023 kern.info kernel: [ 105.848380] phy0-sta0: associated
Sun Dec 10 15:53:00 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: Associated with bc:91:b5:0c:86:99
Sun Dec 10 15:53:00 2023 daemon.notice netifd: Network device 'phy0-sta0' link is up
Sun Dec 10 15:53:00 2023 daemon.notice netifd: Interface 'wwan1' has link connectivity
Sun Dec 10 15:53:00 2023 daemon.notice netifd: Interface 'wwan1' is setting up now
Sun Dec 10 15:53:00 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sun Dec 10 15:53:00 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: Unknown event 37
Sun Dec 10 15:53:00 2023 daemon.notice netifd: wwan1 (3224): udhcpc: started, v1.36.1
Sun Dec 10 15:53:01 2023 daemon.notice netifd: wwan1 (3224): udhcpc: broadcasting discover
Sun Dec 10 15:53:01 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: WPA: Key negotiation completed with bc:91:b5:0c:86:99 [PTK=CCMP GTK=CCMP]
Sun Dec 10 15:53:01 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: CTRL-EVENT-CONNECTED - Connection to bc:91:b5:0c:86:99 completed [id=0 id_str=]
Sun Dec 10 15:53:01 2023 kern.info kernel: [ 106.901102] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready
Sun Dec 10 15:53:01 2023 kern.info kernel: [ 107.021013] br-lan: port 2(phy0-ap0) entered blocking state
Sun Dec 10 15:53:01 2023 kern.info kernel: [ 107.026748] br-lan: port 2(phy0-ap0) entered forwarding state
Sun Dec 10 15:53:01 2023 daemon.notice netifd: Network device 'phy0-ap0' link is up
Sun Dec 10 15:53:01 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: Unknown event 37
Sun Dec 10 15:53:01 2023 daemon.notice wpa_supplicant[1892]: phy0-sta0: CTRL-EVENT-BEACON-LOSS
Sun Dec 10 15:53:04 2023 daemon.notice netifd: wwan1 (3224): udhcpc: broadcasting discover
Sun Dec 10 15:53:04 2023 daemon.notice netifd: wwan1 (3224): udhcpc: broadcasting select for 192.168.43.237, server 192.168.43.1
Sun Dec 10 15:53:04 2023 daemon.notice netifd: wwan1 (3224): udhcpc: lease of 192.168.43.237 obtained from 192.168.43.1, lease time 3600
Sun Dec 10 15:53:04 2023 daemon.notice netifd: Interface 'wwan1' is now up
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using nameserver 192.168.43.1#53
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Dec 10 15:53:04 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Dec 10 15:53:05 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:54:05 2023 user.notice firewall: Reloading firewall due to ifup of wwan1 (phy0-sta0)
Sun Dec 10 15:54:56 2023 daemon.info hostapd: phy0-ap0: STA 00:e0:27:30:5a:62 IEEE 802.11: authenticated
Sun Dec 10 15:54:56 2023 daemon.info hostapd: phy0-ap0: STA 00:e0:27:30:5a:62 IEEE 802.11: associated (aid 1)
Sun Dec 10 15:54:56 2023 daemon.notice hostapd: phy0-ap0: AP-STA-CONNECTED 00:e0:27:30:5a:62 auth_alg=open
Sun Dec 10 15:54:56 2023 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.159 00:e0:27:30:5a:62
Sun Dec 10 15:54:56 2023 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.159 00:e0:27:30:5a:62 DESKTOP-DICKSON
Sun Dec 10 15:54:56 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:54:57 2023 user.info kernel: [ 163.862434] urngd: v1.0.2 started.
Sun Dec 10 15:55:00 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:55:04 2023 daemon.warn odhcpd[2111]: No default route present, overriding ra_lifetime!
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 0 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 2 names
Sun Dec 10 15:55:06 2023 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Dec 10 15:55:45 2023 daemon.err uhttpd[2234]: [info] luci: accepted login on / for root from 192.168.1.159
Sun Dec 10 15:57:31 2023 authpriv.info dropbear[3479]: Child connection from 192.168.1.159:63110
Sun Dec 10 15:57:40 2023 authpriv.notice dropbear[3479]: Password auth succeeded for 'root' from 192.168.1.159:63110
Sun Dec 10 16:00:16 2023 authpriv.info dropbear[3479]: Exit (root) from <192.168.1.159:63110>: Exited normally
Sun Dec 10 16:00:36 2023 authpriv.info dropbear[3490]: Child connection from 192.168.1.159:63127
The QMI interface is displaying "network device is not present". It goes off automatically after reboot since I switch it ON manually.
You should not reboot.
Delete wan1
(DHCP). Run logread -f
Open another console connection and switch the USB configuration as shown above, then configure QMI interface.
Show the log data collected.
root@OpenWrt:~# logread -f
Sun Dec 10 19:42:19 2023 authpriv.info dropbear[3288]: Child connection from 192.168.1.116:56938
Sun Dec 10 19:42:46 2023 authpriv.notice dropbear[3288]: Password auth succeeded for 'root' from 192.168.1.116:56938
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.777069] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.785514] option 1-1.2:2.2: device disconnected
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.790907] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.799333] option 1-1.2:2.3: device disconnected
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.804691] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.813087] option 1-1.2:2.4: device disconnected
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.818388] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.826984] option 1-1.2:2.5: device disconnected
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.832288] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
Sun Dec 10 19:43:31 2023 kern.info kernel: [ 235.840686] option 1-1.2:2.6: device disconnected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.333042] option 1-1.2:1.0: GSM modem (1-port) converter detected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.340104] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.347968] option 1-1.2:1.1: GSM modem (1-port) converter detected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.354748] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.362539] option 1-1.2:1.2: GSM modem (1-port) converter detected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.369250] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.377088] option 1-1.2:1.3: GSM modem (1-port) converter detected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.383905] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.391607] option 1-1.2:1.4: GSM modem (1-port) converter detected
Sun Dec 10 19:43:34 2023 kern.info kernel: [ 239.398394] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
Sun Dec 10 19:43:35 2023 kern.info kernel: [ 239.584196] qmi_wwan 1-1.2:1.5: cdc-wdm0: USB WDM device
Sun Dec 10 19:43:35 2023 kern.info kernel: [ 239.590958] qmi_wwan 1-1.2:1.5 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, ca:2d:16:b7:dc:9a
Sun Dec 10 19:43:35 2023 kern.info kernel: [ 239.616024] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Sun Dec 10 19:43:35 2023 kern.info kernel: [ 239.624480] option 1-1.2:1.0: device disconnected
Sun Dec 10 19:43:35 2023 kern.warn kernel: [ 239.846567] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:35 2023 kern.warn kernel: [ 239.970835] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:36 2023 kern.warn kernel: [ 240.728325] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:36 2023 kern.warn kernel: [ 240.844390] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:37 2023 kern.warn kernel: [ 241.706555] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:37 2023 kern.warn kernel: [ 241.829728] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:38 2023 kern.warn kernel: [ 242.620733] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:38 2023 kern.warn kernel: [ 242.752689] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:39 2023 kern.warn kernel: [ 243.600859] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:39 2023 kern.warn kernel: [ 243.732618] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:40 2023 kern.warn kernel: [ 244.586128] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:40 2023 kern.warn kernel: [ 244.712629] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:41 2023 kern.warn kernel: [ 245.570326] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:41 2023 kern.warn kernel: [ 245.702672] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:42 2023 kern.warn kernel: [ 246.550365] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:42 2023 kern.warn kernel: [ 246.682721] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:42 2023 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Dec 10 19:43:42 2023 kern.warn kernel: [ 247.520187] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:43 2023 kern.warn kernel: [ 247.655725] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:43 2023 daemon.notice netifd: wwan (4566): Waiting for SIM initialization
Sun Dec 10 19:43:43 2023 daemon.notice netifd: wwan (4566): Failed to parse message data
Sun Dec 10 19:43:43 2023 daemon.notice netifd: wwan (4566): PIN status failed (sim_not_present)
Sun Dec 10 19:43:44 2023 daemon.notice netifd: wwan (4648): Stopping network wwan
Sun Dec 10 19:43:44 2023 kern.warn kernel: [ 248.730716] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:44 2023 daemon.notice netifd: wwan (4648): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Dec 10 19:43:44 2023 daemon.notice netifd: Interface 'wwan' is now down
Sun Dec 10 19:43:44 2023 kern.warn kernel: [ 248.852662] usb 1-1.2: usbfs: interface 1 claimed by option while 'usbmode' sets config #0
Sun Dec 10 19:43:45 2023 daemon.warn odhcpd[2109]: No default route present, overriding ra_lifetime!
Sun Dec 10 19:45:17 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Dec 10 19:45:17 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sun Dec 10 19:45:17 2023 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 2 names
Sun Dec 10 19:45:17 2023 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Dec 10 19:45:18 2023 daemon.warn odhcpd[2109]: No default route present, overriding ra_lifetime!
Sun Dec 10 19:45:41 2023 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Dec 10 19:45:41 2023 daemon.notice netifd: wwan (5068): Waiting for SIM initialization
Sun Dec 10 19:45:41 2023 daemon.notice netifd: wwan (5068): Failed to parse message data
Sun Dec 10 19:45:41 2023 daemon.notice netifd: wwan (5068): PIN status failed (sim_not_present)
Sun Dec 10 19:45:41 2023 daemon.notice netifd: wwan (5089): Stopping network wwan
Sun Dec 10 19:45:42 2023 daemon.notice netifd: wwan (5089): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Dec 10 19:45:42 2023 daemon.notice netifd: Interface 'wwan' is now down
Sun Dec 10 19:45:43 2023 daemon.warn odhcpd[2109]: No default route present, overriding ra_lifetime!
Please uninstall or disable usb_modeswitch and repeat.
root@OpenWrt:~# logread -f
Sun Dec 10 19:50:01 2023 authpriv.info dropbear[2610]: Child connection from 192.168.1.116:57458
Sun Dec 10 19:50:11 2023 authpriv.notice dropbear[2610]: Password auth succeeded for 'root' from 192.168.1.116:57458
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.631371] cdc_ether 1-1.2:2.0 eth1: unregister 'cdc_ether' usb-101c0000.ehci-1.2, CDC Ethernet Device
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.647074] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.655415] option 1-1.2:2.2: device disconnected
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.660785] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.669164] option 1-1.2:2.3: device disconnected
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.674444] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.682847] option 1-1.2:2.4: device disconnected
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.688205] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.696634] option 1-1.2:2.5: device disconnected
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.701930] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
Sun Dec 10 19:50:35 2023 kern.info kernel: [ 254.710316] option 1-1.2:2.6: device disconnected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.134017] option 1-1.2:1.0: GSM modem (1-port) converter detected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.140837] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.148733] option 1-1.2:1.1: GSM modem (1-port) converter detected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.155432] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.163214] option 1-1.2:1.2: GSM modem (1-port) converter detected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.169999] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.177767] option 1-1.2:1.3: GSM modem (1-port) converter detected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.184471] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.192574] option 1-1.2:1.4: GSM modem (1-port) converter detected
Sun Dec 10 19:50:37 2023 kern.info kernel: [ 256.199397] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
Sun Dec 10 19:50:38 2023 kern.info kernel: [ 256.326161] qmi_wwan 1-1.2:1.5: cdc-wdm0: USB WDM device
Sun Dec 10 19:50:38 2023 kern.info kernel: [ 256.332785] qmi_wwan 1-1.2:1.5 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, f2:cb:44:38:75:b8
Sun Dec 10 19:50:38 2023 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Dec 10 19:50:39 2023 daemon.notice netifd: wwan (2814): Waiting for SIM initialization
Sun Dec 10 19:50:39 2023 daemon.notice netifd: wwan (2814): Failed to parse message data
Sun Dec 10 19:50:39 2023 daemon.notice netifd: wwan (2814): PIN status failed (sim_not_present)
Sun Dec 10 19:50:39 2023 daemon.notice netifd: wwan (2851): Stopping network wwan
Sun Dec 10 19:50:39 2023 daemon.notice netifd: wwan (2851): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Dec 10 19:50:39 2023 daemon.notice netifd: Interface 'wwan' is now down
Sun Dec 10 19:50:40 2023 daemon.warn odhcpd[1424]: No default route present, overriding ra_lifetime!
Sun Dec 10 19:52:11 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Dec 10 19:52:11 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sun Dec 10 19:52:11 2023 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 2 names
Sun Dec 10 19:52:11 2023 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Dec 10 19:52:12 2023 daemon.warn odhcpd[1424]: No default route present, overriding ra_lifetime!
All looks good, hovewer:
Check if SIM is properly inserted, restart the interface and see if there is any change. You may need to add an extra delay to QMI interface [in /etc/config/network
] with option delay '10'
Alternatively, check from a terminal:
picocom /dev/ttyUSB2
then send AT+CPIN?
and AT+CIMI
For the 2nd command there is no need to share the complete response, we're only interested in the possible error.
Please how will I do this?
The picocom didn't work.(not found)
With any editor, like vi
or nano
.
It should be installed if you followed the instructions.
Yes, I need to install picocom again, it was installed and later i removed it.
With the editor, vi or nano, I need to learn more about them in order to use.
picocom /dev/ttyUSB2
picocom v3.1
port is : /dev/ttyUSB2
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
hangup is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none
initstring : none
exit_after is : not set
exit is : no
Type [C-a] [C-h] to see available commands
Terminal ready
AT+CPIN?
+CME ERROR: SIM failure
AT+CIMI
+CME ERROR: SIM failure
There could be a problem with the SIM slot, the SIM works in a different router.
You need to fix this before proceeding with the configuration.
Make sure the SIM is plugged in correctly. As I remember (not 100% sure) it needs to be positioned with the contacts up and a cut away from you.
I will do as you have said and give feedback.
Thanks!
root@OpenWrt:~# logread -f
Tue Dec 12 14:30:38 2023 authpriv.info dropbear[2679]: Child connection from 192 .168.1.116:58514
Tue Dec 12 14:30:51 2023 authpriv.notice dropbear[2679]: Password auth succeeded for 'root' from 192.168.1.116:58514
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.467428] cdc_ether 1-1.2:2.0 et h1: unregister 'cdc_ether' usb-101c0000.ehci-1.2, CDC Ethernet Device
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.482906] option1 ttyUSB0: GSM m odem (1-port) converter now disconnected from ttyUSB0
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.491351] option 1-1.2:2.2: devi ce disconnected
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.496691] option1 ttyUSB1: GSM m odem (1-port) converter now disconnected from ttyUSB1
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.504996] option 1-1.2:2.3: devi ce disconnected
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.510372] option1 ttyUSB2: GSM m odem (1-port) converter now disconnected from ttyUSB2
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.518771] option 1-1.2:2.4: devi ce disconnected
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.524384] option1 ttyUSB3: GSM m odem (1-port) converter now disconnected from ttyUSB3
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.532791] option 1-1.2:2.5: devi ce disconnected
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.538212] option1 ttyUSB4: GSM m odem (1-port) converter now disconnected from ttyUSB4
Tue Dec 12 14:34:05 2023 kern.info kernel: [ 375.546620] option 1-1.2:2.6: devi ce disconnected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.664341] option 1-1.2:1.0: GSM modem (1-port) converter detected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.671167] usb 1-1.2: GSM modem ( 1-port) converter now attached to ttyUSB0
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.679047] option 1-1.2:1.1: GSM modem (1-port) converter detected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.685745] usb 1-1.2: GSM modem ( 1-port) converter now attached to ttyUSB1
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.693597] option 1-1.2:1.2: GSM modem (1-port) converter detected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.700406] usb 1-1.2: GSM modem ( 1-port) converter now attached to ttyUSB2
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.708211] option 1-1.2:1.3: GSM modem (1-port) converter detected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.715190] usb 1-1.2: GSM modem ( 1-port) converter now attached to ttyUSB3
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.722999] option 1-1.2:1.4: GSM modem (1-port) converter detected
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.730265] usb 1-1.2: GSM modem ( 1-port) converter now attached to ttyUSB4
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.846840] qmi_wwan 1-1.2:1.5: cd c-wdm0: USB WDM device
Tue Dec 12 14:34:08 2023 kern.info kernel: [ 377.853392] qmi_wwan 1-1.2:1.5 wwa n0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, 26:1d:28:cc:0 d:8e
Tue Dec 12 14:34:10 2023 daemon.notice netifd: Interface 'wwan' is setting up no w
Tue Dec 12 14:34:10 2023 daemon.notice netifd: wwan (2982): Waiting for SIM init ialization
Tue Dec 12 14:34:10 2023 daemon.notice netifd: wwan (2982): PIN verification is disabled
Tue Dec 12 14:34:10 2023 daemon.notice netifd: wwan (2982): Waiting for network registration
Tue Dec 12 14:34:11 2023 daemon.notice netifd: wwan (2982): Device stopped netwo rk registration. Restart network registration
Tue Dec 12 14:34:13 2023 daemon.notice netifd: wwan (2982): Device stopped netwo rk registration. Restart network registration
Tue Dec 12 14:34:14 2023 daemon.notice netifd: wwan (2982): Device stopped netwo rk registration. Restart network registration
Tue Dec 12 14:34:17 2023 daemon.warn odhcpd[1544]: No default route present, ove rriding ra_lifetime!
Tue Dec 12 14:34:20 2023 daemon.notice netifd: wwan (2982): Device stopped network r egistration. Restart network registration
Tue Dec 12 14:34:21 2023 daemon.notice netifd: wwan (2982): Device stopped network r egistration. Restart network registration
Tue Dec 12 14:34:22 2023 daemon.notice netifd: wwan (2982): Network registration fai led, registration timeout reached
Tue Dec 12 14:34:22 2023 daemon.notice netifd: wwan (3074): Stopping network wwan
Tue Dec 12 14:34:22 2023 daemon.notice netifd: wwan (3074): Command failed: ubus cal l network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "in terface": "wwan" } (Permission denied)
Tue Dec 12 14:34:22 2023 daemon.notice netifd: Interface 'wwan' is now down
Tue Dec 12 14:34:23 2023 daemon.warn odhcpd[1544]: No default route present, overrid ing ra_lifetime!
`Sim card has been detected now but there is another problem.` Also, the delay time can not be found in /etc/config/network.
config interface 'wwan'
51 option proto 'qmi'
52 option device '/dev/cdc-wdm0'
53 option apn 'internet'
54 option pincode '1234'
55 option auth 'none'
56 option pdptype 'ipv4v6'
Make sure the APN name is correct and change pdptype
to ip
If you think a delay is needed you can add it in the configuration file manually.
Please check from picocom
:
ATI
AT+CGDCONT?
AT+CREG?
AT+CGREG?
ATI
Manufacturer: Huawei Technologies Co., Ltd.
Model: MU609
Revision: 12.105.29.00.00
IMEI: 357784041005750
+GCAP: +CGSM,+DS,+ES
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","internet","0.0.0.0",0,0
OK
AT+CREG?
+CREG: 0,1
OK
AT+CGREG?
+CGREG: 0,1
OK
Not the latest, but...
Are you confident that internet
is the right APN for your carrier?
0,1
means "Registered, home network"
All looks good, so let's add to the QMI interface configuration
option 'timeout' 30
then restart the interface and re-check the system log.
I can not find this in the QMI interface. For the APN , "internet" is correct.