Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
shirish
Posts: 1
Joined: 07 Aug 2015, 10:26

a huawei device and getting on the internet how ?

Post by shirish » 07 Aug 2015, 10:53

HI all
I am on Debian Stretch and am/was reading http://www.draisberghof.de/usb_modeswit ... ml#trouble

The first thing which I'm not sure of is this :-
Don't forget libusb-1.x (formerly on libusb.org) if it's not on your system. In most distributions there is most likely a package named "libusb1-dev" or "libusb1-devel" (or similar).
Older versions were based on libusb-0.1.12 but since version 2.0.0 only libusb1.x is supported.
As a small complication, there was a compatible fork of libusb1 called "libusbx" around for a while.
There seem to be a number of libusb libraries in debian , which one should I download and install ?

https://packages.debian.org/search?keyw ... ection=all

I just bought a usb-wifi dongle which is marketed as a Tata Indicom USB Wifi Dongle but in reality it is a huawei make usb wireless modem :-

Code: Select all

Aug 07 12:17:06 think-debian kernel: usb 1-1: new high-speed USB device number 11 using xhci_hcd
Aug 07 12:17:06 think-debian kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=1f01
Aug 07 12:17:06 think-debian kernel: usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 07 12:17:06 think-debian kernel: usb 1-1: Product: HUAWEI Mobile
Aug 07 12:17:06 think-debian kernel: usb 1-1: Manufacturer: Huawei Technologies
Aug 07 12:17:06 think-debian kernel: usb-storage 1-1:1.0: USB Mass Storage device detected
Aug 07 12:17:06 think-debian kernel: scsi host6: usb-storage 1-1:1.0
Aug 07 12:17:06 think-debian mtp-probe[3600]: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Aug 07 12:17:06 think-debian mtp-probe[3600]: bus: 1, device: 11 was not an MTP device
Aug 07 12:17:06 think-debian systemd[1]: Starting USB_ModeSwitch__1-1:1.0...
Aug 07 12:17:07 think-debian usb_modeswitch[3656]: switch device 12d1:1f01 on 001/011
Aug 07 12:17:08 think-debian kernel: usb 1-1: USB disconnect, device number 11
Aug 07 12:17:16 think-debian kernel: usb 1-1: new high-speed USB device number 12 using xhci_hcd
Aug 07 12:17:16 think-debian kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=14db
Aug 07 12:17:16 think-debian kernel: usb 1-1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Aug 07 12:17:16 think-debian kernel: usb 1-1: Product: HUAWEI Mobile
Aug 07 12:17:16 think-debian kernel: usb 1-1: Manufacturer: Huawei Technologies
Aug 07 12:17:16 think-debian kernel: cdc_ether 1-1:1.0 eth1: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, xx:xx:xx:xx:xx
Aug 07 12:17:16 think-debian mtp-probe[3684]: checking bus 1, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Aug 07 12:17:16 think-debian mtp-probe[3684]: bus: 1, device: 12 was not an MTP device
Aug 07 12:17:16 think-debian kernel: cdc_ether 1-1:1.0 xxxxxxxxx: renamed from eth1
Aug 07 12:17:17 think-debian root[3788]: usb_modeswitch: switched to 12d1:14db on 001/012
Aug 07 12:17:17 think-debian systemd[1]: Started USB_ModeSwitch__1-1:1.0.
Aug 07 12:17:19 think-debian ModemManager[1372]: <info>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1': not supported by any plugin
The xxxxxx are just for self-protection. If needed can share the details with a developer.

Looking at http://www.draisberghof.de/usb_modeswit ... erence.txt came across this :-

Code: Select all

#######################################################
# Huawei E353 (3.se)
#
# Contributor: Ulf Eklund

DefaultVendor= 0x12d1
DefaultProduct=0x1f01

TargetVendor=  0x12d1
TargetProduct= 0x14db

MessageContent="55534243123456780000000000000a11062000000000000100000000000000"

# Driver is cdc_ether
NoDriverLoading=1
So it is/might be possible that the usb modem is the same. How to know if it the same ?

And what should I do to get it working ? I do have both wvdial and modemmanager installed.

Output from lsusb -v -d 12d1:14db

Code: Select all

$ sudo lsusb -v -d 12d1:14db

Bus 002 Device 006: ID 12d1:14db Huawei Technologies Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x14db 
  bcdDevice            0.00
  iManufacturer           4 Huawei Technologies
  iProduct                3 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           71
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          2 Huawei Configuration
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0 
      iInterface              0 
      CDC Header:
        bcdCDC               1.10
      CDC Ethernet:
        iMacAddress                      1 xxxxxxxxxxxxxx
       bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1558
        wNumberMCFilters            0x0001
        bNumberPowerFilters              0
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      6 
      bInterfaceProtocol      0 
      iInterface              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              32
      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              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
Looking at http://www.draisberghof.de/usb_modeswit ... f=3&t=2364 tried also the following :-

Code: Select all

$ sudo usb_modeswitch -W -v 12d1 -p 14db -n --message-content 55534243123456780000000000000a11062000000000000100000000000000
Take all parameters from the command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.5 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x14db
MessageContent="55534243123456780000000000000a11062000000000000100000000000000"
NeedResponse=1

Look for default devices ...
  found USB ID 8087:8000
  found USB ID 1d6b:0002
  found USB ID 1d6b:0003
  found USB ID 04f2:b39a
  found USB ID 8087:07dc
  found USB ID 138a:0017
  found USB ID 192f:0916
  found USB ID 12d1:14db
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 006 on bus 002
Current configuration number is 1
Use interface number 0
Error: message endpoint not given or found. Abort
I also looked at http://www.draisberghof.de/usb_modeswit ... f=4&t=1226

and the following is at dmesg :-

Code: Select all

[ 6069.431346] usb 2-1: new high-speed USB device number 26 using xhci_hcd
[ 6069.561596] usb 2-1: New USB device found, idVendor=12d1, idProduct=1f01
[ 6069.561601] usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 6069.561603] usb 2-1: Product: HUAWEI Mobile
[ 6069.561605] usb 2-1: Manufacturer: Huawei Technologies
[ 6069.562533] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 6069.562719] scsi host13: usb-storage 2-1:1.0
[ 6071.109880] usb 2-1: USB disconnect, device number 26
[ 6079.686639] usb 2-1: new high-speed USB device number 27 using xhci_hcd
[ 6079.936486] usb 2-1: New USB device found, idVendor=12d1, idProduct=14db
[ 6079.936492] usb 2-1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 6079.936495] usb 2-1: Product: HUAWEI Mobile
[ 6079.936497] usb 2-1: Manufacturer: Huawei Technologies
[ 6079.940969] cdc_ether 2-1:1.0 eth1: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, 00:a0:c6:09:5c:40
[ 6079.956397] cdc_ether 2-1:1.0 xxxxxxxxxx: renamed from eth1
This is the content of the 12d1:1f01 file which was in /usr/share/usb_modeswitch/configPack.tar.gz.

Code: Select all

# Huawei E353 (3.se) and others
TargetVendor=0x12d1
TargetProductList="14db,14dc"
HuaweiNewMode=1
NoDriverLoading=1

As can be seen there are no message contents in the file. the package I am using is the latest

https://packages.debian.org/sid/usb-modeswitch-data


Look forward to help.

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

Re: a huawei device and getting on the internet how ?

Post by Josh » 07 Aug 2015, 14:53

I think you are making things too complicated.

Your main problem is this (in your first log):

Code: Select all

Aug 07 12:17:19 think-debian ModemManager[1372]: <info>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1': not supported by any plugin
usb_modeswitch has done what it can do. The modem is in the useable mode. All further steps are assigned to Network Manager and its companion ModemManager.

Don't try to change that modem mode any further. It does not work and it will not solve the problem with ModemManager.

Post Reply