The C Source, Patches and (shudder!) Bugs
Post Reply
olga2323
Posts: 4
Joined: Thu Feb 24, 2011 5:09 pm
Contact:

usb_modeswitch_dispatcher cannot run in parallel?

Post by olga2323 » Mon Dec 15, 2014 6:22 pm

Hello Josh,

I do have the problem that plugging multiple modems short after each other (inserting with a script almost in parallel) does not get switched. It seems that usb_modeswitch_dispatcher cannot be run in parrallel or are there other ressources?

Logging is enabled but it rewrites the logfile since it does not contain the interface name as intended?

this is the syslog:

root@ubuntu-pxe:/opt/qosmotec/bin# Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-4.2: new high-speed USB device number 39 using ehci-pci
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-4.2: New USB device found, idVendor=12d1, idProduct=1505
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-4.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-4.2: Product: HUAWEI Mobile
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-4.2: Manufacturer: Huawei Technologies
Dec 16 00:10:10 ubuntu-pxe kernel: usb-storage 1-4.2:1.0: USB Mass Storage device detected
Dec 16 00:10:10 ubuntu-pxe kernel: scsi48 : usb-storage 1-4.2:1.0
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-3.2: new high-speed USB device number 40 using ehci-pci
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-3.2: New USB device found, idVendor=12d1, idProduct=1505
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-3.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-3.2: Product: HUAWEI Mobile
Dec 16 00:10:10 ubuntu-pxe kernel: usb 1-3.2: Manufacturer: Huawei Technologies
Dec 16 00:10:10 ubuntu-pxe kernel: usb-storage 1-3.2:1.0: USB Mass Storage device detected
Dec 16 00:10:10 ubuntu-pxe kernel: scsi49 : usb-storage 1-3.2:1.0
Dec 16 00:10:11 ubuntu-pxe kernel: scsi 48:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Dec 16 00:10:11 ubuntu-pxe kernel: sr0: scsi-1 drive
Dec 16 00:10:11 ubuntu-pxe kernel: sr 48:0:0:0: Attached scsi generic sg0 type 5
Dec 16 00:10:11 ubuntu-pxe usb_modeswitch: switch device 12d1:1505 on 001/040
Dec 16 00:10:11 ubuntu-pxe kernel: usb 1-3.2: USB disconnect, device number 40
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: new high-speed USB device number 41 using ehci-pci
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: New USB device found, idVendor=12d1, idProduct=1506
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: Product: HUAWEI Mobile
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: Manufacturer: Huawei Technologies
Dec 16 00:10:19 ubuntu-pxe kernel: option 1-3.2:1.0: GSM modem (1-port) converter detected
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: GSM modem (1-port) converter now attached to ttyUSB0
Dec 16 00:10:19 ubuntu-pxe kernel: option 1-3.2:1.1: GSM modem (1-port) converter detected
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: GSM modem (1-port) converter now attached to ttyUSB1
Dec 16 00:10:19 ubuntu-pxe kernel: option 1-3.2:1.2: GSM modem (1-port) converter detected
Dec 16 00:10:19 ubuntu-pxe kernel: usb 1-3.2: GSM modem (1-port) converter now attached to ttyUSB2
Dec 16 00:10:19 ubuntu-pxe kernel: qmi_wwan 1-3.2:1.3: cdc-wdm4: USB WDM device
Dec 16 00:10:19 ubuntu-pxe kernel: qmi_wwan 1-3.2:1.3 wwan0: register 'qmi_wwan' at usb-0000:00:1d.7-3.2, WWAN/QMI device, 00:a0:c6:00:00:00
Dec 16 00:10:19 ubuntu-pxe kernel: usb-storage 1-3.2:1.5: USB Mass Storage device detected
Dec 16 00:10:19 ubuntu-pxe kernel: scsi50 : usb-storage 1-3.2:1.5
Dec 16 00:10:19 ubuntu-pxe kernel: usb-storage 1-3.2:1.6: USB Mass Storage device detected
Dec 16 00:10:19 ubuntu-pxe kernel: scsi51 : usb-storage 1-3.2:1.6
Dec 16 00:10:19 ubuntu-pxe usb_modeswitch: switched to 12d1:ffffffff on 001/040
Dec 16 00:10:23 ubuntu-pxe kernel: scsi 50:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Dec 16 00:10:23 ubuntu-pxe kernel: scsi 51:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Dec 16 00:10:23 ubuntu-pxe kernel: sr1: scsi-1 drive
Dec 16 00:10:23 ubuntu-pxe kernel: sr 50:0:0:0: Attached scsi generic sg1 type 5
Dec 16 00:10:23 ubuntu-pxe kernel: sd 51:0:0:0: Attached scsi generic sg2 type 0
Dec 16 00:10:23 ubuntu-pxe kernel: sd 51:0:0:0: [sda] Attached SCSI removable disk
Dec 16 00:10:40 ubuntu-pxe kernel: init: usb-modeswitch-upstart main process (2549) terminated with status 1

See, only 1-3.2 gets switched...

Oh, I just saw your post regarding a similar issue where you had a beta 1.2.1 available (http://www.draisberghof.de/usb_modeswit ... ta.tar.bz2) but it is not available anymore. Did this patch made it to some final version?

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: usb_modeswitch_dispatcher cannot run in parallel?

Post by Josh » Wed Dec 17, 2014 8:18 pm

What package of usb_modeswitch is this? Ubuntu's or the source from here?

Post Reply