Linux - HOWTO (With Stats)

Status
Not open for further replies.
Ubuntu and Huawei E220 USB

Hi Tazz,

I've spent about a week now going through the forums and following your procedures on how to configure the e220 on Ubuntu.

I've unmounted the device, removed the usb-storage mod, reinserted the module from the information by the "lbusb" command which points to 12d1:1003. "modprobe usbserial vendor=0x12d1 product=0x1003".

I have even updated my wvdial.conf file to look exactly like yours.

When i try and connect via "wvdial hsdpa" (which points to /dev/ttyUSB0)
i get the "Cannot get information for serial port" error.

Strangely enough, whenever I reinsert the usb device and i do an "lsmod" i see the usb_storage mod again. Is this suppose to be there? Didn't i remove that via "rmmod usb-storage"?

I am really struggling and need your help please.

-------------------------------
Dis lekke in Suid-Afrika
 
Vodahell internet connection

Problems accessing some sites; nurst of data about 160k after a while; Am i the only one?
<-- Apparently I there may be a software problem wiff my fone, I am told after making some inquiries; sounds rude!
 
Huawei E620 with Vodafone in Spain

Thanks for all the information in the thread.

I have been trying several things but i have not been able to make my pcmcia Huawei E620 provided by Vodafone in Spain. After having spent about six hours the maximum i got is the following output:

--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ERROR
--> Bad init string.


Any idea on what i can do?
 
Hi willieb,

Two things:

  • Did you run the modprobe command at the start
  • What does your wvdial.conf look like

Laterz !
Yes i did "sudo modprobe serial_cs" and the .conf file is as per yours.
thks for the reply.
But i dumped ubuntu and tried mandriva. here everything looks fine. it picked up the hardware and i ran the net set-up but i can't find what i must enter in the access settings in the control centre set-up.
It require the "Access name" Access Login" and "access password".
thks
willie
 
Yes i did "sudo modprobe serial_cs" and the .conf file is as per yours.
thks for the reply.
But i dumped ubuntu and tried mandriva. here everything looks fine. it picked up the hardware and i ran the net set-up but i can't find what i must enter in the access settings in the control centre set-up.
It require the "Access name" Access Login" and "access password".
thks
willie

Morning Willie,

Perhaps you can take a screen shot and post if somewhere of where it is asking you for this info ?

Thanks !
 
Hey Cyberbob,

I have requested a jamjar to allow me to set it up and test. I will advise asap :)

Laterz !

Hey Tazz_Tux ...

Any progress on getting a JamJar or JasJar for testing? Really need to get my linux box rigged up :(

CyberBOB
 
I had given up on trying to get my E220 to work in Linux - tried both Gentoo [my desktop PC] and another PC with Ubuntu loaded, but now my ADSL is unusable again and I really need to get the E220 working in Linux - either that or buy an iBurst UTD to use as a backup to ADSL...

Anyway no problem with the rmmod or modprobe, and it is detected as /dev/ttyUSB0 according to /var/log/messages, but when I use wvdial, I keep getting a "Modem not responding" error and no connection. Now I notice that Tazz_Tux's wvdial.conf is newer and has a "huewai_e220" section which I don't have in mine [I fudged a previous revision for /dev/ttyUSB0], so I'm wondering if the new wvdial.conf will sort my problem out? - I will try it a bit later, but...

I would ultimately like to get my E220 working in IPCop which has a 2.4.x kernel, without using wvdial, what are my chances?
 
Hi,

I'm from Austria/Europe and try to get my Huawai E630 HSDPA Card to work with gentoo. I've managed it, that my system recognizes the card. I'can place a call via minicom and AT commands. So it seems the card is working.

For establishing the ppp connection to my provider (T-mobile Austria) I use kppp cause I can't emerge wvstreams : /

pppd comes up successfully and tries to establish the connection to my provider, but it's not working. In syslog I get these logs:
Code:
Feb  1 09:26:59 Chris-NB PPP generic driver version 2.4.2
Feb  1 09:26:59 Chris-NB pppd[6744]: pppd 2.4.4 started by chris, uid 1000
Feb  1 09:26:59 Chris-NB pppd[6744]: using channel 1
Feb  1 09:26:59 Chris-NB pppd[6744]: Using interface ppp0
Feb  1 09:26:59 Chris-NB pppd[6744]: Connect: ppp0 <--> /dev/ttyUSB2
Feb  1 09:26:59 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:26:59 Chris-NB udev-net.sh: /etc/init.d/net.ppp0: does not exist or is not executable
Feb  1 09:27:02 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:05 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:08 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:11 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:14 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:17 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:20 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:23 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:26 Chris-NB pppd[6744]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd789e55d> <pcomp> <accomp>]
Feb  1 09:27:29 Chris-NB pppd[6744]: Terminating on signal 15
Feb  1 09:27:29 Chris-NB pppd[6744]: sent [LCP TermReq id=0x2 "User request"]
Feb  1 09:27:32 Chris-NB pppd[6744]: sent [LCP TermReq id=0x3 "User request"]
Feb  1 09:27:35 Chris-NB pppd[6744]: Connection terminated.
Feb  1 09:27:35 Chris-NB pppd[6744]: Receive serial link is not 8-bit clean:
Feb  1 09:27:35 Chris-NB pppd[6744]: Problem: all had bit 7 set to 0
Feb  1 09:27:35 Chris-NB pppd[6744]: Modem hangup
Feb  1 09:27:35 Chris-NB pppd[6744]: Exit.

Here is my config for kppp:
Code:
[Account0]
AccountingEnabled=0
AccountingFile=
Authentication=4
AutoDNS=1
AutoName=0
BeforeConnect=xterm -e /usr/local/bin/comgt -x -d /dev/ttyUSB2
BeforeDisconnect=
CallbackPhone=
CallbackType=0
Command=
DNS=
DefaultRoute=1
DisconnectCommand=
Domain=
ExDNSDisabled=0
Gateway=0.0.0.0
IPAddr=0.0.0.0
Name=web'n'walk
Password=1234
Phonenumber=*99#
ScriptArguments=
ScriptCommands=
StorePassword=1
SubnetMask=0.0.0.0
Username=user
VolumeAccountingEnabled=0
pppdArguments=defaultroute,crtscts,modem,noipdefault,usepeerdns,novj,debug

[Account1]
Username=user
pppdArguments=

[General]
AutomaticRedial=0
DefaultAccount=web'n'walk
DefaultModem=HUAWAI
DockIntoPanel=1
NumberOfAccounts=2
NumberOfModems=3
PPPDebug=0
QuitOnDisconnect=1
RedialOnNoCarrier=0
ShowLogWindow=1

[Graph]
Background=255,255,255
Enabled=true
InBytes=0,0,255
OutBytes=255,0,0
Text=0,0,0

[Modem0]
AnswerResponse=CONNECT
AnswerString=ATA
BusyResponse=BUSY
BusyWait=0
ConnectResponse=CONNECT
DLPResponse=DIGITAL LINE DETECTED
Device=/dev/ttyUSB2
DialString=ATD
Enter=CR
EscapeGuardTime=50
EscapeResponse=OK
EscapeString=+++
FlowControl=Hardware [CRTSCTS]
HangUpResponse=OK
HangupString=+++ATH
InitDelay=50
InitResponse=OK
InitString=AT+CFUN=1
InitString1=AT+CGDCONT=1,"IP","gprsinternet","",0,0
Name=HUAWAI
NoCarrierResponse=NO CARRIER
NoDialToneDetection=ATX3
NoDialToneResp=NO DIALTONE
PreInitDelay=50
RingResponse=RING
Speed=460800
Timeout=82
ToneDuration=70
UseLockFile=1
Volume=0
VolumeHigh=M1L3
VolumeMedium=M1L1
VolumeOff=M0L0
WaitForDialTone=1

[WindowPosition]
WindowPositionConWinX=487
WindowPositionConWinY=498
WindowPositionStatWinX=811
WindowPositionStatWinY=454

Anyone knows how I can fix that? Or what I'm missing? Would be really nice : D


Edit:
Ok, stupiedness is never godd : / I've used the wrong Device! The correct one is /dev/ttyUSB0 After changing that everything works find. With wvdial (patched wvstreams) and kppp.

So, thanks for the great HOWTO, really nice!
chris...
 
Last edited:
Huawei e220 Open wrt

Hello!
Ive got a Huaweit e220 (austrian drei.at) and got installed openwrt rc6
This are my Installed Packages:
base-files
base-files-brcm
bridge
busybox
chat
dnsmasq
dropbe
haserl
ipkg
iptables
iwlib
kernel
kmod-brcm-wl
kmod-diag
kmod-ppp
kmod-switch
kmod-usb-core
kmod-usb-ohci
kmod-usb-serial
kmod-usb-uhci
kmod-usb2
kmod-wlcompat
libusb Uninstall
lsusb Uninstall
microcom
mtd
nvram
ppp
setserial
uclibc
webif
wificonf
wireless-tools

i´ve used this http://wiki.openwrt.org/MobileAPHowTo2#head-d1e118ce0aafaaf6db01d74f60481b072156c460 howto !
But

I cannot enter the internet he is also finding one serial if its up @ /dev/usb/tts/0

and if i connect this script with "pppd call cingular debug nodetach" he said script error!


i think the dialup scripts are false but dont know how to fix it!

Someone can write me a working script? (my apn = drei.at)

Wvdial hsdpa works in ubuntu for me !!!!

hopefully only the script fails!

thanks in advance
 
TazzTux,
All I can say is "Wow!" I'm incredibly impressed with the How To. I'm considering buying a Vodafone Connect Card here in Italy which I determined today is the Huawei E620. I wanted to make sure their card would work under Linux and my googling lead me to your page. I'm a SuSE fan and most of my Boxes are running 10.1 and few on 10.2. After reading through your How To and many of the posts, I'm planning to buy the card tomorrow. I'm curious about one thing though. The advertised rates for the HSDPA here are 1.8Mb, but I'm only seeing 460800 in your wvdial.conf. Is that a limit for your provider , Linux, or the drivers ?

Thanks,
 
TazzTux,
All I can say is "Wow!" I'm incredibly impressed with the How To. I'm considering buying a Vodafone Connect Card here in Italy which I determined today is the Huawei E620. I wanted to make sure their card would work under Linux and my googling lead me to your page. I'm a SuSE fan and most of my Boxes are running 10.1 and few on 10.2. After reading through your How To and many of the posts, I'm planning to buy the card tomorrow. I'm curious about one thing though. The advertised rates for the HSDPA here are 1.8Mb, but I'm only seeing 460800 in your wvdial.conf. Is that a limit for your provider , Linux, or the drivers ?

Thanks,

Hey Immauss,

I have only found this to be a limit of the AT command set - Even though it says that is the speed, I get 1.8meg.

Laterz !
 
Awesome. I'll be picking the card up the way home today, and I'll post my results.

Thanks,
 
hi,

i`v got a question about the connection speed of the Novatel U740. i`m using HSDPA.
when i`m downloading a file with windows i`ve got an average speed of 160KByte. with linux (Ubuntu 6.10) i`ve got only 60KByte. i set up the connection speed from the pppd, but no response.

the same problem exist with the 3G Easybox and the Novatel UX870.

whats the problem about, and how could i fix this?

Have you ran a speed test with the card ? try http://speed.vodacom.co.za :)

Laterz !
 
Hi Tazz,

I've spent about a week now going through the forums and following your procedures on how to configure the e220 on Ubuntu.

I've unmounted the device, removed the usb-storage mod, reinserted the module from the information by the "lbusb" command which points to 12d1:1003. "modprobe usbserial vendor=0x12d1 product=0x1003".

I have even updated my wvdial.conf file to look exactly like yours.

When i try and connect via "wvdial hsdpa" (which points to /dev/ttyUSB0)
i get the "Cannot get information for serial port" error.

Strangely enough, whenever I reinsert the usb device and i do an "lsmod" i see the usb_storage mod again. Is this suppose to be there? Didn't i remove that via "rmmod usb-storage"?

I am really struggling and need your help please.

-------------------------------
Dis lekke in Suid-Afrika

Hey Sete,

I saw something regarding the ubuntu "auto hardware detection thinggy" - see if there is a service like that and stop it before inserting the card :)

Laterz !
 
Hey Tazz_Tux ...

Any progress on getting a JamJar or JasJar for testing? Really need to get my linux box rigged up :(

CyberBOB

Hey CyberBOB,

I was told that this is quite an old device and hard to get. I have escalated the problem and should have an answer soon - sorry about this...

Laterz !
 
I had given up on trying to get my E220 to work in Linux - tried both Gentoo [my desktop PC] and another PC with Ubuntu loaded, but now my ADSL is unusable again and I really need to get the E220 working in Linux - either that or buy an iBurst UTD to use as a backup to ADSL...

Anyway no problem with the rmmod or modprobe, and it is detected as /dev/ttyUSB0 according to /var/log/messages, but when I use wvdial, I keep getting a "Modem not responding" error and no connection. Now I notice that Tazz_Tux's wvdial.conf is newer and has a "huewai_e220" section which I don't have in mine [I fudged a previous revision for /dev/ttyUSB0], so I'm wondering if the new wvdial.conf will sort my problem out? - I will try it a bit later, but...

I would ultimately like to get my E220 working in IPCop which has a 2.4.x kernel, without using wvdial, what are my chances?

Hey IC,

Any luck - still broken ?

Laterz !
 
Hey IC,

Any luck - still broken ?

Laterz !
Haven't had a chance to get stuck into it again - did start building a separate test PC for this over the weekend, but ran out of time with other things to do. I expect it will probably work with your latest wvdial.conf - the previous one didn't have an e220 section, and I notice you've added an initstring to the latest wvdial.conf for the E220, if I still run into a problem, I will most likely send you a p.m. :).

BTW, in menuconfig, in Gentoo, do you know offhand which specific setting controls the usb-serial module?
 
Haven't had a chance to get stuck into it again - did start building a separate test PC for this over the weekend, but ran out of time with other things to do. I expect it will probably work with your latest wvdial.conf - the previous one didn't have an e220 section, and I notice you've added an initstring to the latest wvdial.conf for the E220, if I still run into a problem, I will most likely send you a p.m. :).

BTW, in menuconfig, in Gentoo, do you know offhand which specific setting controls the usb-serial module?

│ Location: │
│ -> Device Drivers │
│ -> USB support │
│ -> USB Serial Converter support │
│ -> USB Serial Converter support (USB_SERIAL [=n]) │

:)
 
Wow! After much worry and sweating and fretting over whether or not I should buy a 3G connect card, I finally bought one. (Huawaei E620) Then, I plug it in to my laptop running SuSE 10.1 and it recognizes it with no difficult mods. I cranked up kppp, setup a connection with /dev/modem, and poof! It worked like a charm ! I hit the speed meter at www.2wire.com, and I get 850Kbs
 
Wow! After much worry and sweating and fretting over whether or not I should buy a 3G connect card, I finally bought one. (Huawaei E620) Then, I plug it in to my laptop running SuSE 10.1 and it recognizes it with no difficult mods. I cranked up kppp, setup a connection with /dev/modem, and poof! It worked like a charm ! I hit the speed meter at www.2wire.com, and I get 850Kbs

Try http://speed.vodacom.co.za to see your access speed with no international bottlenecks.
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X