Saturday, June 25, 2005

Connect R-Connect (Reliance) from your Linux Box

There are many of us who find it difficult to connect to the intyernet with their Reliance ISP using Reliance Mobile or Fixed Wireless Telephone (FWP). A few months back I also found a There are many of us who find it difficult to connect to the internet to their Reliance ISP using Reliance Mobile or Fixed Wireless Telephone (FWP). A few months back I was also stuck in a similar problem but I can now easily connect using my Reliance Fixed Wireless Telephone. Several members have also been benefited using tips from mine and a lot of them requested me to publish a step by step guide to communicate internet using their Reliance Telephone. This made me enthusiastic to write this material. This is a complete guide for Reliance but can also be a guide for Tata and Airtel Mobile and FWP devices also. I used a Reliance FWP with LG LSP 340E base phone set.


Step 1

Connect your telephone to the ttyS1 port. ttyS1 is the same port as COM2 port (we use the term COM2 in Windows). If you use COM1 port then replace all ttyS1 (where you will find in this guide) with ttyS0.
[ COM(x)=ttyS(x-1) ]



Step 2

If you are able to communicate internet through Windows then there is no problem with it you can proceed to the next step or if there is a need to test your modem, you should produce the following command as root.



[root@localhost user]# wvdialconf /etc/wvdial.conf

Scanning your serial ports for a modem.


ttyS0: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud

ttyS0: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud

ttyS0: ATQ0 V1 E1 -- and failed too at 115200, giving up.

ttyS1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud

ttyS1: ATQ0 V1 E1 -- OK

ttyS1: ATQ0 V1 E1 Z -- OK

ttyS1: ATQ0 V1 E1 S0=0 -- OK

ttyS1: ATQ0 V1 E1 S0=0 &C1 -- OK

ttyS1: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK

ttyS1: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

ttyS1: Modem Identifier: ATI -- 115200

ttyS1: Max speed is 115200; that should be safe.

ttyS1: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Port Scan: S3 S4 S5 S6 S7


Found a modem on /dev/ttyS1.

Modem configuration written to /etc/wvdial.conf.

ttyS1: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"


If everything is alright you should get similar result. A modem configuration is also be written to \'/etc/wvdial.conf\' with this but as it is not accurate with our need we will slightly change according to our need.

Note : It may happen that you have to provide the command in three/four times to communicate. So don\'t give up unless you have tried the command for three four times. In this time you must be communicated. If not please check your connection.


Step 3

Do not configure the KPPP unless you understand what you are doing. If you write a configuration file yourself, it is much easier to find the problem in future. I am configuring the file by editing it. If you still want to use KPPP you are encouraged to do it using these parameters. Advanced Connection Settings --> Extra Settings string value and put it as the init2 string value]


Step 4

Now you are almost at the last stage to connect to internet. Give the following command as root.

[root@localhost user]# wvdial reliance


(If you see that you access is denied then give access to the file /etc/wvdial.conf to execute the command using chmod.)


[root@localhost user]# chmod a+x /etc/wvdial.conf


and after that you give the following command again
[root@localhost user]# wvdial reliance


You may not be connected at the first time you have given the command. You may repeat three four times to connect but you will succeed at last. When you will get the connection, you can see the IP Addresses of your Primary and Secondary DNS servers. Note it down. Now disconnect, or you may test some pings and see what happens. You have to disconnect using Ctrl+C.


Edit the file /etc/wvdial.confusing your favourite editor. Erase the lines which were written by your computer at the previous step. Write down the following codes there.


[Modem0]

Modem=/dev/ttyS1

Baud=115200

Dial Command = ATDT

init1=ATZ

init2=AT+CRM=1

Flow Control= Hardware (CRTSCTS)

[Dialer reliance]

Username = YourUserName

Password = YourPassword

Phone = #777

Stupid Mode = 1

Inherits= Modem0


Save the file and exit from the editor.
[ You should log on to Windows and note down the Modem --> Advanced Connection Settings --> Extra Settings string value and put it as the init2 string value]


Step 4

Now you are almost at the last stage to connect to internet. Give the following command as root.

[root@localhost user]# wvdial reliance


(If you see that you access is denied then give access to the file /etc/wvdial.conf to execute the command using chmod.)


[root@localhost user]# chmod a+x /etc/wvdial.conf


and after that you give the following command again
[root@localhost user]# wvdial reliance


You may not be connected at the first time you have given the command. You may repeat three four times to connect but you will succeed at last. When you will get the connection, you can see the IP Addresses of your Primary and Secondary DNS servers. Note it down. Now disconnect, or you may test some pings and see what happens. You have to disconnect using Ctrl+C.


Step 5

Edit the tile '/etc/resolv.conf' file with your favourite editor and write down the IP Addresses you have obtained followed by the word nameserver.


nameserver [IP Address of Primary DNS Server]

nameserver [IP Address of Secondary DNS Server]


You have finished all your job and now ease back on your chair and give the command,

[root@localhost user]# wvdial reliance


Always remember that you have to be root to use the above command. When you will see IP addresses of your Primary and Secondary DNS Servers, you have been connected to internt.

Remember to disconnect using Ctrl+C


Whats more? Enjoy..... and give feedback

0 Comments:

Post a Comment

<< Home