Huawei EC1260 not supported since 2012 builds

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware
Author Message
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 7:10    Post subject: Huawei EC1260 not supported since 2012 builds Reply with quote
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
Sponsor
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7098

PostPosted: Sun Jun 10, 2012 7:46    Post subject: Reply with quote
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.

_________________
I'm on a whiskey diet, lost 3 days already
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 7:58    Post subject: Reply with quote
Oops! I'm sorry, that output was from my PC, not from the router.

Here's the output of cat /proc/bus/usb/devices from router:

Code:

root@DD-WRT:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.19-svn19334 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=140b Rev= 0.00
S:  Manufacturer=HUAÿWEI TECHNOLOGIES
S:  Product=HUAWEI Mobile
S:  SerialNumber=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=08(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


And from dmesg from the router:

Code:

<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.

Thanks for taking time out for this!
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7098

PostPosted: Sun Jun 10, 2012 8:46    Post subject: Reply with quote
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.

_________________
I'm on a whiskey diet, lost 3 days already


Last edited by LOM on Sun Jun 10, 2012 10:03; edited 3 times in total
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 8:49    Post subject: Reply with quote
Thank you so much LOM for your time! In case you need more information, or you need help testing, please let me know!
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7098

PostPosted: Sun Jun 10, 2012 9:20    Post subject: Reply with quote
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 !!

_________________
I'm on a whiskey diet, lost 3 days already
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 11:13    Post subject: Reply with quote
LOM wrote:

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.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7098

PostPosted: Sun Jun 10, 2012 11:33    Post subject: Reply with quote
kalpik wrote:

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.


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.

_________________
I'm on a whiskey diet, lost 3 days already
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 12:22    Post subject: Reply with quote
I'm using a Huawei E1732 these days. Sorry, the UMG1831 broke Sad

The E1732 is configured in modem only mode. Here's the output you requested.

Code:

root@DD-WRT:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.19-svn19334 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0                                                                                                                                                                           
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                                                                                                                                                                                 
P:  Vendor=12d1 ProdID=1001 Rev= 0.00                                                                                                                                                                                                       
S:  Manufacturer=HUAWEI Technology                                                                                                                                                                                                           
S:  Product=HUAWEI Mobile                                                                                                                                                                                                                   
C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA                                                                                                                                                                                                       
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                                                                                                                         
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms                                                                                                                                                                                                 
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                                                 
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms                                                                                                                                                                                                 
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                                                                                                                         
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                                                 
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms                                                                                                                                                                                                 
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                                                                                                                         
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                                                 
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7098

PostPosted: Sun Jun 10, 2012 13:43    Post subject: Reply with quote
kalpik wrote:
I'm using a Huawei E1732 these days. Sorry, the UMG1831 broke Sad

The E1732 is configured in modem only mode. Here's the output you requested.

Code:

root@DD-WRT:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.19-svn19334 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0                                                               
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                                                                                                   
P:  Vendor=12d1 ProdID=1001 Rev= 0.00                                                                                                               
S:  Manufacturer=HUAWEI Technology                                                                                                                             
S:  Product=HUAWEI Mobile                                                                                                                               
C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA                                                                                                                                                                   
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                   
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms                                                                                                             
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                             
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms                                                   

                                                   
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                   
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                             
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms                                                   

                                                     
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option                                                                   
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                               
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms


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.

_________________
I'm on a whiskey diet, lost 3 days already
kalpik
DD-WRT User


Joined: 11 Dec 2008
Posts: 232

PostPosted: Sun Jun 10, 2012 13:52    Post subject: Reply with quote
Thank you! You are most helpful Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum