Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
g5564
Posts: 3
Joined: 17 Oct 2015, 19:52

ZTE 637 does not switch

Post by g5564 » 17 Oct 2015, 19:59

Hi,
I have problem with switching modem ZTE 637
All configs are made, here is log file
(I erased serail number)
*just updated log file.

Code: Select all


USB_ModeSwitch log from Sat Oct 17 23:10:15 AMT 2015

Use global config file: /etc/usb_modeswitch.conf
Raw args from udev: /2-1.4:1.0

Use top device dir /sys/bus/usb/devices/2-1.4

----------------
USB values from sysfs:
  manufacturer	ZTE,Incorporated
  product	ZTE WCDMA Technologies MSM
  serial	xxxxxxxxxxxxxxxxxxxxx
----------------
bNumConfigurations is 1 - don't check for active configuration
ConfigList: /etc/usb_modeswitch.d/19d2:2000
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/19d2:2000
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
config: TargetVendor set to 19d2
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -W -D -s 20 -u -1 -b 2 -g 7 -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)
--------------------------------

Read long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.0 (C) Josua Dietze 2014
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x19d2
DefaultProduct= 0x2000
TargetVendor=   0x19d2
NeedResponse=0
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Use given bus/device number: 002/007 ...
Look for default devices ...
 bus/device number matched
  found USB ID 19d2:2000
   vendor ID matched
   product ID matched
 Found devices in default mode (1)
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE WCDMA Technologies MSM
  Serial No.: xxxxxxxxxxxxxxxxxxxxx
-------------------------
Bus/dev search active, refer success check to wrapper. Bye!

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

Check success of mode switch for max. 20 seconds ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...
 Read attributes ...

Target config not matching - current values are
    2-1.4:1.0/bInterfaceClass: 08
    bConfigurationValue:       1
    bNumConfigurations:        1
    busnum:                    2
    devnum:                    7
    idProduct:                 2000
    idVendor:                  19d2
    manufacturer:              ZTE,Incorporated
    product:                   ZTE WCDMA Technologies MSM
    serial:                    xxxxxxxxxxxxxxxxxxxxx

Mode switching may have failed. Exit

Thank You

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

Re: ZTE 637 does not switch

Post by Josh » 18 Oct 2015, 01:02

Your problem is here:

Code: Select all

Use config file from override folder /etc/usb_modeswitch.d
Why did you change the original file? What did you change? There is no switching method given ...

g5564
Posts: 3
Joined: 17 Oct 2015, 19:52

Re: ZTE 637 does not switch

Post by g5564 » 18 Oct 2015, 05:18

I did not change it. Simply there were blank file placed by a system. I do nothing changed or copyed there.
Just copyed file from:
/usr/share/usb_modeswitch/19d02_2000
to
/etc/usb_modeswitch.d
and renamed it to: "19d2:2000"
and now all is working.

Thanks, solved.

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

Re: ZTE 637 does not switch

Post by Josh » 18 Oct 2015, 09:31

g5564 wrote:Just copyed file from:
/usr/share/usb_modeswitch/19d02_2000
There must be something wrong with your installation. After installation of the usb-modeswitch-data package, "/usr/share/usb_modeswitch" contains either many files named "XXXX:XXXX" or one compressed file "configPack.tar.gz".

g5564
Posts: 3
Joined: 17 Oct 2015, 19:52

Re: ZTE 637 does not switch

Post by g5564 » 19 Oct 2015, 06:53

no, all is OK. It has a lot of files in "/usr/share/usb_modeswitch", and from there I took a file and placed into "/etc/usb_modeswitch.d".
Just in my setup, those all files are named not as XXXX:XXXX, but as XXXX_XXXX.

Have another issue now.
When modem is attached and I am switching on, the system when loads, does not detect modem. When I take out modem and place again into USB port - all works well.
Seems, from boot, it recognizes it as USB storage and do not allow to switch mode. Can You help me with this? Where I should make changes to get modem working from boot?

Post Reply