*BSD News Article 29651


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!mel.dit.csiro.au!merlin!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!nigel.msen.com!zib-berlin.de!irz401!uriah!not-for-mail
From: j@uriah.sax.de (J Wunsch)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Tired of flipping my FORCE CD DIP Switch [FreeBSD]
Date: 12 Apr 1994 21:16:43 +0200
Organization: Private U**X site; member IN e.V.
Lines: 23
Message-ID: <2oes2rINN2jt@bonnie.sax.de>
References: <mldCo0uur.Iyx@netcom.com>
NNTP-Posting-Host: bonnie.sax.de
Keywords: serial modem FreeBSD

In <mldCo0uur.Iyx@netcom.com> mld@netcom.com (Matthew Deter) writes:

>My FreeBSD 1.0 box has a modem hanging off /dev/tty01.  Fine.  I can
>dial out peachy.  I can dial in (getty) peachy.

>However.  In order to dial OUT I have to force the Carrier Detect (CD)
>high via DIP switch setting on my modem.  cu comes back with an "I/O
>write error" if I do not have the CD forced high on the modem.

You should be helped with options COM_BIDIR in the kernel config file,
and comcontrol -bidir /dev/ttywhereeveryoulike. Then (after mknoding
the devices), use /dev/cuawhereeveryoulike for dialing out, it emulates
a soft carrier until the real carrier has been detected.

Note that the sio driver still undergoes some changes, so several race
conditions might still exist in your version. This is one of the reasons
why COM_BIDIR hasn't been the default in the past. (It should be now
anyway.)
-- 
cheers, J"org                             work:    joerg_wunsch@tcd-dresden.de
                                          private:   joerg_wunsch@uriah.sax.de
Steinbach's Guideline for Systems Programming:
        Never test for an error condition you don't know how to handle.