*BSD News Article 34491


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:12451 comp.os.386bsd.misc:3258
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!pnl-oracle!osi-east2.es.net!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!torn!uunet.ca!uunet.ca!wildcan!alexd
From: alexd@system9.unisys.com (Alex  Dumitru)
Subject: Re: FreeBSD 1.1.5.1: Serial port problems
Message-ID: <1994Aug15.173556.4105@system9.unisys.com>
Organization: Unisys GIS (Toronto)
References: <32c0kr$94d@Mercury.mcs.com>
Date: Mon, 15 Aug 1994 17:35:56 GMT
Lines: 44

mikebo@MCS.COM (Michael Borowiec) writes:
>I can't seem to be able to connect to my modem directly using "cu"...
[ .. deleted ..]
>Do I have to create a new device (ala SunOS) to do this?

I'm doing this from memory, so please double check the numbers and
options. When you see 01 it reflects that my set up has the modem on
COM2.

You have to have two devices. One used for dialout, and one for dialin.
typical setup is ttyd0x for dialin and cua0x for dialout.

Use mknod to create these devices. The dialout device has a minor number
of 128+ minor of dialin. (could be the other way around... check the
man page for sio)

Also check that your kernel has the right sio entries, and it detects
then at boot time. (again the man page on sio is very good)

Create appropriate entries in your /etc/ttys
ttyd01 "/usr/libexec/getty D9600" vt100 on secure
cua01 none 

D9600 should be a valid entry in /etc/gettytab

Add a line to your /etc/rc
echo -n " <some message>"; stty -f /dev/cua01 -clocal crtsct
(double check the crtsct stuff in the stty man page)

Also make sure that your modem has local echo turned off (ATE1)and is set for
auto answer (ATS0=1).

When all is said and done do a kill -HUP 1 as root. Check to see that 
you do have a getty running on ttyd01 (ps -ax).

Use kermit (or cu) to connect to the dialout port cua01. It should connect.
Exit and check that the getty on ttyd01 has been restarted.

You now have dialin and dialout capabilites... Don't forget to double
check that all acounts have passwords assigned.

cheers
alex