LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2010, 05:39 AM   #1
toredo
Member
 
Registered: Feb 2009
Posts: 83

Rep: Reputation: 25
usb_modeswitch with Huawei e220


Hello,

I use a sam9-l9260-board (ARM). There i installed usb_modeswitch for the huawei e220.

I configured the usb_modeswitch.conf:
Code:
# 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


# choose one of these:
#DetachStorageOnly=1

DefaultVendor=0x12d1
DefaultProduct=0x1003
#TargetClass=0xff
CheckSuccess=20
HuaweiMode=1
i tried many different configurations. nothing worked.

i start usb_modeswitch with this command:
Code:
 usb_modeswitch -c /etc/usb_modeswitch.conf -v 0x12d1 -p 0x1003 -W
And this is the output:
Code:
Looking for target devices ...
  searching devices, found USB ID 12d1:1003
   found matching vendor ID
   found matching product ID
   target class ff matching
   adding device
  searching devices, found USB ID 07d1:3c03
  searching devices, found USB ID 0424:2514
  searching devices, found USB ID 1d6b:0001
 Found devices in target mode or class (1)
Looking for default devices ...
  searching devices, found USB ID 12d1:1003
   found matching vendor ID
   found matching product ID
   target class ff matching
   not adding device as default
  searching devices, found USB ID 07d1:3c03
  searching devices, found USB ID 0424:2514
  searching devices, found USB ID 1d6b:0001
 No devices in default mode or class found. Nothing to do. Bye.
thanks for the help.

best regards toredo
 
Old 11-06-2010, 04:47 PM   #2
toredo
Member
 
Registered: Feb 2009
Posts: 83

Original Poster
Rep: Reputation: 25
i searched and i searched. the answer is very easy:

i had to compile USB_SERIAL_OPTION as a module.
description:
Code:
...
Say Y here if you have a GSM or CDMA modem that's connected to USB.
 
This driver also supports several PCMCIA cards which have a
built-in OHCI-USB adapter and an internally-connected GSM modem. 
The USB bus on these cards is not accessible externally. 
 
Supported devices include (some of?) those made by:
Option, Huawei, Audiovox, Novatel Wireless, or Anydata.
...
thanks
 
Old 07-20-2011, 09:11 AM   #3
ohmysql
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by toredo View Post
i searched and i searched. the answer is very easy:

i had to compile USB_SERIAL_OPTION as a module.
description:
Code:
...
Say Y here if you have a GSM or CDMA modem that's connected to USB.
 
This driver also supports several PCMCIA cards which have a
built-in OHCI-USB adapter and an internally-connected GSM modem. 
The USB bus on these cards is not accessible externally. 
 
Supported devices include (some of?) those made by:
Option, Huawei, Audiovox, Novatel Wireless, or Anydata.
...
thanks
How do you compile USB_SERIAL_OPTION as a module?
 
Old 07-20-2011, 11:50 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You don't say which distro you are running, but for my ubuntu kernel, CONFIG_USB_SERIAL_OPTION is already compiled as a module.

To find out
Code:
grep CONFIG_USB_SERIAL_OPTION   /boot/config-$(uname -r)
and my system returns
Code:
CONFIG_USB_SERIAL_OPTION=m
If this isn't the case for your system, you'll need to recompile your kernel with this option set. There are lots of tutorials on compiling your own kernel. It's quite fun, but I have only had to do it three times, so I have had to go and find a HOWTO every time.
 
Old 07-20-2011, 12:22 PM   #5
ohmysql
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
You don't say which distro you are running, but for my ubuntu kernel, CONFIG_USB_SERIAL_OPTION is already compiled as a module.

To find out
Code:
grep CONFIG_USB_SERIAL_OPTION   /boot/config-$(uname -r)
and my system returns
Code:
CONFIG_USB_SERIAL_OPTION=m
If this isn't the case for your system, you'll need to recompile your kernel with this option set. There are lots of tutorials on compiling your own kernel. It's quite fun, but I have only had to do it three times, so I have had to go and find a HOWTO every time.
Oh great, I do have that installed because I got the same output that you did.

Well, I'll tell you what I'm trying to do. I'm trying to get a Cisco Valet Connector AM-10 to work. It's one of those ZeroCD USB devices. Maybe I should just start a new thread. But I followed the steps here. Mmm. I'm going to keep looking for threads. I'm running Ubuntu 11.04. Hmm, I'll look around these forums.
 
Old 07-20-2011, 12:53 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
OK.

But you really should start a new thread, because yours is a different problem, and also threads like this one, that are marked as "solved", tend not to be read by people looking to answer questions.

For future postings, please post the Vendor:Product IDs of your USB device (these will also help you with your searches for solutions).

lsusb

Should list the device's IDs.

Welcome to LQ.

Last edited by tredegar; 07-21-2011 at 10:57 AM. Reason: clarity
 
Old 07-23-2011, 09:10 AM   #7
bker
LQ Newbie
 
Registered: Sep 2010
Distribution: Sidux/Debian
Posts: 3

Rep: Reputation: 0
ohmysql, did you get usb_modeswitch to work in the end?
Did you start a new thread about this issue?
 
Old 07-23-2011, 09:33 AM   #8
ohmysql
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Yes, thank you for asking. I forgot to post the link:

http://www.linuxquestions.org/questi...1-04-a-892796/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
huawei e220 or e279 mobile 3g lapinhaz Linux - Mobile 2 01-22-2010 09:52 AM
huawei e220 and SMS messages Mr.mick-duck Linux - Wireless Networking 1 07-13-2009 12:07 PM
SMStools and Huawei E220 3G modem makobu Linux - Software 0 08-10-2008 01:46 PM
Huawei E220 on OpenSUSE 11 craigheuvel Linux - Newbie 1 08-07-2008 12:20 PM
Huawei E220 danne123 Linux - Laptop and Netbook 18 07-18-2008 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration