I have a Huawei U7510 and Ubuntu 9.10.
USB_ModeSwitch installs OK but won't switch ??.
Thanks for any help to solve this.
I can see :-
The windows install device, as usual
I can not see :-
The phones internal file device
The memory card device
The modem in network manager
------------------------------------------------------------------------------------------------------------------------
I have version 1.1.4-1 and 20100826-1 installed with Synaptic, but this did not switch my device.
So I needed to update to a newer version.
I left the old version there because the "How to install" said "If you have a version after 1.1.0 you can just update and overwrite all existing files. "
I have installed version 1.1.9 and 2011-08-05 data, In accordance with How to install
I checked for tcl got the % prompt
I downloaded and extracted both packages and then
make install both packages, no errors as far as I could tell.
I looked in Synaptic to see if the package had updated, and to my surprise it was still 1.1.4-1 & 20100826-1.
Did a Reload, but synaptic still lists the old version
So I checked the version in the terminal
Code: Select all
$ usb_modeswitch -e
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.9 (C) Josua Dietze 2011
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
$
As I was still not switching
I turned on logging in /etc/usb_modeswitch.conf as in troubleshooting
Code: Select all
EnableLogging=1
----------------------------------------------------------------------
1.) usb_modeswitch_ttyUSB1
Code: Select all
USB_ModeSwitch log from Thu Sep 22 10:32:32 BST 2011
* called with --symlink-name: params /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/ttyUSB1/tty/ttyUSB1 *
My name is ttyUSB1
My port is ttyUSB1, my interface is 1
devDir: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6
dev_top: 1-6
sysPath: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/ttyUSB1/tty/ttyUSB1
Checking my endpoints in /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1
in epDir /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/ep_83 ...
in epDir /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/ep_02 ...
--> I am not an interrupt port
Return empty name and exit
2.) usb_modeswitch_ttyUSB0
Code: Select all
USB_ModeSwitch log from Thu Sep 22 10:32:32 BST 2011
* called with --symlink-name: params /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/ttyUSB0/tty/ttyUSB0 *
My name is ttyUSB0
My port is ttyUSB0, my interface is 0
devDir: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6
dev_top: 1-6
sysPath: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/ttyUSB0/tty/ttyUSB0
Checking my endpoints in /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0
in epDir /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/ep_81 ...
/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/ep_81 has interrupt transfer type
--> I am an interrupt port
--> No interrupt interface below me
Return symlink name "gsmmodem" and exit
3.) usb_modeswitch_1-6:1.0
Code: Select all
USB_ModeSwitch log from Thu Sep 22 10:32:22 BST 2011
Raw args from udev: /1-6:1.0
Using global config file: /etc/usb_modeswitch.conf
Bus ID for device not given by udev.
Trying to determine it from kernel name (1-6:1.0) ...
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
manufacturer Huawei Technologies
product HUAWEI MOBILE
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /etc/usb_modeswitch.d/12d1:101e
Using config file from override folder /etc/usb_modeswitch.d
! matched, now switching
(running command: /usr/sbin/usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1:101e)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
Reading config file: /etc/usb_modeswitch.d/12d1:101e
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.9 (C) Josua Dietze 2011
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x101e
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243123456780600000080000601000000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
adding device
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Found devices in default mode, class or configuration (1)
Accessing device 004 on bus 001 ...
Skipping the check for the current configuration
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI MOBILE
Serial No.: not provided
-------------------------
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_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matchiusb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_busses: Found 004
usb_os_find_busses: Found 001
usb_os_find_busses: Found 005
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 005 on 001
skipped 6 class/vendor specific interface descriptors
skipped 5 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 003
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
ng vendor ID
found matching product ID
target class ff not matching
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Searching for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:101e
found matching vendor ID
found matching product ID
target class ff matching
adding device
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 04a9:1093
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0451:1446
searching devices, found USB ID 1d6b:0001
Found target device, now opening
Found target device 005 on bus 001
Target device description data
-------------------------
Manufacturer: Huawei Technologies
Product: Mobile Configuration
Serial No.: not provided
-------------------------
Found correct target device
Mode switch succeeded. Bye.
ok:12d1:101e
--------------------------------
(end of usb_modeswitch output)
Warning: USB attribute "serial" not found.
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Now checking for newly created serial devices ...
new serial devices found, driver has bound
Checking for AVOID_RESET_QUIRK attribute
AVOID_RESET_QUIRK not present
All done, exiting