Hi i can't get internet from my sim card inserted to ZTE MF286D. Im using newest stable relase of the openwrt and I updated all packages. It seams like it is qmi fault. Somtimes in luci network intefaces it show "Error: Unknown error (PIN_STATUS_FAILED)" also serial comands like uqmi -d /dev/cdc-wdm0 --get-data-status and qmicli --device=/dev/cdc-wdm0 --device-open-proxy --uim-get-card-status don't work - it hangs in there an i have to ctr+c. i tried to put this fix: uqmi -s -d "$device" --get-pin-status & sleep 3
killall uqmi || echo "UQMI now works fine!"
but it didn't helped. Modem was working before change to openwrt.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
cat /etc/config/network
If there is a PIN lock set on the SIM card, put the card into a phone, unlock it, and then set it to have no PIN. This will avoid one potential configuration issue on OpenWrt.
While the card is in a phone it is also a good idea to see if the SIM subscription and your local signal strength allows the phone to reach the Internet.
there is no PIN lock and the signal strenght is good. SIM works on other devices.
My sim is from Poland its called "Virgin mobile" and i think the apn is fine
root@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd64:9999:eeea::/44' #I changed the numbers a lite idk if it is important
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config interface 'LTE'
option proto 'qmi'
option device '/dev/cdc-wdm0'
option apn 'internet'
option auth 'none'
option pdptype 'ipv4'
You do not need to set a PIN code, or a username/password?
i don't know. if yes how to do that?
Try setting auth to PAP or CHAP. You can use anything (such as "xxx") for username and password. The phone company doesn't actually check the password but they do require going though an authentication sequence.
Post the full system log of it trying to connect. You may redact any identifiable numbers.
well it says something... don't mind time i did this at 15:50 in Poland
Wed Aug 21 16:57:31 2024 daemon.notice hostapd: phy1-ap0: interface state UNINITIALIZED->HT_SCAN
Wed Aug 21 16:57:31 2024 daemon.notice netifd: LTE (1694): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Wed Aug 21 16:57:31 2024 daemon.notice netifd: Wireless device 'radio0' is now up
Wed Aug 21 16:57:31 2024 daemon.notice netifd: Wireless device 'radio1' is now up
Wed Aug 21 16:57:31 2024 daemon.notice netifd: LTE (1694): Waiting for network registration
Wed Aug 21 16:57:32 2024 kern.info kernel: [ 28.830565] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
Wed Aug 21 16:57:32 2024 kern.info kernel: [ 28.830840] br-lan: port 5(phy1-ap0) entered blocking state
Wed Aug 21 16:57:32 2024 kern.info kernel: [ 28.836083] br-lan: port 5(phy1-ap0) entered forwarding state
Wed Aug 21 16:57:32 2024 daemon.notice netifd: Network device 'phy1-ap0' link is up
Wed Aug 21 16:57:32 2024 daemon.notice hostapd: phy1-ap0: interface state HT_SCAN->ENABLED
Wed Aug 21 16:57:32 2024 daemon.notice hostapd: phy1-ap0: AP-ENABLED
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: started, version 2.90 cachesize 1000
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Wed Aug 21 16:57:32 2024 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
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Wed Aug 21 16:57:32 2024 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Aug 21 16:57:32 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Wed Aug 21 16:57:32 2024 daemon.notice netifd: LTE (1694): Starting network LTE
Wed Aug 21 16:57:33 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Aug 21 16:57:33 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Aug 21 16:57:33 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Wed Aug 21 16:57:46 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:58:02 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:58:06 2024 daemon.info hostapd: phy1-ap0: STA 06:9b:d5:47:b9:b2 IEEE 802.11: authenticated
Wed Aug 21 16:58:06 2024 daemon.info hostapd: phy1-ap0: STA 06:9b:d5:47:b9:b2 IEEE 802.11: associated (aid 1)
Wed Aug 21 16:58:06 2024 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED xx:9b:xx:xx:xx:xx auth_alg=open
Wed Aug 21 16:58:09 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.236 xx:9b:xx:xx:xx:xx
Wed Aug 21 16:58:09 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.236 xx:9b:xx:xx:xx:xx
Wed Aug 21 16:58:09 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.236 xx:9b:xx:xx:xx:xx
Wed Aug 21 16:58:09 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.236 xx:9b:xx:xx:xx:xx
Wed Aug 21 16:58:13 2024 daemon.err uhttpd[1423]: [info] luci: accepted login on / for root from 192.168.1.236
Wed Aug 21 16:58:18 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:58:44 2024 daemon.notice netifd: LTE (2681): Stopping network LTE
Wed Aug 21 16:58:44 2024 daemon.notice netifd: LTE (2681): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "LTE" } (Permission denied)
Wed Aug 21 16:58:44 2024 daemon.notice netifd: Interface 'LTE' is now down
Wed Aug 21 16:58:44 2024 daemon.notice netifd: Interface 'LTE' is setting up now
Wed Aug 21 16:58:44 2024 daemon.notice netifd: LTE (2697): Waiting for SIM initialization
Wed Aug 21 16:58:45 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:58:46 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Aug 21 16:58:46 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Aug 21 16:58:46 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Wed Aug 21 16:58:47 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:59:54 2024 daemon.notice netifd: LTE (3060): Stopping network LTE
Wed Aug 21 16:59:54 2024 daemon.notice netifd: LTE (3060): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "LTE" } (Permission denied)
Wed Aug 21 16:59:54 2024 daemon.notice netifd: Interface 'LTE' is now down
Wed Aug 21 16:59:54 2024 daemon.notice netifd: Interface 'LTE' is setting up now
Wed Aug 21 16:59:54 2024 daemon.notice netifd: LTE (3076): Waiting for SIM initialization
Wed Aug 21 16:59:55 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 16:59:55 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Aug 21 16:59:55 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Aug 21 16:59:55 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Wed Aug 21 16:59:56 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 17:00:10 2024 daemon.notice netifd: LTE (3367): Stopping network LTE
Wed Aug 21 17:00:10 2024 daemon.notice netifd: LTE (3367): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "LTE" } (Permission denied)
Wed Aug 21 17:00:10 2024 daemon.notice netifd: Interface 'LTE' is now down
Wed Aug 21 17:00:10 2024 daemon.notice netifd: Interface 'LTE' is setting up now
Wed Aug 21 17:00:10 2024 daemon.notice netifd: LTE (3376): Waiting for SIM initialization
Wed Aug 21 17:00:11 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 17:00:46 2024 daemon.notice netifd: LTE (3540): Stopping network LTE
Wed Aug 21 17:00:46 2024 daemon.notice netifd: LTE (3540): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "LTE" } (Permission denied)
Wed Aug 21 17:00:46 2024 daemon.notice netifd: Interface 'LTE' is now down
Wed Aug 21 17:00:46 2024 daemon.notice netifd: Interface 'LTE' is setting up now
Wed Aug 21 17:00:46 2024 daemon.notice netifd: LTE (3556): Waiting for SIM initialization
Wed Aug 21 17:00:47 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 17:00:47 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Wed Aug 21 17:00:47 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Wed Aug 21 17:00:47 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Wed Aug 21 17:00:48 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
Wed Aug 21 17:00:57 2024 daemon.notice netifd: LTE (3847): Stopping network LTE
Wed Aug 21 17:00:57 2024 daemon.notice netifd: LTE (3847): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "LTE" } (Permission denied)
Wed Aug 21 17:00:57 2024 daemon.notice netifd: Interface 'LTE' is now down
Wed Aug 21 17:00:57 2024 daemon.notice netifd: Interface 'LTE' is setting up now
Wed Aug 21 17:00:57 2024 daemon.notice netifd: LTE (3856): Waiting for SIM initialization
Wed Aug 21 17:00:58 2024 daemon.warn odhcpd[1298]: No default route present, overriding ra_lifetime!
It acts as if the SIM card is not connected at all. This could be a hardware issue such as inserting the card improperly or bent pins in the SIM socket. Confirm that the log is the same with no SIM in the socket.