dial in / out on same line

Steve Nuchia steve at nuchat.UUCP
Mon Feb 8 02:37:53 AEST 1988


This thread seems to be dancing around the tty driver issues
concerning bidirectional use of a line.

This is about the only thing Microport got right from the
beginning, and seeing how well their mechanism (I don't
know where it originated) works I implemented it for my
2.10 BSD client, who is quite pleased also.

You use two different device files for each physical line -
using a bit in the minor device number as a flag differentiating
the incoming and outgoing version.

The open on the incoming (usually getty) blocks waiting for carrier.  
Only one logical device can be open on a line at one time, attempts
to open the outgoing side while the incoming side is open (carrier
high) fail.

One compilcation is that you need to play games with the uucp lock
files to make uucp hunt for an open line properly.

I've got a DHV11 driver for 2.10 (should work in 4.3 too) that
deals with that board's braindamage nicely and implements the
scheme described.  I've also got a getty replacement for microport
that plays the right uucp lockfile games.

The driver requires the proper lisence horse hockey but I can
give the getty away for the asking.

-- 
Steve Nuchia	    | [...] but the machine would probably be allowed no mercy.
uunet!nuchat!steve  | In other words then, if a machine is expected to be
(713) 334 6720	    | infallible, it cannot be intelligent.  - Alan Turing, 1947



More information about the Comp.bugs.2bsd mailing list