Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
vogiasf
Posts: 4
Joined: Thu Apr 17, 2014 6:35 pm

Huawei K4203

Post by vogiasf » Thu Apr 17, 2014 6:40 pm

Hi guys
I'm trying to switch mode in Huawei K4203 from Vodafone that I have recently bought.

DefaultVendor= 0x12d1
DefaultProduct= 0x1f1c

I have tried to send the message from K4201 but with no success...
Anyone have an idea about this?

Thanks!

LOM
Posts: 1335
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Huawei K4203

Post by LOM » Fri Apr 18, 2014 4:02 am

Please paste the output from lsusb - v -d 12d1:1f1c and tell what hardware and linux distro/linux version you are using.
The K4203 is a new Huawei/Vodafone dongle which can be switched into two different modes and the preferred mode for you depends on if you have a recent linux kernel.
What is your usb_modeswitch version?

vogiasf
Posts: 4
Joined: Thu Apr 17, 2014 6:35 pm

Re: Huawei K4203

Post by vogiasf » Fri Apr 18, 2014 8:44 am

I'm using Ubuntu 12.04.2 LTS (Kernel: 3.5.0-23-generic) on an low end Inspiron 3521
The usb_modeswitch version is 1.2.3 (I tried updating it but i had problems with libusb, the libusb version is libusb-dev 2:0.1.12-20. I also tried updating libusb but I had problems with libudev...)

Output from: lsusb -v -d 12d1:1f1c

Code: Select all

Bus 003 Device 018: ID 12d1:1f1c Huawei Technologies Co., Ltd. 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol       255 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1f1c 
  bcdDevice            1.02
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      2
  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-Only
      iInterface              4 
      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               1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           87
    bNumInterfaces          2
    bConfigurationValue     2
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass      14 
      bFunctionProtocol       0 
      iFunction               8 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass     14 
      bInterfaceProtocol      0 
      iInterface              5 
      CDC Header:
        bcdCDC               1.10
      UNRECOGNIZED CDC:  0c 24 1b 00 01 00 04 10 14 dc 05 20
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 
      iInterface              6 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 
      iInterface              6 
      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
Thanks again

LOM
Posts: 1335
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Huawei K4203

Post by LOM » Fri Apr 18, 2014 11:43 am

ok, brand new dongle and a 2 year old distro.. :-)

The K4203 is a Windows8 certified dongle operating under the mbim protocol which was introduced in linux 3.8, it works with mbim without need for being mode switched.

It does also have a Win7 compatible mode where it appears as a cdc_ether device, it needs a switch message to enter that mode and it will switch to either the 12d1:157a id or the 12d1:1590 id.

try:

sudo usb_modeswitch -v 12d1 -p 1f1c -W -I -M 55534243123456780000000000000011062000000101000100000000000000

and check with lsusb afterwards that it got a new id.

paste the lsusb -v -d for the new id in your next post here.

vogiasf
Posts: 4
Joined: Thu Apr 17, 2014 6:35 pm

Re: Huawei K4203

Post by vogiasf » Fri Apr 18, 2014 5:30 pm

:) yeah I know but with Ubuntu 13 I had screen freeze problems...maybe I will try the new 14.04

I tried it and it worked!! thanks you are the best! :)
now it is recongised as wired connection. I still have some difficulties with authenication cause it is wired and not 3g
the new id is 12d1:1590

Output from: lsusb -v -d 12d1:1590

Code: Select all

Bus 003 Device 005: ID 12d1:1590 Huawei Technologies Co., Ltd. 
Couldn't open device, some information will be missing
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          0x1590 
  bcdDevice            1.02
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           71
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus 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              9 
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      CDC Ethernet:
        iMacAddress                     11 (??)
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface             10 
      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
      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

LOM
Posts: 1335
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Huawei K4203

Post by LOM » Fri Apr 18, 2014 6:58 pm

I assume it behaves like other Huawei cdc_mbim/cdc_ether dongles, you have to pull a dhcp address from the device.
192.168.1.100 seems to be the usual one and the dongles is 192.168.1.1 where there also is a web server.

see other forum threads:

http://www.draisberghof.de/usb_modeswit ... f=3&t=1716

http://www.draisberghof.de/usb_modeswit ... f=2&t=1592

vogiasf
Posts: 4
Joined: Thu Apr 17, 2014 6:35 pm

Re: Huawei K4203

Post by vogiasf » Fri Apr 18, 2014 9:14 pm

Thanks again!!
You're a master!
everything working now

Post Reply