Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
alive-one
Posts: 1
Joined: 10 Jul 2014, 18:54

19d2:1405 ZTE WCDMA Technologies MSM ( MF823) [SOLVED]

Post by alive-one » 10 Jul 2014, 19:11

Hello, i have a bad luck which is USB Modem, and hope for help.
my version of usb_modeswitch

Code: Select all

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.1 (C) Josua Dietze 2014
 * Based on libusb1/libusbx
Here is output of lsusb -v

Code: Select all

Bus 001 Device 005: ID 19d2:1405 ZTE WCDMA Technologies MSM 
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           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x1405 
  bcdDevice           f0.d4
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          103
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0 
      iInterface              5 
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      CDC Ethernet:
        iMacAddress                      7 (??)
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      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      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 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               1
The problem is that modem perfectly connect with provider, recieved an IP-address and other settings, which Linux can see, but Linux itself can't connect to internet.
Here is outpu of ifconfig

Code: Select all

alexey@alexey-ws:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:d0:a3:34:63  
          inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:d0ff:fea3:3463/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19727 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9651 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7633670 (7.6 MB)  TX bytes:1226400 (1.2 MB)

lo        Link encap:Локальная петля (Loopback)  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4884 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4884 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:372489 (372.4 KB)  TX bytes:372489 (372.4 KB)

usb0      Link encap:Ethernet  HWaddr 36:4b:50:b7:ef:2d  
          inet addr:192.168.0.182  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::344b:50ff:feb7:ef2d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1630 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2008 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:98894 (98.8 KB)  TX bytes:150169 (150.1 KB)

alexey@alexey-ws:~$ 
Besides, as you can see modem file system in read-only state. Can anyone help me somehow? I'm completely stuck.
I tryed to switch modem in different modes

Code: Select all

alexey@alexey-ws:~$ sudo usb_modeswitch -v 0x19d2 -p 1405 -d
[sudo] password for alexey: 
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 1
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE WCDMA Technologies MSM
  Serial No.: MF8230ZTED010000
-------------------------
Detach storage driver as switching method ...
Looking for active driver ...
 OK, driver detached
-> Run lsusb to note any changes. Bye!

alexey@alexey-ws:~$ ^C
alexey@alexey-ws:~$ lsusb
Bus 001 Device 005: ID 19d2:1405 ZTE WCDMA Technologies MSM 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
alexey@alexey-ws:~$ 
but with no result at all. I guess i'm doing something wrong.
I added config data from ZTE820 (model name closest to mine ZTE823) to file usb_modeswitch.conf

Code: Select all

########################################################
# ZTE MF820 4G LTE
#
# Contributor: Kenny Lam

DefaultVendor= 0x19d2
DefaultProduct=0x0166

TargetVendor=  0x19d2
TargetProduct= 0x0167

MessageContent="55534243123456782400000080000685000000240000000000000000000000"

and now modem in state 1403

Code: Select all

Bus 001 Device 007: ID 19d2:1403 ZTE WCDMA Technologies MSM 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
alexey@alexey-ws:~$ 
But still Linux can't connect to internet, regardless the connection is established on phisicsl level.

As far as i understand 1405 is working state of this ZTE crap. It seems it can be achieved by editing /etc/usb_modeswitch.conf to disable swithcing

Code: Select all

DisableSwitching=1
but it still seems as black magic, because no matter if switching disabled or enabled, evertime when iplug-in modem linux see it as a mass storage device.

SOLUTION
it hapens that modem works quite diferently. All you need to do is switch it on via web-interface, or, in our case with command
Problem is solved: you don't need to operate it as modem (ttyUSB*), it appears as a ethernet interface.
But there's one important thing: to connect to a network, you need to follow the link:
http://192.168.0.1/goform/goform_set_cm ... CT_NETWORK
The modem will start to blink and internet will flow!
https://bbs.archlinux.org/viewtopic.php?id=175020

Post Reply