OpenWrt Forum Archive

Topic: TL-MR3020 with 14.07 and ExtRoot having problems with Huawei E535 3G M

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

I have a TL-MR3020 with Barrier Breaker 14.07 (svn-r10530) with a USB hub connected to a USB ExtRoot and a Huawei E535 USB 3G Modem.  I've been trying for a few days to solve this issue but haven't been able to get the modem recognized as a modem even after installing the standard kmod-usb-serial, kmod-usb-serial-option, kmod-usb-serial-wwan, kmod-usb-acm, luci-proto-3g, usb-modeswitch, and the standard kmod-usb2 (defaulted for MR3020 BB image).

From my research (which may not be comprehensive), I think that my issue should be that ttyUSBx (which then I can add the 3G WAN interface in luci) is not showing up even though the modem is detected  which means the usb-modeswitch is not doing it job because,

1) when I type in lsusb, I get this

Bus 001 Device 004: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)

and lsusb -v gets this

Bus 001 Device 004: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1446 E1552/E1800/E173 (HSPA modem)
  bcdDevice            0.00
  iManufacturer           3 Huawei Technologies
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          1 Huawei Configuration
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      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               0
      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               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      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               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               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

2) However, in dmesg, my device is seen as a CD / media storage

[    8.790000] usbcore: registered new interface driver usb-storage
[    9.770000] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[    9.780000] scsi 1:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
[    9.790000] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.22 PQ: 0 ANSI: 5

Therefore I'm trying to manually invoke usb-modeswitch but even after installing the package, it seems that the usb-modeswitch is not available (I presume that the commands in the wiki is for Chaos Chalmer 15.05?) however some digging around I noticed that there is a /etc/usb-mode.json which has my device vendor / product (12d1:1446)

    "12d1:1446": {
            "*": {
                "t_vendor": 4817,
                "t_product": [ 4097, 5126, 5131, 5132, 5138, 5147, 5170, 5171, 5174, 5292, 5382, 5388, 5393 ],
                "mode": "HuaweiNew",
                "msg": [  ]
            }
        },

which I presume means that the usb-modeswitch has not executed.

Now, from what I've been reading, there's a few ways around where they create their own files ? (http://b.minwi.com/2015/03/15/huawei-e3 … erbreaker/) or modify the json file (https://technicalexperiments.wordpress. … explained/) but I don't see how that's going to fix the problem of getting ttyUSB0

Also note that under /proc/bus/ there is no usb folder, only pci, so I've added the kmod-usb2-pci package just in case, I'm also not upgrading to 15.05 as there's not enough memory to run ExtRoot which I need as I'm also using pptp packages for VPN.

Can somebody point me in the right direction? 

Am I supposed to manually install usb-modeswitch from (http://www.draisberghof.de/usb_modeswitch/) but that seems meant for linux computers or is there a problem with "missing" packages in BB but it seems the links from /etc/opkg.conf is the same at the one in the forum.

Thanks.

Hi,

I am facing the same issue as you.
Did you manage to solve it?

thanks

Why so old firmware? 14.7 is from 2014there is 15.1 or even better still LEDE 17.1.3

The discussion might have continued from here.