*BSD News Article 31244


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!doc.ic.ac.uk!uknet!EU.net!Germany.EU.net!gomel.knirsch.de!knobel.knirsch.de!knobel.knirsch.de!andreas
From: andreas@knobel.knirsch.de (Andreas Klemm)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD, modem, v.42bis, flow control, help
Date: 4 Jun 1994 17:57:25 GMT
Organization: Andreas Klemm, 41469 Neuss, Germany
Lines: 51
Message-ID: <2sqfan$8bu@knobel.knirsch.de>
References: <2s3b7i$msi@news.tamu.edu>
NNTP-Posting-Host: knobel.knirsch.de
X-Newsreader: TIN [version 1.2 PL2]

Dan Hickman (hickman@prism.tamu.edu) wrote:
: I am running Freebsd 1.1 GAMMA and have a couple of dialin modems on ports
: ttyd0 and ttyd1.  Everything works cool except that I can't get it to use
: a line speed higher than 9600 so that I can fully use the modems bandwidth 
: and compression.  The problem seems to be with the line speed between
: the computer and modem (I am using external USR14.4 Sportster modems).  If I
: set the speed to 9600, I can dialin, but as soon as I set it to 19200 or higher
: and try, it craps out.   I am setting the line speed to 19200 by setting the
: ports 'ttys' setting to std.19200.  Is this correct?

Is that possibly a RTFM question ? :) A few questions/suggestions:

Do you use the sio serial driver and did you set the kernel option COM_BIDIR ?

options		"COM_BIDIR"		#Bidirectional support in sys/isa/sio.c
device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

Do you have the following special files ?

For logins:
           0 crw-------    1 root     wheel     28,   0 Nov  8 06:28 tty00
           0 crw-------    1 root     wheel     28,   1 Nov  8 10:09 tty01
For dialing out:
           0 crw-rw-r--    1 uucp     dialer    28, 128 Nov  8 03:45 cua00
           0 crw-rw-r--    1 uucp     dialer    28, 129 Nov  7 18:34 cua01

Did you setup the port using the comcontrol utility ? A good place for that
is /etc/rc.local:

	# initialize serial ports
	/sbin/comcontrol /dev/tty00 bidir
	/sbin/comcontrol /dev/tty01 bidir
	stty crtscts < /dev/cua01		<= enable hardware handshaking

What output shows comcontrol /dev/tty01 ?
	root# comcontrol /dev/tty01
	bidir dtrwait 200

Hope these suggestions help. Please note that I found this in the faq.
I personally use my modem only for dialing out. So the above is untestet
(but doesn't crash the/my system).

With kind regards

	Andreas ///


--
Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
andreas@knobel.knirsch.de ___/\/\/     andreas@wupmon.wup.de (Unix Support)