Page 1 of 1

Regression from 2.5.2 to 2.6.0, zte modem

Posted: Mon Dec 16, 2019 2:36 pm
by lockywolf
This is what the version 2.5.2 adds to dmesg:

Code: Select all

[Dec16 20:10] usb 2-1.4: new high-speed USB device number 12 using ehci-pci
[  +0.080806] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1421, bcdDevice=50.02
[  +0.000007] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000004] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.000766] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[  +0.000149] scsi host6: usb-storage 2-1.4:1.0
[  +1.005843] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.000814] sr 6:0:0:0: Power-on or device reset occurred
[  +0.001908] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.009094] sr 6:0:0:0: Attached scsi CD-ROM sr0
[  +5.128905] usb 2-1.4: USB disconnect, device number 12
[  +0.427785] usb 2-1.4: new high-speed USB device number 13 using ehci-pci
[  +0.099269] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=0017, bcdDevice=50.02
[  +0.000004] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000002] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000001] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.023538] option 2-1.4:1.0: GSM modem (1-port) converter detected
[  +0.000080] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[  +0.001146] usb-storage 2-1.4:1.4: USB Mass Storage device detected
[  +0.000157] scsi host6: usb-storage 2-1.4:1.4
[  +0.083376] usbcore: registered new interface driver cdc_wdm
[  +0.008640] qmi_wwan 2-1.4:1.3: cdc-wdm0: USB WDM device
[  +0.007063] qmi_wwan 2-1.4:1.3 wwan0: register 'qmi_wwan' at usb-0000:00:1d.0-1.4, WWAN/QMI device, 1e:4d:88:d5:44:37
[  +0.000135] usbcore: registered new interface driver qmi_wwan
[  +0.927925] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.003048] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.007447] sr 6:0:0:0: Attached scsi CD-ROM sr0
[Dec16 20:22] tun: Universal TUN/TAP device driver, 1.6
The new version apparently doesn't do that:

Code: Select all

[Dec16 20:09] usb 2-1.4: new high-speed USB device number 10 using ehci-pci
[  +0.080321] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1421, bcdDevice=50.02
[  +0.000013] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000001] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000001] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.000698] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[  +0.000880] scsi host6: usb-storage 2-1.4:1.0
[  +5.634105] usb 2-1.4: USB disconnect, device number 10
[  +0.427148] usb 2-1.4: new high-speed USB device number 11 using ehci-pci
[  +0.099732] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1282, bcdDevice=50.02
[  +0.000012] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000001] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000001] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.023600] option 2-1.4:1.0: GSM modem (1-port) converter detected
[  +0.000099] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[  +0.000267] option 2-1.4:1.3: GSM modem (1-port) converter detected
[  +0.000068] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[  +0.000413] usb-storage 2-1.4:1.4: USB Mass Storage device detected
[  +0.000121] scsi host6: usb-storage 2-1.4:1.4
[  +1.024342] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.003137] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.004343] sr 6:0:0:0: Attached scsi CD-ROM sr0
I use Slackware's built-in package:

ftp://ftp.slackware.com/pub/slackware/s ... odeswitch/

I am not sure if it is Slackware's or usb_modeswitch's problem, so I'm reporting it in both places.

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Mon Dec 16, 2019 3:14 pm
by LOM
Please paste the output from:

sudo lsusb -v -d 19d2:1282


19d2:1421 did not have a device switch file in the past so this is caused by the latest usb_modeswitch.
I don't understand how you got it to switch into 19d2:0017 previously, there is an indication of a power reset in your log which seems related to the switching.
19d2:0017 after switching doesn't seem right to me even if the modem was working after entering that id..

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Mon Dec 16, 2019 3:35 pm
by lockywolf
LOM wrote:Please paste the output from:

sudo lsusb -v -d 19d2:1282
[s]The output is literally empty.
[/s] UPD: my bad, did that after the switch has already done its job

Code: Select all

root@delllaptop:/lib/udev/rules.d# lsusb -v -d 19d2:1282

Bus 002 Device 017: ID 19d2:1282 ZTE WCDMA Technologies MSM 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x1282 
  bcdDevice           50.02
  iManufacturer           1 ZTE,Incorporated
  iProduct                2 ZTE Technologies MSM
  iSerial                 3 MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x00b7
    bNumInterfaces          5
    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       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               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        1
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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               0
      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               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      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     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               9
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 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     0x04  EP 4 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        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 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     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000f
      Device can operate at Low Speed (1Mbps)
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         500 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
root@delllaptop:/lib/udev/rules.d# 

lsusb without keys:

Code: Select all

root@delllaptop:/home/lockywolf/DevLinux/slackware-current/source/a/usb_modeswitch# lsusb
Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 013: ID 19d2:0017 ZTE WCDMA Technologies MSM 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 05ca:181c Ricoh Co., Ltd 
Bus 001 Device 005: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
Bus 001 Device 004: ID 413c:2513 Dell Computer Corp. internal USB Hub of E-Port Replicator
Bus 001 Device 003: ID 413c:2513 Dell Computer Corp. internal USB Hub of E-Port Replicator
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I can do though:

Code: Select all

root@delllaptop:/home/lockywolf/DevLinux/slackware-current/source/a/usb_modeswitch# lsusb -v -d 19d2:0017

Bus 002 Device 013: ID 19d2:0017 ZTE WCDMA Technologies MSM 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x0017 
  bcdDevice           50.02
  iManufacturer           1 ZTE,Incorporated
  iProduct                2 ZTE Technologies MSM
  iSerial                 3 MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x00b7
    bNumInterfaces          5
    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       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               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        1
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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               0
      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               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      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     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               9
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 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     0x04  EP 4 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        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 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     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000f
      Device can operate at Low Speed (1Mbps)
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         500 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
root@delllaptop:/home/lockywolf/DevLinux/slackware-current/source/a/usb_modeswitch# 


Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Tue Dec 17, 2019 3:45 am
by lockywolf
Is there any other way I can provide debugging information?

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Tue Dec 17, 2019 4:49 am
by LOM
lockywolf wrote:Is there any other way I can provide debugging information?
We'll get to that later on.
Your lsusb listing shows strong similarities between the interfaces in 19d2:0017 and 19d2:1282 so your problem is likely that the latter has not been included in the qmi_wwan driver.
The option driver for the 19d2:1282 serial ports does also attach to the wrong interfaces..

19d2:0017 is an id used for debug and firmware update and you often continue to get there if a firmware update or modem unlock has not fully set the modem back to non-debug mode.
I'd prefer to see this modem being supported under the 19d2:1282 id if we can't find any other id apart from 19d2:0017 that we can switch it into..

So first step would be to see if there is any other switching methods for the modem and we can do that by modifying the 19d2:1421 device config file.
Find that file in the /usr/share/usb_modeswitch/configPack.tar.gz and copy it to the usb_modeswitch "override" directory
/etc/usb_modeswitch.d/.
You can now test different switch methods/messages by editing that file while keeping the file in the pack in original shape.

Try these contents in the file:

StandardEject=1
MessageContent="55534243123456702000000080000c85010101180101010101000000000000"

or

only the StandardEject line without any MessageContent

Replug the modem after each change and check what usb id you get after switching has taken place.
I'd guess that the single StandardEject line will bring you to 19d2:0017 but want to get that confirmed, and I'm curious to see what the combined switch method creates!


btw, what is the ZTE model number of this modem? MF733V? MF860?

Edit: Please also post the verbose lsusb list for the initial device id 19d2:1421, I want to see if there is more than one configuration to select between (could be an mbim configuration included).

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Tue Dec 17, 2019 5:16 am
by lockywolf
Got it, I'll try to do this after work.

In fact, this is not an "official" ZTE modem, it's branded as Softbank (And I don't read any Japanese). However, it has a ZTE chip inside.

The model is 403ZT.

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Tue Dec 17, 2019 9:23 am
by lockywolf
With the MessageContent="55534243123456702000000080000c85010101180101010101000000000000" :

Code: Select all

[Dec17 14:10] usb 2-1.4: new high-speed USB device number 22 using ehci-pci
[  +0.080757] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1421, bcdDevice=50.02
[  +0.000006] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000004] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.000952] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[  +0.000136] scsi host6: usb-storage 2-1.4:1.0
[  +5.635001] usb 2-1.4: USB disconnect, device number 22
[  +0.427328] usb 2-1.4: new high-speed USB device number 23 using ehci-pci
[  +0.128176] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1282, bcdDevice=50.02
[  +0.000006] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000003] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.026439] option 2-1.4:1.0: GSM modem (1-port) converter detected
[  +0.000115] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[  +0.000247] option 2-1.4:1.3: GSM modem (1-port) converter detected
[  +0.000073] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[  +0.000374] usb-storage 2-1.4:1.4: USB Mass Storage device detected
[  +0.000174] scsi host6: usb-storage 2-1.4:1.4
[  +1.041290] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.003611] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.007769] sr 6:0:0:0: Attached scsi CD-ROM sr0
root@delllaptop:/etc/usb_modeswitch.d# 
lsusb -v -d 19d2:1282

Code: Select all

root@delllaptop:/etc/usb_modeswitch.d# lsusb -v -d 19d2:1282

Bus 002 Device 023: ID 19d2:1282 ZTE WCDMA Technologies MSM 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x1282 
  bcdDevice           50.02
  iManufacturer           1 ZTE,Incorporated
  iProduct                2 ZTE Technologies MSM
  iSerial                 3 MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x00b7
    bNumInterfaces          5
    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       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               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        1
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               9
      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               0
      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               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      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     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               9
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 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     0x04  EP 4 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        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 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     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000f
      Device can operate at Low Speed (1Mbps)
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         500 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
root@delllaptop:/etc/usb_modeswitch.d# 
The modem doesn't work.

Without any MessageContent:

Code: Select all

[ +42.154777] usb 2-1.4: new high-speed USB device number 24 using ehci-pci
[  +0.080747] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1421, bcdDevice=50.02
[  +0.000007] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000003] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.000839] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[  +0.000196] scsi host6: usb-storage 2-1.4:1.0
[  +5.634320] usb 2-1.4: USB disconnect, device number 24
[  +0.684061] usb 2-1.4: new high-speed USB device number 25 using ehci-pci
[  +0.114573] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=0017, bcdDevice=50.02
[  +0.000007] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000003] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.024892] option 2-1.4:1.0: GSM modem (1-port) converter detected
[  +0.000108] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[  +0.001893] qmi_wwan 2-1.4:1.3: cdc-wdm0: USB WDM device
[  +0.015289] qmi_wwan 2-1.4:1.3 wwan0: register 'qmi_wwan' at usb-0000:00:1d.0-1.4, WWAN/QMI device, 1e:4d:88:d5:44:37
[  +0.005086] usb-storage 2-1.4:1.4: USB Mass Storage device detected
[  +0.000197] scsi host6: usb-storage 2-1.4:1.4
[  +1.064753] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.003347] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.015477] sr 6:0:0:0: Attached scsi CD-ROM sr0
root@delllaptop:/etc/usb_modeswitch.d# 
It switches to 19d2:0017

The modem works.

UPD: I cannot check whether 19d2:1421's lsusb, because after I insert it, it automatically switches to 19d2:0017.

I double-checked this by _completely uninstalling_ usb_modeswitch. So the following lines appear in dmesg _without usb_modeswitch installed_

Code: Select all

[Dec17 14:34] usb 2-1.4: new high-speed USB device number 30 using ehci-pci
[  +0.080394] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=1421, bcdDevice=50.02
[  +0.000007] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000004] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000003] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000003] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.000939] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[  +0.000122] scsi host6: usb-storage 2-1.4:1.0
[  +1.043843] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.024307] sr 6:0:0:0: Power-on or device reset occurred
[  +0.038151] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.006955] sr 6:0:0:0: Attached scsi CD-ROM sr0
[  +5.033267] usb 2-1.4: USB disconnect, device number 30
[  +0.684086] usb 2-1.4: new high-speed USB device number 31 using ehci-pci
[  +0.106196] usb 2-1.4: New USB device found, idVendor=19d2, idProduct=0017, bcdDevice=50.02
[  +0.000014] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000002] usb 2-1.4: Product: ZTE Technologies MSM
[  +0.000002] usb 2-1.4: Manufacturer: ZTE,Incorporated
[  +0.000002] usb 2-1.4: SerialNumber: MF860EZTED000000CP261718YDT0RQ5OM9E1KX8_8_6D75&&&&&&&&&&&&&&&&&0
[  +0.024021] option 2-1.4:1.0: GSM modem (1-port) converter detected
[  +0.000123] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[  +0.000761] qmi_wwan 2-1.4:1.3: cdc-wdm0: USB WDM device
[  +0.005773] qmi_wwan 2-1.4:1.3 wwan0: register 'qmi_wwan' at usb-0000:00:1d.0-1.4, WWAN/QMI device, 1e:4d:88:d5:44:37
[  +0.005139] usb-storage 2-1.4:1.4: USB Mass Storage device detected
[  +0.000169] scsi host6: usb-storage 2-1.4:1.4
[  +1.039329] scsi 6:0:0:0: CD-ROM            CWID     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[  +0.003035] sr 6:0:0:0: [sr0] scsi-1 drive
[  +0.007963] sr 6:0:0:0: Attached scsi CD-ROM sr0
root@delllaptop:/etc/usb_modeswitch.d# 
I tried to reboot with init=/bin/sh, but lsusb doesn't work then, so I don't know how to check 19d2:1421

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Wed Dec 18, 2019 4:40 am
by lockywolf
Is there any other way I can check lsusb before the device changes its id?

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Wed Dec 18, 2019 5:48 am
by LOM
lockywolf wrote:Got it, I'll try to do this after work.

In fact, this is not an "official" ZTE modem, it's branded as Softbank (And I don't read any Japanese). However, it has a ZTE chip inside.

The model is 403ZT.
I have downloaded Softbanks Switchtool for 403ZT from their support site and installed it under Windows.
Apart from the actual switch program it also installed the drivers and from them it is clear that the switched usb id should be 19d2:1282.

The option drivers in linux has to be corrected and the id has to be included in the qmi_wwan driver for a future linux release so I suggest that you continue to switch it into 19d2:0017 by keeping the 19d2:1421 device config file in the override directory with the single line StandardEject=1.

Re: Regression from 2.5.2 to 2.6.0, zte modem

Posted: Wed Dec 18, 2019 7:11 am
by lockywolf
Great, thank you.

I created a kernel bug report:

https://bugzilla.kernel.org/show_bug.cgi?id=205807