*BSD News Article 30535


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!warrane.connect.com.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Dialout modem
Date: 16 May 1994 13:54:50 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 35
Message-ID: <2r6qqa$80g@kralizec.zeta.org.au>
References: <768923589snz@bstone.demon.co.uk> <CptFrr.3Lz@luva.stgt.sub.org> <768999798snz@bstone.demon.co.uk> <2r5s0g$qjj@panix2.panix.com>
NNTP-Posting-Host: kralizec.zeta.org.au

In article <2r5s0g$qjj@panix2.panix.com>,
Bill "This is a close-up?!" Paul <wpaul@panix.com> wrote:
>Daring to challenge the will of the almighty Leviam00se, Ian Steel
> (Ian@bstone.demon.co.uk) had the courage to say:

>: Thanks. The trouble is that my FreeBSD 1.1 doesn't appear to like using these
>: mythical /dev/cua?? devices :-(
>
>: I tried doing the mknod which went fine, but the comcontrol complained saying
>: that the ioctl specified wasn't supported for this device. Whats going on?
>: All I want to do is dial out :-(
>
>*sigh* Whoever told you to use /dev/cua00 erroneously assumed that you had
>your kernel configured to use it. Edit your kernel config file and add
>the line:
>
>options "COM_BIDIR"
>
>Recompile your kernel and then use the 'comcontrol' command to enable
>bidirectional capabilities as shown above. 

Using the bidirectional devices is unecessarily complicated if all you
want to do is dial out.  They are mainly for handling the case of a
getty holding the line open so that it is hard to use for anything
else.  The ordinary dialout devices (/dev/tty0*) should work with
correct programs.  Some incorrect programs (e.g., tip) require the
stty clocal kludge (e.g., stty -f /dev/tty01 clocal) so that they
can talk to the modem when carrier is not present.  The clocal kludge
is automatic for the cua devices in 1.1.

The /dev/MAKEDEV script in FreeBSD-1.1 changes the names of the serial
devices if you create the cua devices.  It creates /dev/cua0* OK, but
replaces /dev/tty0* by /dev/ttyd*.
-- 
Bruce Evans  bde@kralizec.zeta.org.au