Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
zangetsudo
Posts: 6
Joined: 23 Feb 2011, 06:16

huawei ec 122 3g modem

Post by zangetsudo » 15 Mar 2011, 13:56

this is what i get by using
usb-modeswitch-1.1.7

Code: Select all

root@zanget:7# dmesg -c

Code: Select all

root@zanget:~# lsusb

Code: Select all

Bus 002 Device 007: ID 12d1:1446 Huawei Technologies Co., Ltd. 
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

root@zanget:7# lsusb -v -d 12d1:1446 

Code: Select all

Bus 002 Device 007: ID 12d1:1446 Huawei Technologies Co., Ltd. 
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          0x1446 
  bcdDevice            0.00
  iManufacturer           1 HUA TECHNOLOGIES
  iProduct                2 HUAWEI Mobile
  iSerial                 4 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      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
Device Status:     0x0000
  (Bus Powered)

Code: Select all

root@zanget:7# modprobe -v option 

Code: Select all

root@zanget:7# echo "12d1 1446" > /sys/bus/usb-serial/drivers/option1/new_id

Code: Select all

root@zanget:7# dmesg 

Code: Select all

[84738.176707] usb 2-1: reset full speed USB device using uhci_hcd and address 7
[84738.301795] usb 2-1: device descriptor read/64, error -84
[84738.573453] usb 2-1: USB disconnect, address 7
[84738.579993] scsi 16:0:0:0: rejecting I/O to dead device
[84749.069109] usb 2-1: new full speed USB device using uhci_hcd and address 8
[84749.256777] usb 2-1: configuration #1 chosen from 1 choice
[84749.297736] scsi17 : SCSI emulation for USB Mass Storage devices
[84749.297882] usb-storage: device found at 8
[84749.297883] usb-storage: waiting for device to settle before scanning
[84754.412380] usb-storage: device scan complete
[84754.422323] scsi 17:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
[84754.490286] sr1: scsi-1 drive
[84754.490580] sr 17:0:0:0: Attached scsi CD-ROM sr1
[84754.490731] sr 17:0:0:0: Attached scsi generic sg3 type 5
[84757.906175] UDF-fs: No VRS found
[84757.906179] UDF-fs: No partition found (1)
[84757.959159] ISO 9660 Extensions: Microsoft Joliet Level 1
[84757.965187] ISOFS: changing to secondary root
I get the info said that "iSerial 4 "

but why this time i get no interface for iserial?...

Code: Select all

root@zanget:sbin# ./usb_modeswitch -v 0x12d1 -p 0x1446 -M  "55534243123456780000000000000011060000000000000000000000000000" 

Code: Select all

Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 008 on bus 002 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x08 (out) and 0x87 (in)
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUA TECHNOLOGIES
     Product: HUAWEI Mobile
  Serial No.: 
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

Code: Select all

root@zanget:7# lsusb

Code: Select all

Bus 002 Device 008: ID 12d1:1446 Huawei Technologies Co., Ltd. 
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and even usb_modeswitch .. with out success..

Josh, any way , i will test this one http://www.draisberghof.de/usb_modeswit ... =4214#4214 and update you .


thinks in advance.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 22 Mar 2011, 23:23

Did you install the data package too?

You really should not have to do anything ...

Don't bind the serial driver to the device in install mode - this is useless.


Post Reply