GL-A1300 + usb 4G EP06 not working in qmi mode

I installed a usb stick with EP06-E. I wanted to have 4g support on this modem but saw that it doesn’t work in qmi mode. While if I use it on 3G, it works fine…

The strange thing is that I see both ipv4 and dns assigned by my provider but udhcp can’t open the wwan0.

I state that the stick, on ubunu I tested it with qmicli and it works correctly.

This is what I get in my AC1300:

root@GL-A1300:/lib/netifd/proto# ./qmi.sh qmi setup modem_1_1 '{"device":"/dev/cdc-wdm0","proto":"qmi","apn":"web.kenamobile.it"}'
Waiting for SIM initialization
Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Waiting for network registration
Starting network modem_1_1
Setting up wwan0
root@GL-A1300:/lib/netifd/proto# uqmi -d /dev/cdc-wdm0 --get-current-settings
{
	"pdp-type": "ipv4",
	"ip-family": "ipv4",
	"mtu": 1500,
	"ipv4": {
		"ip": "10.245.213.157",
		"dns1": "217.200.201.73",
		"dns2": "217.200.201.72",
		"gateway": "10.245.213.158",
		"subnet": "255.255.255.252"
	},
	"ipv6": {
		
	},
	"domain-names": {
		
	}
}

root@GL-A1300:/lib/netifd/proto# udhcpc -q -f -i wwan0
udhcpc: started, v1.33.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
^C
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1 (14849): Stopping network modem_1_1
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1_4 (4964): udhcpc: received SIGTERM
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1_4 (4964): udhcpc: entering released state
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1_4 (4964): Command failed: Permission denied
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Interface 'modem_1_1_4' is now down
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Network alias '' link is down
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Interface 'modem_1_1_4' has link connectivity loss
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Interface 'modem_1_1_4' is disabled
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1 (14849): Command failed: Permission denied
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Interface 'modem_1_1' is now down
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Interface 'modem_1_1' is setting up now
Mon Apr 24 02:15:24 2023 daemon.notice netifd: Network device 'wwan0' link is down
Mon Apr 24 02:15:24 2023 daemon.notice netifd: modem_1_1 (14941): Waiting for SIM initialization
Mon Apr 24 02:15:25 2023 user.notice mwan3[14847]: Execute ifdown event on interface modem_1_1 (unknown)
Mon Apr 24 02:15:25 2023 daemon.notice netifd: modem_1_1 (14941): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Mon Apr 24 02:15:26 2023 daemon.notice netifd: modem_1_1 (14941): Waiting for network registration
Mon Apr 24 02:15:26 2023 user.notice firewall: Reloading firewall due to ifdown of modem_1_1 ()
Mon Apr 24 02:15:26 2023 user.info mwan3track[8818]: Detect ifdown event on interface modem_1_1 (wwan0)
Mon Apr 24 02:15:27 2023 daemon.notice netifd: modem_1_1 (15511): Stopping network modem_1_1
Mon Apr 24 02:15:27 2023 daemon.notice netifd: modem_1_1 (15511): Command failed: Permission denied
Mon Apr 24 02:15:27 2023 daemon.notice netifd: Interface 'modem_1_1' is now down
Mon Apr 24 02:15:28 2023 user.notice mwan3[15518]: Execute ifdown event on interface modem_1_1 (unknown)
Mon Apr 24 02:15:28 2023 user.info mwan3track[8818]: Detect ifdown event on interface modem_1_1 (wwan0)
Mon Apr 24 02:15:28 2023 user.notice mwan3track[8818]: Interface modem_1_1 (wwan0) is offline
Mon Apr 24 02:15:29 2023 user.notice firewall: Reloading firewall due to ifdown of modem_1_1 ()
Mon Apr 24 02:15:30 2023 daemon.notice netifd: Interface 'modem_1_1' is setting up now
Mon Apr 24 02:15:30 2023 daemon.notice netifd: modem_1_1 (15984): Waiting for SIM initialization
Mon Apr 24 02:15:31 2023 daemon.notice netifd: modem_1_1 (15984): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Mon Apr 24 02:15:31 2023 daemon.notice netifd: modem_1_1 (15984): Waiting for network registration
Mon Apr 24 02:15:33 2023 daemon.notice netifd: modem_1_1 (15984): Starting network modem_1_1
Mon Apr 24 02:15:33 2023 daemon.notice netifd: modem_1_1 (15984): Setting up wwan0
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Interface 'modem_1_1' is now up
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Network device 'wwan0' link is up
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Network alias 'wwan0' link is up
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Interface 'modem_1_1_4' is enabled
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Interface 'modem_1_1_4' has link connectivity
Mon Apr 24 02:15:33 2023 daemon.notice netifd: Interface 'modem_1_1_4' is setting up now
Mon Apr 24 02:15:33 2023 daemon.notice netifd: modem_1_1_4 (16252): udhcpc: started, v1.33.2
Mon Apr 24 02:15:33 2023 daemon.notice netifd: modem_1_1_4 (16252): udhcpc: sending discover
Mon Apr 24 02:15:34 2023 user.notice mwan3[16231]: Execute ifup event on interface modem_1_1 (wwan0)
Mon Apr 24 02:15:35 2023 user.notice mwan3[16231]: Starting tracker on interface modem_1_1 (wwan0)
Mon Apr 24 02:15:36 2023 user.notice mwan3track[8818]: Stopping mwan3track for interface "modem_1_1"
Mon Apr 24 02:15:37 2023 daemon.notice netifd: modem_1_1_4 (16252): udhcpc: sending discover
Mon Apr 24 02:15:37 2023 user.info mwan3rtmon[6186]: Detect rtchange event.
Mon Apr 24 02:15:38 2023 user.notice firewall: Reloading firewall due to ifup of modem_1_1 (wwan0)
Mon Apr 24 02:15:40 2023 daemon.notice netifd: modem_1_1_4 (16252): udhcpc: sending discover
Mon Apr 24 02:16:13 2023 user.notice mwan3[18400]: Execute ifdown event on interface modem_1_1 (wwan0)
Mon Apr 24 02:16:14 2023 user.notice firewall: Reloading firewall due to ifdown of modem_1_1 (wwan0)
Mon Apr 24 02:16:15 2023 user.info mwan3track[16607]: Detect ifdown event on interface modem_1_1 (wwan0)
Mon Apr 24 02:16:20 2023 user.notice mwan3track[16607]: Interface modem_1_1 (wwan0) is offline

Do the following file nodes exist on your device?
/sys/class/net/wwan0/qmi/raw_ip

Yes

root@GL-A1300:~# cat /sys/class/net/wwan0/qmi/raw_ip                               Y
root@GL-A1300:~#
root@GL-A1300:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2c7c ProdID=0306 Rev= 3.10                                              S:  Manufacturer=Quectel
S:  Product=EP06-E
S:  SerialNumber=0123456789ABCDEF
C:* #Ifs= 5 Cfg#= 1 Atr=a0 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


I tried to do the manual procedure… nothing

root@GL-A1300:~# dmesg
......
......
......
......
......
......
[  195.769705] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[  196.106443] option 1-1:1.0: GSM modem (1-port) converter detected
[  196.106853] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[  196.112459] option 1-1:1.1: GSM modem (1-port) converter detected
[  196.118852] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[  196.125238] option 1-1:1.2: GSM modem (1-port) converter detected
[  196.131796] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[  196.138090] option 1-1:1.3: GSM modem (1-port) converter detected
[  196.144493] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[  196.170176] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[  196.170232] qmi_wwan 1-1:1.4: QuectelEC25&EC21&EG91&EG95&EG06&EP06&EM06&BG96&AG35 work on RawIP mode
[  196.176664] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.0.auto-1, WWAN/QMI device, 96:6b:7e:76:76:ce

root@GL-A1300:~# cat /sys/class/net/wwan0/qmi/raw_ip
N
root@GL-A1300:~# echo Y > /sys/class/net/wwan0/qmi/raw_ip
root@GL-A1300:~# uqmi -d /dev/cdc-wdm0 --get-data-status
"disconnected"
root@GL-A1300:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
        "type": "lte",
        "rssi": -55,
        "rsrq": -8,
        "rsrp": -85,
        "snr": 42
}
root@GL-A1300:~# uqmi -s -d /dev/cdc-wdm0 --get-client-id wds
20
root@GL-A1300:~# uqmi -d /dev/cdc-wdm0 --set-client-id wds,20 --start-network web.kenamobile.it
947168208
root@GL-A1300:~# uqmi -d /dev/cdc-wdm0 --get-data-status
"connected"
root@GL-A1300:~# uqmi -d /dev/cdc-wdm0 --get-current-settings
{
        "pdp-type": "ipv4",
        "ip-family": "ipv4",
        "mtu": 1500,
        "ipv4": {
                "ip": "10.217.84.65",
                "dns1": "217.200.201.73",
                "dns2": "217.200.201.72",
                "gateway": "10.217.84.66",
                "subnet": "255.255.255.252"
        },
        "ipv6": {

        },
        "domain-names": {

        }
}
root@GL-A1300:~# udhcpc -q -f -n -i wwan0
udhcpc: started, v1.33.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing

root@GL-A1300:~# ip a
.........
10: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/none
root@GL-A1300:~#

I think you should comment the relevant code in qmi.sh first, then try Y or N and re-setup the qmi protocol.
Also, I remember a similar fix in the latest 4.2.1 version, you can try it, preferably without save the configuration upgrade

I tried to install the beta version too but it still doesn’t work. I wonder why the model that has EP06-e works correctly and this, if I insert ep06 usb doesn’t work.
if so I return the gl-1300 router to amazon.

I just received the update to version 4.2.1 and it fixed my problem without doing anything!

now, EP06-E also works perfectly with USB.