I'm pretty new for USB_ModeSwitch. So I'm very happy if some person here can give me some help.
Recently I buy a new USB wireless adapter. This device can work in windows, but it can not work on Ubuntu 16.04.
I read some article in this website, so I do the following steps.
barry@barry-R458:/home/netxianren$ usb_modeswitch -e
Quote:
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
barry@barry-R458:/home/netxianren$ uname -a
Quote:
Linux barry-R458 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:15 UTC 2016 i686 i686 i686 GNU/Linux
barry@barry-R458:/home/netxianren$ lsusb
Quote:
Bus 002 Device 008: ID 148f:2878 Ralink Technology, Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 09da:000a A4Tech Co., Ltd. Optical Mouse Opto 510D / OP-620D
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
The device 148f:2878 Ralink Technology, Corp. is my USB wireless adapter.
Then I execute the following command:
barry@barry-R458:/home/netxianren$ sudo usb_modeswitch -KW -v 148f -p 2878
Quote:
Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x148f
DefaultProduct= 0x2878
StandardEject=1
NeedResponse=0
Look for default devices ...
found USB ID 148f:2878
vendor ID matched
product ID matched
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
Found devices in default mode (1)
Access device 008 on bus 002
Current configuration number is 1
Use interface number 0
Use endpoints 0x08 (out) and 0x84 (in)
USB description data (for identification)
-------------------------
Manufacturer: ?
Product: ?
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 2 (CSW) ...
Device seems to have vanished after reading. Good.
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
barry@barry-R458:/home/netxianren$ lsusb
Quote:
Bus 002 Device 009: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 09da:000a A4Tech Co., Ltd. Optical Mouse Opto 510D / OP-620D
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I'm very happy. Because the divice switched to 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter.
But the device still can not work. So I execute the following cmmand:
barry@barry-R458:/home/netxianren$ sudo usb_modeswitch -KW -v 148f -p 2878 -s 3 -V 148f -P 7601
Quote:
Take all parameters from the command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x148f
DefaultProduct= 0x2878
TargetVendor= 0x148f
TargetProduct= 0x7601
StandardEject=1
NeedResponse=0
Success check enabled, max. wait time 3 seconds
Look for target devices ...
found USB ID 148f:2878
vendor ID matched
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
No devices in target mode or class found
Look for default devices ...
found USB ID 148f:2878
vendor ID matched
product ID matched
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
Found devices in default mode (1)
Access device 014 on bus 002
Current configuration number is 1
Use interface number 0
Use endpoints 0x08 (out) and 0x84 (in)
USB description data (for identification)
-------------------------
Manufacturer: ?
Product: ?
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x08 ...
Device seems to have vanished right after sending. Good.
Device is gone, skip any further commands
Check for mode switch (max. 3 times, once per second) ...
Search for target devices ...
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
Search for target devices ...
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
Search for target devices ...
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 1d6b:0002
found USB ID 1d6b:0001
found USB ID 1d6b:0001
found USB ID 09da:000a
found USB ID 1d6b:0001
No new devices in target mode or class found
Mode switch has failed. Bye!
Could somebody tell me what's the problem? And what to do next?