*BSD News Article 63579


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!charnel.ecst.csuchico.edu!newshub.csu.net!news.Cerritos.edu!news.Arizona.EDU!CS.Arizona.EDU!noao!ennfs.eas.asu.edu!gatech!newsfeed.internetmci.com!uwm.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news-1.csn.net!alisa.org!wjjr
From: wjjr@alisa.org (John J. Rushford)
Subject: Re: Modem Help...Please?
X-Newsreader: TIN [version 1.2 PL2]
Organization: My place on the Front Range.
Message-ID: <Do1zMv.JHM@alisa.org>
References: <4hl2bt$9s@news.visi.com>
Date: Sun, 10 Mar 1996 13:18:31 GMT
Lines: 108

Doug Bailey (dougb@sihope.com) wrote:
: I'm a suffering Unix newbie, and though I've managed to get FreeBSD
: 2.1 installed on my machine, I've been utterly unable to divine how to
: get the damn thing to communicate with a modem.

: I have a U.S. Robotics 28800 external connected to COM2 (which in the
: FreeBSD world appears to be /dev/ttyd1)

: Though I've read everything I can find, I am unable to come up with a
: setup which will allow me to dial out on this modem or to receive
: calls on it.

: I know you have to create an entry in /etc/remote, and I know you have
: to edit /etc/ttys but I'm thoroughly, abjectedly unable to come up
: with any combination of things that'll let me use tip or cu to
: originate a call.

: I have been able to get the DTR light on the modem to come on and go
: off, but that is about it.

: Any help would be greatly appreciated....

: Regards,
: Doug

: ===================================================================
: I collected 35,000 Adventure Team Miles and All I Got Was Emphysema
: ===================================================================

Create the following files and entries and I guarantee that 'cu' will work
for you.  After you've created these files as below (note you may need to
modify the 'zoom dialer' for your modem) try 'cu nisttime'.  

The attached are the configuration files for Taylor UUCP.  Taylor UUCP
configuration files are defined quite well in the Linux Bible.

Note:  /dev/cuaa1 should be used for outgoing calls and /dev/ttyd1 should
       be used for incoming calls.  /dev/ttyd1 should have a getty running
       on it (getty is started by editing /etc/ttys).

       I'm not sure how to set up a modem for both outgoing and incoming.
       You may get permission denied from cu when trying to make an out-
       going call on a port that has a getty running on it.


The dialer chat script below turns on auto answer each time you use it
though, ie:  S0=2.


	/etc/uucp/port:

	    # Build a port entry for all supported baud rates, only
	    # 9600 and 19200 are shown here.  Supported baud rates
	    # are: 110, 134, 150, 300, 600, 1200, 2400, 4800, 9600
	    # 19200, 38400, 57600, 115200.
            #
	    # The following is a port description for a 9600 baud 
	    # outgoing call using the 'zoom' dialer.  My modem is
	    # a zoom modem.  The dialer can be any key word that
	    # points to an AT command set for your particular modem.
	    port    acu9600
	    type    modem
	    device  /dev/cuaa1
	    speed   9600
	    dialer  zoom

	    port    acu19200
	    type    modem
	    device  /dev/cuaa1
	    speed   19200
	    dialer  zoom


        /etc/uucp/dial

	    #
	    # This is the chat script I use called 'zoom'.  It is for an
            # outgoing call using cu on with a zoom modem.  Note the \T
	    # is replaced with the telephone number when the dialer executes.
	    # This is an 'expect send' sequence.  Use cu -d for debugging
	    # purposes.  Also see O'Reilly's managing UUCP and Usenet.  This
	    # book has a good explanation of dialer scripts using expect/send
	    # such as is used here.
	    #
	    dialer  zoom
	    chat    "" AT&F&C1&D2S0=2 OK ATDT\T CONNECT


        /etc/uucp/sys

	    #
	    # This is the system file where you define system names and
	    # phone numbers.  The example shown is an actual system you
	    # can call.  It is the NIST telephone time service via modem
	    # In the US.  Uses 19200 dialer and speed as defined in
	    # /etc/uucp/port.
	    #
	    system nisttime
	    time   Any
	    phone  13034944774
	    port   acu19200
	    speed  19200


Hope this helps.

John Rushford
wjjr@alisa.org