206 lines
9.2 KiB
HTML
206 lines
9.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
|
|
<TITLE> Modem-HOWTO: Trying Out Your Modem (Dialing Out) </TITLE>
|
|
<LINK HREF="Modem-HOWTO-12.html" REL=next>
|
|
<LINK HREF="Modem-HOWTO-10.html" REL=previous>
|
|
<LINK HREF="Modem-HOWTO.html#toc11" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Modem-HOWTO-12.html">Next</A>
|
|
<A HREF="Modem-HOWTO-10.html">Previous</A>
|
|
<A HREF="Modem-HOWTO.html#toc11">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="dialout"></A> <A NAME="s11">11.</A> <A HREF="Modem-HOWTO.html#toc11">Trying Out Your Modem (Dialing Out) </A></H2>
|
|
|
|
<H2><A NAME="ss11.1">11.1</A> <A HREF="Modem-HOWTO.html#toc11.1">Are You Ready to Dial Out ?</A>
|
|
</H2>
|
|
|
|
<P> Once you've plugged in your modem and know which serial port it's
|
|
on you're ready to try using it. The protocol on the telephone line
|
|
will be PPP (Point-to-Point Protocol), but PPP often gets set up
|
|
without you needing to know much about it. If you already have an
|
|
account with an ISP to connect to the Internet, you could try using a
|
|
program like "wvdial" to connect to the Internet.</P>
|
|
<P>As an alternative to taking one big step using PPP to connect to the
|
|
Internet, you could do a two step process: First just test out your
|
|
modem without using PPP (using Minicom or Kermit). Then if your modem
|
|
works OK, use "wvdial" or another ppp dialer to connect to the Internet.
|
|
A different strategy is to first try a ppp dialer and then if that
|
|
doesn't work out, fallback to Minicom or Kermit to see if your modem
|
|
works OK. Knowing how to use either Minicom or Kermit is handy for
|
|
dialing out to other modems directly without going thru the Internet.
|
|
If you are going to use Minicom or Kermit you must find a phone number
|
|
to dial that will accept phone calls from a computer (without using
|
|
PPP). Perhaps a local library has such a phone number for its on-line
|
|
catalog.</P>
|
|
<P>Then make sure you are ready to phone. Do you know what serial port
|
|
(such as ttyS2) your modem is on? You should have found this out when
|
|
you io-irq configured your serial ports. Have you decided what speed
|
|
you are going to use for this port? See
|
|
<A HREF="Modem-HOWTO-14.html#speed_table">Speed Table</A> for a quick selection or
|
|
<A HREF="Modem-HOWTO-14.html#speed_">What Speed Should I Use with My Modem</A> for more details. If
|
|
you have no clue of what speed to set, try setting it a few times
|
|
faster than the advertised speed of your modem. Also remember that if
|
|
you see a menu where an option is "hardware flow control" and/or
|
|
"RTS/CTS" or the like, select it. Is a live telephone cable plugged
|
|
in to your modem? You may want to connect this cable to a real
|
|
telephone to make sure that it can produce a dial tone.</P>
|
|
<P>Now you need to select a communication (dialing) program to use to
|
|
dial out. Internet dialing programs (using PPP) include wvdial,
|
|
pppconfig (Debian), kppp (KDE), and for Gnome: gnome-ppp or "modem lights".
|
|
Non-internet dialing programs include: minicom, seyon (X Window), and
|
|
kermit. See section
|
|
<A HREF="Modem-HOWTO-15.html#comm_">Communications Programs</A>
|
|
about some communications programs. Three examples are presented
|
|
next:
|
|
<A HREF="Modem-HOWTO-18.html#wvdial_">Dialing Out with wvdial</A>
|
|
<A HREF="#minicom_">Dialing Out with Minicom</A> and
|
|
<A HREF="#kermit_">Dialing Out with Kermit</A></P>
|
|
|
|
<H2><A NAME="wvdial_"></A> <A NAME="ss11.2">11.2</A> <A HREF="Modem-HOWTO.html#toc11.2">Dialing Out with wvdial </A>
|
|
</H2>
|
|
|
|
<P> Wvdial is a program with not only dials out, but starts PPP and
|
|
logs you in to an ISP where you get to the Internet. Wvdial may be
|
|
configured during the installation process or by using the program
|
|
"wvdialconf". See the man pages for both "wvdialconf" and "wvdial".
|
|
However, before using wvdial you must do two other tasks not covered
|
|
by the wvdial documentation:
|
|
<UL>
|
|
<LI>set up your network on your PC. The old HOWTO,
|
|
"ISP-Hookup-HOWTO" has some info on how to do this but fails to
|
|
mention programs such as wvdial which replaces "chatscripts".</LI>
|
|
<LI>configure your browser </LI>
|
|
</UL>
|
|
</P>
|
|
|
|
<H2><A NAME="minicom_"></A> <A NAME="ss11.3">11.3</A> <A HREF="Modem-HOWTO.html#toc11.3">Dialing Out with Minicom </A>
|
|
</H2>
|
|
|
|
<P> Minicom comes with most Linux distributions. To configure it you
|
|
should be the root user. As root, type "minicom -s" to configure. This will
|
|
take you directly to the configuration (set-up) menus. This allows
|
|
you to use the configuration immediately. If you just type "minicom"
|
|
and then configure, you'll need to leave and restart minicom for the
|
|
configuration to take effect. Within minicom type ^A to see the
|
|
bottom status line. This shows to type ^A Z for help (you've already
|
|
typed the ^A so just type z). </P>
|
|
<P>Most of the options don't need to be set for just simply dialing out.
|
|
To configure you have to supply a few basic items: the name of the
|
|
serial port your modem is on such as /dev/ttyS2 and the speed such as
|
|
115200. These are set at the serial port menu. Go to it and set
|
|
them. Also (if possible) set hardware flow control (RTS/CTS). Then
|
|
save them. When typing in the speed, you should also see something
|
|
like "8N1" which you should leave alone. It means: 8-bit bytes, No
|
|
parity, 1 stop-bit appended to each byte. If you can't find the speed
|
|
you want, a lower speed will always work for a test. Exit (hit
|
|
return) when done and save the configuration as default (dfl) using
|
|
the menu. Unless you've used the -s option when you called minicom,
|
|
you'll need to exit minicom and start it again so it can now find the
|
|
serial port and initialize the modem.</P>
|
|
<P>Now you are ready to dial. But first at the main screen you get
|
|
after you first type "minicom" make sure there's a modem there by
|
|
typing AT and then hit the <enter> key. It should display OK.
|
|
If it doesn't, try typing ATQ0 V1 EI and see if you get OK. If you
|
|
still don't get OK, something is wrong and there is no point of trying
|
|
to dial. Why you might need to type: ATQ0 V1 E1 is because a modem
|
|
can be get into a state where is can't display OK and this should get
|
|
it out of that state.</P>
|
|
<P>If you got the "OK" go back to help and select the dialing directory.
|
|
You may edit it and type in a phone number, etc. into the directory
|
|
and then select "dial" to dial it. Alternatively, you may just dial
|
|
manually (by selecting "manual" and then type the number at the
|
|
keyboard). If it doesn't work, carefully note any error messages and
|
|
try to figure out what went wrong.</P>
|
|
|
|
<H2><A NAME="kermit_"></A> <A NAME="ss11.4">11.4</A> <A HREF="Modem-HOWTO.html#toc11.4">Dialing Out with Kermit </A>
|
|
</H2>
|
|
|
|
<P> You can find the latest version of <CODE>kermit</CODE> at <CODE>
|
|
<A HREF="http://www.columbia.edu/kermit/">http://www.columbia.edu/kermit/</A></CODE>. For example, say your
|
|
modem was on <CODE>ttyS4</CODE>, and its speed was 115200 bps. You would
|
|
do the following:
|
|
<BLOCKQUOTE><CODE>
|
|
<PRE>
|
|
linux# kermit
|
|
C-Kermit 6.0.192, 6 Sep 96, for Linux
|
|
Copyright (C) 1985, 1996,
|
|
Trustees of Columbia University in the City of New York.
|
|
Default file-transfer mode is BINARY
|
|
Type ? or HELP for help.
|
|
C-Kermit>set line /dev/ttyS4
|
|
C-Kermit>set carrier-watch off
|
|
C-Kermit>set speed 115200
|
|
/dev/ttyS4, 115200 bps
|
|
C-Kermit>c
|
|
Connecting to /dev/ttyS4, speed 115200.
|
|
The escape character is Ctrl-\ (ASCII 28, FS)
|
|
Type the escape character followed by C to get back,
|
|
or followed by ? to see other options.
|
|
ATE1Q0V1 ; you type this and then the Enter key
|
|
OK ; modem should respond with this
|
|
</PRE>
|
|
</CODE></BLOCKQUOTE>
|
|
</P>
|
|
<P>If your modem responds to <CODE>AT</CODE> commands, you can assume your modem
|
|
is working correctly on the Linux side. Now try calling another modem
|
|
by typing:
|
|
<BLOCKQUOTE><CODE>
|
|
<PRE>
|
|
ATDT7654321
|
|
</PRE>
|
|
</CODE></BLOCKQUOTE>
|
|
|
|
where 7654321 is a phone number. Use ATDP instead of ATDT if you have
|
|
a pulse line. If the call goes through, your modem is working.</P>
|
|
<P>To get back to the <CODE>kermit</CODE> prompt, hold down the Ctrl key, press
|
|
the backslash key, then let go of the Ctrl key, then press the C key:
|
|
<BLOCKQUOTE><CODE>
|
|
<PRE>
|
|
Ctrl-\-C
|
|
(Back at linux)
|
|
C-Kermit>quit
|
|
linux#
|
|
</PRE>
|
|
</CODE></BLOCKQUOTE>
|
|
</P>
|
|
<P>This was just a test using the primitive "by-hand" dialing method.
|
|
The normal method is to let <CODE>kermit</CODE> do the dialing for you with
|
|
its built-in modem database and automatic dialing features, for example
|
|
using a US Robotics (USR) modem:
|
|
<BLOCKQUOTE><CODE>
|
|
<PRE>
|
|
linux# kermit
|
|
C-Kermit 6.0.192, 6 Sep 1997, for Linux
|
|
Copyright (C) 1985, 1996,
|
|
Trustees of Columbia University in the City of New York.
|
|
Default file-transfer mode is BINARY
|
|
Type ? or HELP for help
|
|
C-Kermit>set modem type usr ; Select modem type
|
|
C-Kermit>set line /dev/ttyS4 ; Select communication device
|
|
C-Kermit>set speed 115200 ; Set the dialing speed
|
|
C-Kermit>dial 7654321 ; Dial
|
|
Number: 7654321
|
|
Device=/dev/ttyS4, modem=usr, speed=115200
|
|
Call completed.<BEEP>
|
|
Connecting to /dev/ttyS4, speed 115200
|
|
The escape character is Ctrl-\ (ASCII 28, FS).
|
|
Type the escape character followed by C to get back,
|
|
or followed by ? to see other options.
|
|
|
|
Welcome to ... (a welcome message, etc.)
|
|
|
|
login:
|
|
</PRE>
|
|
</CODE></BLOCKQUOTE>
|
|
</P>
|
|
|
|
<HR>
|
|
<A HREF="Modem-HOWTO-12.html">Next</A>
|
|
<A HREF="Modem-HOWTO-10.html">Previous</A>
|
|
<A HREF="Modem-HOWTO.html#toc11">Contents</A>
|
|
</BODY>
|
|
</HTML>
|