LTE Internet problem - Kuwfi C910

Hi,

I installed an openwrt firmware on my 4g lte kuwfi c910 modem router using this firmware:
https://firmware-selector.openwrt.org/?version=23.05.0-rc2&target=ath79%2Fgeneric&id=kuwfi_c910

Documentation used:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=d9566d059c41e4ff491cfdda6721223f69821340

After successful installation, I no longer have internet, I have the impression that the sim card is no longer detected.

The Support Documentation mentions that I need to use the AT command in SSH to test the connection. I enter the AT command with configurations but it shows AT not found.

Could someone please help me?

Please show the output of cat /sys/kernel/debug/usb/devices

Hi,
Thanks for replying,

Searching on forum, and after reboot, I've tested this, if it can help :slight_smile: :

root@OpenWrt:~# comgt
Trying list of devices
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: "myoperator",7
Signal Quality: 19,99

This is the output with your command :

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.118 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b000000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2020 ProdID=2033 Rev= 2.28
S:  Manufacturer=Mobile Connect
S:  Product=Mobile Connect
S:  SerialNumber=0b08938406a0
C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=89(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Configure your LTE interface with qmi. Install uqmi and luci-proto-qmi.

BroadMobi BM806U ?

Install missing components as advised, then...
Go to Network → Interfaces → Add new interface… → Protocol : QMI, Interface: cdc-wdm0
enter APN, IP type (v4/v6).
Then in Advanced Settings: tick "Use default gateway" and "Use DNS servers advertised by peer".
Assign the firewall zone (WAN).

Wanna test it this night :pray::pray:

This is more details on documentation link about device Kuwfi C910 :

SoC:   Qualcomm QCA9533 650/400/200/25/25 MHz (CPU/RAM/AHB/SPI/REF)

RAM:   128 MB DDR2 16-bit CL3-4-4-10 (Nanya NT5TU64M16HG-AC)

FLASH: 16 MB Winbond W25Q128

ETH:
  - 2x 100M LAN (QCA9533 internal AR8229 switch, eth0)
  - 1x 100M WAN (QCA9533 internal PHY, eth1)

WIFI:
  - 2.4GHz: 1x QCA9533 2T2R (b/g/n)
  - 2 external non detachable antennas (near the power barrel side)

LTE:
  - Quectel EC200T-EU (or -CN or -AU depending on markets)

Thanks for your response, wanna test it at will give you feedback :+1::pray:

That is not true in your case according to the output you provided earlier.

The whole box is $40 including the modem. I wouldn't expect a name-brand modem.

Tested as your advices :

The interface don't have trafics and another id.

For precision, the interface "wwan" use internet from external hotspot, I set it to have internet for the installation of the packages.
Even If I disabled "wwan", I have the same error.

This is all my Interface Config :

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.1'

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 switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 4 0t'

config interface 'wwan'
        option proto 'dhcp'

config interface 'modem'
        option proto 'qmi'
        option device '/dev/cdc-wdm0'
        option apn 'internet'
        option auth 'none'
        option pdptype 'ipv4v6'

and the part of my firewall config :

config defaults                                                                                                                                                                                         option syn_flood '1'                                                                                                                                                                            option input 'REJECT'                                                                                                                                                                           option output 'ACCEPT'                                                                                                                                                                          option forward 'REJECT'                                                                                                                                                                                                                                                                                                                                                                 config zone                                                                                                                                                                                             option name 'lan'                                                                                                                                                                               option input 'ACCEPT'                                                                                                                                                                           option output 'ACCEPT'                                                                                                                                                                          option forward 'ACCEPT'                                                                                                                                                                         list network 'lan'                                                                                                                                                                                                                                                                                                                                                                      config zone                                                                                                                                                                                             option name 'wan'                                                                                                                                                                               option input 'REJECT'                                                                                                                                                                           option output 'ACCEPT'                                                                                                                                                                          option forward 'REJECT'                                                                                                                                                                         option masq '1'                                                                                                                                                                                 option mtu_fix '1'                                                                                                                                                                              list network 'wwan'                                                                                                                                                                             list network 'modem'                                                                                                                                                                                                                                                                                                                                                                    config forwarding                                                                                                                                                                                       option src 'lan'                                                                                                                                                                                option dest 'wan'                                                                                                                                                                                                                                                                                                                                                                       config rule                                                                                                                                                                                             option name 'Allow-DHCP-Renew'                                                                                                                                                                  option src 'wan'                                                                                                                                                                                option proto 'udp'                                                                                                                                                                              option dest_port '68'                                                                                                                                                                           option target 'ACCEPT'                                                                                                                                                                          option family 'ipv4'                                                                                                                                                                                                                                                                                                                                                                    config rule                                                                                                                                                                                             option name 'Allow-Ping'                                                                                                                                                                        option src 'wan'                                                                                                                                                                                option proto 'icmp'                                                                                                                                                                             option icmp_type 'echo-request'                                                                                                                                                                 option family 'ipv4'                                                                                                                                                                            option target 'ACCEPT'                                                                                                                                                                                                                                                                                                                                                                  config rule                                                                                                                                                                                             option name 'Allow-IGMP'                                                                                                                                                                        option src 'wan'                                                                                                                                                                                option proto 'igmp'                                                                                                                                                                             option family 'ipv4'                                                                                                                                                                            option target 'ACCEPT'  

Please double check your selections and see what is in the log.
I would start from changing ipv4v6 to IP.

Delete your wwan interface and reboot your router. Paste your syslog after the reboot, maybe we can get a clue what your qmi interface is doing.

Thank you for your answers which helped me to find leads. After failure, soft brick, re-flash and multiple reset, and of course tries based on your comments. I also use ChatGPT3.5 a lot to identify errors at the code level such as the consistency between what I want, the network configuration and Firewall.

I think I succeeded! :boom: :boom:
By putting wwan0 as protocol instead of qmi_cellular

I share below the steps that I tried to put in order after several tries to help others.

To conclude, I also put on a next comment [HERE] the complete configurations for Network, Firewall and Wireless.

Bonus: The internet LED does not work by default, it must be configured directly in LuCi to have an indicator. I put several LED settings for the Internetinternet indicator, but it crashed my router. I only keep one, just green to indicate when there is RX or/and TX.

Step 1: Hotspot_Phone Configuration (/etc/config/wireless)
We need internet on router to install needed packages.
Configure Hotspot_Phone to connect to the wireless network:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/ahb/18100000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option cell_density '0'

config wifi-iface 'wifinet1'
        option device 'radio0'
        option mode 'sta'
        option network 'Hotspot_Phone'
        option ssid 'YourWiFiNetwork'    # Example network name you want to connect to
        option encryption 'psk2'        # Security method, like WPA-PSK
        option key 'YourWiFiPassword'   # Example WiFi network security key

Step 2: Network Configuration (/etc/config/network)
In the /etc/config/network file, make sure the loopback and lan interfaces are already configured by default after installing OpenWrt firmware. You can leave them as they are, as they are necessary for the router's operation.

Add configurations for the Hotspot_Phone and modem interfaces:

config interface 'Hotspot_Phone'
        option proto 'dhcp'

config interface 'modem'
        option proto 'dhcp'
        option device 'wwan0'

Step 3: Firewall Configuration (/etc/config/firewall)
Configure zones for "modem_zone" and "wan":

config defaults
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option synflood_protect '1'

config zone
        option name 'modem_zone'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list network 'modem'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        list network 'Hotspot_Phone'

Configure forwarding rules:

config forwarding
        option src 'lan'
        option dest 'wan'

config forwarding
        option src 'lan'
        option dest 'modem_zone'

Add a rule to allow Internet access from the "modem" interface:

config rule
        option name 'Allow-Output-Modem'
        option src 'modem_zone'
        option target 'ACCEPT'

Step 4: WiFi Configuration (/etc/config/wireless)
(Optional) If you don't need the Hotspot_Phone interface, you can leave the interface commented out to disable it. You can disable the interface by commenting out the following lines after installing the packages:

#config wifi-iface 'wifinet1'
#       option device 'radio0'
#       option mode 'sta'
#       option network 'Hotspot_Phone'
#       option ssid 'YourWiFiNetwork'
#       option encryption 'psk2'
#       option key 'YourWiFiPassword'

Configure the WiFi interface to broadcast the local network:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/ahb/18100000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

After following these configuration steps, you should have a working Internet connection through the integrated modem and Hotspot_Phone, as well as WiFi broadcasting using the local network (LAN) with the SSID "OpenWrt". You can also disable the Hotspot_Phone or the WiFi network if you don't need them.

Remember to save your configurations after making changes and restart the router for the changes to take effect. Happy configuring!

This is all my config :

/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 'value generated' #will automatic

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.1'

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 switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 4 0t'

config interface 'Hotspot_Phone'
        option proto 'dhcp'

config interface 'modem'
        option proto 'dhcp'
        option device 'wwan0'

/etc/config/firewall

config defaults
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option synflood_protect '1'

config zone
        option name 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list network 'lan'

config zone
        option name 'modem_zone'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list network 'modem'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        list network 'Hotspot_Phone'
        list network 'modem'

config forwarding
        option src 'lan'
        option dest 'wan'

config forwarding
        option src 'lan'
        option dest 'modem_zone'

config rule
        option name 'Allow-Output-Modem'
        option src 'modem_zone'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

/etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/ahb/18100000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'Wifi to share'
        option encryption 'psk2'
        option key 'Your key'

config wifi-iface 'wifinet1'
        option device 'radio0'
        option mode 'sta'
        option network 'Hotspot_Phone'
        option ssid 'My Wifi Hotspot'
        option encryption 'psk2'
        option key 'Key of Hotspot Wifi'
        option disabled '1'

Actually, the protocol is dhcp. This is called an "Ethernet modem" when the driver, modem and LTE connection ultimately present themselves to the kernel networking system as a simple open Ethernet port which responds to DHCP requests to configure an IP address. In this case the name of the port is wwan0 though in other cases such as an external modem or a tethered smartphone it may be usb0 or even ethX where X is a number one higher than the last actual Ethernet port.

The low-level connection to the LTE network is pre-configured somewhere else. From the standpoint of /etc/config/network, it just happens to be connected, so the configuration needs only two simple settings (the device name and the proto dhcp). Any changes to how it connects to the LTE network, if possible at all, must be done with out of band methods such as AT commands.

Thank you for your response and clarification :boom:

After several attempts and failures with qmi: like not obtaining IP while the RX and TX stat is available (I don't know if there is a track to explore), impossibility to connect to the cellular networks (internet is really my operator's APN).

I tested several times with different parameters the wwan0 and it resulted in this :smiling_face_with_tear:.

I would like to point out that this is my first Openwrt router and that I lack experience in the field. I just wanted to have internet as with the default Firmware, and have control over some router features. In any case, impossible for me to go back because I can't find the stock firmware and I didn't make a backup (rookie mistake) :relieved:.

The version I installed is not stable either, no old versions too. Hopefully there will be a more stable version because I would like to successfully install the Openvpn packages for example to have VPN. Still, I was successful with Wireguard even though my main VPN provider has Openvpn instead.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.