Qmi commands not working on EC25 module

Hi

I’m using EC25 module on apalis imx6,configured kernel according to instructions. the serial ports ttyUSB0-3, wwan0 and cdc-wdm0 devices are created.

Kernel version:
root@apalis-imx6:~# uname -r
5.4.47-26854-g0fad2c15053e-dirty

I’m able to get IP address and able to ping google.com with Quectel-CM.

But qmicli commands are not working,unexpected driver detected error message showing.

root@apalis-imx6:~# qmicli -d /dev/cdc-wdm0 --dms-get-manufacturer
[07 Feb 2020, 16:39:13] -Warning ** [/dev/cdc-wdm0] couldn’t detect transport type of port: unexpected driver detected: qmi_wwan_q
error: couldn’t open the QmiDevice: Cannot automatically select QMI/MBIM mode

root@apalis-imx6:~# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Feb 7 16:01 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Feb 7 16:01 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Feb 7 16:01 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 3 Feb 7 16:01 /dev/ttyUSB3
root@apalis-imx6:~# lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 5, If 0, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 2: Dev 5, If 1, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 2: Dev 5, If 2, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 2: Dev 5, If 3, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 2: Dev 5, If 4, Class=Vendor Specific Class, Driver=qmi_wwan_q, 480M

Please help me on this.

Thanks in advance

try to add --device-open-qmi - Open a cdc-wdm device explicitly in QMI mode

Thank you jfrog.

After adding “–device-open-qmi” to qmicli commands it is working fine.Why auto detection is not happening?

qmi-network commands are not working
Below is command and response for qmi-network status

qmi-network /dev/cdc-wdm0 status
Loading profile at /etc/qmi-network.conf…
APN: jionet
APN user: unset
APN password: unset
qmi-proxy: no
Getting status with 'qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status '…
[05 Nov 2020, 11:08:22] -Warning ** [/dev/cdc-wdm0] couldn’t detect transport type of port: unexpected driver detected: qmi_wwan_q
error: couldn’t open the QmiDevice: Cannot automatically select QMI/MBIM mode
error: couldn’t get packet service status