BSNL WLL INTERNET CONNECTION PROCEDURE IN GNU/LINUX

HERE i will give you the procedure for connecting the internet in GNU/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: S0 S1 S2 S3
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — ERROR
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 — �ܺ�[10]
ttyUSB1: failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1: 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…

Advertisements
Tagged , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: