[comp.unix.sysv386] SVR4, serial port question

brian@cs.wvu.wvnet.edu (Brian Dean) (03/05/91)

I've recently upgraded from SVR3.2 to SVR4.0 (Intel V2.0) and am
having difficulty getting serial ports to respond to anything.  I've
tried everything I can think of from using the sysadm program to
configure and enable ports and uucp lines to editing the uucp
configuration files manually with no avail.  I have made sure that
"uucp" owns the appropriate device entries and files.

It seems as though to ports do not respond at all - any attempt at
connection with "cu" times out with the message "can't access device".
A short program to access the port (/dev/tty(00 00s, 00h, 01, 01s,
01h) and /dev/term/(00, 00s, 00h, 01, 01s, 01h)) with the "open"
system call waits indefinitely for the port to become ready.

An internal hayes compatible modem is attached to tty00 and tty01 is
one of the serial ports builtin to the motherboard (Hauppauge 4860).

Intel support will not help because I didn't purchase a support
contract (~$2000).

If you have any ideas on what the problem may be, or have your's
configured correctly, I'd appreciate any help you may offer.

					Thanks!
-- 
Brian Dean				Dept. of Stat. & Computer Science
(304) 293-3607x5			West Virginia University
					Morgantown, WV  26506
INTERNET:  brian@cs.wvu.wvnet.edu

tim@dell.co.uk (Tim Wright) (03/06/91)

In <1310@h.cs.wvu.wvnet.edu> brian@cs.wvu.wvnet.edu (Brian Dean) writes:

>I've recently upgraded from SVR3.2 to SVR4.0 (Intel V2.0) and am
>having difficulty getting serial ports to respond to anything.
...
>It seems as though to ports do not respond at all - any attempt at
>connection with "cu" times out with the message "can't access device".
>A short program to access the port (/dev/tty(00 00s, 00h, 01, 01s,
>01h) and /dev/term/(00, 00s, 00h, 01, 01s, 01h)) with the "open"
>system call waits indefinitely for the port to become ready.

Yes, I can tell you what the problem is. You need more than three
wires from the COM port to the device. There is no device provided
which offers "clocal" type behaviour on open(), i.e. all the devices
require DCD high to work. I'm not sure whether this counts as a bug
since I believe it is legitimate (if somewhat stupid) behaviour.
I believe that you should be able to set up uucp to work using the
'\M', '\m' or ',M' options in the configuration files. I haven't tested
this out since I use a multiport card.
If you use your own code, open with O_NDELAY and then use ioctl to
set CLOCAL. I would imagine the ISC will fix this since in ISC's SVR3
products, there you have tty00/ttyd0 etc.

Tim
--
Tim Wright, Dell Computer Corp., Bracknell    |  Domain: tim@dell.co.uk
Berkshire, UK, RG12 1RW. Tel: +44-344-860456  |  Uucp: ...!ukc!delluk!tim
Nobody ever said I was charming before. They said, "Rimmer, you're a total git"
- Red Dwarf, "Camille".

leo@unipalm.uucp (E.J. Leoni-Smith) (03/14/91)

Brian: I had similar problems - never resolved. We THINK it might be
the hardware we were using (clone board featuring ASIC UART rather than
proper 8250)

By the way - weren't Interactive supposed to be contacting all us 
INTEL V.4 Beta sites. I'm here....where *are* you?