*BSD News Article 41341


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uunet!psinntp!adam.cc.sunysb.edu!newsserv.cs.sunysb.edu!starkhome.cs.sunysb.edu!localhost!gene
From: gene@starkhome.cs.sunysb.edu (Gene Stark)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: gettytab & dialins
Date: 20 Jan 95 07:02:30
Organization: Gene Stark's home system
Lines: 45
Message-ID: <GENE.95Jan20070230@starkhome.cs.sunysb.edu>
References: <3feimq$17v@awfulhak.demon.co.uk>
NNTP-Posting-Host: localhost.cs.sunysb.edu
In-reply-to: brian@awfulhak.demon.co.uk's message of 16 Jan 1995 19:50:50 -0000

In article <3feimq$17v@awfulhak.demon.co.uk> brian@awfulhak.demon.co.uk (Brian Somers,London,(0956) 361 769,(0181) 840 7880) writes:

   I'm trying to receive dialins on a sio port (ttyd2) on FreeBSD-2.0-RELEASE.
   Can any kind soul __HELP__ !!!??!

   The modem-modem connection is no problem, it's the line configuration.

   The dialer is set at 8 bits, no parity, one stop bit.  The listener won't
   work no matter what I try, sometimes I get nothing, others I get garbage.

   Please spend a minute and solve my problems.... :(

This type of problem is caused by a speed mismatch between the speed
saved in your modem NVRAM and what getty is using.  It is important to be
sure that they agree.

First check:

	1. Your modem is set up to reset on DTR drop.
	2. Your modem is set to lock the RS-232 speed and to negotiate
		the highest possible phone line speed.
	2. You can successfully dial out.
	3. You have the correct speed entry in /etc/ttys.

Then, let's say you wanted getty to run at 57600 baud, which matches
entry that you put in /etc/ttys.  Execute the following procedure:

	%kermit
	kermit> set line your_dialout_device
	kermit> set speed 57600
	kermit> connect
	AT
	OK
	AT&W

The first AT initializes your modem to 57600 on the RS-232 interface.
It is important that this AT be output at 57600 baud, so that the modem
autobauds on it.  You can use "tip" instead of "kermit", but you have
to mess with /etc/remote.

The AT&W writes the speed setting in NVRAM.  From then on, whenever
your modem resets, it will reset to 57600.  This will make getty happy,
and you shouldn't have any trouble with dialins.

							- Gene Stark