Home » Debian, How-to, Linux, Newbie, Tuning, Ubuntu

How to install a Vodafone Mobile Connect under Linux

28 November 2008 13 Comments

In this post I will try to explain, as easy as possible, how to install Vodafone Mobile Connect K3520 under Linux (in my case is Ubuntu and Debian but also need to work under Fedora or other Linux distributions). Also I will show you how to connect from console /  terminal with this device if you want to establish a permanent Internet connection over this device.

1. Installation
First you will need to get the drivers from betavine.com site: http://www.betavine.net/bvportal/web/linux_drivers . Betavine is a Vodafone Group R&D Laboratories so the drivers are directly from the source (or almost because the devices are made by HUAWEI).

Vodafone K3520 USB Stick

Vodafone K3520 USB Stick

Just look after your Linux distribution and download the right drivers. Also look after the right architecture for your drivers. For example in my case I get the x86_64 drivers and NOT i386 drivers. If you don’t know what Linux architecture you have installed just run

$uname -a
Linux random-bug1 2.6.27-10-generic #1 SMP Fri Nov 21 19:19:18 UTC 2008 x86_64 GNU/Linux

And you will see if is x86_64 or i386 .

after downloading the drivers just run in a console (opened in the folder where you downloaded the drivers).

$sh vodafone-mobile-connect-card-driver-for-linux-2.0.beta3-ubuntu-amd64-installer.run

The installer is quite simple and doesn’t need almost no interaction. After that just plug the device. To check if your devices has been installed ok just run:


and you will see something like:

[95950.609484] usb-storage: device found at 4 [95950.609489] usb-storage: waiting for device to settle before scanning [95951.356019] usb 1-1: new full speed USB device using ohci_hcd and address 5 [95951.571218] usb 1-1: configuration #1 chosen from 1 choice [95951.594583] option 1-1:1.0: GSM modem (1-port) converter detected [95951.594927] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0 [95951.600534] option 1-1:1.1: GSM modem (1-port) converter detected [95951.601082] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1 [95951.604913] option 1-1:1.2: GSM modem (1-port) converter detected [95951.605441] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2 [95951.611117] scsi18 : SCSI emulation for USB Mass Storage devices [95951.640758] usb-storage: device found at 5 [95951.640763] usb-storage: waiting for device to settle before scanning [95956.641188] usb-storage: device scan complete [95956.648170] scsi 18:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 [95956.656176] scsi 18:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 [95956.742176] sr1: scsi-1 drive [95956.744270] sr 18:0:0:0: Attached scsi CD-ROM sr1 [95956.744582] sr 18:0:0:0: Attached scsi generic sg2 type 5 [95956.756686] sd 18:0:0:1: [sdb] Attached SCSI removable disk [95956.758021] sd 18:0:0:1: Attached scsi generic sg3 type 0

If you see something like above qute the your modem is in place.

2. Running

Now just run in a terminal:

$ vodafone-mobile-connect-card-driver-for-linux

And Vodafone application will start.

Vodafone Application Initializing

Vodafone Application Initializing

After choosing your country and the right profile just click Connect to connect your computer to the Vodafone Network.

Vodafone Application Main Window

Vodafone Application Main Window

This application have several good features like SMS Reading and Sending, Address book but I will not talk about this and I will let you to discover entire application.

3. Working from console.

To work from console you wil need wvdial (PPP dialer with built-in intelligence 🙂 ). wvdial is something like chat program ( remember the old days when all connections was made over ppp ? ) but is trying to guess how to dial and login. wvdial will be probably already installed because vodafone GUI is working on it (I’m not quite sure … only 99% 🙂 ).

4. Configuring wvdial

Every time when you restart the system or when you disconnect your device you will need to enter your pin. To do that you will need to create a “special profile” in /etc/wvdial.conf :

[Dialer Defaults] Modem = /dev/ttyUSB0 [Dialer pin] Modem = /dev/ttyUSB0 Baud = 115200 Dial Attempts = 2 Init1 = AT+CPIN=[YOUR PIN]

I will explain a little bit the configuration from this profile:
Baud – Is the speed of the USB port. You can increase the speed and see if is still working, but for testing just leave it 115200.

Dial Attempts – I think is very clear what it means. We added it in this section because we want to run this profile a second time if first time we get and error. If we will not specify “Dial Attempts” this profile we will be run forever or until Ctrl+C is pressed. If the PIN is already submitted we clearly get an ERROR.

Init1 – Is the script what wvdial will send to modem for PIN authentication. Replace [YOUR PIN] with the PIN what you have on that mobile card.

After saving /etc/wvdial.conf just run in console:

$ wvdial pin
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: AT+CPIN=1234
–> Modem initialized.

If the PIN is already submitted we will get an ERROR:

$ wvdial pin
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: AT+CPIN=1234
+CME ERROR: operation not allowed
–> Bad init string.

This is way we used Dial Attempts = 2. Just run twice and exit even if is an error.

If you don’t get an OK at the first run just look after the correct PIN.

Now we need to create the dialing profile. Just add in /etc/wvdial.conf

[Dialer Vodafone] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP","[YOUR APN]" Modem Type = Analog Modem Baud = 115200 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 Dial Command = ATDT Phone = "*99***1#" Password = "[YOUR PASSWORD]" Username = "[YOUR USERNAME]"

Now just run in console:

$ wvdial vodafone
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
–> Sending: AT+CGDCONT=1,”IP”,”internet.vodafone.com”
–> Modem initialized.
–> Sending: ATDT*99***1#
–> Waiting for carrier.
–> Carrier detected. Waiting for prompt.
–> Don’t know what to do! Starting pppd and hoping for the best.
–> Starting pppd at Fri Nov 28 16:42:48 2008
–> Pid of pppd: 23646
–> Using interface ppp0
–> Authentication (CHAP) started
–> Authentication (CHAP) successful
–> local IP address
–> pppd: �[7f]
–> remote IP address
–> pppd: �[7f]
–> primary DNS address xxxxxxxxxxxxx
–> pppd: �[7f]
–> secondary DNS address xxxxxxxxxxxxxx
–> pppd: �[7f]
–> pppd: �[7f]
–> Script /etc/ppp/ip-up run successful
–> Default route Ok.
–> Nameserver (DNS) Ok.
–> Connected…

Now just press Ctrl+Z to get a console and type:


that will force program to go in background.

If you have your computer already setup in a LAN with a default gateway wvdial will not replace your default route.


If you want to replace your default route and go through your modem just check for vodaphone gateway:

$ifconfig ppp0 Link encap:Point-to-Point Protocol inet addr: P-t-P: Mask: UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:7 errors:10 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:124 (124.0 B) TX bytes:148 (148.0 B)

And get P-t-P (Point to point) address: (in this case). Now just run in a terminal:

$route del default
$route add default gw

Happy Browsing !

If you don’t know your Username, Password, APN for your Vodafone provider just check the next List:

NetworkOperator: SFR, Country: France, Network ID: 20810, Username: websfr, Password: websfr, APN: websfr
NetworkOperator: Vodafone, Country: Spain, Network ID: 21401, Username: vodafone, Password: vodafone, APN: ac.vodafone.es
NetworkOperator: Movistar, Country: Spain, Network ID: 21402, Username: movistar, Password: movistar, APN: movistar.es
NetworkOperator: Yoigo, Country: Spain, Network ID: 21404, Username: yoigo, Password: yoigo, APN: internet
NetworkOperator: VIP, Country: Croatia, Network ID: 21910, Username: 38591, Password: 38591, APN: data.vip.hr
NetworkOperator: Vodacom, Country: South Africa, Network ID: 65501, Username: vodafone, Password: vodafone, APN: internet
NetworkOperator: Vodafone, Country: Italy, Network ID: 22210, Username: vodafone, Password: vodafone, APN: web.omnitel.it
NetworkOperator: Vodafone, Country: Portugal, Network ID: 26801, Username: vodafone, Password: vodafone, APN: internet.vodafone.pt
NetworkOperator: Vodafone, Country: Netherlands, Network ID: 20404, Username: vodafone, Password: vodafone, APN: live.vodafone.com
NetworkOperator: Vodafone, Country: Germany, Network ID: 26202, Username: vodafone, Password: vodafone, APN: web.vodafone.de
NetworkOperator: NetCom, Country: Norway, Network ID: 24202, Username: internet, Password: internet, APN: internet
NetworkOperator: MobileOne, Country: Singapore, Network ID: 52503, Username: M1, Password: M1, APN: sunsurf
NetworkOperator: TelkomSel, Country: Indonesia, Network ID: 51010, Username: flash, Password: flash, APN: flash
NetworkOperator: PT. SATelindo C, Country: Indonesia, Network ID: 51001, Username: indosat, Password: indosat, APN: indosat3g
NetworkOperator: IM3, Country: Indonesia, Network ID: 51021, Username: im3, Password: im3, APN: www.indosat-m3.net
NetworkOperator: Pro XL, Country: Indonesia, Network ID: 51011, Username: xlgprs, Password: proxl, APN: www.xlgprs.net
NetworkOperator: TMN, Country: Portugal, Network ID: 26806, Username: tmn, Password: tmnnet, APN: internet
NetworkOperator: 3, Country: Italy, Network ID: 22299, Username: anon, Password: anon, APN: naviga.tre.it
NetworkOperator: 3, Country: Australia, Network ID: 50503, Username: *, Password: *, APN: 3netaccess
NetworkOperator: TIM, Country: Italy, Network ID: 22201, Username: anon, Password: anon, APN: ibox.tim.it
NetworkOperator: Wind, Country: Italy, Network ID: 22288, Username: anon, Password: anon, APN: internet.wind
NetworkOperator: Vodafone RO, Country: Romania, Network ID: 22601, Username: internet.vodafone.ro, Password: vodafone, APN: internet.vodafone.ro
NetworkOperator: China Mobile, Country: China, Network ID: 46000, Username: zte, Password: zte, APN: cmnet
NetworkOperator: Three UK, Country: UK, Network ID: 23420, Username: three, Password: three, APN: three.co.uk

This list was generated using Vodafone Python libraries what are coming with the drivers. (/usr/share/vodafone-mobile-connect-card-driver-for-linux/resources/extra/networks.py)


  • Sarahana T said:

    Hi im having Airtel Mocromax (MMX610U) EDGE GPRS Modem, can you tell me how can i get it working under Ubuntu 8.10

  • admin (author) said:

    It should work on all … if you have drivers installed correctly.


  • putra said:

    hay i’m putra from indonesia, do u want to tell me how can my modem vodafone connect to fedora linux?

    is it same too or not?

    please answer my questions?

    i need u helpfull!

  • admin (author) said:

    Hi putra,

    If is the same modem then the installation procedure should be the same. My recommendations are to get the latest drivers from betavine page and look if you have wvdial package installed in rest it should work without any problem.


  • Cees said:

    Hi, do you know if the installer also runs command line (no GUI)? I’m using Ubuntu Server 9.xx.

    grts, Cees

  • admin (author) said:

    I have no idea, but I presume you can open the archive and extract all the content from there …

  • robledo said:

    Hello there, I realise your article is from 1 year ago, Nov.2008, but with Fedora 12, there is no need for cumbersome installations from mobile operators to connect via usb-3G modems.

    Please have a look at:

    in order to see an example with a connection to movistar – the connection details for Vodafone are also in the connection wizard of Fedora 12, and is just a matter for confirming them.

    Hope it works. Good luck.


  • Mike said:


    your article helped me a lot. It worked from scratch. Thanks!!!


  • Anders said:

    Tanx very much for the wvdial part, I’m on vacation in spain, with a vodafone sim and a linux computer, and it did not work. but the old way with wvdail worked.

  • Daymon Fred said:

    Though I am late coming here, your article helped me so much. Thanks.

  • multimedia hard drive said:

    Though I am late coming here, your article helped me so much. Thanks.

  • cardoso said:


    I’m having problem with my ZTE 3571Z modem. it is recognized by the OS (fedora 14) but don’t connect to the vodacom network. I had installed it correctly, sometime it connect and when I desconnect it, take days to reconnect to the vodacom network. what is the problem?

    hope attention from you.


Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.