Which Quectel modem are you using now?
For almost all the opensource program, such as libqmi and ModemManager, it does not suppot the Quectel qmi_wwan_q. Please just try the qmi_wwan, the intree driver.
Using standard driver won’t work, because with standard driver (qmi_wwan.ko) my modem EM05 is not getting registered, whereas with quectel provided driver qmi_wwan_q.ko it works.
[ 154.507694] qmi_wwan_q 1-1:1.4: cdc-wdm0: USB WDM device
[ 154.519444] qmi_wwan_q 1-1:1.4: Quectel Quectel EM05-G work on RawIP mode
[ 154.529753] qmi_wwan_q 1-1:1.4: rx_urb_size = 1520
[ 154.537290] qmi_wwan_q 1-1:1.4 wwan0: register ‘qmi_wwan_q’ at usb-xhci-hcd.1.auto-1, WWAN/QMI Raw IP device, 0a:da:8b:a5:8b:3e
Manually add it to the option driver (using echo vid pid … new_id) and switch it to MBIM.
MBIM driver will pick it up by Class and SubClass and not by vid:pid.
It is about completely different modem and it is answered.
Thanks for the information applying the patch to qmi_wwan.c file alone solved the issue, i did the changes a week ago but since the forum site was down i couldn’t revert.
After applying the patch, dmesg log:
[ 8630.011473] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 8630.201769] usb 1-1: New USB device found, idVendor=2c7c, idProduct=030e, bcdDevice= 3.18
[ 8630.210619] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8630.218660] usb 1-1: Product: Quectel EM05-G
[ 8630.223755] usb 1-1: Manufacturer: Quectel
root@picv6-1:/home/sdk/kernel-4.19.x# [ 8630.391274] option 1-1:1.0: GSM modem (1-port) converter detected
[ 8630.399387] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 8630.409736] option 1-1:1.1: GSM modem (1-port) converter detected
[ 8630.418337] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 8630.427923] option 1-1:1.2: GSM modem (1-port) converter detected
[ 8630.436556] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 8630.446645] option 1-1:1.3: GSM modem (1-port) converter detected
[ 8630.455171] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 8630.520634] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[ 8630.533770] qmi_wwan 1-1:1.4 wwan0: register ‘qmi_wwan’ at usb-xhci-hcd.1.auto-1, WWAN/QMI device, 86:12:0a:29:a6:bc
Quectel command utilities o/p after applying the patch
root@picv6-1:/home/sdk/kernel-4.19.x# qmi-network /dev/cdc-wdm0 start
Profile at ‘/etc/qmi-network.conf’ not found…
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '…
Device link layer protocol retrieved: raw-ip
Getting expected data format with ‘qmicli -d /dev/cdc-wdm0 --get-expected-data-format’…
Expected link layer protocol retrieved: 802-3
Updating kernel link layer protocol with ‘qmicli -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip’…
Kernel link layer protocol updated
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network= --client-no-release-cid '…
Saving state at /tmp/qmi-network-state-cdc-wdm0… (CID: 6)
Saving state at /tmp/qmi-network-state-cdc-wdm0… (PDH: 2261731792)
Network started successfully