Howto switch the mode of World Call Wireless Broadband USB EVO device

Posted on July 24, 2012

1


Environment

OS = Centos 6.2

Device = World Call Wireless Broadband USB EVO (snap is also attached below of device)

  • Agenda

Change the mode of the above mentioned device from Mass Storage Device to AnyDATA modem.

  • Issue

When you plugged-in the above mentioned device to your Centos 6.2 OS, it detects this device as Mass Storage Device. See the below lsusb command output for reference.

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0c45:624f Microdia PC Camera (SN9C201 + OV9650)
Bus 002 Device 014: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
Bus 004 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 002 Device 020: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device
bash-4.1$

  • cat /etc/usb_modeswitch.conf

# cat /etc/usb_modeswitch.conf
# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script “usb_modeswitch_dispatcher”
# in /usr/sbin
# To enable an option, set it to “1”, “yes” or “true” (case doesn’t matter)
# Everything else counts as “disable”

# Disable automatic mode switching globally (e.g. to access the original
# install storage)

DisableSwitching=0

# Enable logging (results in a extensive report file in /var/log, named
# “usb_modeswitch_<interface-name>”

EnableLogging=0

DefaultVendor=05c6
DefaultProduct=1000
MessageContent=”5553424312345678000000000000061b000000020000000000000000000000″
Product: USB MMC Storage
Manufacturer: AnyDATA Corporation
SerialNumber: 000000000002
TargetVendor=16d5
TargetProduct=6502

  • Command use to switch the mode of device

usb_modeswitch

  • Challenges/Errors while switching the mode from Mass Storage to modem

When you try to run the usb_modeswitch command you will face many problems/Errors. See the below for reference:

Try # 1

# usb_modeswitch -V 16d5 -P 6502 -v 05c6 -p 1000

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 008 on bus 003 …
Getting the current device configuration …
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
————————-
Vendor String: 
Model String:@
Revision String: ��<
————————-
Error: could not get description string “manufacturer”
Error: could not get description string “product”
Error: could not get description string “serial number”

USB description data (for identification)
————————-
Manufacturer:
Product:
Serial No.:
————————-
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

Try # 2

# usb_modeswitch -v 05c6 -p 1000

Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 008 on bus 003 …
Getting the current device configuration …
Error getting the current configuration (error -110). Assuming configuration 1.
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
————————-
Vendor String: 
Model String:@
Revision String: �
————————-
Error: could not get description string “manufacturer”
Error: could not get description string “product”
Error: could not get description string “serial number”

USB description data (for identification)
————————-
Manufacturer:
Product:
Serial No.:
————————-
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

Try # 3

# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 008 on bus 002 …
Getting the current device configuration …
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
————————-
Vendor String:
Model String: }`��i�,��
Revision String: ���
————————-
Error: could not get description string “manufacturer”
Error: could not get description string “product”
Error: could not get description string “serial number”

USB description data (for identification)
————————-
Manufacturer:
Product:
Serial No.:
————————-
Setting up communication with interface 0
Using endpoint 0x08 for message sending …
Trying to send message 1 to endpoint 0x08 …
OK, message successfully sent
Resetting response endpoint 0x87
Could not reset endpoint (probably harmless): -110
Resetting message endpoint 0x08
Could not reset endpoint (probably harmless): -110
-> Run lsusb to note any changes. Bye.

Solution

As I have stated above that when you plugged-in the above mentioned device (World Call Wireless Broadband USB EVO) to your Centos 6.2 OS, it detects this device as Mass Storage Device.

Here we try to be smart. As you plug the device to your Centos 6.2 OS, you ready the command (usb_modeswitch /etc/usb_modeswitch.conf) in your terminal and hit Enter again and again until you see the below result. eventually the device will be detect as modem.

===============================

USB description data (for identification)
————————-
Manufacturer: AnyDATA Corporation
     Product: USB MMC Storage
  Serial No.: 000000000002
————————-

===============================

  • Verify that the modem is detected

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0c45:624f Microdia PC Camera (SN9C201 + OV9650)
Bus 002 Device 014: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
Bus 004 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 002 Device 023: ID 16d5:6502 AnyDATA Corporation CDMA/UMTS/GPRS modem

  • Complete snapshot

See the complete snapshot below of hitting enter again and again. Above we only share a specific part from snap.

# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
No devices in default mode found. Nothing to do. Bye.

[root@zahidhaseeb skype_static-2.2.0.35]# usb_modeswitch -c /etc/usb_modeswitch.conf

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 022 on bus 002 …
Getting the current device configuration …
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x08 (out) and 0x87 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
OK, driver found (“usbfs”)
OK, driver “usbfs” detached

SCSI inquiry data (for identification)
————————-
Vendor String: AnyDATA
Model String: CD-ROM
Revision String: 1.00
————————-

USB description data (for identification)
————————-
Manufacturer: AnyDATA Corporation
     Product: USB MMC Storage
  Serial No.: 000000000002
————————-
Setting up communication with interface 0
Using endpoint 0x08 for message sending …
Trying to send message 1 to endpoint 0x08 …
OK, message successfully sent
Resetting response endpoint 0x87
Could not reset endpoint (probably harmless): -84
Resetting message endpoint 0x08
Could not reset endpoint (probably harmless): -71
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

  • Create Network connection for modem

Right click on the Network icon on toolbar and click on EDIT Connections. See the below snap for reference:(you will also notice here that Enable Mobile Broadband will appear after successful mode switch)

Now click on Mobile Broadband and click on Add . You will also find the modem here which is the confirmation that device mode is successfully switched. See the below snap for reference:

Now you can move forward the wizard and just add the device credentials and select the check box connect automatically.

Advertisements
Posted in: Linux