Powered By Blogger

Saturday, August 16, 2008

BSNL CDMA WLL INTERNET CONNECTION PROCEDURE IN LINUX

HERE i will give you the procedure for connecting the internet in linux using BSNL CDMA WLL dial-up conection using data cable (usb to usb or usb to serial)

1. Connect your cdma wll phone using data cable and then switch on your phone

2. Set the Always on option for data in the phone

3. Now boot your machine in Linux Operating System

4. Login as root user

5. Open the terminal it looks like command prompt..
to open the terminal it may vary depending upon the various linux operating systems mostly it will be in the system tools

6. Issue the command wvdialconf it will search for the modem devices in your machine

7. If it displays the modem found at ttyUSB0 or some thing like that then there is no problem for you in identifying the modem then skip to step no.12

8. If it displays no Modem found then you have load particular driver modules into the kernel for detecting your modem

9. Type lsusb in the terminal it will display the devices that are connected in the usb ports

10. Look for your phone device there
it displays like below ...

[root@localhost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 15eb:0001
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@localhost ~]#


11. HERE 15eb is the vendor id and 0001 is the product id

Now create the rules file named as /etc/udev/rules.d/50-cdma.rules

procedure for creating a file

In the terminal type vi /etc/udev/rules.d/50-cdma.rules and press Insert key for typing the rules in to it

SUBSYSTEM=="usb",SYSFS{idproduct}=="0001",SYSFS{idVendor}=="15eb",RUN+="/sbin/modprobe usbserial vendor=0x15eb product=0x0001"

SUBSYSTEM=="usb",SYSFS{idproduct}=="0001",SYSFS{idVendor}=="15eb",RUN+="/sbin/modprobe ppp_generic"


now press ESC key and type :wq! and then press enter ro save and quit
reboot the system and give the command wvdialconf now the modem gets detected and gives some thing like this


[root@localhost ~]# 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.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- ERROR
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- �ܺ�[10]
ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
[root@localhost ~]#


12. Open the file wvdial.conf by giving the command as follows for editing and configuring the connection

vi /etc/wvdial.conf and press Insert key for typing

add the following script in to that file

[Dialer BSNL]
Inherits = Modem0
Init1 = ATZ
Init3 = AT+CRM=1;+CPS=33;+CMUX=1;+CTA=0
#the above line is only for htl phone this is the extra initialization commands according to your #phone you can add your own initialization commands

Stupid Mode = 1
Phone = #777
Area Code = 044
Username =
Password =

[Modem0]
Init3 = ATM0
Init1 = ATZ
SetVolume = 0
Modem = /dev/ttyUSB0
Baud = 460800
FlowControl = CRTSCTS
Dial Command = ATDT


in the above script use your username and password for establishing the connection

now press ESC key and type :wq! and then press enter ro save and quit

13. In the terminal issue the command as wvdial BSNL

now you will be able to get connected to the internet ...

14. To get disconnected from the internet press Ctrl + C


I think this will be very useful for connecting internet in linux through mobile or using cdma wll phone or usb modem like the reliance Netconnect and Tata's Plug and surf connections..

If you have any doubts you can post your comments so that i can clear all your doubts...




37 comments:

Heman said...

The procedure that i've given is tested in fedora core linux 9 and ubuntu 7.10 linux versions.. you can try in other versions of linux also and tell me what you get i'll solve your problems

Unknown said...

well... do it more....

UmpteenOrdeals said...

Wow heman..............u inspire me to load ubuntu in my m/c now.......

UmpteenOrdeals said...

i hv got pentium dual core 2Ghz, 1 gr hddr2 ram and Windows vista as of now.....what type of ubuntu 7.01sud i get???can u please guide me on that too?????there seems more than 1, lyk alternet i386,amd,IA 64,power pc....etc etc......

Heman said...

Hi Umpteen Ordeals there are lots linux operating systems..
* ubuntu
* kubuntu
* edubuntu
* redhat
* fedora
* debian
* suse
* mandrake or mandravia

and lot more..

you can request for free cd's from websites.. it occupies only 700 MB of space.. If you have high speed broadband connection then you can download the latest ubuntu from the following link..

http://www.ubuntu.com/getubuntu/download

UmpteenOrdeals said...

thanks heman, but it is giving the buggy Ubuntu 8.10, i want the 7.10 version, so that i can configure my BSNL CDMA WLL internet connection.

Heman said...

No Problem .. you can do it in Ubuntu 8.10 also.. Nothing wrong and works fine in that.. try it..

Anonymous said...

hallo heman

i'm try in ubuntu 8.10 and my modem not detected

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- �ܺ�[02]
ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

please help me

best regards

Ershad K said...

Hello Heman,
Mere words are not enough to thank you. It was my dream to connect BSNL WLL net in fedora 10, and now it is a reality. Your blog is really informative. Thanks again. Cheers !!
Regards,
Ershad

Rinaldo Rex said...

I need to connect BSNL WLL TARANG IN UBUNTU 8.10, and i dont know about loging in as a root user. i am only 16 years old and i needed to configure internet in ubuntu.please help me MR.HEMAN. how to check for the serial ports for modem?typing lsusb will check for modems?

Ershad K said...

Dear Heman,
I found another easyway to connect BSNL WLL in ubuntu and other OS'. It's by using an executable file 'bsnlclarity' and works fine without much effort. All that we need is to enter username and password and then start browsing !!. Please mail me(ershad92@gmail.com) for more details or if there is any problem in that type of connection. Hope you would reply soon. Cheers !!

PRAVEEN.V said...

dear heman,
i am using bsnl wll internet connection.iwent through the procedure given above ,but it is the procedure for usb port.i'm using a 9pin port given by bsnl.can u help in
installing the modem through the 9 pin.
when i am typing wvdialconf
it is displayed as "no modem is detected".i am using debian.so please help me

MP said...

Heman,

thx for da step by step procedure to configure bsnl clarity modem...

i hv configured it in openSUSE linux 11.1 on my acer travelmate 6292 laptop.

it works. i m posting this comment from that connection only.

that is the difficult part in linux. once we configure things, then it is easy sailing. we need help of ppl like you. thx 1ce again.

Anonymous said...

hi is this bsnl wll huawei ets2288 wireless phone? can u tel me procedure ubuntu 9.04

Anonymous said...

i resolve d name server still i can't using web page? any idea?

PRAVEEN.V said...

Dear Heman,
The procedure given is for a usb modem.but it will be nice if you give the procedure to do it in using a serial port.

Ramesh said...

Hello sir,
BSNL will phone Huawei modem how to configuration for Suse linux os port usb.

Wahab said...

Thnx...
It really works for me...
But now i cant connect to net...I m using ubuntu 8.10..I usually updates the system...After the last update, i cant connect to net..Dont knw wht the reason is, may be the updates?
When i type sudo wvdial, I get the following message.....

wahab@wahab-desktop:~$ sudo wvdial
--> Ignoring malformed input line: "Auto DNS"
--> Ignoring malformed input line: "Check Def Route"
--> 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
--> Sending:
at+crm=1;+cmux=1;+cps=33;+cta=0
at+crm=1;+cmux=1;+cps=33;+cta=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
~[7f]}#@!}!}!} }-}#}%B#}%}'}"}(}"{B~
--> Carrier detected.
Starting PPP immediately.
--> Starting pppd at Fri Aug 7 19:05:22 2009
--> Pid of pppd: 6152
--> Using interface ppp0
--> pppd:
w蝝8]X�蝝8] x蝝8]
--> pppd: �w蝝8]X�蝝8] x蝝8]
--> pppd: �w蝝8]X�蝝8] x蝝8]
--> pppd: �w蝝8]X�蝝8] x蝝8]
--> pppd: �w蝝8]X�蝝8] x蝝8]
--> Disconnecting at Fri Aug 7 19:05:26 2009
--> The PPP daemon has died: Authentication error.
--> We failed to authenticate ourselves to the peer.
--> Maybe bad account or password? (exit code = 19)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 19)

i dont knw what to do..

Wht is dis pp daemon?

plz help me...

Heman said...

hi itsmewahab.. it seems there is an authentication error. This clearly indicates that the username and password might be changed.. so what you can do is try to edit the file wvdial.conf and create a new dialer name with a new username and password and dial up number .. it will work

Nirmal said...

Hello Hemanathan,

I was trying to connect to internet from my BSNL WLL phone (TELSON CDMA-2000 1x, Model No. HTP-800A) from Fedora 11. I followed the instructions available at various sites on the internet. But I am still facing some problems. I cannot connect to the Net.

Here is the content of my 'wvdial.conf' file :

[Dialer BSNL]
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 = #777
Password = 9775
Username = 4872359775

When I issue the command 'wvdial BSNL', here is the output :

[root@Computer1 ~]# wvdial BSNL
--> 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
OK
--> Sending : AT + CRM = 1
OK
--> Modem intialized.
--> Sending : ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Waiting for prompt.
--> Connected, but carrier signal lost! Retrying...
--> Sending : ATDT#777
--> Waiting for carrier.

It keeps retrying until I press CTRL+C. What is the problem ? Can you please help me ? Thank you,

Nirmal

PRAVEEN.V said...

dear nirmal,
just edit the /etc/resolv.conf file
&
add the dns addresseslogin root

vim /etc/resolv.conf



type

nameserver 218.248.240.181 "primary dns address"

nameserver 208.67.220.220 "secodary dns address "

Buddhadeb Ganguly said...

I am Buddhadeb Ganguly ,


Are gogle paid you any money for your this google adsense

Please tell me.

Nirmal said...

Thank you Praveen!

I tried modifying my 'resolv.conf' as suggested by you. But there was no difference in the situation and still the dialer said 'carrier lost'!. Then I searched the net for 'BSNL''DNS'. Then I found the extracts of the 'resolv.conf' file at 'http://shreevatsa.wordpress.com/2006/11/13/bsnl-dataones-dns/' and decided to edit my 'resolv.conf' file. But before that, I modified the contents of 'wvdial.conf' file in /etc directory as follows :

[Dialer BSNL]
;Init3 = AT+CRM=1
Init1 = ATZ
;Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
Stupid Mode = 1
Phone = #777
Modem = /dev/ttyACM0
Username = 4872359775
Password = 9775
Baud = 115000
FlowControl=CRTSCTS

Then I modified my 'resolv.conf' file in /etc directory as shown at 'http://shreevatsa.wordpress.com/2006/11/13/bsnl-dataones-dns/' as follows :

nameserver 218.248.255.145 #BSNL primary for south, secondary for North
nameserver 218.248.255.193 #BSNL - primary for North, secondary for south
nameserver 218.248.240.181 #primary dns address"
nameserver 208.67.222.222 # OpenDNS
nameserver 208.67.220.220 # OpenDNS

After this, I connected to internet by giving the following command in the terminal :

[root@Computer1 ~]# wvdial BSNL

Then I saw the following output in the terminal window :

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Sep 11 02:04:39 2009
--> Pid of pppd: 2521
--> pppd: Hi�
--> Using interface ppp0
--> pppd: Hi�
--> pppd: Hi�
--> pppd: Hi�
--> pppd: Hi�
--> local IP address 117.254.105.213
--> pppd: Hi�
--> remote IP address 192.168.52.12
--> pppd: Hi�
--> primary DNS address 218.248.240.181
--> pppd: Hi�
--> secondary DNS address 208.67.220.220
--> pppd: Hi�

Now, I launched Firefox and typed 'www.google.com'. Wow ! I can now access the internet !!!

Thank you guys for the wonderful instructions and your helpful attitude ! You are doing a great job in help a newbie in Linux to get it working usefully and indeed, fall in love with it! Thank you once again!

Nirmal

Unknown said...

Hi I am Sundaresan ... My modem is not detecting as per ur steps
ubuntu 7.10

1) wvdialconf (as per ur procedure)
No modem found
2) lsusb result is some usb id's (as ur formate)
3) Edit 50-cdma file as per ur guidelins and reboot
4) wvdialconf
Same modem is not found

my mail id : sundaresanmca@gmail.com

help me Hemanathan ...

Ullas.T.U said...

Hi hemanth, I,m a Beginner in Linux. now using XP and Ubuntu 8.10 and i have BSNL WLL internet connection using LG LSP-340E Mode(Phone) which connects through Serial Port. i follows your Commands But still Modem can't be detected..... hope you can help me.... pleas yar...My adress is ullas_peringode@yahoo.co.in

Arivazhagan Sivasankaranarayanan said...

hai mr. hemanathan i am very proud u are a tamil, and i have tried very hard to find solution to connect my HUAWEI WIRELESS MODEM T1ETS2288(HUAWEI WIRELESS MODEM (153.6K) through bsnl will phone internet connection in ubuntu 9.1 but nowhere i could't get, i hope u can help me to connect. thank u . and please send ur ideas to my e-mail id. arivuoshofollower@yahoo.com or @gmail.com. nandri

Unknown said...

hi hemanath. can u guide me to connect WLL NET with huawei 2288 as modem. its urgent. if possible mail me to ramyaragunath@ymail.com. thanks in advance.

Unknown said...

Dear sir,now i bought a new lap of ACER, in it WINDOWS 7 is the operating system,so i can't use my internet,i used BSNL's high speed net,Rs 250 per month,via WLL in clarity phone.I tried a lot to install cdma software but can't and contact bsnl,they also didn't help.Sir is there any way to help me...pls consider

Unknown said...

Dear sir ...its help me in anyway.if u give immediately its very helpful to me.sir will you please just inform your mobile number i will call you .my number is 9744439302

Unknown said...

Hi Heman,I am aneesh from kerala.I am using fedora13 and i have a internet connection of bsnl of Rss250/- plan with Huawei ETS 1220 modem.I followed the procedures u have described.
But when i ran wvdialconf as root,Igot the below messsage
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial


As you said,i replug the modem and restarted my sysstem.Still i have this problem.Please HELP me heman...............
Thanks

akshay said...

hi am using mac os 10,any idea how to detect and connect same clarity 2 phone for it?

Unknown said...

Hello Hemant,
I am Firoz, i went through your procedure for connecting BSNL WLL while dialing it is saying to ATZ it is saying modem not responding.
I am using 'WF836' modem, can you plz help me out.
Thanks.

Unknown said...

Hello Hemant,
I am Firoz and I am using BSNL WLL "WF836F". Can you tell me the setting in the config file for the above device. I tried a lot but not able to do the settings.

Thank you very much

Mohan said...

Dear hemanth kindly help me. I am using ubuntu 10.04 bsnl wll cdma ct800p phone. i am residing at Kulappully, Shornur-2 Palakkad, Kerala.

waiting for your good advice.
Mohanan K Nair

Mohan said...

Dear hemant,
if any driver available for windows 7 for bsnl cdma wll phone ct 800p
mohan

RAJ said...

I try the method but its not working for me see the error->


[Dialer BSNL]
Inherits = Modem0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Phone = #777
Area Code =
Username = 165
Password = 165

[Modem0]
Init2 = ATM0
Init1 = ATZ
SetVolume = 0
Modem = /dev/ttyUSB0
Baud = 460800
FlowControl = CRTSCTS
Dial Command = ATDT



gartiar@ubuntu:~$ wvdial BSNL
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: 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
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Jan 10 23:12:41 2011
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 2342
--> Using interface ppp0
--> pppd: ��� x��
--> pppd: ��� x��
--> pppd: ��� x��
--> pppd: ��� x��
--> pppd: ��� x��
--> Disconnecting at Mon Jan 10 23:12:47 2011
--> The PPP daemon has died: Authentication error.
--> We failed to authenticate ourselves to the peer.
--> Maybe bad account or password? (exit code = 19)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 19)











please help............

rkgartia@gmail.com

Jeeva said...

hi plz give me link for modem drive
send to jeeva.d87@gmail.com