home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!apple!ntg!dplatt
- From: dplatt@ntg.com (Dave Platt)
- Newsgroups: comp.dcom.modems
- Subject: Re: Telebit WB Problem
- Message-ID: <1992Dec13.060346.3850@ntg.com>
- Date: 13 Dec 92 06:03:46 GMT
- References: <Bz08Fs.IKE@hico2.westmark.com> <1992Dec10.174615.15323@q7.tessi.com> <Bz2D2B.HGA@ernest.itg.ti.com>
- Organization: New Technologies Group, Inc. Palo Alto CA
- Lines: 50
-
- >>there is/used to be a problem with sun systems and telebit modems.
- >>basically, you need to increase the time the sun holds dtr low
- >>during a line reset.
-
- >This is interesting because the WB has an S register to specify the minimum
- >amount of time for DTR to be low to cuase a modem reset. The minimum value
- >you can stick in that register is 50 milliseconds.
-
- The problem is a bit more involved than that. What happens is something
- along the following lines:
-
- [1] An interactive session ends, or the uucico program closes the port.
-
- [2] The Sun drops DTR
-
- [3] The Telebit notices that DTR has gone low for longer than the time
- specified in the S-register, and starts the disconnection process.
-
- [4] Some amount of time passes as the Telebit tells its peer that
- disconnection is taking place, and the two modems agree to hang up.
-
- [5] The Sun reaches the end of the "hold DTR low" period. The port is
- released.
-
- [6] Another process (usually a "getty") tries to open the port. Carrier
- Detect is still high, so the open is allowed to proceed, and the tty
- driver and getty begin to initialize the port.
-
- [7] The Telebit finally gets around to dropping Carrier Detect,
- signalling that the previous connection has dropped.
-
- If you're lucky, step [6] completed before step [7] occurred. If this
- happens, the getty simply receives an immediate hangup signal from the
- tty driver, and exits harmlessly.
-
- If you're unlucky, step [6] is only half-complete when [7] occurs, and
- the tty driver gets hit by a hangup as it's halfway through port
- initialization. Due to a bug (I infer) in the tty driver, the driver
- leaves the port in a zombified state... busy, but unable to be reset.
- The port becomes useless (locked up with DTR low) until the system is
- rebooted.
-
- Patching the "zsadtrlow" value in the kernel to a nice safe number like
- 5 or 7 prevents the problem from occurring... it ensures that the Sun
- won't try to hand the port over to a new session until well after the
- modems have deasserted Carrier Detect.
- --
- Dave Platt VOICE: (415) 813-8917
- Domain: dplatt@ntg.com UUCP: ...netcomsv!ntg!dplatt
- USNAIL: New Technologies Group Inc. 2470 Embarcardero Way, Palo Alto CA 94303
-