Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
spondbob
Posts: 15
Joined: 13 Dec 2012, 11:06

usb_modeswitch: no switching method given

Post by spondbob » 04 Feb 2014, 15:14

Code: Select all

spondbob@bikinibottom ~
$ lsusb
Bus 001 Device 006: ID 05c6:f000 Qualcomm, Inc.
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
spondbob@bikinibottom ~
$ sudo usb_modeswitch -v 05c6 -p f000
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 006 on bus 001
Get the current device configuration ...
 OK, got current device configuration (1)
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
Inquire device details; driver will be detached ...
Looking for active driver ...
 No active driver found. Detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: Haier
   Model String: CD-ROM
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: Qualcomm, Incorporated
     Product: Qualcomm CDMA Technologies MSM
  Serial No.: 803817040000
-------------------------
Warning: no switching method given. See documentation
-> Run lsusb to note any changes. Bye!

spondbob@bikinibottom ~
then how can I switch my usb mode?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: usb_modeswitch: no switching method given

Post by LOM » 04 Feb 2014, 16:35

Install the complete usb_modeswitch and its data package of config files for individual dongles, your dongles usb id is known by usb_modeswitch so there is no need for a manual cmd line call.

read:
http://www.draisberghof.de/usb_modeswitch/

spondbob
Posts: 15
Joined: 13 Dec 2012, 11:06

Re: usb_modeswitch: no switching method given

Post by spondbob » 04 Feb 2014, 17:42

But there's nothing in /dev like tty or usbmodem. As you see in my lsusb I'm using a usb hub there to attach my modem. But if I attach it directly without the hub, the modem is known as 201e:10f8 and I can do modprobe usbserial vendor=0x201e product=0x10f8, then 4 tty will be available in /dev

PS:
- I'm running on raspberry pi here
- my usb hub connected to my pi, and it's powered hub
- first I power up the hub than the pi, I tried the opposite nothing difference
- as I said before, if I attach the modem directly to my pi everything's good

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: usb_modeswitch: no switching method given

Post by LOM » 05 Feb 2014, 04:44

There is a known problem with Raspberry pi usb controller and its driver, part of it may have been solved in the latest dwc_otg driver for Raspberry.
You can not fix it by calling usb_modeswitch manually, usb_modeswitch works as it should and evidence of that is that it works when you plug the dongle directly to the usb port.
Google the problem, there are a few threads here in the forum where user has solved the problem by changing linux distro for their Raspberry.
I don't know which distro has the most updated dwc_otg driver but you should be able to find that out in Raspberrys own forums.

Post Reply