Quectel-cm error

just ran the Quectel-cm after not having done so in awhile and got the following:

hairpi@hairpi:~/Quectel_QConnectManager_Linux $ sudo ./quectel-CM

[04-18_13:37:02:886] QConnectManager_Linux_V1.6.7

[04-18_13:37:02:887] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x004

[04-18_13:37:02:888] Auto find qmichannel = /dev/cdc-wdm0

[04-18_13:37:02:888] Auto find usbnet_adapter = wwan0

[04-18_13:37:02:888] netcard driver = qmi_wwan, driver version = 6.12.20+rpt-rpi-v8

[04-18_13:37:02:888] unsupport software_interface 1

HELP

Please check
AT+QCFG="usbnet"
and lsusb -t

The same problem here.

root@xxx:/data/home/root# quectel-CM
[03-13_13:46:59:404] QConnectManager_Linux_V1.6.7
[03-13_13:46:59:413] Find /sys/bus/usb/devices/1-1 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x002
[03-13_13:46:59:419] Auto find qmichannel = /dev/cdc-wdm0
[03-13_13:46:59:420] Auto find usbnet_adapter = wwan0
[03-13_13:46:59:421] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[03-13_13:46:59:423] unsupport software_interface 1

root@xxx:/data/home/root# quectel-CM -v
[03-13_13:59:55:528] QConnectManager_Linux_V1.6.7
[03-13_13:59:55:532] (/sys/bus/usb/devices/1-1/idVendor) = 2c7c
[03-13_13:59:55:534] (/sys/bus/usb/devices/1-1/idProduct) = 125
[03-13_13:59:55:536] (/sys/bus/usb/devices/1-1/busnum) = 1
[03-13_13:59:55:537] (/sys/bus/usb/devices/1-1/devnum) = 2
[03-13_13:59:55:539] (/sys/bus/usb/devices/1-1/bNumInterfaces) = 5
[03-13_13:59:55:543] Find /sys/bus/usb/devices/1-1 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x002
[03-13_13:59:55:546] (/sys/bus/usb/devices/1-1:1.4/bNumEndpoints) = 3
[03-13_13:59:55:547] (/sys/bus/usb/devices/1-1:1.4/bInterfaceClass) = ff
[03-13_13:59:55:549] (/sys/bus/usb/devices/1-1:1.4/bInterfaceSubClass) = ff
[03-13_13:59:55:550] (/sys/bus/usb/devices/1-1:1.4/bInterfaceProtocol) = ff
[03-13_13:59:55:551] driver → ../../../../../../../../../bus/usb/drivers/qmi_wwan
[03-13_13:59:55:553] /sys/bus/usb/devices/1-1:1.4/usbmisc
[03-13_13:59:55:555] Auto find qmichannel = /dev/cdc-wdm0
[03-13_13:59:55:556] Auto find usbnet_adapter = wwan0
[03-13_13:59:55:556] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[03-13_13:59:55:557] unsupport software_interface 1

The requested outputs are:

+QCFG_ “usbnet”,0

and

root@xxx:/sys/class/net# lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 001: Dev 003, If 0, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 001: Dev 003, If 1, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 001: Dev 003, If 2, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 001: Dev 003, If 3, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 001: Dev 003, If 4, Class=Communications, Driver=[none], 480M
|__ Port 001: Dev 003, If 5, Class=CDC Data, Driver=[none], 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ci_hdrc/1p, 480M
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/3p, 480M

uname -a
Linux 5.4.278-rt91

Just from the log, it seems that the modem is not in rmnet mode.
Maybe it need a restart.

It is restarted every time it is unplugged and repowered, isn’t it?
It ist an miniPCI-Card attached on an USB - miniPCI-Adapter. An SIM is not yet equipped.

[03-13_13:46:59:423] unsupport software_interface 1

it means that it is not in rmnet mode.

AT+QCFG=“usbnet”
results in
+QCFG: “usbnet”,0

AT+QCFG=“usbnet”,1
results in
OK

AT+CFUN=1,1
afterwards results in
+CME ERROR: 3

So i am not even able to switch to another mode than 0 (QMI or RMNET mode).

AT+QCFG=“usbnet”,0
And restart the module, and then check it again.

Still the same.

ATI
results in:
Quectel
EC25
Revision: EC25EFAR06A11M4G

Is anything else to do than enable the following kernel config options?
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_NET_QMI_WWAN=y

It has nothing to do with the kernel driver. The driver qmi_wwan is already and it should be working.
The problem is the modem seems not configured correctly.

Please check
cat /sys/kernel/deug/usb/devices

root@xxx:/data/home/root# 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.04
S: Manufacturer=Linux 5.4.278-rt91.ksp0619 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=ci_hdrc.0
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.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=0125 Rev= 3.18
S: Manufacturer=Android
S: Product=Android
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

T: Bus=02 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.04
S: Manufacturer=Linux 5.4.278-rt91.ksp0619 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=ci_hdrc.1
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=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.04
S: Manufacturer=Linux 5.4.278-rt91.ksp0619 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=ci_hdrc.2
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=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 3
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=02 MxPS=64 #Cfgs= 1
P: Vendor=0424 ProdID=3503 Rev=a1.a0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=01 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
I:* If#= 0 Alt= 1 #EPs= 1 Cls=09(hub ) Sub=00 Prot=02 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

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=0125 Rev= 3.18
S: Manufacturer=Android
S: Product=Android
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

In this case, please run the quectel-CM again.

As nothing has changed, the output is still the same:

[03-16_10:30:18:294] QConnectManager_Linux_V1.6.7
[03-16_10:30:18:300] Find /sys/bus/usb/devices/1-1 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x002
[03-16_10:30:18:306] Auto find qmichannel = /dev/cdc-wdm0
[03-16_10:30:18:308] Auto find usbnet_adapter = wwan0
[03-16_10:30:18:311] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[03-16_10:30:18:312] unsupport software_interface 1

Is there a Firmware-Update for the device?

From the source of questel-cm:

if (profile->software_interface == SOFTWARE_ECM_RNDIS_NCM) {
    dbg_time("Modem works in ECM_RNDIS_NCM mode");
    profile->request_ops = &atc_request_ops;
    profile->qmi_ops = &atc_dev_ops;
    ret = qmi_main(profile);
}
else {
    dbg_time("unsupport software_interface %d", profile->software_interface);
}

So RNDIS ( AT+QCFG=“usbnet”,3 ) is the right setting?

I do not have the qmi_wwan_q.c file yet. Can you send it?

No. It only support usbnet 0 and 2.