Re: USB modem interface not detected sometimes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2014-08-01 at 21:44 +0530, Rahul Bedarkar wrote:
> Hi,
> 
> I have USB modem which has also support for micro SD card.
> 
> With kernel version 3.15 and later, I am facing a issue with modem
> interface detection. When I connect it first time only storage
> interface is detected. I had to disconnect it and reconnect it again.
> 
> This issue is not seen with kernel version 3.11.
> 
> Following are dmesg logs with version 3.15
> 
> After USB modem attached first time

The device is actually switched from "fake CD" mode to modem mode by
usb_modeswitch, and it appears that usb_modeswitch is failing to do that
here sometimes.  You should probably debug the usb_modeswitch stuff a
bit more first.

usb_modeswitch provides a udev helper (/usr/lib/udev/usb_modeswitch)
that calls the main usb_modeswitch binary whenever a known device is
inserted.  You might get some more info by turning on udev verbose
logging, or by modifying /etc/usb_modeswitch.conf and setting
EnableLogging=1.

Dan

> [   44.044105] usb 4-1: USB disconnect, device number 3
> [   52.764071] usb 1-1: new high-speed USB device number 4 using ehci-pci
> [   52.898661] usb 1-1: New USB device found, idVendor=1c9e, idProduct=f000
> [   52.898667] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
> [   52.898670] usb 1-1: Product: USB Modem
> [   52.898672] usb 1-1: Manufacturer: USB Modem
> [   52.898675] usb 1-1: SerialNumber: 1234567890ABCDEF
> [   53.479638] usb-storage 1-1:1.0: USB Mass Storage device detected
> [   53.479889] scsi4 : usb-storage 1-1:1.0
> [   53.480139] usbcore: registered new interface driver usb-storage
> [   54.480352] scsi 4:0:0:0: CD-ROM            USBModem Disk
>   2.31 PQ: 0 ANSI: 2
> [   54.485187] sr1: scsi-1 drive
> [   54.485575] sr 4:0:0:0: Attached scsi CD-ROM sr1
> [   54.486557] sr 4:0:0:0: Attached scsi generic sg2 type 5
> 
> After disconnecting and connecting it again.
> 
> [  119.964616] usb 1-1: USB disconnect, device number 4
> [  126.736117] usb 1-1: new high-speed USB device number 5 using ehci-pci
> [  126.870805] usb 1-1: New USB device found, idVendor=1c9e, idProduct=f000
> [  126.870813] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
> [  126.870818] usb 1-1: Product: USB Modem
> [  126.870822] usb 1-1: Manufacturer: USB Modem
> [  126.870826] usb 1-1: SerialNumber: 1234567890ABCDEF
> [  126.872936] usb-storage 1-1:1.0: USB Mass Storage device detected
> [  126.873225] scsi5 : usb-storage 1-1:1.0
> [  127.873602] scsi 5:0:0:0: CD-ROM            USBModem Disk
>   2.31 PQ: 0 ANSI: 2
> [  127.877304] sr1: scsi-1 drive
> [  127.877740] sr 5:0:0:0: Attached scsi CD-ROM sr1
> [  127.878452] sr 5:0:0:0: Attached scsi generic sg2 type 5
> [  130.122519] usb 1-1: USB disconnect, device number 5
> [  130.488100] usb 1-1: new high-speed USB device number 6 using ehci-pci
> [  130.622919] usb 1-1: New USB device found, idVendor=1c9e, idProduct=9605
> [  130.622926] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
> [  130.622931] usb 1-1: Product: USB Modem
> [  130.622935] usb 1-1: Manufacturer: USB Modem
> [  130.622939] usb 1-1: SerialNumber: 1234567890ABCDEF
> [  131.265801] usb-storage 1-1:1.4: USB Mass Storage device detected
> [  131.265991] scsi6 : usb-storage 1-1:1.4
> [  131.363101] usbcore: registered new interface driver usbserial
> [  131.363126] usbcore: registered new interface driver usbserial_generic
> [  131.363143] usbserial: USB Serial support registered for generic
> [  131.446570] usbcore: registered new interface driver option
> [  131.446593] usbserial: USB Serial support registered for GSM modem (1-port)
> [  131.446737] option 1-1:1.0: GSM modem (1-port) converter detected
> [  131.451834] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
> [  131.451933] option 1-1:1.1: GSM modem (1-port) converter detected
> [  131.452394] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
> [  131.452471] option 1-1:1.2: GSM modem (1-port) converter detected
> [  131.452574] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
> [  131.452636] option 1-1:1.3: GSM modem (1-port) converter detected
> [  131.452733] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
> [  132.265188] scsi 6:0:0:0: Direct-Access     USBModem Disk
>   2.31 PQ: 0 ANSI: 2
> [  132.268559] sd 6:0:0:0: Attached scsi generic sg2 type 0
> [  132.271063] sd 6:0:0:0: [sdb] Attached SCSI removable disk
> [  135.440547] option1 ttyUSB3: option_instat_callback: error -2
> [  152.486473] option1 ttyUSB3: option_instat_callback: error -2
> 
> 
> lsusb -d 1c9e:9605 -v
> 
> Bus 001 Device 006: ID 1c9e:9605 OMEGA TECHNOLOGY
> Couldn't open device, some information will be missing
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x1c9e OMEGA TECHNOLOGY
>   idProduct          0x9605
>   bcdDevice            0.00
>   iManufacturer           3
>   iProduct                2
>   iSerial                 4
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength          131
>     bNumInterfaces          5
>     bConfigurationValue     1
>     iConfiguration          1
>     bmAttributes         0xe0
>       Self Powered
>       Remote Wakeup
>     MaxPower              500mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x01  EP 1 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x82  EP 2 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        2
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x83  EP 3 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x03  EP 3 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        3
>       bAlternateSetting       0
>       bNumEndpoints           3
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x84  EP 4 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               5
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x85  EP 5 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x04  EP 4 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        4
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         8 Mass Storage
>       bInterfaceSubClass      6 SCSI
>       bInterfaceProtocol     80 Bulk-Only
>       iInterface              0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x05  EP 5 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x86  EP 6 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0200  1x 512 bytes
>         bInterval               0
> 
> Regards,
> Rahul
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux