SVR4 (i386) serial port setup

Tim Wright tim at dell.co.uk
Thu May 9 20:47:49 AEST 1991


In <1991May8.153108.21313 at ux1.cso.uiuc.edu> mandel at ux1.cso.uiuc.edu (Hector Mandel) writes:

>I have been trying to set up a modem on my system with limited success.  I
>am running UHC SVR4 on an i386 machine.  Setting up the port monitor or
>the old uugetty stuff in /etc/inittab works fine for incoming connections
>to the modem on my serial port.  I can dial in and connect, login etc. with
>no problem.  HOWEVER, if I set up basic networking and try to call *out*
>using cu, it doesn't work.  I've tried disabling the port monitor and
>setting up the port for outbound dialing only by configuring Dialers,
>Systems and Devices files, but it still won't work.  cu returns a message
>saying "CAN'T ACCESS DEVICE". 

The problem is the (pardon me) CRAP serial port driver supplied with
V.4.  It does not support "non modem-controlled" serial ports i.e. is
DCD is not high, you cannot open the port. Actually, that is not
really true. You have to open the port with O_NDELAY set, then set the
CLOCAL flag and you can then use the port (tricky since many comms
programs don't know how to do this). Or you can strap the modem DCD
high all the time. However that means resorting to (Ugh) uugetty.
There is an easier way. Get FAS2.08, change the include line for
'sys/macros.h' to sys/systm.h (I think), and install it. I'm working
on a streams tty version, but don't hold your breath - the current
version works OK due to the backwards compatability functions in the
V.4 kernel.

Tim
-- 
Tim Wright, Dell Computer Corp., Bracknell    |  Domain: tim at dell.co.uk
Berkshire, UK, RG12 1RW. Tel: +44-344-860456  |  Uucp: ...!ukc!delluk!tim
Smoke me a Kipper, I'll be back for breakfast - Red Dwarf



More information about the Comp.unix.sysv386 mailing list