Cannot select between MBIM and QMI

root@flasher:~# qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf…
APN: tecno.ts.m2m
APN user: unset
APN password: unset
qmi-proxy: no
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '…
[29 Feb 2024, 15:38:59] -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
Device link layer protocol not retrieved: WDA unsupported
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn=‘safebase.ts.m2m’ --client-no-release-cid '…
[29 Feb 2024, 15:38:59] -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: network start failed, client not allocated

root@flasher:~# 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= 4.19
S: Manufacturer=Linux 4.19.94-ti-r43 musb-hcd
S: Product=MUSB HDRC host driver
S: SerialNumber=musb-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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=0700 Rev= 0.00
S: Manufacturer=Quectel, Incorporated
S: Product=Quectel LPWA Module
S: SerialNumber=50978920
C:* #Ifs= 4 Cfg#= 1 Atr=e0 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= 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=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
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=ff Prot=ff Driver=qmi_wwan_q
E: Ad=85(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Switch to standard MBIM or QMI driver and re-test.

Mar 1 07:54:08 flasher kernel: [233447.801295] usbcore: registered new interface driver qmi_wwan
Mar 1 07:54:15 flasher kernel: [233454.452746] qmi_wwan_q 1-1:1.3: cdc-wdm0: USB WDM device
Mar 1 07:54:15 flasher kernel: [233454.466054] qmi_wwan_q 1-1:1.3: Quectel Quectel LPWA Module work on RawIP mode
Mar 1 07:54:15 flasher kernel: [233454.495341] qmi_wwan_q 1-1:1.3: rx_urb_size = 1520
Mar 1 07:54:15 flasher kernel: [233454.520660] qmi_wwan_q 1-1:1.3 wwan0: register ‘qmi_wwan_q’ at usb-musb-hdrc.1-1, WWAN/QMI device, 8e:f1:81:e5:75:a0

If I switch to satandard driver qmi_wwan I do not get /dev/cdc-wdm0.
Thank you for your time!

There is no “usbnet” for af+qcfg=?
I have read a claim where it should be available at “usbnet”,0, and it would require a newer firmware than my BG95-M1.

at+qcfg=?
+QCFG: “servicedomain”,(1,2),(0,1)
+QCFG: “band”,(0),(0-0x100002000000000F0E189F),(0),(0,1)
+QCFG: “bandrestore”
+QCFG: “urc/ri/ring”,(“off”,“pulse”,“always”,“auto”,“wave”),(1-2000),(1-10000),(1-10000),(“off”,“on”),(1-5)
+QCFG: “urc/ri/smsincoming”,(“off”,“pulse”,“always”),(1-2000),(1-5)
+QCFG: “urc/ri/other”,(“off”,“pulse”),(1-2000),(1-5)
+QCFG: “risignaltype”,(“respective”,“physical”)
+QCFG: “urc/delay”,(0,1)
+QCFG: “ledmode”,(0,1,3)
+QCFG: “gpio”,,[,[,,]/[][,]]
+QCFG: “airplanecontrol”,(0,1)
+QCFG: “cmux/urcport”,(0-4)
+QCFG: “apready”,(0,1),(0,1),(100-3000)
+QCFG: “nccconf”,(0-1FF)
+QCFG: “psm/enter”,(0,1)
+QCFG: “psm/urc”,(0,1)
+QCFG: “simeffect”,(0,1)
+QCFG: “lapiconf”,(0-2),(0,1)
+QCFG: “snrscan”[,(0-2)]
+QCFG: “uartcfg”,(0-15)
+QCFG: “nasconfig”,(0-7FFF)
+QCFG: “irat/timer”,(5-300),(5-20)
+QCFG: “bip/auth”,(0-3)
+QCFG: “timer”,(3402)
+QCFG: “timeupdate”,(0,1)
+QCFG: “emmcause”[,(0,1)]
+QCFG: “sibinfo”
+QCFG: “emmtimer”
+QCFG: “msclass”[,((1-18)|(30-34)),(1-34)]
+QCFG: “fgiconfig”[,(0-FFFFFFFF)]
+QCFG: “sim/onchip”[,(0,1)[,(0,1)]]
+QCFG: “cmux/signal”,(26,49),(0,1),(0,1)
+QCFG: “timesave”,(0-2)
+QCFG: “msc”,(0-2)
+QCFG: “sgsn”,(0-2)
+QCFG: “lte/bandprior”,(1-43),(1-43),(1-43)
+QCFG: “cmux/flowctrl”,(0,1)
+QCFG: “fast/poweroff”,,(0,1)
+QCFG: “dbgctl”,(0-2)

I think this is the first time you mentioned the model name, so forget about QMI. ECM seems to be the only choice.
Check AT+QCFGEXT=? instead.

You are right, I did not mention the model

AT+QGMR
BG95M1LAR02A04_01.008.01.008

Hi Frode,

I am facing very similar issue, did you get any solution ?

regards
KK