usb_modeswitch log

In answer to zygo:

File usb_modeswitch.log:

Puppy Linux emulation of usb_modeswitch.tcl wrapper script

raw args from udev: /1-2:1.0
Bus ID for device not given by udev.
Trying to determine it from kernel name 1-2:1.0 ...
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Found 004 on 001
error obtaining child information: Inappropriate ioctl for device
Reading config file: /etc/usb_modeswitch.d/19d2:1009

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.3 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x19d2
DefaultProduct= 0x1009
TargetVendor= 0x19d2
TargetProduct= 0x1010
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
NeedResponse=1
ResponseEndpoint= not set
Interface=0x00

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


Looking for target devices ...
searching devices, found USB ID 19d2:1009
found matching vendor ID
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 19d2:1009
found matching vendor ID
found matching product ID
adding device
Found devices in default mode or class (1)
Accessing device 004 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Vodafone (ZTE)
Product: Vodafone Mobile Broadband K3571-Z
Serial No.: P680A8VDFD000000
-------------------------
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 ...
USB error: could not claim interface 0: No such device
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
error obtaining child information: Inappropriate ioctl for device
OK, message successfully sent
Reading the response to the message (CSW) ...
OK, response successfully read (13 bytes).
Resetting response endpoint 0x81
Resetting message endpoint 0x01

Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device can't be accessed anymore. Good.
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
Searching for target devices ...
searching devices, found USB ID 19d2:1010
found matching vendor ID
found matching product ID
adding device

Found target device 005 on bus 001

Target device description data
-------------------------
Manufacturer: Vodafone (ZTE)
Product: Vodafone Mobile Broadband K3571-Z
Serial No.: P680A8VDFD000000
-------------------------
Found correct target device

Mode switch succeeded. Bye.



Posted on 30 Sep 2010, 7:55


Comments:

Posted on 30 Sep 2010, 8:04 by BarryK
Trouble connecting again
This morning, I had trouble connecting, the try ttyUSB1 first then ttyUSB3 thing in PupDial did not work -- PupyDial reported no modem on ttyUSB3.

Then I thought what I did last night. One of the thing I tried loast night, I repeated today:

Used this wvdial.conf:

[Dialer Defaults]

Carrier Check = no
Dial Command = ATDT
Phone = *99#
Username = <my modem phone number>
Password = <password pin number>
Stupid Mode = yes
Auto Reconnect = no

[Dialer hsdpa]
Modem = /dev/ttyUSB3
#Modem = /dev/ttyUSB2
Baud = 460800
Init1 =
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","vfprepaymbb"
ISDN = 0
Modem Type = USB Modem


And got this:

# wvdial hsdpa


--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","vfprepaymbb"
AT+CGDCONT=1,"IP","vfprepaymbb"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 3600000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Sep 30 06:54:44 2010
--> pid of pppd: 31115
--> Disconnecting at Thu Sep 30 06:54:44 2010
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)





Posted on 30 Sep 2010, 8:08 by BarryK
Then it worked
...continuing from previous post...

Then I went back to PupDial and did the ttyUSB1 then ttyUSB3 thing, this time it recognised ttyUSB3, but wouldn't connect.

The I noticed two entries of this in wvdial.conf:

Init4 = AT+CGDCONT=1,"IP","vfprepaymbb"
Init5 = AT+CGDCONT=1,"IP","vfprepaymbb"

...removed the first one, then it worked.

So, I still don't really have a systematic method of connection. have run out of time again.



Posted on 30 Sep 2010, 18:36 by wombat01
Vodafone
rerwin has returned. Try this.

http://www.murga-linux.com/puppy/viewtopic.php?p=454912&sid=84f09b2d92909532206e49816c2a6973#454912


Posted on 4 Oct 2010, 4:42 by zygo
watching the switch
BarryK,

It could be that sometimes the kernel is dealing with the dongle at the same time as udev. With the udev rule disabled and hardinfo showing usb devices: plug the modem in and watch in hardinfo for it appearing and disappearing. Repeat a few times. Is it always the same?