Big Problems With E220 on KUbuntu

Hark3n

Well-Known Member
Joined
May 19, 2005
Messages
171
Reaction score
5
Location
Cape Town
Hi all,

I finally made the plunge and got myself a Hauwei E220. I obtained it through signing an additional contract (Top Up 315). Previously I used my phone (Nokia 6234) to connect, but the problem was that my wife spend many days at home and I couldn't get her phone to work with Linux.

I got home and immediately connected the modem. Still using my phone I went to Tazz_Tux's instructions and tried using that, but no joy (Sorry Tazz, but you lost me halfway through your instructions).

I then found pmarti's software and installed that. Finally I could see my modem and send/recieve sms's. However, the data part still wouldn't work. I would connect, but it would just bomb out, saying that the program tried 3 times and failed. This I tried with both the new sim and my old sim.

In order for me to make sure that the modem wasn't at fault, I booted into Windows and tried connecting from there. In Windows my old sim would connect with no problem, but still my new sim would be quiet.

BTW, I have checked and the new sim is activated by Vodacom, or so says the guy at Cellucity. However, I can send/recieve sms's with my phone with the new sim in, but would also refuse connecting through the phone. I also can't register the sim on the Vodacom4U website or acces *111#.

So, with the assurance that the modem is OK, I booted back into Linux and decided to run the Vodafone program in debug mode. This is my readout from that run:

2007/10/02 21:17 +0200 [-] Log opened.
2007/10/02 21:17 +0200 [-] twistd 2.5.0 (/usr/bin/python 2.5.1) starting up
2007/10/02 21:17 +0200 [-] reactor class: <class 'twisted.internet.gtk2reactor.G
tk2Reactor'>
2007/10/02 21:17 +0200 [-] Loading /usr/share/vodafone-mobile-connect-card-drive
r-for-linux/tap.py...
2007/10/02 21:17 +0200 [-] Loaded.
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CPIN?rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CPIN: READYrnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('+CPIN: READY',)]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CSCA?rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CSCA: "002B0032003700380032
0039003100310039",145rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('002B0032003700380032003900310031003
9',)]
2007/10/02 21:17 +0200 [-] /usr/lib/python2.5/site-packages/vmc/common/tray.py:4
6: exceptions.DeprecationWarning: the module egg.trayicon is deprecated; equival
ent functionality can now be found in pygtk 2.10
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CSCS="UCS2"rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: NO CBK REG, CBK= OK
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CSQrn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CSQ: 19,99rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('19', '99')]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CMGL=4rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = []
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CPBR=?rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] adbapi connecting: pysqlite2.dbapi2 ('/home/erasmus/.
vmc/messages.db',){'isolation_level': None}
2007/10/02 21:17 +0200 [-] adbapi closing: pysqlite2.dbapi2
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CPBR: (1-250),40,15rnrn
OKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('250',)]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CLCK="SC",2rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CLCK: 1rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('1',)]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CPBR=1,250rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CPBR: 1,"0214213756",129,"0

BUNCH OF RANDOM CHARACTERS

2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] adbapi connecting: pysqlite2.dbapi2 ('/home/erasmus/.
vmc/contacts.db',){'isolation_level': None}
2007/10/02 21:17 +0200 [-] adbapi closing: pysqlite2.dbapi2
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+COPS?rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+COPS: 0,0,"Vodacom - SA",2 rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('Vodacom - SA', '2')]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CIMIrn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn655016210068224rnrnOKr n'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('655016210068224',)]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+COPS?rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+COPS: 0,0,"Vodacom - SA",2 rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('Vodacom - SA', '2')]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] HUAWEI METADATA: 'rn^BOOT:33317021,0,0,0,6rn'
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT+CSQrn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rn+CSQ: 19,99rnrnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: CBK = [('19', '99')]
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] HUAWEI METADATA: 'rn^BOOT:33317021,0,0,0,6rn'
2007/10/02 21:17 +0200 [-] SENDING ATCMD 'AT^SYSCFG=2,2,3FFFFFFF,2,4rn'
2007/10/02 21:17 +0200 [-] NEW STATE: waiting
2007/10/02 21:17 +0200 [-] WAITING: DATA_RCV = 'rnOKrn'
2007/10/02 21:17 +0200 [-] WAITING: EOR detected, firing deferred
2007/10/02 21:17 +0200 [-] WAITING: NO CBK REG, CBK= OK
2007/10/02 21:17 +0200 [-] NEW STATE: idle
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV -->
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV WvDial: Internet dialer version 1.56
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV -->
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV Cannot get information for serial port.
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV
--> Initializing modem.

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV --> Sending: ATZ

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV OK
--> Sending: ATZ

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV ATZ
OK
--> Sending: ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet"

2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV OK
--> Modem initialized.
--> Configuration does not specify a valid login name.
--> Configuration does not specify a valid password.

2007/10/02 21:17 +0200 [-] WVDIAL: pppd closed their stdout!
2007/10/02 21:17 +0200 [-] WVDIAL: pppd closed their stderr.
2007/10/02 21:17 +0200 [-] WVDIAL: quitting
2007/10/02 21:17 +0200 [-] WVDIAL: pppd closed their stdout!
2007/10/02 21:17 +0200 [-] WVDIAL: DATA RECV pppd: no process killed
wvdial: no process killed

2007/10/02 21:17 +0200 [-] WVDIAL: pppd closed their stderr.
2007/10/02 21:17 +0200 [-] WVDIAL: quitting

Now, the getting on my knees and pleading bit.

Is there anyone that could possibly supply me with a solution to my problems.

I can supply the number of the new sim, but would prefer to do so over a PM.

BTW, I'm quite comfortable with "THE COMMAND LINE", so feel free to throw some commands my way.

Thanks in advance,
E
 
Last edited:
Put in username and password

Hi

Try putting in a username and password in preferences. As far as I can recall, it can be 'internet' and 'internet' - as long as you use something.

This is done in preferences btw - where you set your apn.
 
ok, i got mine working a little differently. Im still new to aspects of this so I might miss out a step or something, but I will try.

first:

Code:
sudo nano /etc/chatscripts/vodacom

paste this into it:

Code:
  GNU nano 2.0.2                                          File: /etc/chatscripts/vodacom

'' AT
TIMEOUT 60
OK ATE0
OK ATV1
OK 'AT+CGDCONT=1,"IP","internet"'
OK ATDT*99#
TIMEOUT 120
CONNECT ""

my pap-secrets file in /etc/ppp/pap-secrets looks like this

Code:
 sudo nano /etc/ppp/pap-secrets

Code:
#
# /etc/ppp/pap-secrets
#
# This is a pap-secrets file to be used with the AUTO_PPP function of
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
# after a user has passed this file. Don't be disturbed therefore by the fact
# that this file defines logins with any password for users. /etc/passwd
# (again, /etc/shadow, too) will catch passwd mismatches.
#
# This file should block ALL users that should not be able to do AUTO_PPP.
# AUTO_PPP bypasses the usual login program so it's necessary to list all
# system userids with regular passwords here.
#
# ATTENTION: The definitions here can allow users to login without a
# password if you don't use the login option of pppd! The mgetty Debian
# package already provides this option; make sure you don't change that.

# INBOUND connections

# Every regular user can use PPP and has to use passwords from /etc/passwd
*       hostname        ""      *

# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest   hostname        "*"     -
master  hostname        "*"     -
root    hostname        "*"     -
support hostname        "*"     -
stats   hostname        "*"     -

# OUTBOUND connections

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.

#       *       password


"me" test "none"
"vodafone"      *       "vodafone"
vodafone        *       vodafone
""      *       ""

dunno if you need this but my /etc/chatscripts/pap file looks like this

Code:
# You can use this script unmodified to connect to sites which allow
# authentication via PAP, CHAP and similar protocols.
# This script can be shared among different pppd peer configurations.
# To use it, add something like this to your /etc/ppp/peers/ file:
#
# connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T PHONE-NUMBER"
# user YOUR-USERNAME-IN-PAP-SECRETS
# noauth

# Uncomment the following line to see the connect speed.
# It will be logged to stderr or to the file specified with the -r chat option.
#REPORT         CONNECT

ABORT           BUSY
ABORT           VOICE
ABORT           "NO CARRIER"
ABORT           "NO DIALTONE"
ABORT           "NO DIAL TONE"
""              ATZ
OK              ATDTT
CONNECT         ""

nano it if you need to make changes

make the following files if you dont have them (make them with nano)

nano /etc/ppp/peers/vodacom

Code:
# Enables connection debugging facilities.

# Speed
#345600

# Use hardware flow control (i.e. RTS/CTS) to control the flow
# of data on the serial port.
crtscts

# Use the modem control lines.
modem

# Specifies that pppd should create a UUCP-style lock file for
# the serial device to ensure exclusive access to the device.
lock

# Disable protocol field compression negotiation in both the
# receive and the transmit direction.
nopcomp
# Disable magic number negotiation. With this option, pppd
# cannot detect a looped-back line.
#nomagic

# Disable Compression Control Protocol (CCP) negotiation.
noccp

# Disable Van Jacobson style TCP/IP header compression in both
# the transmit and the receive direction.
novj

# Disable the connection-ID compression option in Van Jacobson
# style TCP/IP header compression.
novjccomp

# Don't detach from the controlling terminal.
updetach

# Disables the default behaviour when no local IP address is
# specified, which is to determine (if possible) the local IP
# address from the hostname.
noipdefault

# This option causes pppd to create such a default route when
# IPCP comes up, and delete it when the link is terminated.
defaultroute
replacedefaultroute


connect '/usr/sbin/chat -e -f /etc/chatscripts/vodacom -v'
disconnect '/usr/sbin/chat -e -f /etc/chatscripts/disconnect -v'

#/dev/rfcomm0

/dev/ttyUSB0

#Enable the DNSs from server
usepeerdns

#With this option, pppd will accept all control characters from the peer, including those marked in the receive asyncmap
receive-all

nobsdcomp
nodeflate
#persist

then to connect type:

pon vodacom

hopefully it will work.

If it cant find the modem change the following line:

Code:
/dev/ttyUSB0
to the correct usb connection, ie /dev/ttyUSB1

to disconnect type:

poff vodacom
 
Last edited:
w1z4rd, majikins,

Thanks for your input. I'm not sure which one of yours instructions helped, but I now have a live connection, albiet still my old sim.

Again, if anyone knows what the problem is with the sim, please let yourself be heard.

Thanks guys,
E
 
SUCCESS!!!!

It would seem that the voice/sms side of the sim was activated before the data side. Tried it again this morning and now it works.

WOOOOOHHHHHHHOOOOOO
 
Hi,

using w1z4rd's advice, I got a Huawei E220 from MTN to work on Ubuntu Gutsy. Just changed the apn name.

Thanks :)
 
Top
Sign up to the MyBroadband newsletter
X