Mobile Broadband connection setup was a cake walk in Ubuntu 9.04 , where I could just use the Network Manager and edit a mobile broadband connection as per my Reliance Netconnect credentials. After the release of the Ubuntu 9.10 Karmic Koyala the network connection got messed up. The revamped network manager in 9.10 is exceptionally buggy and even after a full upgrade the issue was not fixed. Searching the internet I found a way around and it is quite useful. Use WVDIAL
If you dont have another connection , download the wvdial software for karmic koala install it in ubuntu and use it to connect to the internet and update your system .
Procedure
1. Download the following files (in windows or any other machine) and install them in ubuntu
If you have an intel processor select the i386 links .
Dependencies
http://packages.ubuntu.com/karmic/libwvstreams4.6-base
http://packages.ubuntu.com/karmic/libwvstreams4.6-extras
http://packages.ubuntu.com/karmic/libuniconf4.6
2. Download and install wvdial in your Ubuntu
http://packages.ubuntu.com/karmic/wvdial
———————————————————————————————————————
To install wvdial in Ubuntu( if you have an alternate connection)
a) If you have an alternate internet connection, open a terminal and type
sudo apt-get install wvdial (with your alternate internet activated)
b) If you don’t have an alternate internet connection
Go to System->Administration->software sources. Add cd as a source and close . Insert your Linux OS CD .Now open a terminal and type in
sudo apt-get install wvdial
Configuration Procedures
1) Boot up Linux, Open up a terminal and key in su
2) Plugin your USB modem and unplug any other devices you have installed (including any wired/wireless internet connections you may have).
3) Next execute the command lsusb (This command lists all the usb devices currently connected to your system )
Your output should be similar to this
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:140b Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
It may vary depending on your modem make (Huawei for me).
4) Note down the number that you get . e.g. here it will be 12d1:140b
5) Next key in modprobe usbserial vendor=0×12d1 product=0×140b
make sure that the number you enter for your vendor and product are the number you got for your lsusb command.
Configuring software client wvdial
wvdial is just a generic internet client which can be used to connect to any internet connection that requires dialing .
6 ) open up wvdial’s configuration file using this command
gedit /etc/wvdial.conf
9) Paste the below code into the window that pops up ( make sure to enter your relevant details ).
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB2
ISDN = 0
Phone = #777
Password = 93******
Username = 93*******
stupid mode = 1
Auto DNS = 1
Check Def Route = 1
Save and exist .
Open a new Terminal and execute sudo wvdial , enter your root password in the password prompt . it should generate a long list of codes finally ending with Primary DNS Secondary DNS . If it does you have got your connection working successfully.
You can disconnect your client by selecting your terminal and pressing Ctrl+C
January 21st, 2010
Sanjib
Posted in
Tags:
Hello,
I Tried The steps in my UBUNTU 9.10 and was able to reach the end. Although while executing WVDIAL in the end i got following msg (The last part separated from the rest of the msg got repeated till i pressed crtl+C ):
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
——————————-
NO CARRIER
–> No Carrier! Trying again.
–> Sending: ATDT#777
–> Waiting for carrier.
——————————-
Please Help me. I’ve been trying to connect whole day. Thanx in advance for replying quickly. Consider me Layman in Linux
Varun
This error will happen when your netconnect cannot find the reliance server. Lately I too get this error ( and maybe because of the server problem but the customer care denies to have any issue at their end ) but after sometime the carrier is found and net is connected.
When your modem connects to net, it should look like
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon Feb 15 18:08:43 2010
–> Pid of pppd: 2623
–> Using interface ppp0
–> pppd: (�[0b][08]@�[0b][08]
–> pppd: (�[0b][08]@�[0b][08]
–> pppd: (�[0b][08]@�[0b][08]
–> pppd: (�[0b][08]@�[0b][08]
–> local IP address 115.184.93.92
–> pppd: (�[0b][08]@�[0b][08]
–> remote IP address 220.224.141.145
–> pppd: (�[0b][08]@�[0b][08]
–> primary DNS address 202.138.103.100
–> pppd: (�[0b][08]@�[0b][08]
–> secondary DNS address 202.138.96.2
–> pppd: (�[0b][08]@�[0b][08]
When to get the error, press CTRL + C to terminate the command and try again after a few minutes.
Another very important thing I forgot to mention. If you have configured the “Wired Network” as Automatic DHCP, you can face the same error of No Carrier Found.
From System -> Preference -> network Connection -> Wired tab
delete any setting that you see, “Add” a new one, then from “IPV4″ tab, click Manual and and add an address
Restart the network connection and try again.
Hi Sanjib,
I have installed Ubuntu 10.04 on a HP Probook 4520s.
I am trying to use Reliance EC 1262 which is not getting
detected in Network Connections.I tried to follow the above mentioned steps also.When i use the wvdial command i am getting an error “Cannot open /dev/ttyUSB2: No such file or directory”.Can you please help.
Huawei EC 1260 is working on Ubuntu 10.04
Have you completed all the steps mentioned in the post?
I have also updated to 10.04 and initiatlly wvdial was not working for me. I have made no other changes with it but after the recent updates from Ubuntu the problem is fixed and wvdial works again.
yes i have completed all the updates mentioned above.I have encrypted the entire hard drive is it causing the problems.
Hey Sanjib,
I made it work by replacing the usb-modeswitch of 10.04 with
the usb-modeswitch of 9.10.Thanks a lot for ur support.
Hey Sanjib,
It works only if i don’t remove the data card from the USB port.When i use the lsusb command it will show the following result
“Bus 002 Device 006: ID 12d1:140b Huawei Technologies Co., Ltd”.
But when i remove the data card or reboot the system & then use the lsusb command the result is different & the device will not get listed in the network connections.The result of lsusb command will be
“Bus 002 Device 006: ID 12d1:1446 Huawei Technologies Co., Ltd”.
The result will not get changed even when i keyin the following command
“modprobe usbserial vendor=0×12d1 product=0×140b”
Please help me to over come this issue.
I think my data card is getting recognized as a SCSI device,When i use the dmesg command the USB device is getting listed in the SCSI devices,Plz Help