Huawei 3G Modem and AVR32 [SOLVED]

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello guys,
i am trying to make a Huawei E220 3G modem work with an AVR32 board which has a USB Host controller on it. (IC Nova Board http://www.ic-board.de/product_info.php?language=en&info=p89_ICnova-ADB1000-StarterKitplus.html&XTCsid=2cdc4f531f5b9bdc7e23862854d90b04).

I know that this modem is natively supported from kernel version > 2.6.20 .. i am working on 2.6.28

When i connect my device i get some error message..

# usb 1-1.3: new full speed USB device using isp176x and address 19
usb 1-1.3: configuration #1 chosen from 1 choice
usb-storage: probe of 1-1.3:1.0 failed with error -5
usb-storage: probe of 1-1.3:1.1 failed with error -5
usb-storage: probe of 1-1.3:1.2 failed with error -1

I supposed i should get some /dev/ttyUSB0 serial ports.. but there's nothing..

any ideas of what can i do?? Any thoughts?

This site claims that Huawei works on kernels > 2.6.20
http://oozie.fm.interpia.pl/pro/huawei-e220/ and its true

Last Edited: Mon. Jun 15, 2009 - 08:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm, could you check if your board can source enough current? Stick a scope on the USB power lines and check if there is a significant sag. I've fiddled with some of the huawei modems and they have a significant current draw on startup.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i know they suck large amount of current.. my supply is large enough just because of this.. it should work, isnt there any way to check if its a problem with the kernel or any idea to start searching..i am not a linux guru :-)

thanks timgoh0!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would start digging into the module code and see what gives out the printout

usb-storage: probe of 1-1.3:1.0 failed with error -5
usb-storage: probe of 1-1.3:1.1 failed with error -5
usb-storage: probe of 1-1.3:1.2 failed with error -1 

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

drivers/base/dd.c. Not helpful :-)

There isn't a specific E220 driver to investigate further, that's been thrown straight from the USB core through to the driver core.

This is a real pain kind of an error. If the USB subsystem is throwing -EIO then something deep isn't right. Can you reproduce this with any other device? My money would be on something electrical rather than kernelie but I'm quite often wrong ;-)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have connected another usb modem.. a Teltonika U3G150 .. and i am only getting this message

# usb 1-1.1: new full speed USB device using isp176x and address 5
usb 1-1.1: configuration #1 chosen from 1 choice

no serial ports on /dev/ nor something usefull i can found... how can i manage to have the modem's usbserial port, it would be great to add gprs connection to the avr32 board..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,

have you tried loading the usbserial module with the usb-id?
afaik the E220 has got the following codes: (better check with lsusb)

modprobe usbserial vendor=0x12d1 product=0x1003 

I did some experiments with OpenWRT and USB UMTS modems, there you have to enable the usbserial module (ftdi afaik) in the buildroot to get support for USB modems.

cu,
datacop

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i tried what you told me but it seems there is no "usbserial" module in my kernel..

do you know where i can find it?

thank for you time!

regards

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,

it's under
USB support >
Support for Host-side USB >
USB Serial Converter support

but I'm not sure which driver the huawei devices use..
i think the USB Generic Serial Driver should do it as far as i can read from my kernel log...

cu,
datacop

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hmm.. i feel a little dope right now...
we are talking about avr32 buildroot , right?

i cant find anything like this in the menuconfig..

i am confused !

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No this is in the linux kernel I think.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

cant find those settings anywhere.. they should be in menuconfig.. how else can i change settings for the kernel to build!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
make linux26-menuconfig 

Shoud give you the linux menuconfig

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yeap that worked! i found that menu and enable USB serial converter support... i will try now to make the kernel and plug my huawei! Lets see :-) i am excited! thank you guys, ill report my findings :-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks for your valuable help guys, i compiled again the kernel with the new configuration and finally i got a /dev/USB0 and /dev/USB1 modem port... i can now dialup using pppd! have a nice day!