home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16638 < prev    next >
Encoding:
Text File  |  1992-11-18  |  4.1 KB  |  72 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!ucivax!zardoz.cpd.com!neil
  3. From: neil@uninet.cpd.com (Neil Gorsuch)
  4. Subject: Re: Printer Parallel port misery
  5. Message-ID: <BxxuEs.7Fz@zardoz>
  6. Sender: news@zardoz (usenet news administrator)
  7. Organization: Uninet Peripherals, Inc.
  8. References: <1992Nov16.131533.16209@eurohub.neu.sgi.com> <1992Nov16.141604.16853@eurohub.neu.sgi.com> <1992Nov18.162359.11122@cc.ic.ac.uk>
  9. Date: Thu, 19 Nov 1992 00:52:03 GMT
  10. Lines: 60
  11.  
  12. In article <1992Nov18.162359.11122@cc.ic.ac.uk> cmaae47@imperial.ac.uk writes:
  13. >In article <1992Nov16.141604.16853@eurohub.neu.sgi.com>, joe@spectrum.neu.sgi.com (Joe Elliott) writes:
  14. >- I have been having problems with printers for some time now. All of them
  15. >- with PostScript printers and parallel ports.
  16. >- Things are great for small print jobs but given a reasonable load, the port
  17. >- just stops and the jobs keep queueing up. 
  18. >Cannot really be Xon/Xoff, as the normal Centronics printer protocol is
  19. >simplex - i.e. printer cannot drive port, so cannot send (ascii text) information
  20. >back to the computer. PostScript printers sometimes give you messages.
  21.  
  22. I don't know exactly what kind of hardware the computer is using for
  23. it's Centronics interface, but here is some general information that
  24. might be helpful.
  25.  
  26. A Centronics interface uses 1 output signal and 2 input signals for
  27. output data flow control.  There is an output strobe line that is
  28. pulsed by the computer interface every time a new byte is available on
  29. the data lines, an input acknowledge line that is pulsed by the
  30. printer when the byte is read from the data lines by the printer, and
  31. a busy line that is asserted by the printer when it is not ready to
  32. accept another byte yet.  There are other signals for status such as
  33. paper empty and printer fault, but they normally don't come into play
  34. for output throttling.  Before another byte is placed on the
  35. Centronics data lines by the computer, it is supposed to wait until
  36. the busy line is clear, and also until the previous output byte (if
  37. there was one) was acknowledged by a pulse on the acknowledge line.
  38. On our Centronics interface, we have seen 2 ways that things can
  39. "hang" when in output mode:
  40.  
  41. 1. If the computer Centronics interface is a lot faster than the
  42. printer Centronics interface, and the Centronics cable is not very
  43. good (most aren't and have lots of capacitance and cross-talk) or are
  44. not terminated very well at either end, a false acknowledge pulse can
  45. be seen because of cross-talk/ringing, and the busy signal assertion
  46. will be delayed long enough that another byte will be sent out first.
  47. Then because the printer wasn't ready for the second byte, it ignores
  48. it and will never acknowledge it and the computer interface will wait
  49. forever for the acknowledge pulse.  There is no good way to put an
  50. arbitrary timeout value either, because of the widely varying amounts
  51. of time that a printer can wait to acknowledge an output byte.  This
  52. situation can be fixed by a better cable.  In our interface, the
  53. output cycle is slowed down by default and needs a software switch to
  54. be set to go into higher speed mode.  This way it will usually work in
  55. the default case of a marginal Centronics cable.
  56.  
  57. 2. A lot of Centronics computer interfaces simply ignore the
  58. acknowledge pulse and only use the busy signal for output throttling.
  59. They can get away with this in almost every case, since almost every
  60. printer interface has a hardware latch that sets the busy signal true
  61. when a the strobe pulse is seen.  The latch is then cleared by the
  62. printer's firmware when the data byte has been read.  Our older models
  63. did this, and if there was a Centronics cable with a lot of
  64. capacitance, the busy signal would take so long to be seen in the
  65. computer interface that it would send out another byte prematurely,
  66. and everything would hang again.  The only cure in that case was a
  67. better Centronics cable.
  68. --
  69. Neil Gorsuch  INTERNET: zardoz!uninet!neil@ics.uci.edu  UUCP: uunet!uninet!neil
  70. MAIL: 17981 Sky Park Blvd., Suite O, Irvine, CA, 92714  PHONE: +1 714 263 4222
  71. Uninet Peripherals, Inc.                                FAX: +1 714 263 4299
  72.