old-www/HOWTO/html_single/Reliance-HOWTO/index.html

1269 lines
25 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Reliance LG LSP 340 Series WLL Modem Setup HOWTO</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
><BODY
CLASS="article"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
><A
NAME="AEN2"
></A
>Reliance LG LSP 340 Series WLL Modem Setup HOWTO</H1
><H3
CLASS="author"
><A
NAME="AEN4"
>Dhiraj Gaur</A
></H3
><DIV
CLASS="affiliation"
><DIV
CLASS="address"
><P
CLASS="address"
>dhiraj&nbsp;dot&nbsp;gaur&nbsp;_at_&nbsp;gmail&nbsp;dot&nbsp;com</P
></DIV
><DIV
CLASS="address"
><P
CLASS="address"
>dhiraj&nbsp;_at_&nbsp;mail&nbsp;dot&nbsp;nplindia&nbsp;dot&nbsp;ernet&nbsp;dot&nbsp;in&nbsp;</P
></DIV
></DIV
><DIV
CLASS="revhistory"
><TABLE
WIDTH="100%"
BORDER="0"
><TR
><TH
ALIGN="LEFT"
VALIGN="TOP"
COLSPAN="3"
><B
>Revision History</B
></TH
></TR
><TR
><TD
ALIGN="LEFT"
>Revision 1.0</TD
><TD
ALIGN="LEFT"
>2005-06-21</TD
><TD
ALIGN="LEFT"
></TD
></TR
><TR
><TD
ALIGN="LEFT"
COLSPAN="3"
>Revised by Machtelt Garrels for inclusion in TLDP.</TD
></TR
></TABLE
></DIV
><DIV
><DIV
CLASS="abstract"
><A
NAME="AEN15"
></A
><P
></P
><P
>This document explains how to set up and configure Reliance or TATA
Indicomm WLL phones on Linux, using a serial cable instead of the (default)
USB cable. It also has instructions on how to build the cable
yourself.</P
><P
></P
></DIV
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="#sect_01"
>Introduction</A
></DT
><DT
>2. <A
HREF="#sect_02"
>System Requirements</A
></DT
><DT
>3. <A
HREF="#sect_03"
>Activating Internet Services on your Handset</A
></DT
><DT
>4. <A
HREF="#sect_04"
>Checking for PPP Support</A
></DT
><DT
>5. <A
HREF="#sect_05"
>Configuring your Phone</A
></DT
><DT
>6. <A
HREF="#sect_06"
>PPP Configuration</A
></DT
><DT
>7. <A
HREF="#sect_07"
>Let's Get Started</A
></DT
><DT
>8. <A
HREF="#sect_08"
>References</A
></DT
><DT
>9. <A
HREF="#sect_09"
>Feedback</A
></DT
><DT
>10. <A
HREF="#sect_10"
>Licensing information and liability</A
></DT
></DL
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="sect_01"
></A
>1. Introduction</H1
><P
>This HOWTO is for people who have Reliance or TATA Indicomm WLL phones and
wish to access Internet on their desktops/laptops running GNU/Linux using
serial cable (NOT a USB CABLE).</P
><P
>No software provided by Reliance was used, but I did search the Internet for
the modem query strings which are required during PPP setup.</P
><P
>I have tried this setup on Slackware Linux 10.1 with a 2.4.29 kernel and I am
pretty confident that this trick will work on other Linux distributions as well. </P
><P
>The HOWTO assumes that you have a fair knowledge about your Linux distribution (BSD or System V style) and that PPP support is pre-compiled in your Linux kernel.</P
><P
>In this HOWTO we are talking about the serial cable for the following reasons:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>The cable provided by Reliance or TATA is very expensive (about 1400 rupees)
and the software provided supports only MS Windows.The cable
typically has a USB interface on one end and an RJ-45 interface on the
other. However, for these phones phones a cheaper cable is available
on the market (only 100 rupees). This cable has a serial interface on one
end and an RJ-45 on the other. You can make this cable yourself.
The procedure is discussed later in this HOWTO. Why waste money when
you can assemble your own cable or purchase the cheaper one?</P
></LI
><LI
><P
>USB cables have some glitches for the WLL handsets, especially
the LG ones. I have no idea about other handsets, your input is welcome if you know about other sets. The
advantage in using a USB cable is that you can connect at 153.6 kbps as the handsets have an inbuilt
modem which is capable for speeds upto 170kbps.
</P
></LI
><LI
><P
>On the numerous forums I searched on the net I found that all talked
only about the USB cable and not about the serial one. I thought it was high
time to write this HOWTO to help fellow Linux users. </P
></LI
></OL
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>But I have a USB cable!</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If you have the USB cable after all, visit
<A
HREF="http://www.hackgnu.org/ril-howto.html"
TARGET="_top"
>http://www.hackgnu.org/ril-howto.html</A
> for information about setting up Internet access using LG/SAMSUNG CDMA sets.</P
><P
>&#13;This link is also helpful:
<A
HREF="http://www.linuxsolved.com/forums/ftopic1178.html"
TARGET="_top"
>http://www.linuxsolved.com/forums/ftopic1178.html</A
>
</P
><P
>Unfortunately the LG/SAMSUNG CDMA mobile uses USB cables only, but the good news is
that these USB cables are also available on the market. Purchase them at your local computer vendor's. As per my last
information such cables cost only 200 rupees.
</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_02"
></A
>2. System Requirements</H1
><P
>You will need a GNU/Linux system with a kernel having PPP support pre-compiled.
I have tested that both the 2.4.29 kernel and the 2.6.x series kernel work fine. Performance seems to be better using a 2.6.x kernel.
If you see that some kernel modules are missing then configure and recompile
the kernel with PPP support.</P
><P
>Check with <A
HREF="#sect_04"
>Section 4</A
> for the configuration of
PPP.</P
><P
>A connecting serial cable which has on one end an RJ-45 connector which plugs into
the phone and on the other end has an RS-232 serial connector which is plugged into the serial port of the PC.</P
><P
>I built my cable myself. I used a CAT 5 cable which has four pairs of UTP
copper. CAT 5 cable is the same cable which is used for networking your system
to a LAN. While you can use any type of cable, CAT 5 will assure a good quality of the signal that is sent over the wire. A typical configuration looks like this:</P
><P
>RS-232C Serial Female connector, which is plugged into the PC:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;___________________
\ /
\ 5 4 3 2 1 /
\ 9 8 7 6 /
\___________/
</PRE
></FONT
></TD
></TR
></TABLE
><P
>Now let's start with the PIN Configuration</P
><P
></P
><UL
><LI
><P
>PIN 1 - White Brown cable</P
></LI
><LI
><P
>PIN 2 - Blue cable</P
></LI
><LI
><P
>PIN 3 - White Green cable</P
></LI
><LI
><P
>PIN 4 - Green cable</P
></LI
><LI
><P
>PIN 5 - White Blue cable</P
></LI
><LI
><P
>PIN 6 - Brown cable</P
></LI
><LI
><P
>PIN 7 - White Orange cable</P
></LI
><LI
><P
>PIN 8 - Orange cable</P
></LI
><LI
><P
>PIN 9 - Leave empty (we are only using 8 pins)</P
></LI
></UL
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Serial connection details</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Three strings would be enough for a serial connection, but it turned out that the signal is better when you use 5. The other strings are used for extra rigidness and support of the cable.</P
></TD
></TR
></TABLE
></DIV
><P
>Now on to the RJ-45 connector, which is plugged into the WLL Phone RJ-45 jack:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;[8 7 6 5 4 3 2 1]
----
-
</PRE
></FONT
></TD
></TR
></TABLE
><P
></P
><UL
><LI
><P
>1 - White Orange</P
></LI
><LI
><P
>2 - Orange</P
></LI
><LI
><P
>3 - White Green</P
></LI
><LI
><P
>4 - Blue</P
></LI
><LI
><P
>5 - White Blue</P
></LI
><LI
><P
>6 - Green</P
></LI
><LI
><P
>7 - White Brown</P
></LI
><LI
><P
>8 - Brown</P
></LI
></UL
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>How to hold the connector</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If you are confused as to which way to hold the connector, make sure that you
are holding the connector in such a way that its notch pin is facing towards the
floor and that the open portion (portion from where the wires enter) is facing
away from you.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_03"
></A
>3. Activating Internet Services on your Handset</H1
><P
>To get Internet services activated on your handset you may contact the customer
care center of your service provider. In the case of the Reliance the service
is pre-activated.</P
><P
>For establishing the connection on a Reliance, the user name is the phone number without the prefix 0 in the STD code. For instance, if your STD code is
0124 and telephone number is 3456789 then your user name is 1243456789. Your password
is the same as your user name. When using the TATA Indicomm user name and password are
<SPAN
CLASS="QUOTE"
>"internet"</SPAN
> (without quotes).</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_04"
></A
>4. Checking for PPP Support</H1
><P
>Although PPP support is provided in almost all Linux distributions but it is still
better to check whether it is present on your system. You can use <B
CLASS="command"
>checkconfig</B
> or, better
still, look into the <TT
CLASS="filename"
>/usr/sbin</TT
> directory and locate PPP binaries with the command</P
><P
><B
CLASS="command"
>ls <TT
CLASS="option"
>-al</TT
> <TT
CLASS="parameter"
><I
>ppp*</I
></TT
></B
> </P
><P
>If you get a listing like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;-rwxr-xr-x 1 root root 3438 2005-05-28 14:56 ppp-go*
-rwxr-xr-x 1 root bin 1787 2004-02-26 21:36 ppp-off*
lrwxrwxrwx 1 root root 6 2005-05-28 14:17 ppp-on -&#62; ppp-go*
lrwxrwxrwx 1 root root 7 2005-05-28 14:17 ppp-stop -&#62; ppp-off*
-rwxr-xr-x 1 root bin 346812 2004-02-26 21:36 pppd*
-rwxr-xr-x 1 root bin 37916 2004-02-26 21:36 pppdump*
-rwxr-xr-x 1 root bin 25936 2003-03-02 22:05 pppoe*
-rwxr-xr-x 1 root bin 22308 2003-03-02 22:05 pppoe-relay*
-rwxr-xr-x 1 root bin 35084 2003-03-02 22:05 pppoe-server*
-rwxr-xr-x 1 root bin 12028 2003-03-02 22:05 pppoe-sniff*
-rwxr-xr-x 1 root bin 58527 2004-02-26 21:36 pppsetup*
-rwxr-xr-x 1 root bin 9192 2004-02-26 21:36 pppstats*
</PRE
></FONT
></TD
></TR
></TABLE
><P
>then PPP support is definitely present.</P
><P
>Similarly, look into <TT
CLASS="filename"
>/etc/ppp</TT
> directory, which contains the PPP options file
and some other files configuring PPP:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;-rw------- 1 root root 78 2004-02-26 21:36 chap-secrets
-rw------- 1 root root 1625 2005-05-28 14:35 connect-errors
-rw-r--r-- 1 root root 938 2003-03-02 22:04 firewall-masq
-rw-r--r-- 1 root root 836 2003-03-02 22:04 firewall-standalone
-rwxr-xr-x 1 root root 1208 2005-05-28 14:56 ip-down*
-rwxr-xr-x 1 root root 1208 2005-05-28 14:29 ip-down.OLD*
-rwxr-xr-x 1 root root 1945 2005-05-28 14:56 ip-up*
-rwxr-xr-x 1 root root 1945 2005-05-28 14:29 ip-up.OLD*
-rw------- 1 root root 541 2005-05-28 14:58 options
-rw------- 1 root root 656 2005-05-28 14:56 options.demand
-rw-r--r-- 1 root root 9975 2005-05-28 11:21 options.old
-rw------- 1 root root 216 2005-05-28 14:56 pap-secrets
drwxr-xr-x 2 root root 4096 2003-03-02 22:05 plugins/
-rw-r--r-- 1 root root 104 2003-03-02 22:04 pppoe-server-options
-rw-r--r-- 1 root root 4562 2003-03-02 22:04 pppoe.conf
-rw------- 1 root root 129 2005-05-28 15:12 pppscript
-rw------- 1 root root 8941 2005-05-28 14:56 pppsetup.txt
</PRE
></FONT
></TD
></TR
></TABLE
><P
>For the sake of safety do copy your original options file to a file <TT
CLASS="filename"
>options.old</TT
>
so that you can revert back to your original setup should you have troubles.</P
><P
>See <A
HREF="http://www.tldp.org/HOWTO/PPP-HOWTO/kernel-configuration.html"
TARGET="_top"
>the PPP HOWTO Chapter 10</A
> for more information on PPP support in the Linux kernel.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_05"
></A
>5. Configuring your Phone</H1
><P
>Currently Reliance comes with one of two brands of handsets: LG and Samsung. TATA
Indicom also provides two handsets: LG and AXESSTEL.</P
><P
>Plug the cable to the phone and also to the system.</P
><P
>It is important to note that all these phones act as a serial modem so they do
not require a driver or anything. After you have connected your phone
to the cable, the cable is plugged in either COM1 or COM2 (and not COM3 or
COM4, as these are virtual ports).</P
><P
>Remember:</P
><P
></P
><UL
><LI
><P
>COM1 in LINUX is <TT
CLASS="filename"
>/dev/ttyS0</TT
></P
></LI
><LI
><P
>COM2 is LINUX is <TT
CLASS="filename"
>/dev/ttyS1</TT
></P
></LI
></UL
><P
>Your phone modem works on either of the two ports, but I suggest that
first try <TT
CLASS="filename"
>/dev/ttyS1</TT
>, so as not to disturb other peripherics on your system that are also using a serial port, which would then usually be on <TT
CLASS="filename"
>/dev/ttyS0</TT
>.</P
><P
>First check if your COM port is fine using the command</P
><P
><B
CLASS="command"
>setserial <TT
CLASS="filename"
>/dev/ttyS1</TT
> <TT
CLASS="option"
>-a</TT
></B
> </P
><P
>If it displays something like this: </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13; dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
</PRE
></FONT
></TD
></TR
></TABLE
><P
>then your COM port is fine. If this does not work, it is possible that PPP support is not configured after all. Return to <A
HREF="#sect_04"
>Section 4</A
> to check. If you are sure that PPP support is configured on your system, maybe the problem is with the COM port. You could try the other port in that case.</P
><P
>Now go to the shell and type</P
><P
><B
CLASS="command"
>cat <TT
CLASS="filename"
>/dev/ttyS1</TT
></B
> </P
><P
>If this prints nothing, your phone is configured. Type <B
CLASS="keycap"
>CTRL</B
>+<B
CLASS="keycap"
>C</B
> to exit.</P
><P
>If your modem is not configured, the <B
CLASS="command"
>cat</B
> command would give an error message like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13; cat: /dev/ttyS1: No such device
</PRE
></FONT
></TD
></TR
></TABLE
><P
>Alternately, in case you use <SPAN
CLASS="application"
>KDE</SPAN
>, start the <SPAN
CLASS="application"
>KPPP</SPAN
> program:
go to the desktop and press <B
CLASS="keycap"
>Alt</B
>+<B
CLASS="keycap"
>F2</B
> and type <SPAN
CLASS="QUOTE"
>"kppp"</SPAN
> in the box which appears. This will
start <SPAN
CLASS="application"
>KPPP</SPAN
>.</P
><P
>Testing using <SPAN
CLASS="application"
>KPPP</SPAN
>:</P
><P
>Click on the <SPAN
CLASS="guibutton"
>Configure</SPAN
> button. Go to the <SPAN
CLASS="guibutton"
>Modem</SPAN
> tab.</P
>There add a new modem on <TT
CLASS="filename"
>/dev/ttyS1</TT
>and click <SPAN
CLASS="guibutton"
>OK</SPAN
>.
Now select the newly created modem and click the <SPAN
CLASS="guibutton"
>EDIT</SPAN
>button.
In the new box which appears, select <SPAN
CLASS="guibutton"
>Modem</SPAN
>and then click <SPAN
CLASS="guibutton"
>Query modem</SPAN
>.
If the modem is properly set then you will get the proper status of the
modem. It will first say something like <SPAN
CLASS="QUOTE"
>"Finding Modem"</SPAN
>, then some more messages.
<DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Lock file</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>BE SURE TO UNCHECK THE <SPAN
CLASS="guibutton"
>USE LOCK FILE</SPAN
> CHECKBOX in the modem properties, else
it may give some random errors.</P
></TD
></TR
></TABLE
></DIV
><P
>If all is fine you will be presented with a window with some blank textboxes and you can go ahead.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_06"
></A
>6. PPP Configuration</H1
><P
>Make an easy link to your modem device:</P
><P
><B
CLASS="command"
>ln <TT
CLASS="option"
>-s</TT
> <TT
CLASS="filename"
>/dev/ttyS1 /dev/modem</TT
></B
> </P
><P
>Now change to the <TT
CLASS="filename"
>/usr/sbin</TT
> directory and look for ppp files. Look for either a
<TT
CLASS="filename"
>pppsetup</TT
> or a <TT
CLASS="filename"
>pppconfig</TT
> script. You may directly start this script to
set up PPP on your system. On my Slackware system I typed <B
CLASS="command"
>pppsetup</B
> and started
the script. This script asks for various parameters for connecting via the ISP.</P
><P
></P
><UL
><LI
><P
>It first asks for the phone number to dial -- enter <SPAN
CLASS="QUOTE"
>"atdt#777"</SPAN
>, where 777 is replaced by the number that you need to dial.</P
></LI
><LI
><P
>It then asks for the modem -- select <TT
CLASS="filename"
>/dev/ttyS1</TT
></P
></LI
><LI
><P
>Baud Rate -- select <SPAN
CLASS="QUOTE"
>"115200"</SPAN
></P
></LI
><LI
><P
>Callback -- Answer <SPAN
CLASS="QUOTE"
>"NO"</SPAN
></P
></LI
><LI
><P
>Modem INIT String -- <SPAN
CLASS="QUOTE"
>"ATZ OK "at+crm=1" OK"</SPAN
></P
></LI
><LI
><P
>ISP Domain Name -- Leave blank</P
></LI
><LI
><P
>DNS Server Address -- Enter a valid DNS Server IP, for instance <SPAN
CLASS="QUOTE"
>"202.41.97.3"</SPAN
> or
<SPAN
CLASS="QUOTE"
>"202.41.97.132"</SPAN
>, or leave blank</P
></LI
><LI
><P
>Authentication -- <SPAN
CLASS="QUOTE"
>"PAP"</SPAN
></P
></LI
><LI
><P
>Username</P
></LI
><LI
><P
>Password</P
></LI
></UL
><P
>Refer to <A
HREF="#sect_03"
>Section 3</A
> for Username and Password.</P
><P
>Finally it shows you your configuration.</P
><P
>Some more work needs to be done. We need to edit the options file present in
the <TT
CLASS="filename"
>/etc/ppp</TT
> folder. We need to check if the following entries are present in
the file:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;lock
defaultroute
noipdefault
modem
/dev/ttyS1
115200
crtscts
noauth
passive
asyncmap 0
</PRE
></FONT
></TD
></TR
></TABLE
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>The noauth option</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Remember that <TT
CLASS="option"
>noauth</TT
> is by default commented; you need to uncomment it.</P
></TD
></TR
></TABLE
></DIV
><P
>You can use <B
CLASS="command"
>egrep <TT
CLASS="option"
>-v</TT
> <TT
CLASS="parameter"
><I
>'#|^ *$'</I
></TT
> <TT
CLASS="filename"
>/etc/ppp/options</TT
></B
> to list only the options present
in this file so as to quickly judge which ones are missing or incorrect.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_07"
></A
>7. Let's Get Started</H1
><P
>For testing purposes log in as <EM
>root</EM
> and open two different shells.</P
><P
>In one shell issue the command</P
><P
><B
CLASS="command"
>tail <TT
CLASS="option"
>-f</TT
> <TT
CLASS="filename"
>/var/log/messages</TT
></B
> </P
><P
>Start the PPP connection in the other shell using the command</P
><P
><B
CLASS="command"
>ppp-on</B
> </P
><P
>In the first shell you will see various messages indicating that the modem is
initialized and that the connection is being established. My <TT
CLASS="filename"
>/var/log/messages</TT
> looks like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;May 29 06:14:06 dhiraj pppd[2341]: pppd 2.4.2 started by root, uid 0
May 29 06:14:07 dhiraj chat[2343]: timeout set to 60 seconds
May 29 06:14:07 dhiraj chat[2343]: abort on (ERROR)
May 29 06:14:07 dhiraj chat[2343]: abort on (BUSY)
May 29 06:14:07 dhiraj chat[2343]: abort on (NO CARRIER)
May 29 06:14:07 dhiraj chat[2343]: abort on (NO DIALTONE)
May 29 06:14:07 dhiraj chat[2343]: send (ATZ^M)
May 29 06:14:07 dhiraj chat[2343]: expect (OK)
May 29 06:14:07 dhiraj chat[2343]: ATZ^M^M
May 29 06:14:07 dhiraj chat[2343]: OK
May 29 06:14:07 dhiraj chat[2343]: -- got it
May 29 06:14:07 dhiraj chat[2343]: send (at+crm=1^M)
May 29 06:14:07 dhiraj chat[2343]: expect (OK)
May 29 06:14:07 dhiraj chat[2343]: ^M
May 29 06:14:07 dhiraj chat[2343]: at+crm=1^M^M
May 29 06:14:07 dhiraj chat[2343]: OK
May 29 06:14:07 dhiraj chat[2343]: -- got it
May 29 06:14:07 dhiraj chat[2343]: send (atdt#777^M)
May 29 06:14:07 dhiraj chat[2343]: timeout set to 75 seconds
May 29 06:14:07 dhiraj chat[2343]: expect (CONNECT)
May 29 06:14:07 dhiraj chat[2343]: ^M
May 29 06:14:07 dhiraj chat[2343]: atdt#777^M^M
May 29 06:14:07 dhiraj chat[2343]: CONNECT
May 29 06:14:07 dhiraj chat[2343]: -- got it
May 29 06:14:07 dhiraj pppd[2341]: Serial connection established.
May 29 06:14:07 dhiraj pppd[2341]: Using interface ppp0
May 29 06:14:07 dhiraj pppd[2341]: Connect: ppp0 &#60;--&#62; /dev/ttyS1
May 29 06:14:13 dhiraj pppd[2341]: PAP authentication succeeded
May 29 06:14:13 dhiraj kernel: PPP BSD Compression module registered
May 29 06:14:13 dhiraj kernel: PPP Deflate Compression module registered
May 29 06:14:14 dhiraj pppd[2341]: local IP address 220.224.45.140
May 29 06:14:14 dhiraj pppd[2341]: remote IP address 97.235.2.5
</PRE
></FONT
></TD
></TR
></TABLE
><P
>Now open your browser and get started.</P
><P
>In case the browser gives the error that the server name is not being resolved, open the file <TT
CLASS="filename"
>/etc/resolve.conf</TT
> and add the entry</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13; namesserver 202.41.97.9
nameserver 202.41.97.132
</PRE
></FONT
></TD
></TR
></TABLE
><P
>These are two valid DNS servers of Ernet India Labs, located in New Delhi. Your Internet Service Provider probably provides its own name service, use the IP addresses of the servers they recommend.</P
><P
>When you are finished surfing the net you may stop the connection using</P
><P
><B
CLASS="command"
>ppp-off</B
> </P
><P
>in the second shell. In the other shell window you will get something like this
:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;May 29 06:16:15 dhiraj pppd[2341]: Terminating on signal 2.
May 29 06:16:15 dhiraj pppd[2341]: Connection terminated.
May 29 06:16:15 dhiraj pppd[2341]: Connect time 2.2 minutes.
May 29 06:16:15 dhiraj pppd[2341]: Sent 3401 bytes, received 1563 bytes.
May 29 06:16:16 dhiraj pppd[2341]: Connect time 2.2 minutes.
May 29 06:16:16 dhiraj pppd[2341]: Sent 3401 bytes, received 1563 bytes.
May 29 06:16:16 dhiraj pppd[2341]: Exit.
</PRE
></FONT
></TD
></TR
></TABLE
><P
>Stop the messages output using <B
CLASS="keycap"
>Ctrl</B
>+<B
CLASS="keycap"
>C</B
>.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_08"
></A
>8. References</H1
><P
>For info about accessing Internet using LG/SAMSUNG CDMA sets via USB cable
go to <A
HREF="http://www.hackgnu.org/ril-howto.html"
TARGET="_top"
>http://www.hackgnu.org/ril-howto.html</A
>.</P
><P
>This link is also helpful:
<A
HREF="http://www.linuxsolved.com/forums/ftopic1178.html"
TARGET="_top"
>http://www.linuxsolved.com/forums/ftopic1178.html</A
>.</P
><P
>All the information in this HOWTO comes partly from these two links, the <A
HREF="http://tldp.org/HOWTO/PPP-HOWTO/index.html"
TARGET="_top"
>PPP-HOWTO</A
>
and partly from my research and development in the Linux world.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_09"
></A
>9. Feedback</H1
><P
>Mail your suggestions, requests and queries to the author.</P
></DIV
><DIV
CLASS="sect1"
><HR><H1
CLASS="sect1"
><A
NAME="sect_10"
></A
>10. Licensing information and liability</H1
><P
>This document is copyrighted 2005 by Dhiraj Gaur. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at <A
HREF="http://www.gnu.org/copyleft/fdl.html"
TARGET="_top"
>http://www.gnu.org/copyleft/fdl.html</A
>.</P
><P
>Linux is a registered trademark of Linus Torvalds.</P
><P
>No liability for the contents of this document can be accepted. Use the concepts, examples and information at your own risk. There may be errors and inaccuracies, that could be damaging to your system. Proceed with caution, and although this is highly unlikely, the author(s) do not take any responsibility.</P
><P
>All copyrights are held by their by their respective owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements.</P
></DIV
></DIV
></BODY
></HTML
>