Two cdc-wdm from two Sierra Wireless cards on same wwan

Dan Williams dcbw at redhat.com
Tue May 10 16:43:35 UTC 2016


On Tue, 2016-05-10 at 10:17 +0000, quentin.dore at orange.com wrote:
> Hello,
> 
> I have sometimes an issue during the association cdc-wdm/wwan.

Is the issue that the names of the devices switch around sometimes
between boots?

If that's the case, that's just how Linux and USB work; devices have
variable startup/probing time and you can never be sure which device
will enumerate first.  The kernel simply assigns 'wwan0' to whichever
device is first and wwan1 to the next one.

udev attempts to work around this by renaming devices based on the pci
and USB bus topology to something like wwp0s20u4, which is stable
across reboots.

There are ways to figure out which wwan device corresponds to which WDM
device though, which mostly involve trawling through sysfs or asking
udev for that information.  You can, for example:

# ls /sys/class/usbmisc/cdc-wdm0/device/net/
wwp0s20u4
#

and the only entry in that directory should be the corresponding WWAN
network interface directory.

Or am I mis-understanding the issue?  Let me know...

Dan

> I work with kernel 4.1.10, Debian 7.9 and two Sierra Wireless cards
> MC7304.
> Firmware for sierra cards is : SWI9X15C_05.05.58.00 r27038 carmd-
> fwbuild1 2015/03/04 21:30:23.
> 
> MC7304 are configured to expose only one cdc-wdm interface (but the
> issue is also seen with configuration 7 and two cdc-wdm for each
> card) :
> 
> AT!UDUSBCOMP?
> !UDUSBCOMP: 6
> AT!UDUSBCOMP=?
> ...
> 6             -
> DM      NMEA   AT          QMI                                       
>                                               SUPPORTED
> 7             -
> DM      NMEA   AT          RMNET1              RMNET2              RM
> NET3              SUPPORTED
> ...
> 
> During boot, the second card is linked to wwan0 instead of wwan1 :
> 
> [    4.438764] usb 1-1.4.2: new high-speed USB device number 6 using
> ehci-pci
> [    4.533405] usb 1-1.4.2: config 1 has an invalid interface number:
> 8 but max is 3
> [    4.533413] usb 1-1.4.2: config 1 has no interface number 1
> [    4.534973] usb 1-1.4.2: New USB device found, idVendor=1199,
> idProduct=68c0
> [    4.534981] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [    4.534986] usb 1-1.4.2: Product: MC7304
> [    4.534991] usb 1-1.4.2: Manufacturer: Sierra Wireless,
> Incorporated
> [    4.549452] usbcore: registered new interface driver usbserial
> [    4.549484] usbcore: registered new interface driver
> usbserial_generic
> [    4.549540] usbserial: USB Serial support registered for generic
> [    4.556272] usbcore: registered new interface driver option
> [    4.556624] usbserial: USB Serial support registered for GSM modem
> (1-port)
> [    4.557058] option 1-1.4.2:1.0: GSM modem (1-port) converter
> detected
> [    4.557605] usb 1-1.4.2: GSM modem (1-port) converter now attached
> to ttyUSB0
> [    4.557687] option 1-1.4.2:1.2: GSM modem (1-port) converter
> detected
> [    4.558070] usb 1-1.4.2: GSM modem (1-port) converter now attached
> to ttyUSB1
> [    4.558423] option 1-1.4.2:1.3: GSM modem (1-port) converter
> detected
> [    4.559119] usb 1-1.4.2: GSM modem (1-port) converter now attached
> to ttyUSB2
> [    4.577940] usbcore: registered new interface driver cdc_wdm
> [    4.583464] qmi_wwan 1-1.4.2:1.8: cdc-wdm0: USB WDM device
> [    4.583971] qmi_wwan 1-1.4.2:1.8 wwan0: register 'qmi_wwan' at
> usb-0000:00:1d.0-1.4.2, WWAN/QMI device, d2:8d:ab:fb:d6:15
> [    4.584372] usbcore: registered new interface driver qmi_wwan
> [    9.858728] usb 1-1.4.4: new high-speed USB device number 8 using
> ehci-pci
> [    9.951664] usb 1-1.4.4: config 1 has an invalid interface number:
> 8 but max is 3
> [    9.951676] usb 1-1.4.4: config 1 has no interface number 1
> [    9.952401] usb 1-1.4.4: New USB device found, idVendor=1199,
> idProduct=68c0
> [    9.952412] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [    9.952420] usb 1-1.4.4: Product: MC7304
> [    9.952427] usb 1-1.4.4: Manufacturer: Sierra Wireless,
> Incorporated
> [    9.953521] option 1-1.4.4:1.0: GSM modem (1-port) converter
> detected
> [    9.953791] usb 1-1.4.4: GSM modem (1-port) converter now attached
> to ttyUSB3
> [    9.954114] option 1-1.4.4:1.2: GSM modem (1-port) converter
> detected
> [    9.954382] usb 1-1.4.4: GSM modem (1-port) converter now attached
> to ttyUSB4
> [    9.954751] option 1-1.4.4:1.3: GSM modem (1-port) converter
> detected
> [    9.955121] usb 1-1.4.4: GSM modem (1-port) converter now attached
> to ttyUSB5
> [    9.955902] qmi_wwan 1-1.4.4:1.8: cdc-wdm1: USB WDM device
> [    9.956448] qmi_wwan 1-1.4.4:1.8 wwan0: register 'qmi_wwan' at
> usb-0000:00:1d.0-1.4.4, WWAN/QMI device, d2:8d:ab:fb:d6:15
> 
> More information:
> 
> ls -l /sys/class/net/wwan*
> lrwxrwxrwx 1 root root 0 mai   10 11:18 /sys/class/net/wwan0 ->
> ../../devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.4/1-1.4.4/1-
> 1.4.4:1.8/net/wwan0
> 
> ls -l /sys/class/usbmisc/cdc-wdm*
> lrwxrwxrwx 1 root root 0 mai   10 11:18 /sys/class/usbmisc/cdc-wdm0
> -> ../../devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.4/1-1.4.2/1-
> 1.4.2:1.8/usbmisc/cdc-wdm0
> lrwxrwxrwx 1 root root 0 mai   10 11:18 /sys/class/usbmisc/cdc-wdm1
> -> ../../devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.4/1-1.4.4/1-
> 1.4.4:1.8/usbmisc/cdc-wdm1
> 
> I really have no idea what the problem is.
> Another information : this is only seen when SIM cards and antennas
> (for both MC7304) are inserted and plugged.
> 
> Thanks for your help.
> 
> _____________________________________________________________________
> ____________________________________________________
> 
> Ce message et ses pieces jointes peuvent contenir des informations
> confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous
> avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les
> messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere,
> deforme ou falsifie. Merci.
> 
> This message and its attachments may contain confidential or
> privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender
> and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have
> been modified, changed or falsified.
> Thank you.
> 
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel


More information about the libqmi-devel mailing list