No driver assigned to a usb device (modeswitching?)

It's about a usb connected lte modem:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=156a Rev= 1.02
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Note: no driver is attached.
however this seems to look ok:

root@OpenWrt:~# lsmod|grep usb
ledtrig_usbport        12288  0 
mii                    16384  1 usbnet
nls_base               12288  1 usbcore
usb_common             12288  3 xhci_plat_hcd,xhci_hcd,usbcore
usb_wwan               12288  1 option
usbcore               155648 14 option,cdc_mbim,usb_wwan,qmi_wwan,cdc_ncm,cdc_ether,usbserial,usbnet,cdc_wdm,ledtrig_usbport,xhci_plat_hcd,xhci_pci,xhci_mtk_hcd,xhci_hcd
usbnet                 24576  4 cdc_mbim,qmi_wwan,cdc_ncm,cdc_ether
usbserial              24576  2 option,usb_wwan

I noted that on my desktop the thing is reported with a different ProdID=156c (above it's ProdID=156a). Am I missing some usb modeswitching?

I'm a bit puzzled, as this has been working until very recently (i.e. until I came back from holidays and found it not working :D).

Yes. You either use usb-modeswitch all the time or permanently switch the modem to a working composition once.

Thanks, I added usb-modeswitch to my build and I got ProdID=156c as needed.

How do I permanently switch the modem though? could you elaborate on this? (and what do you mean by composition?)

And there's one more question -- why did it work before (it switched itself?)

Depends on the modem firmware and/or your ability to get unrestricted access to NVRAM.
10+ years ago the command to use was at^setport

set of interfaces exposed by the modem

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