Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
roque
Posts: 1
Joined: 22 Jun 2015, 13:46

ZTE Modem could not switch

Post by roque » 22 Jun 2015, 13:50

Good morning to everyone!

I have a ZTE Modem that I would like to put in work with my raspberry pi ( running raspbian ). I followed this tutorial:[url]https://www.thefanclub.co.za/how-to/how ... wvdial/url]

... but the device dind't change the ID after a reboot! I enabled logging and this was the result:

Code: Select all

cat /var/log/usb_modeswitch_1-1.3\:1.0 


USB_ModeSwitch log from Thu Jan  01 00:00:06 UTC 1970

Raw args from udev: /1-1.3:1.0

Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-1.3
----------------
USB values from sysfs:
  manufacturer	ZTE,Incorporated
  product	ZTE WCDMA Technologies MSM
  serial	( PERSONAL INFO. I changed this myself)
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
SCSI attributes not needed, moving on
checking config: pack/19d2:2000
! matched. Reading config data
Extracting config 19d2:2000 from collection /usr/share/usb_modeswitch/configPack.tar.gz
config: TargetVendor set to 19d2
config: TargetProductList set to 0001,0002,0015,0016,0017,0031,0037,0052,0055,0061,0063,0064,0066,0091,0108,0117,0128,0157,1402,2002,2003
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 5 -v 19d2 -p 2000 -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.2.3 (C) Josua Dietze 2012
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x19d2
DefaultProduct= 0x2000
TargetVendor=   0x19d2
TargetProduct=  not set
TargetClass=    not set
TargetProductList="0001,0002,0015,0016,0017,0031,0037,0052,0055,0061,0063,0064,0066,0091,0108,0117,0128,0157,1402,2002,2003"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"
NeedResponse=1
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 001/005 ...
Looking for default devices ...
 bus/device number matched
  searching devices, found USB ID 19d2:2000
   found matching vendor ID
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE WCDMA Technologies MSM
  Serial No.: ( PERSONAL INFO. I changed this myself)
-------------------------
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reading the response to message 1 (CSW) ...
 Response reading got error -110
 Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...
 Reading attributes ...

Target config not matching - current values are
    1-1.3:1.0/bInterfaceClass: 08
    bConfigurationValue:       1
    bNumConfigurations:        1
    busnum:                    1
    devnum:                    5
    idProduct:                 2000
    idVendor:                  19d2
    manufacturer:              ZTE,Incorporated
    product:                   ZTE WCDMA Technologies MSM
    serial:                   ( PERSONAL INFO. I changed this myself)

Mode switching may have failed. Exiting
Can I get any help on this?

Thank you in advance!

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

Re: ZTE Modem could not switch

Post by Josh » 22 Jun 2015, 14:45

This should not happen:

Code: Select all

Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Reading the response to message 1 (CSW) ...
 Response reading got error -110
It shows that there is a problem with the USB host, hardware and/or driver. This is a known issue for the Raspberri Pi.
One possibility is that the power provided by the socket is insufficient; wireless modems typically need the full load of 500mA.

See this:
https://www.raspberrypi.org/forums/view ... 28&t=53832

Post Reply