3G Configuration – wvdial

Since KNetworkManager has been broken – to be specific, the 3G part of it – for quite a long time, I have used wvdial for 3G connections. Wired connections and wifi work just fine with KNetworkManager. Gnome also has a graphical network manager that usually works, but on some occasions it has been a bit unreliable. Best thing in wvdial is that it is very reliable and works regardless of Linux flavor or window manager. In other words, it works in KDE, Gnome, xfce etc. However, you have to edit wvdial.conf-file manually and the launch the connection from command line. You can install it from command line with

sudo apt-get install wvdial

Here are settings that I have used for Saunalahti and Elisa Mobiililaajakaista. Depending on modem the line Modem = … has to be changed. Usually it is ttyUSB0, but on some modems it needs to be ttyUSB1. This has worked for Huawei E160, E220, E1820 and ZTE MF 668. I have included two versions of init script for Saunalahti and Elisa in the configuration file. If one version does not work for you, then try second one.

wvdial.conf

[Dialer elisa]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99***1#
Stupid Mode = 1
Username = " "
Password = " "
[Dialer elisa_2]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0
Phone = *99***1#
Stupid Mode = 1
Username = "rlnet"
Password = "internet"
[Dialer dna]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1
Username = " "
Password = " "
[Dialer sonera]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1
Username = " "
Password = " "
[Dialer saunalahti]
Modem = /dev/ttyUSB0
Dial Command = ATDT
Init2 = ATZ
Init3 = AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CSQ
Init5 = AT+CGDCONT=1,"IP","internet.saunalahti"
Phone = *99***1#
Stupid Mode = 1
Username = " "
Password = " "
[Dialer saunalahti_2]
Modem = /dev/ttyUSB0
Init = AT+CGDCONT=1,"IP","internet.saunalahti"
Phone = *99***1#
Stupid Mode = 1
Username = " "
Password = " "

Leave a comment

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 105 other subscribers