klaus.holst.jacobsen
Posts: 2
Joined: Sat Feb 21, 2015 10:20 am

Huawei E372 loading qmi/wdm driver

Tue Dec 15, 2015 8:21 am

Hello
I have a E372 USB modem.
I am setting up 3G connectivity with modemmanager.

I believe I have everything regarding mode-switch set-up properly.

I do however experience some difficulty loading the wdm drivers.
It seems that on approximately every other boot the modem will appear as a cdc-wdm device or else a generic modem device.
If it loads the wdm driver properly I can indeed set-up a wdm connection and get that going. And if it appears simply as ttyUSB2 I can set-up a conventional ppp connection and get that going.

I am however puzzled by the seemingly randomness in whether the wdm driver get loaded properly or not.

Here's my dmesg output from when it appears as a "generic" modem:

Code: Select all

[   15.595564] sd 3:0:0:0: [sda] Attached SCSI removable disk
[   16.466843] usbcore: registered new interface driver cdc_wdm
[   16.471369] usbcore: registered new interface driver usbserial
[   16.471479] usbcore: registered new interface driver usbserial_generic
[   16.471554] usbserial: USB Serial support registered for generic
[   16.697792] usbcore: registered new interface driver option
[   16.697920] usbserial: USB Serial support registered for GSM modem (1-port)
[   16.698512] option 1-1.4:1.0: GSM modem (1-port) converter detected
[   16.699889] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[   16.700199] option 1-1.4:1.3: GSM modem (1-port) converter detected
[   16.700974] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[   16.701072] option 1-1.4:1.4: GSM modem (1-port) converter detected
[   16.701606] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[   16.710833] option 1-1.4:1.1: GSM modem (1-port) converter detected
[   16.711794] option 1-1.4:1.2: GSM modem (1-port) converter detected
[   16.712898] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB4
[   18.018400] usbcore: registered new interface driver qmi_wwan
[   43.861150] PPP generic driver version 2.4.2
[   43.918391] PPP BSD Compression module registered
[   43.931422] PPP Deflate Compression module registered
Here's when it loads the wdm driver:

Code: Select all

[   15.593257] sd 3:0:0:0: [sda] Attached SCSI removable disk
[   15.594265] sr 2:0:0:0: Attached scsi generic sg1 type 5
[   15.614113] usbcore: registered new interface driver cdc_wdm
[   15.621771] usbcore: registered new interface driver usbserial
[   15.621924] usbcore: registered new interface driver usbserial_generic
[   15.622034] usbserial: USB Serial support registered for generic
[   16.050995] usbcore: registered new interface driver option
[   16.051096] usbserial: USB Serial support registered for GSM modem (1-port)
[   16.051670] option 1-1.4:1.0: GSM modem (1-port) converter detected
[   16.052231] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[   16.052527] option 1-1.4:1.3: GSM modem (1-port) converter detected
[   16.052920] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[   16.053005] option 1-1.4:1.4: GSM modem (1-port) converter detected
[   16.053432] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[   16.054896] qmi_wwan 1-1.4:1.1: cdc-wdm0: USB WDM device
[   16.057809] qmi_wwan 1-1.4:1.1 wwan0: register 'qmi_wwan' at usb-3f980000.usb-1.4, WWAN/QMI device, 8e:12:03:69:82:b0
[   16.058117] usbcore: registered new interface driver qmi_wwan
"nmcli -p dev status" will give me either:

Code: Select all

cdc-wdm0  gsm       connected  3g  
or:

Code: Select all

ttyUSB2  gsm       connected  3g         
ppp0     unknown   connected  ppp0       
So, the question is, is there a way to ensure proper loading of the wdm driver every time.
I would prefer not to use ppp.

Regards
Klaus

Return to “Troubleshooting”