*BSD News Article 30384


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!panix!not-for-mail
From: wpaul@panix.com (Bill "This is a close-up?!" Paul)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Dialout modem
Date: 15 May 1994 15:09:04 -0400
Organization: The M00se Illuminati (bl00p!)
Lines: 95
Message-ID: <2r5s0g$qjj@panix2.panix.com>
References: <768923589snz@bstone.demon.co.uk> <CptFrr.3Lz@luva.stgt.sub.org> <768999798snz@bstone.demon.co.uk>
NNTP-Posting-Host: panix2.panix.com
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, Ian Steel
 (Ian@bstone.demon.co.uk) had the courage to say:
: In article <CptFrr.3Lz@luva.stgt.sub.org>
:            migieger@luva.stgt.sub.org "Michael Giegerich" writes:
: > 
: > In article <768923589snz@bstone.demon.co.uk>,
: > Ian Steel <Ian@bstone.demon.co.uk> wrote:
: > >Hello,
: > >
: > >No matter what I seem to try, I can't get tip/slip/pppd/chat/echo to talk to
: > >a modem connected to tty01.
: > >
: > >I can talk to it using 'cu -ltty01 dir' and then run ifconfig, etc to sort out
: >                               ^^^^^
: > You should use /dev/cua00 to dial out (make sure you did
: > `/sbin/mknod /dev/cua01 c 28 129'    to create /dev/cua01
: > `/sbin/comcontrol /dev/tty00 bidir'  to turn on bidir capabilities).
: > 
: > Bye,
: > -Michael
: > -- 

: 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. 

I could have sworn this was a FAQ. Just for your general edification,
whenever you try to use a device in /dev and get an error message that
says 'Device not configured,' it means your kernel doesn't have support
for that particular device compiled in. The bidirectional serial devices
are one example. The sound card driver is another. You can use MAKEDEV
to create /dev/audio, but it won't work because the generic kernels
don't have the sound card support compiled into them. Check out
/sys/i386/conf/GENERICAH to see what sort of things are enabled by default.
Also check /sys/i386/conf/LINT for a complete list of possible options
and devices. (Well, almost complete I think.)

: I can now dial out using tty01 using chat but I have to do 
: 'stty -f /dev/tty01 clocal 38400' first. The problem then is getting the modem
: to drop the line when I've finished - it never does. I have to turn the modem
: off to get the line to drop! :-(

Make sure your modem is set to monitor DTR. I deliberately set mine to
ignore DTR with the command AT&D0 for the sake of a really ugly kludge.
Next time you try to dial out, use the command AT&D2 to have your modem
track DTR. I know for a fact that the 'hangup' command in kermit will
correctly cause my modem to hangup when I have it enabled.

: So the question now is does anyone have a suitable robot arm interface for
: FreeBSD 1.1 so that I can get it to turn the modem off/on for me at 03:00 each
: day?

Don't know about this one... perhaps you should ask the Jolitzes. >;)

: <sigh>...come on, someone must have got this lot sorted out. Obviously I'm
: being completely stupid in not being able to do all this so please put an old
: idiot out of his misery and spill the beans...

Like I said, I could have sworn this was a FAQ. The only thing that's
tripped you up is the fact that the COM_BIDIR option isn't enabled in the
generic kernels. I also recommend using C-Kermit for dialing out. It's
a much nicer program than tip or cu and it can do a bunch of things they
can't.

I suppose now you're going to want to know how to recompile the kernel. :)
Well, get the sources first, then we'll talk.

Hope this helps.

-Bill

: Thanks, dispondantly...

: -- 
: Ian Steel

--
 _      /\      _            Join the
/ \_/\_/  \_/\_/ \  .----.   M00se Illuminati   Bill Paul 
\_____/ () \_____/ (bl00p!)  Face it: wouldn't  <Big City M00se>
     /      \       `----'   you feel much      wpaul@panix.com   -or-
    /  \__/  \    --'        safer?             ghod@drycas.club.cc.cmu.edu
   /__________\