*BSD News Article 38340


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newshost.marcam.com!news.kei.com!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.os.386bsd.misc
Subject: Re: modems and FreeBSD 2.0A
Date: 25 Nov 1994 19:33:56 GMT
Organization: The M00se Illuminati (bl00p!)
Lines: 47
Message-ID: <3b5e74$142@sol.ctr.columbia.edu>
References: <3aq0ql$m9q@wizard.pn.com> <CzMC2n.7rr@bonkers.taronga.com> <3b3m5s$inb@wizard.pn.com>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, Bill Heiser
(bill@bhhome.bh.org) had the courage to say:
: Peter da Silva (peter@bonkers.taronga.com) wrote:
: : In article <3aq0ql$m9q@wizard.pn.com>, Bill Heiser <bill@bhhome.bh.org> wrote:

: : >Is there any particular reason that CD must be high for FreeBSD 2.0A to
: : >talk to the modem?  Is this a bug, or is it this way by design?

: : It should only do that if CLOCAL is off. WIth CLOCAL on it should ignore
: : the modem control signals.

: I guess that means changing all of the modem-related applications to 
: set a CLOCAL flag when opening the port (?)    Is there an easier 
: "global" way to do this?  :-)

*groan*

I hope that smiley means that you already know the answer to this question
and you're just trying to be cute. I really do.

People went out of their way to bring you the /dev/cua?? callout devices
which *HAVE CLOCAL SET BY DEFAULT* and almost nobody ever bothers to
investigate them. All you have to do is use /dev/cua00 instead of
/dev/tty00, and you won't have this 'problem' anymore. Incidentally,
this is also the answer to the question: "How to I set up my system so I
can dial in and dial out over the same serial line without having to turn
getty on and off all the time?" It's amazing how a little piece of
information can go a long way, isn't it?

What's that I hear you kvetch? There is no /dev/cua00 on your system?
Then maybe you should check out the man pages for MAKEDEV and mknod to
find out how to create them.

And since you're in the neighborhood, why not look at the sio man page too.
You know, the sio man page? The one that tells you all about the sio serial
driver? The one that tells you nifty things like what the initial-state
(ttyi??) and lock-state (ttyl??) device nodes are for, and how you can use
them to change the default settings for any of the serial lines as you
see fit? The one that tells you how to properly configure your kernel to
support multiport serial cards? The one that would significantly reduce
FAQ traffic in the 386bsd newsgroups if only people would read it?

Like the kid said in Terminator II: "Are we learning yet?"

--
-Bill Paul
wpaul@ctr.columbia.edu