Posted: Sun Jun 10, 2012 7:10 Post subject: Huawei EC1260 not supported since 2012 builds
Hi!
I have a Huawei EC1260 CDMA modem that is not connecting on the new Linux 3.0 builds (the builds starting from 2012). It connects just fine from previous year builds. I'm assuming this is just a modeswitch issue.
Here are the modem details:
Code:
Bus 008 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x140b EC1260 Wireless Data Modem HSD USB Card
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerial 4
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 108
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 128
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
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 3
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
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 3
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
No it is not a mode switch issue, what you have shown is the stick in modem mode, already mode switched.
I have checked back to r17525 and there has not been any changes in dd-wrt's support routines for this modem.
Show me the output from cat /proc/bus/usb/devices when the 3g stick is connected to the usb port. _________________ Kernel panic: Aiee, killing interrupt handler!
<6>device ra0 entered promiscuous mode
<6>br0: port 3(ra0) entering forwarding state
<6>br0: port 3(ra0) entering forwarding state
<6>br0: port 2(vlan2) entering forwarding state
<6>br0: port 1(vlan1) entering forwarding state
<6>usbcore: registered new interface driver cdc_acm
<6>cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
<6>br0: port 3(ra0) entering forwarding state
<6>usbcore: registered new interface driver usbserial
<6>USB Serial support registered for generic
<6>usbcore: registered new interface driver usbserial_generic
<6>usbserial: USB Serial Driver core
<6>USB Serial support registered for Sierra USB modem
<6>usbcore: registered new interface driver sierra
<6>sierra: v.1.7.16:USB Driver for Sierra Wireless USB modems
<6>USB Serial support registered for GSM modem (1-port)
<6>usbcore: registered new interface driver option
<6>option: v0.7.2:USB Driver for GSM modems
<6>IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
<6> Hooking IMQ before NAT on PREROUTING.
<6> Hooking IMQ after NAT on POSTROUTING.
<6>usb 1-1: new full-speed USB device number 2 using dwc_otg
Hope this helps. Please let me know if you need any other information.
That must be a usb core driver (dwc-otg), I have seen similar things by other users..
Your stick has switched because:
It has the correct switched id (modem id), default id before switching is 12d1:1505
The endpoint addresses (87 and 08) matches the endpoint addresses for the storage interface when the stick has switched to modem mode, they do not match for a stick in default mode.
The dwc-otg driver has hidden the 3 serial interfaces that are present before the tf-card reader storage interface !!
You can see those 3 interfaces in the list you took from your PC.
There is one more strange thing with the devices list from the router with the dwc-otg driver, the speed reported is a USB 1.1 speed (12mbps) but the stick is USB 2.0 (480mbps)
I will ask Brainslayer to take a look at the driver. _________________ Kernel panic: Aiee, killing interrupt handler!
Last edited by LOM on Sun Jun 10, 2012 10:03; edited 3 times in total
There are a few more things you can test - maybe it is so that the scsi driver for the storage interface is hanging the stick for some time.
Does the interface list look the same (no serial interface, only storage interface) after 10 minutes?
Does it make any difference if you disable or enable usb-storage in the routers USB tab?
Does it make any difference if you enable or disable mount of the storage in the routers USB tab?
You stated in another post that your UMG1831 works fine and that is a stick without storage interface when in modem mode !! _________________ Kernel panic: Aiee, killing interrupt handler!
Does the interface list look the same (no serial interface, only storage interface) after 10 minutes?
Yes. Remains same, no change.
LOM wrote:
Does it make any difference if you disable or enable usb-storage in the routers USB tab?
No change.
LOM wrote:
Does it make any difference if you enable or disable mount of the storage in the routers USB tab?
No Difference.
LOM wrote:
You stated in another post that your UMG1831 works fine and that is a stick without storage interface when in modem mode !!
Yes. The GSM modem works fine even when it has the sdcard and cd enabled, but that also sometimes fails to switch to modem once in a while when power goes and comes back. I have switched that to modem only mode, and that works fine on the newer build (this switching problem was not there in 2011 builds). This modem I cannot switch to modem only mode, as it's required to be installed on a few other PCs.
You stated in another post that your UMG1831 works fine and that is a stick without storage interface when in modem mode !!
Yes. The GSM modem works fine even when it has the sdcard and cd enabled, but that also sometimes fails to switch to modem once in a while when power goes and comes back. I have switched that to modem only mode, and that works fine on the newer build (this switching problem was not there in 2011 builds). This modem I cannot switch to modem only mode, as it's required to be installed on a few other PCs.
Can you please give me the cat /proc/bus/usb/devices list for your UMG1831.
I have one saved but it doesn't show any storage interfaces when in modem mode, only serial comm interfaces so I thought that the scsi driver for storage might be the problem.
I save these devices listing as reference for modem support and integration in dd-wrt and yours is obviously different from the one I have. _________________ Kernel panic: Aiee, killing interrupt handler!
E1732, yet another E-number for the dd-wrt wiki..
The id 12d1:1001 is known from before but the interface list I have of it has 3 serial interfaces + 1 storage interface which yours also would have if you had not locked it in modem only mode.
I'm gonna review another thread here with same symptoms as yours, that user was able to get the stick working by manually sending bogus modeswitch messages to the stick, messages that were completely wrong but somehow they did make the stick wake up and present the correct interfaces.
In any case, it is only in Ralink builds that some modem behaves strange and it is after the older usb driver got replaced with the dwc-otg driver when new kernels were introduced. _________________ Kernel panic: Aiee, killing interrupt handler!