Activation Codes and Methods, Hardware Details, Sniffing
kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Huawei USB Data Card EC156 doesnot work in Ubuntu 11.04

Post by kaushalshriyan » 19 Jun 2011, 06:52

Hi,

Below is the details of lsusb output in verbose mode for the non working Tata Photon+ USB
Data Card Huawei Mobile Broadband Model : EC 156 HSIA USB Stick Huawei Technologies
Co. Ltd in Ubuntu Linux 11.04. Please suggest/guide.

Regards

Kaushal

kaushal@kaushal-laptop:~$ dpkg -l '*usb-modeswitch*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================================-=================

ii usb-modeswitch 1.1.7-1 mode switching tool for controlling "flip flop" USB devices
ii usb-modeswitch-data 20110227-2 mode switching data for usb-modeswitch
un usb-modeswitch-data-packed <none> (no description available)
kaushal@kaushal-laptop:~$dmesg
[29984.647468] usb 2-1.5: new full speed USB device using ehci_hcd and
address 113
[29984.742212] scsi12 : usb-storage 2-1.5:1.0
[29985.741838] scsi 12:0:0:0: CD-ROM HUAWEI Mass Storage
2.31 PQ: 0 ANSI: 0
[29985.757759] sr2: scsi-1 drive
[29985.758110] sr 12:0:0:0: Attached scsi CD-ROM sr2
[29985.758380] sr 12:0:0:0: Attached scsi generic sg4 type 5
kaushal@kaushal-laptop:~$ lsusb
Bus 002 Device 113: ID 12d1:1505 Huawei Technologies Co., Ltd.

kaushal@kaushal-laptop:~$ sudo usb_modeswitch -I -W -c /etc/usb_modeswitch.conf

Reading config file: /etc/usb_modeswitch.conf

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= not set
DefaultProduct= not set
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 113 on 002
usb_os_find_devices: Found 112 on 002
usb_os_find_devices: Found 004 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
No default vendor/product ID given. Aborting.

Code: Select all

Bus 002 Device 008: ID 12d1:1505 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          0x1505
 bcdDevice            0.00
 iManufacturer           1 HUA�WEI 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)

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

Post by Josh » 19 Jun 2011, 12:04

Create a config file called "12d1:1505".

Put this in:

Code: Select all

DefaultVendor= 0x12d1
DefaultProduct=0x1505

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
 
Then try it with your command line:

Code: Select all

sudo usb_modeswitch -I -W -c 12d1\:1505
After a while, run "lsusb" to see if there is any change.


kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 20 Jun 2011, 02:40

Hi

Still it doesnot work and also i need to run this below command always after bootup. is there a way to start automatically after bootup. Please suggest/guide.

Regards

Kaushal

kaushal@kaushal-laptop:~$ sudo usb_modeswitch -I -W -c 12d1:1505
Reading config file: 12d1:1505
Error: Could not find file 12d1:1505
kaushal@kaushal-laptop:~$ sudo usb_modeswitch -I -W -c 12d1:1505

Reading config file: 12d1:1505
Error: Could not find file 12d1:1505
kaushal@kaushal-laptop:~$ cd /etc/usb_modeswitch.d/
kaushal@kaushal-laptop:/etc/usb_modeswitch.d$ sudo usb_modeswitch -I -W -c 12d1:1505

Reading config file: 12d1:1505

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1505
TargetVendor= not set
TargetProduct= not set
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device

Looking for default devices ...
searching devices, found USB ID 045e:0745
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 12d1:1505
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
Found devices in default mode, class or configuration (1)
Accessing device 003 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)

USB description data (for identification)
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
Product: HUAWEI Mobile
Serial No.: �������������������
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Resetting response endpoint 0x87
Resetting message endpoint 0x08
USB error: could not clear/halt ep 8: Broken pipe
Error resetting endpoint: -32
USB error: could not release intf 0: No such device
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

kaushal@kaushal-laptop:/etc/usb_modeswitch.d$

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

Post by Josh » 21 Jun 2011, 18:30

One step after the other please.

So, after the successful run, did you do "lsusb" as recommended? What is the output?

kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 26 Jun 2011, 02:04

Hi

Apologies for the late reply. yeah i could see lsusb output as

Code: Select all

Bus 002 Device 006: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
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 HUA�WEI TECHNOLOGIES
  iProduct                2 HUAWEI Mobile
  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 Data Interface
      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 Data Interface
      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 Data Interface
      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 (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:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled
It works fine. The issue now i am facing is i always need to run sudo usb_modeswitch -I -W -c 12d1:1505 after boot up.

Please suggest further.

Regards

Kaushal

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

Post by Josh » 26 Jun 2011, 09:25

Now change your config file "/etc/usb_modeswitch.d/12d1:1505" to this:

Code: Select all

DefaultVendor= 0x12d1
DefaultProduct=0x1505

TargetVendor=  0x12d1
TargetProduct= 0x140b

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

CheckSuccess=20
Then add a line to "/lib/udev/rules.d/40-usb_modeswitch.rules":

Code: Select all

ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'"
It does not matter where you insert the line, just make sure it will be above the line reading:

Code: Select all

LABEL="modeswitch_rules_end"
Try if the switching will happen automatically when you plug in.


kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 27 Jun 2011, 02:43

Hi

Still it doesnot get automatically connected. Please find the below details. Please suggest further

kaushal@kaushal-laptop:/etc/usb_modeswitch.d$ sudo usb_modeswitch -I -W -c 12d1:1505
[sudo] password for kaushal:

Reading config file: 12d1:1505

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1505
TargetVendor= 0x12d1
TargetProduct= 0x140b
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 004 on 002
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 12d1:1505
found matching vendor ID
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 12d1:1505
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
Found devices in default mode, class or configuration (1)
Accessing device 004 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)

USB description data (for identification)
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
Product: HUAWEI Mobile
Serial No.: �������������������
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Resetting response endpoint 0x87
Resetting message endpoint 0x08
USB error: could not clear/halt ep 8: Broken pipe
Error resetting endpoint: -32
USB error: could not release intf 0: No such device
Device is gone, skipping any further commands

Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 005 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 006 on 002
usb_os_find_devices: Found 005 on 002
skipping descriptor 0xFF
skipping descriptor 0xB
skipped 2 class/vendor specific endpoint descriptors
skipped 6 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 22 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 002
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 005 on 001
skipped 1 class/vendor specific interface descriptors
skipping descriptor 0xFF
skipped 1 class/vendor specific endpoint descriptors
usb_os_find_devices: Found 004 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 12d1:140b
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 0c45:6421
searching devices, found USB ID 045e:0745
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 413c:8160
searching devices, found USB ID 413c:8162
searching devices, found USB ID 413c:8161
searching devices, found USB ID 0a5c:4500
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002

Found target device, now opening

Found target device 006 on bus 002

Target device description data
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
Product: HUAWEI Mobile
Serial No.: �������������������
-------------------------
Found correct target device

Mode switch succeeded. Bye.

kaushal@kaushal-laptop:/etc/usb_modeswitch.d$ lsusb
Bus 002 Device 006: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
Bus 002 Device 005: ID 0c45:6421 Microdia
Bus 002 Device 003: ID 045e:0745 Microsoft Corp.
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 413c:8160 Dell Computer Corp.
Bus 001 Device 005: ID 413c:8162 Dell Computer Corp.
Bus 001 Device 004: ID 413c:8161 Dell Computer Corp.
Bus 001 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
kaushal@kaushal-laptop:/etc/usb_modeswitch.d$

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

Post by Josh » 27 Jun 2011, 23:22

Check if you have the "tcl" package installed.

If so, enable logging as indicated on the main doc page, paragraph "Troubleshooting".

kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 29 Jun 2011, 01:07

Hi,

Enabled Debugging. Details here -> http://paste.ubuntu.com/634637/

Please suggest further

Regards

Kaushal

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

Post by Josh » 29 Jun 2011, 08:00

Uhm, the log you posted is from a ZTE device and shows a perfect switching process ...

kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 30 Jun 2011, 01:21

I have enabled logging and emptied the file /var/log/usb_modeswitch_2-1.4:1.0 I have reconnected the USB Data Card. Still the issue persists. I need to run this command manually everytime after bootup. Do let me know if you need more information about configs and logs.

cd /etc/usb_modeswitch.d/
sudo usb_modeswitch -I -W -c 12d1:1505

Please suggest further.

Regards

Kaushal

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

Post by Josh » 30 Jun 2011, 08:00

Do you mean that you don't get a log if you plug in the Huawei modem?

kaushalshriyan
Posts: 13
Joined: 19 Jun 2011, 06:46

Post by kaushalshriyan » 10 Jul 2011, 08:16

Josh,

Please help me understand how did you arrived at the below value to be placed in "/etc/usb_modeswitch.d/12d1:1505"

Code:
DefaultVendor= 0x12d1
DefaultProduct=0x1505

TargetVendor= 0x12d1
TargetProduct= 0x140b

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

CheckSuccess=20

Regards

Kaushal

gunasekar
Posts: 3
Joined: 13 Jul 2011, 17:23

HUAWEI EC156

Post by gunasekar » 13 Jul 2011, 17:26

I have been following this thread with interest. Thank you for all the hard work. Please do post if you make further progress.

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

Post by Josh » 15 Jul 2011, 08:07

I don't know if any progress was made. I'm getting questions instead of answers.

Anyway, the configuration is now part of the latest data package, so you can test it just by installing.

Post Reply