Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
unoc_u34
Posts: 5
Joined: 27 Jul 2018, 09:35

UZB Modem ZTE MF667don't want switch to modem mode

Post by unoc_u34 » 31 Jul 2018, 10:22

Dear professionals! Hi all! First sorry for my English!
I have new USB modem ZTE MF667

Code: Select all

dmesg
[80681.338605] usb 1-14: new high-speed USB device number 21 using xhci_hcd
[80681.493661] usb 1-14: New USB device found, idVendor=19d2, idProduct=1225
[80681.493665] usb 1-14: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[80681.493668] usb 1-14: Product: ZTE WCDMA Technologies MSM
[80681.493670] usb 1-14: Manufacturer: ZTE,Incorporated
[80681.493672] usb 1-14: SerialNumber: P680A1ZTED000000CP261718HNL0ZV5JKNN7C9026142I1A&&&&&&&&&&&&&&&&0
[80681.496283] usb-storage 1-14:1.0: USB Mass Storage device detected
[80681.496424] usb-storage 1-14:1.0: Quirks match for vid 19d2 pid 1225: 1
[80681.496506] scsi host7: usb-storage 1-14:1.0
[80682.511525] scsi 7:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[80682.514110] sr 7:0:0:0: [sr1] scsi-1 drive
[80682.514407] sr 7:0:0:0: Attached scsi CD-ROM sr1
[80682.514495] sr 7:0:0:0: Attached scsi generic sg2 type 5
[80683.514353] usb 1-14: USB disconnect, device number 21
[80683.906611] usb 1-14: new high-speed USB device number 22 using xhci_hcd
[80684.057652] usb 1-14: New USB device found, idVendor=19d2, idProduct=1405
[80684.057656] usb 1-14: New USB device strings: Mfr=4, Product=3, SerialNumber=5
[80684.057658] usb 1-14: Product: ZTE WCDMA Technologies MSM
[80684.057661] usb 1-14: Manufacturer: ZTE,Incorporated
[80684.057663] usb 1-14: SerialNumber: P680A1ZTED010000CP261718HNL0ZV5JKNN7C9026142I1A&&&&&&&&&&&&&&&&0
[80684.062736] cdc_ether 1-14:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-14, ZTE CDC Ethernet Device, 00:a0:c6:00:00:00
[80684.062888] usb-storage 1-14:1.2: USB Mass Storage device detected
[80684.063151] scsi host7: usb-storage 1-14:1.2
[80684.100520] cdc_ether 1-14:1.0 rename14: renamed from eth0
[80685.071837] scsi 7:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[80685.074375] sr 7:0:0:0: [sr1] scsi-1 drive
[80685.074632] sr 7:0:0:0: Attached scsi CD-ROM sr1
[80685.075662] sr 7:0:0:0: Attached scsi generic sg2 type 5

Code: Select all

 lsusb -v -d 19d2:1405
Bus 001 Device 022: ID 19d2:1405 ZTE WCDMA Technologies MSM 
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           f1.11
  iManufacturer           4 ZTE,Incorporated
  iProduct                3 ZTE WCDMA Technologies MSM
  iSerial                 5 P680A1ZTED010000CP261718HNL0ZV5JKNN7C9026142I1A&&&&&&&&&&&&&&&&0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          103
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          2 ZTE 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 00A0C6000000
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               8192
        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           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              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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              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
      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
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)

Bus 001 Device 018: ID 19d2:1405 ZTE WCDMA Technologies MSM 
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           f1.11
  iManufacturer           4 ZTE,Incorporated
  iProduct                3 ZTE WCDMA Technologies MSM
  iSerial                 5 P680A1ZTED010000CP261718HNL0ZV5JKNN7C9026142I1A&&&&&&&&&&&&&&&&0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          103
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          2 ZTE 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 00A0C6000000
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               8192
        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           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              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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              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
      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
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)
and if I want switch mode with command:

Code: Select all

sb_modeswitch -v 19d2 -p 1405 -K
I receive

Code: Select all

Look for default devices ...
 Found devices in default mode (2)
Access device 018 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort


Please help me Guys! Thanks in advance!

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

Re: UZB Modem ZTE MF667don't want switch to modem mode

Post by Josh » 31 Jul 2018, 14:35

The problem is that the modem was already switched. The "lsusb" output shows that it is in modem mode.

However, the modem mode is 'ethernet' instead of 'serial'. You will not get any ttyUSB ports with this modem by mode-switching.

The correct driver was loaded as your log shows:

Code: Select all

[80684.062736] cdc_ether 1-14:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-14,
  ZTE CDC Ethernet Device, 00:a0:c6:00:00:00
You have to use this modem like a network interface, with dhcp initialization.


Edit: I found this page when googling. I don't know if it works with your model. You might screw up your modem if you try this, so it is up to you to take the risk.
https://technicalexperiments.wordpress. ... nt-page-1/

unoc_u34
Posts: 5
Joined: 27 Jul 2018, 09:35

Re: UZB Modem ZTE MF667don't want switch to modem mode

Post by unoc_u34 » 03 Aug 2018, 09:36

Josh wrote:The problem is that the modem was already switched. The "lsusb" output shows that it is in modem mode.

However, the modem mode is 'ethernet' instead of 'serial'. You will not get any ttyUSB ports with this modem by mode-switching.

The correct driver was loaded as your log shows:

Code: Select all

[80684.062736] cdc_ether 1-14:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-14,
  ZTE CDC Ethernet Device, 00:a0:c6:00:00:00
You have to use this modem like a network interface, with dhcp initialization.


Edit: I found this page when googling. I don't know if it works with your model. You might screw up your modem if you try this, so it is up to you to take the risk.
https://technicalexperiments.wordpress. ... nt-page-1/
In that above link has preliminary sulotion as:

Code: Select all

echo “19d2 0016” > /sys/bus/usb-serial/drivers/option1/new_id
but I receive error:

Code: Select all

bash: echo: write error: Invalid argument
And here https://unix.stackexchange.com/question ... d-argument explain next:
“Write error: Invalid argument” means that the write method of the driver returns EINVAL. The most likely explanation is that this driver doesn't have a write method at all. It is fairly routine for drivers not to support certain actions, e.g. some drivers only support ioctl and not read/write, some drivers are intrinsically unidirectional (e.g. an input device) and only support read and not write or vice versa.

“Invalid argument” has nothing to do with permissions, it's what the device is able to do. You'd get a permission error if you didn't have write permission, but you do have permission to talk to the driver. It's just that what you're asking the driver to do is something that it has no concept of.
In fact, I use "Gammu" as an SMS gateway and That in turn does not work with network devices. Therefore, I will have to switch to modem mode to use the serial ports of ttyUSB*

Post Reply