I have visited various blogs and forums and set out to perform usb mode switching in FEDORA20.
Kindly have a look into various settings and logs in my machine.
Mode switching fails and I'm getting "No driver found. Either detached before or never attached" error message.
Meanwhile there is a line printed in console " No devices in target mode or class found" while executing usb_modeswitch command.
The device is shown to be detected as usb-storage in dmesg.
Any directions to get this working is greatly appreciated.
usb_modeswitch.conf
Code: Select all
DisableSwitching=0
EnableLogging=0
# SetStorageDelay=3
DefaultVendor=0x19d2
DefaultProduct=0xfff5
TargetVendor=0x19d2
TargetProduct=0xfff1
MessageEndpoint=0x0a
MessageContent="5553424312345678c00000008000069f010000000000000000000000000000"
#MessageEndpoint=0x01
#MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"
Code: Select all
[root@localhost hdgg]# usb_modeswitch -e
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.7 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS
Code: Select all
[root@localhost hdgg]# usb_modeswitch -I -W -c /etc/usb_modeswitch.conf
Reading config file: /etc/usb_modeswitch.conf
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.7 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x19d2
DefaultProduct= 0xfff5
TargetVendor= 0x19d2
TargetProduct= 0xfff1
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
QuantaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
BlackberryMode=0
PantechMode=0
MessageEndpoint=0x0a
MessageContent="5553424312345678c00000008000069f010000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
InquireDevice disabled
Success check disabled
System integration mode disabled
Looking for target devices ...
searching devices, found USB ID 0cf3:3005
searching devices, found USB ID 8087:0024
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0003
searching devices, found USB ID 19d2:fff5
found matching vendor ID
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1bcf:2880
searching devices, found USB ID 8087:0024
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 0cf3:3005
searching devices, found USB ID 8087:0024
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0003
searching devices, found USB ID 19d2:fff5
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1bcf:2880
searching devices, found USB ID 8087:0024
searching devices, found USB ID 1d6b:0002
Found device in default mode, class or configuration (1)
Accessing device 002 on bus 003 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using interface number 0
Using endpoints 0x0a (out) and 0x89 (in)
USB description data (for identification)
-------------------------
Manufacturer: ZTE, Incorporated
Product: USB Storage
Serial No.: 000000000002
-------------------------
Looking for active driver ...
No driver found. Either detached before or never attached
Setting up communication with interface 0
Using endpoint 0x0a for message sending ...
Trying to send message 1 to endpoint 0x0a ...
Sending the message returned error -110. Trying to continue
Resetting response endpoint 0x89
Resetting message endpoint 0x0a
-> Run lsusb to note any changes. Bye.
Code: Select all
[ 273.818891] usb 2-1.3: USB disconnect, device number 4
[ 284.919364] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[ 284.953730] usb 3-1: New USB device found, idVendor=19d2, idProduct=fff5
[ 284.953741] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 284.953746] usb 3-1: Product: USB Storage
[ 284.953751] usb 3-1: Manufacturer: ZTE, Incorporated
[ 284.953755] usb 3-1: SerialNumber: 000000000002
[ 284.956729] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 284.957664] scsi7 : usb-storage 3-1:1.0
Thanks,
Haroon