Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
vinca
Posts: 1
Joined: 04 Oct 2013, 10:18

ZTE MF 60 (19d2:2004)

Post by vinca » 04 Oct 2013, 13:16

I am trying to enable 3g modem on OpenWrt. I am using ZTE MF 60 (19d2:2004) device:

1. scenario:

cat /etc/usb_modeswitch.d/19d2\:2000

Code: Select all

# ZTE devices

TargetVendor=   0x19d2
TargetProductList="0001,0002,0015,0016,0017,0031,0037,0052,0055,0063,0064,0066,0091,0108,0117,0128,0157,1402,2002,2003"

MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"

NeedResponse=1
logread:

Code: Select all

Oct  4 10:42:02 openwrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
dmesg:

Code: Select all

[  773.042915] usb 1-1: new high speed USB device using fsl-ehci and address 4
[  773.191212] scsi2 : usb-storage 1-1:1.0
[  774.196624] scsi 2:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  774.208956] sr0: scsi-1 drive
[  774.212311] sr 2:0:0:0: Attached scsi CD-ROM sr0
[  774.212703] sr 2:0:0:0: Attached scsi generic sg0 type 5
2. scenario

cat /etc/usb_modeswitch.d/19d2\:2000 (add 2004 in product id list)

Code: Select all

# ZTE devices

TargetVendor=   0x19d2
TargetProductList="0001,0002,0015,0016,0017,0031,0037,0052,0055,0063,0064,0066,0091,0108,0117,0128,0157,1402,2002,2003,2004"

MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"

NeedResponse=1
logread:

Code: Select all

Oct  4 10:46:38 openwrt user.info kernel: [  131.295215] usb 1-1: new high speed USB device using fsl-ehci and address 2
Oct  4 10:46:38 openwrt user.info kernel: [  131.442820] scsi0 : usb-storage 1-1:1.0
Oct  4 10:46:39 openwrt user.notice kernel: [  132.449937] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
Oct  4 10:46:39 openwrt user.warn kernel: [  132.463384] sr0: scsi-1 drive
Oct  4 10:46:39 openwrt user.info kernel: [  132.466354] Uniform CD-ROM driver Revision: 3.20
Oct  4 10:46:39 openwrt user.debug kernel: [  132.472185] sr 0:0:0:0: Attached scsi CD-ROM sr0
Oct  4 10:46:39 openwrt user.notice kernel: [  132.472571] sr 0:0:0:0: Attached scsi generic sg0 type 5
Oct  4 10:46:39 openwrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
dmesg:

Code: Select all

[  131.295215] usb 1-1: new high speed USB device using fsl-ehci and address 2
[  131.442820] scsi0 : usb-storage 1-1:1.0
[  132.449937] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  132.463384] sr0: scsi-1 drive
[  132.466354] Uniform CD-ROM driver Revision: 3.20
[  132.472185] sr 0:0:0:0: Attached scsi CD-ROM sr0
[  132.472571] sr 0:0:0:0: Attached scsi generic sg0 type 5
lsusb:

Code: Select all

Bus 001 Device 002: ID 19d2:2004 ZTE WCDMA Technologies MSM
cat /proc/bus/usb/devices

Code: Select all

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=2004 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE WCDMA Technologies MSM
S:  SerialNumber=xxx
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
3. scenario:

cat /etc/usb_modeswitch.d/19d2\:2004 (new created file 19d2:2004, 2004 is removed from product id list in 19d2:2000)

Code: Select all

# ZTE devices

DefaultVendor=   0x19d2
DefaultProductList="2004"

MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"

NeedResponse=1
lsusb: (3g modem get new product id???)

Code: Select all

Bus 001 Device 003: ID 19d2:1402 ZTE WCDMA Technologies MSM
cat /proc/bus/usb/devices:

Code: Select all

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1402 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE WCDMA Technologies MSM
S:  SerialNumber=xxx
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=82(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
dmesg:

Code: Select all

[  110.180267] usb 1-1: new high speed USB device using fsl-ehci and address 2
[  110.325088] scsi0 : usb-storage 1-1:1.0
[  111.329560] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  111.342504] sr0: scsi-1 drive
[  111.346165] Uniform CD-ROM driver Revision: 3.20
[  111.351532] sr 0:0:0:0: Attached scsi CD-ROM sr0
[  111.352010] sr 0:0:0:0: Attached scsi generic sg0 type 5
[  115.134450] usb 1-1: USB disconnect, address 2
[  115.507220] usb 1-1: new high speed USB device using fsl-ehci and address 3
[  115.666214] scsi1 : usb-storage 1-1:1.3
[  116.669600] scsi 1:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  116.682296] sr0: scsi-1 drive
[  116.686232] sr 1:0:0:0: Attached scsi CD-ROM sr0
[  116.686622] sr 1:0:0:0: Attached scsi generic sg0 type 5
[  116.692729] scsi 1:0:0:1: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
[  116.702647] sd 1:0:0:1: Attached scsi generic sg1 type 0
[  116.711121] sd 1:0:0:1: [sda] Attached SCSI removable disk
[  116.842462] option 1-1:1.0: GSM modem (1-port) converter detected
[  116.850001] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[  116.857809] option 1-1:1.1: GSM modem (1-port) converter detected
[  116.865247] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[  116.872566] option 1-1:1.2: GSM modem (1-port) converter detected
[  116.880039] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

logread:

Code: Select all

Oct  4 10:53:59 openwrt user.notice kernel: [  111.329560] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
Oct  4 10:53:59 openwrt user.warn kernel: [  111.342504] sr0: scsi-1 drive
Oct  4 10:53:59 openwrt user.info kernel: [  111.346165] Uniform CD-ROM driver Revision: 3.20
Oct  4 10:53:59 openwrt user.debug kernel: [  111.351532] sr 0:0:0:0: Attached scsi CD-ROM sr0
Oct  4 10:53:59 openwrt user.notice kernel: [  111.352010] sr 0:0:0:0: Attached scsi generic sg0 type 5
Oct  4 10:54:01 openwrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
Oct  4 10:54:01 openwrt user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/19d2:2004 for mode switching
Oct  4 10:54:01 openwrt syslog.notice usb_modeswitch: switching device 19d2:2004 on 001/002
Oct  4 10:54:03 openwrt user.info kernel: [  115.134450] usb 1-1: USB disconnect, address 2
Oct  4 10:54:03 openwrt syslog.notice usb_modeswitch: device seems to have switched
Oct  4 10:54:03 openwrt user.info kernel: [  115.507220] usb 1-1: new high speed USB device using fsl-ehci and address 3
Oct  4 10:54:03 openwrt user.info kernel: [  115.666214] scsi1 : usb-storage 1-1:1.3
Oct  4 10:54:04 openwrt user.notice kernel: [  116.669600] scsi 1:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
Oct  4 10:54:04 openwrt user.warn kernel: [  116.682296] sr0: scsi-1 drive
Oct  4 10:54:04 openwrt user.debug kernel: [  116.686232] sr 1:0:0:0: Attached scsi CD-ROM sr0
Oct  4 10:54:04 openwrt user.notice kernel: [  116.686622] sr 1:0:0:0: Attached scsi generic sg0 type 5
Oct  4 10:54:04 openwrt user.notice kernel: [  116.692729] scsi 1:0:0:1: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
Oct  4 10:54:04 openwrt user.notice kernel: [  116.702647] sd 1:0:0:1: Attached scsi generic sg1 type 0
Oct  4 10:54:04 openwrt user.notice kernel: [  116.711121] sd 1:0:0:1: [sda] Attached SCSI removable disk
Oct  4 10:54:04 openwrt user.info kernel: [  116.842462] option 1-1:1.0: GSM modem (1-port) converter detected
Oct  4 10:54:04 openwrt user.info kernel: [  116.850001] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Oct  4 10:54:04 openwrt user.info kernel: [  116.857809] option 1-1:1.1: GSM modem (1-port) converter detected
Oct  4 10:54:04 openwrt user.info kernel: [  116.865247] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Oct  4 10:54:04 openwrt user.info kernel: [  116.872566] option 1-1:1.2: GSM modem (1-port) converter detected
Oct  4 10:54:04 openwrt user.info kernel: [  116.880039] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Oct  4 10:54:05 openwrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
Oct  4 10:54:06 openwrt user.notice usb-modeswitch: 1-1:1.1: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
Oct  4 10:54:08 openwrt user.notice usb-modeswitch: 1-1:1.2: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
Oct  4 10:54:09 openwrt user.notice usb-modeswitch: 1-1:1.3: Manufacturer=ZTE,Incorporated Product=ZTE_WCDMA_Technologies_MSM Serial=xxx
Please help me.

Thanks.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: ZTE MF 60 (19d2:2004)

Post by LOM » 04 Oct 2013, 16:41

Your 3rd scenario is the correct one, 19d2:2004 is a new initial id not known to usb_modeswitch before, it will be included in the next update of the usb_modeswitch data package.

The MF60 does not have a serial ppp modem interface, it does instead have a qmi interface which will give you an ethernet device in the kernel after loading the right drivers for it.
You need to install the cdc_wdm driver, the usbnet driver, the qmi_wwan driver, and the libqmi or uqmi libraries.

bmork
Posts: 167
Joined: 15 Mar 2012, 22:47
Location: Oslo, Norway

Re: ZTE MF 60 (19d2:2004)

Post by bmork » 08 Oct 2013, 10:34

LOM wrote:Your 3rd scenario is the correct one, 19d2:2004 is a new initial id not known to usb_modeswitch before, it will be included in the next update of the usb_modeswitch data package.

The MF60 does not have a serial ppp modem interface, it does instead have a qmi interface which will give you an ethernet device in the kernel after loading the right drivers for it.
You need to install the cdc_wdm driver, the usbnet driver, the qmi_wwan driver, and the libqmi or uqmi libraries.
I also still have a MF60, but it switches to 19d2:1402 so the firmware is obviously different.

I am interesting in hearing about good/bad experiences using QMI with this device. Mine implements some sort of basic QMI proxy, which makes the firmware crash really hard (must remove the battery to reset it) with most WDS commands. I.e., you cannot use QMI to connect. That's all handled by the firmware application. But you can use other QMI services (NAS etc) to monitor and configure the device.

Bjørn

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: ZTE MF 60 (19d2:2004)

Post by LOM » 08 Oct 2013, 12:16

bmork wrote:
LOM wrote:Your 3rd scenario is the correct one, 19d2:2004 is a new initial id not known to usb_modeswitch before, it will be included in the next update of the usb_modeswitch data package.

The MF60 does not have a serial ppp modem interface, it does instead have a qmi interface which will give you an ethernet device in the kernel after loading the right drivers for it.
You need to install the cdc_wdm driver, the usbnet driver, the qmi_wwan driver, and the libqmi or uqmi libraries.
I also still have a MF60, but it switches to 19d2:1402 so the firmware is obviously different.

Bjørn
His does also switch to 19d2:1402, it is the initial id which is new.
Take a look at his device listing, interface #1, do you also have 3 endpoint in that interface?
My saved device listing, pinched from god knows where, does only have 2 endpoints.

bmork
Posts: 167
Joined: 15 Mar 2012, 22:47
Location: Oslo, Norway

Re: ZTE MF 60 (19d2:2004)

Post by bmork » 09 Oct 2013, 21:21

LOM wrote:His does also switch to 19d2:1402, it is the initial id which is new.
Right. Skimming too fast...
Take a look at his device listing, interface #1, do you also have 3 endpoint in that interface?
My saved device listing, pinched from god knows where, does only have 2 endpoints.
Mine only has 2 endpoints on intf #1. Full lsusb:

Code: Select all

Bus 002 Device 028: ID 19d2:1402 ZTE WCDMA Technologies MSM 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x1402 
  bcdDevice            0.00
  iManufacturer           3 ZTE,Incorporated
  iProduct                2 ZTE WCDMA Technologies MSM
  iSerial                 4 P680A1ZTED010000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          108
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          1 ZTE Configuration
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      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              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
    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              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     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 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     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        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     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Post Reply