Help needed with using an LTE 4G ZTE MF821 modem

I have gotten ZTE MF821(branded Cyfrowy Polsat) in hopes of using it on my x86_64 device to make it into an LTE internet access point. The modem is recognized and modeswitched, a new wwan0 interface pops up but it doesn't get a WWAN connection even after creating a new interface in LuCI and adding it to wan firewall zone. I have tried to send AT commands to it and it responds to AT command with "OK" but throws "ERROR" when I pass AT+QCFG="usbnet" and related commands.

were you following https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle ?

post output of cat /sys/kernel/debug/usb/devices too.

Yes, I followed it up until AT+QCFG="usbnet" command as sending that command to the modem resulted in "ERROR"
Here's the output of /sys/kernel/debug/usb/devices where the modem is mentioned:

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0167 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE LTE Technologies MSM
S:  SerialNumber=MF821_FFFS111111
C:* #Ifs= 6 Cfg#= 1 Atr=c0 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=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=86(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

As written in the wiki, these are manufacturer-specific commands for Quectel.
Since you have the required interfaces, you don't need to further change the modem's composition.

Show your interface configuration as a fragment of /etc/config/network and the output of at+cgdcont? from the modem.

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

The at+cgdcont? command outputs ERROR

Use IP until you're 100% sure that dual stack is supported by your carrier. Someone removed my warning from the wiki.

Make sure you use the right ttyUSB

2 Likes

Some carriers don't like auth none. Use PAP or CHAP with text like literally 'xxxx' for username and password. They don't actually check the credentials but it has to go through the steps of authentication.

Any entries in the system log from the QMI driver? Does device /dev/cdc-wdm0 actually exist?

1 Like

I set pdptype to IP and set auth to PAP/CHAP with 'xxxx' for username and password and it works!

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