*BSD News Article 18053


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!darwin.sura.net!news-feed-2.peachnet.edu!umn.edu!doug.cae.wisc.edu!zazen!psl.wisc.edu!news
From: RAM@EPIDAT.EPI.WISC.EDU (Ram Bhamidipaty)
Subject: instructions for connecting a modem to your system
Message-ID: <1993Jul7.152631.24557@pslu1.psl.wisc.edu>
Sender: news@pslu1.psl.wisc.edu (USENET News System)
Organization: Univ of Wisconsin/Department of Preventive Medicine
Date: Wed, 7 Jul 93 15:26:31 GMT
X-News-Reader: VMS NEWS 1.24
Lines: 83

How to add a modem to 386BSD:

The first part that confused me was assuming that /dev/com1 is the same
as DOS com1, they're not. /dev/com0 is connected to com1 and (I think)
/dev/com1 is connected to com2.

The switch settings for my modem were the same as what I had under DOS,
CTS CD RTS et al were set to follow the actual line (ie my modem can
force them high, which I turn off)

Ok that's not too bad.

Now you need to edit the /etc/remote file to include a reference to the
com port. I have only used NetBSD-0.8, so I'm not sure what the default
files are like that come with the other rev's of 386BSD.

I added the last line (with com0).
--------------------------------------------------------
#	@(#)remote	5.2 (Berkeley) 6/30/90
#

...stuff deleted...

# UNIX system definitions
unix1200|1200 Baud dial-out to another UNIX system:\
	:el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial1200:
unix300|300 Baud dial-out to another UNIX system:\
	:el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial300:

...stuff deleted...

dial2400|2400 Baud Hayes attributes:\
        :dv=/dev/tty19:br#2400:cu=/dev/tty19:at=hayes:du:
dial1200|1200 Baud Hayes attributes:\
        :dv=/dev/tty19:br#1200:cu=/dev/tty19:at=hayes:du:

# Hardwired line
com1c|com1:dv=/dev/com1:br#9600:
com1b:dv=/dev/com1:br#2400:

com0:com0:dv=/dev/com0:br#9600:at=hayes:
------------------------------------------------

Ok, now if you are running as root you can use type 'tip com0' and you
should then be talking to your modem. I use kermit to transfer files,
and it wants to create a lock file in (not sure about the exact path)
/var/spool/uucp/lock or something along those lines.  I made the directory
world writeable so I could run kermit with my own uid, rather than root.

Thanks also to thombsr@liciren.li.co.uk for information on how to do this.

>>From: SMTP%"cdsi@titan.tsd.arlut.utexas.edu"  1-JUL-1993 14:01:48.90
>>
>>/dev/com1 is actually 2F8 irq 3 (ie DOS COM2).
>>/etc/remote does not have an entry for com0 -- make one.
>>/dev/com0 should have minor number 0
>>/dev/com1 should have minor number 1
>>put whatever baud rate you want in the /etc/remote file
>>after you do that,
>> # tip com0
>>You are then talking to the modem just like in Telix.
>>AT&V (hayes compatible display all settings command)
>>
>>Warning: hardware flow control is not really implemented.
>>I get SILO overflows
>>at 19200 quite often, but not often enough to look into it.
>>I think someone is
>>working on an upgraded serial driver, if you know about it, please email.
>>
>>Kevin Johnson
>>
>>cdsi@titan.tsd.arlut.utexas.edu
>>johnsonk@holonet.net
>>kevin@lawton.lonestar.org

I also get silo overflows at 9600 baud...

-Ram

-----------------------
Ram Bhamidipaty                                    ram@epidat.epi.wics.edu
Univ of Wisconsin
Dept. of Preventive Medicine