Sunday, July 5, 2009

Connecting Internet In Ubuntu Using any USB Dial Up Modem(Telson CDMA Modem)

I am writing this with my experience I did this in the BSNL Telson CDMA Handset Modem . and got connected to Internet in Ubuntu with out installing any other driver or software. You can do this in 4 simple step in just 2 minute .
Step 1
Before we start first we have to identify that does your modem is dictated in the ubuntu step 1 is for that.
Go to Application>> Accessories >> Terminal and type
sudo lsusb then the prompt will ask your sudo(root) Password and if the password is correct All usb devices will be desplayed in the terminal. Check your modem name is in the list. If it is there you can go to the second step
arun@glasshome:~$ sudo lsusb
[sudo] password for arun:
Bus 007 Device 004: ID 04f2:b016 Chicony Electronics Co., Ltd
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 004: ID 1165:0002 Telson Electronics Co., Ltd
Bus 005 Device 001: ID 1d6b:0001 Linux Fo
undation 1.1 root hub
Bus 002 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root
hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 15d9:0a4c
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
arun@glasshome:~$



Step 2
Type this in terminal
sudo wvdialconf /etc/wvdial.conf
wvdialconf is used to build the configuration file for wvdial. (run it as root or use sudo)…running it as normal user will result in permission errors as the file being edited belongs to root…
$ sudo wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.

ttyACM0<*1>: ATQ0 V1 E1 -- OK

ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ
0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Telson
ttyACM0<*1>: Speed 4800: AT -- OK ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800;
that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found an USB m
odem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf. ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

If u came this far, then comes the
step 3
Edit the default Modem configuration by typing the command
sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Modem = /dev/ttyACM0
Baud = 460800
; Phone =
; Password =
; Username =

you can see the file is like this.
Edit it add ur dialing number in the place of
Like that add your data and save the file . Dont forgot to remove the ; symbol before the details in the file.
Step 4
Type sudo wvdial in terminal and The wvdial software start dialing the connection and Internet is Now connected and enjoy... Dont close the termnal because we are connected through the terminal.

Share This!


3 comments:

Dharan P Deepak said...

Good work man...

[about this guy - sprouting geek]

He is a born nerd.. Inventor of Blah theory (he just had it in his head all the time, from his birth)...

Nirmal said...

I tried to connect my BSNL WLL phone in Fedora 11. My phone is CDMA-2000 1x, Model No. HTP-800A. The Windows drivers are from Telson. I search all over the internet and found a few sites giving the instructions to connect. I tried them. But when I issue the wvdial command, it reaches up to the point where it waits for the carrier. Then it says carrier not detected and keeps repeats the wait for the carrier signal. It was then I found your blog. I changed the 'wvdial.conf' file as per your instructions. Now it detects the carrier. But then it shows the following message 'Carrier detected.Waiting for prompt...', 'Connected, but carrier signal lost! Retrying...'. It keeps repeating this. Now what is the problem. Kindly help me!

SproutinGeek said...

Nirmal I too had this problem I solved it by doing it as a sudo user. use this command
$ sudo wvdial
I am sure this will work

Powered By Blogger · Designed By Seo Blogger Templates