LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-12-2008, 02:50 AM   #1
Linuxkundi
LQ Newbie
 
Registered: May 2005
Distribution: Mandriva
Posts: 12

Rep: Reputation: 0
HSPDA USB modem Huawei E220


How can I connect in an Easy way?
 
Old 10-12-2008, 07:21 AM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
First: check the output of lsusb to find the vendor & product info.
Give us the output here and I can help you further.

Is it one of these modems that first connects as a pen-drive with Windows software?
Mine does that...
Then you'll have to get a little program called usb_modeswitch.

The connection is through pppd on the command line or kppp from KDE.

If your connection speed is not what you expect (but for instance limited to 512K) then you'll have to follow one more step: get a patch for option.c and recompile this module.
But I can give you instructions for this one as well...
 
Old 10-12-2008, 07:28 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I think it should work just fine using the usb_serial module and pppd or kppp.
 
Old 10-12-2008, 08:07 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Just checked my /usr/src/linux/drivers/usb/serial/option.c and it supports your modem if 'lsusb' returns with one of the following IDs:
12d1:1001, 12d1:1003 or 12d1:1004

If it does, you're more lucky than I was with mine, which is only supported by the 2.6.26 kernels, so I had to hack option.c myself

You might still need the usb_modeswitch trick if your modem is only recognized as a pen-drive.
 
Old 10-12-2008, 08:48 AM   #5
robel
Member
 
Registered: Oct 2008
Location: Norway
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Quote:
Originally Posted by Linuxkundi View Post
How can I connect in an Easy way?
My E220 shows up as:

idVendor 0x12d1
idProduct 0x1003

in lsusb -v

It is pretty easy to setup. Assuming the right modules (usbserial, option, etc.) are loaded and dmesg says someting like this:

option 3-1:1.0: GSM modem (1-port) converter detected
usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
option 3-1:1.1: GSM modem (1-port) converter detected
usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2


you just consider the E220 as a straight forward telephone modem.

(I have a GPS connected to /dev/ttyUSB0, that's why my E220 starts at ttyUSB1)

I'm running Slackware 12.1 and as a console lover I just run pppsetup from console. The phone number (dialing command) should be someting like ATDT*99***1# (but that could depend on you network operator).

Good luck!

-Bob
 
Old 10-12-2008, 12:10 PM   #6
robel
Member
 
Registered: Oct 2008
Location: Norway
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Quote:
Originally Posted by robel View Post
My E220 shows up as:

It is pretty easy to setup. Assuming the right modules (usbserial, option, etc.) are loaded and dmesg says someting like this:
Come to think of it... A fresh Slackware install (12.1) with the huge-smp kernel (the ENTER choice) did not work for me. I got a weird error in dmesg saying something like "cannot load module twice". Sorry, I don't recall the error.

Anyway, after building a new kernel everything worked fine.

If you don't know how to build a kernel, here is a quick and dirty recipe:

(all commands should be typed without quotes)

FIRST: BACKUP YOU /boot DIRECTORY !!
(type "cp -a /boot /boot-backup")

1. Open a shell

2. Create a directory
type "mkdir kernel"

3. Change to that directory
type "cd kernel"

4. Get the latest kernel from kernel.org
type "wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2"

5. Unpack the kernel source
type "tar -jxf linux-2.6.27.tar.bz2"

6. Change to the linux-2.6.27 directory
type "cd linux-2.6.27"

7. copy the config from /boot
type "cp /boot/config .config"

8. Make the config
type "make silentoldconfig"
(just hit ENTER for every question until it's done)

9. Make the kernel
type "make"
(if you have a multicore CPU or multiple CPUs you can type "make -j2" (dual core) or "make -j4" (quad core) to speed things up. Please note that this does not speed up things on a single(core) CPU, on the contrary it probably slows the process due to task switching.

10. Install modules
type "make install_modules"

11. Install the kernel
type "make install"

10 and 11 should be performed as root, but if you're root in the first place that's fine.

Now you can reboot. Have the Slackware CD ready if the kernel doesn't work. Boot the system from CD (or whatever) and restore your /boot directory. Type "cp -a /boot-backup /boot"

-Bob

Last edited by robel; 10-12-2008 at 12:15 PM. Reason: Typos
 
Old 10-12-2008, 12:17 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,242

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
It would be easier to switch to the generic-smp kernel instead of building a whole new one (which can be error-prone if you don't know what you're doing). To switch to the generic-smp kernel, you need to create an initrd, edit /etc/lilo.conf, and run `lilo` as root. To create an initrd, follow the instructions in /boot/README.initrd. You could also use Alien Bob's script, which tries to guess the correct mkinitrd command for your system. You should also read `man mkinitrd`.
 
Old 05-16-2011, 11:16 AM   #8
tix
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: 0
Huawei E160/E220 in Slackware 13.0 (solution)

To get your USB dongle (Huawei E160 or Huawei E220) to work: (Slackware Linux 13.0 - kernel 2.6.38.6 but may work on other linux versions)

Step 1: Ensure PPP is compiled into your kernel

Step 2: Ensure that you kernel does not spew any errors or does not panic (see kernel compilation howto in /usr/doc/Linux-HOWTOs)

Step 3: Ensure that your kernel supports USB storage

Step 3a: Ensure that kernel supports USB-Serial (generic usb_serial driver should work)

Step 4: obtain software called comgt (http://sourceforge.net/projects/comgt/)

Step 5: Boot your computer (LOL!)

Step 6: At command prompt login (duh!)

Step 7: su as root user (login as regular user, issue command "su" and put root password - risky to login directly as root)

Step 8: Uncompress comgt.032.tgz (tar -xvzf comgt.032.tgz)

Step 9:build the comgt and install comgt

Step 10:insert Huawei modem

Step 11: Huawei modem shall be detected as CD-ROM drive (/dev/sr1 or /dev/sdb) instead of a 3g modem (check using "dmesg")

Step 12: To switch modes of modem from CD-ROM to a modem, you need to eject the Huawei CD-ROM device using the command (eject
/dev/sr1 or eject /dev/sdb or eject /dev/<whatever is in you dmesg>)

Step 13: To switch modes of huawei modem, use comgt
"comgt -x -d /dev/-usb device-" where -usb device- is ttyUSB0 or ttyUSB1 -- e.g. "comgt -x -d /dev/ttyUSB0"
Some message should display giving you the network provide name and the signal strength!

Step 14: point /dev/modem to your Huawei modem at e.g. /dev/ttyUSB0. If /dev/modem does not exist, then create it LOL! "ln -s /dev/ttyUSB0 /dev/modem"

Step 15: Exit as root user and login as regular user! (if using "su" simply type exit)

Step 16: Start your dialer program - wvdial or kppp

Step 17: konfigure your dialer and dial!

Step 18: A new device "ppp0" will be listed in list of networking hardware (check this using "ifconfig")

Step 19: make sure your put your DNS server addresses in "/etc/resolv.conf" in format "nameserver -DNS server-" where -DNS server- is ip address of DNS server of your ISP

Step 20: enjoy surfing!
-END-

Last edited by tix; 05-17-2011 at 11:42 AM. Reason: whoops...ttyUSB0 not USBtty0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to use the wireless modem huawei e220 on ubuntu? J-xToF Linux - Hardware 2 08-26-2008 07:35 PM
SMStools and Huawei E220 3G modem makobu Linux - Software 0 08-10-2008 01:46 PM
Setting up 3g modem (Huawei E220) Arla Linux - Wireless Networking 4 06-13-2008 01:17 AM
Higher speed with HUAWEI E220 USB modem? stardustdk Linux - Laptop and Netbook 3 03-04-2008 04:13 AM
Haldaemon causing problems with my Huawei E220 USB HSDPA modem. redarrow Linux - General 3 01-06-2008 08:45 AM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration