You are not logged in.

#1 2014-01-10 10:30:54

soslack
Member
Registered: 2013-11-19
Posts: 4

USB Modem Huawei E220 - Doesn't work after downgrade

Hey,

Everything has always worked just fine and also after swtiching to linux-lts (3.10.25-1-lts ) everything worked like it should.

But after unknown reason modem doesn't work now. Biggest change I've made is uninstallation of linux-headers package, installation of linux-lts-headers and building of vboxdrv with dkms.

Lets begin with dmesg:

dmesg

[  402.692680] usb 1-2.3: new high-speed USB device number 11 using xhci_hcd
[  402.715326] usb-storage 1-2.3:1.0: USB Mass Storage device detected
[  402.715489] scsi12 : usb-storage 1-2.3:1.0
[  402.715824] usb-storage 1-2.3:1.1: USB Mass Storage device detected
[  402.715968] scsi13 : usb-storage 1-2.3:1.1
[  403.712902] scsi 12:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  403.712915] scsi 13:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[  403.714428] sr0: scsi-1 drive
[  403.714816] sr 12:0:0:0: Attached scsi CD-ROM sr0
[  403.717341] sd 13:0:0:0: [sde] Attached SCSI removable disk

Obviously modem is detected as storage device and needs to be mode switched.
Usb_modeswitch is installed.

usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 11 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev=01.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

What I tried to do:

#echo blacklist usb-storage > /etc/modprobe.d/modprobe.conf
#rmmod usb-storage

## ATTACH MODEM BACK TO COMPUTER

#modprobe usbserial vendor=0x12d1 product=0x14fe

usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 14 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev=01.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic
I:  If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic

Now /dev/ttyUSB0 and /dev/ttyUSB1 nodes are created.
Trying to run wvdial either with  ttyUSB0 or ttyUSB1 end up with this error:

# wvdialconf 
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Trying to run usb_modeswitch command -- nothing happens after 'OK, driver detached'

# usb_modeswitch -v 0x12d1 -p 0x14fe
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 014 on bus 001
Get the current device configuration ...
 OK, got current device configuration (1)
Use interface number 0
Use endpoints 0x0f (out) and 0x8f (in)
Inquire device details; driver will be detached ...
Looking for active driver ...
 OK, driver detached

usb-devices after usb_modeswitch command

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 14 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev=01.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbfs
I:  If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic

lsusb -vv

Bus 001 Device 014: ID 12d1:14fe Huawei Technologies Co., Ltd. 
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          0x14fe 
  bcdDevice            1.02
  iManufacturer           2 HUAWEI
  iProduct                1 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus 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     0x0f  EP 15 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     0x8f  EP 15 IN
        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     0x0e  EP 14 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     0x8e  EP 14 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)

Also I tried apply some rules to /etc/udev/rules.d/ and /etc/modprobe.d/modprobe.conf and running various usb_modeswitch commands without any luck.

Offline

#2 2014-01-15 22:02:51

soslack
Member
Registered: 2013-11-19
Posts: 4

Re: USB Modem Huawei E220 - Doesn't work after downgrade

Kinda solved.

Reinstalled system completely but problem appeared later.
Booted into Arch installation and connected using wvdial to internet and was ready to reinstall but then wanted to try one more time if it would work.
So after exiting installation and logging back to system I was able to see ttyUSB[0-3].

Problem continues to appear but I solve it everytime by booting to Arch installation and by connecting in installation environment once and booting back to main system.

Guess problem is with modules or modeswitch. Don't have knowledge to solve tho.

Offline

#3 2014-01-18 10:34:29

Neky
Member
Registered: 2010-05-18
Posts: 38

Re: USB Modem Huawei E220 - Doesn't work after downgrade

I'm having similar problems with ZTE MF667 which worked flawlessly in the past. Can you post output from

systemctl status ModemManager

because mine looks weird.

sudo systemctl status ModemManager
ModemManager.service - Modem Manager
   Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled)
   Active: active (running) since Sat 2014-01-18 01:18:45 CET; 23s ago
 Main PID: 11798 (ModemManager)
   CGroup: /system.slice/ModemManager.service
           `-11798 /usr/bin/ModemManager

Jan 18 01:18:45 lapstarr systemd[1]: Starting Modem Manager...
Jan 18 01:18:45 lapstarr ModemManager[11798]: <info>  ModemManager (version 1.0.0) starting...
Jan 18 01:18:45 lapstarr systemd[1]: Started Modem Manager.
Jan 18 01:18:48 lapstarr ModemManager[11798]: <warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
Jan 18 01:18:48 lapstarr ModemManager[11798]: <warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.5/0000:05:00.0': not supported by any plugin

Offline

#4 2014-01-19 23:19:10

soslack
Member
Registered: 2013-11-19
Posts: 4

Re: USB Modem Huawei E220 - Doesn't work after downgrade

I don't use any networkmanager.
But what you can try is to disable zeroCD with minicom, can't find instructions but didn't work for my modem.
In your case I think problem isn't with wrong mode but rather that current version of modemmanager doesn't support your device yet.
/var/cache/pacman/pkg has old packages, try to install older package of modemmanager.

Offline

Board footer

Powered by FluxBB