home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5816 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.8 KB

  1. Xref: sparky comp.unix.programmer:5816 comp.unix.xenix:47 comp.unix.aix:12965 comp.lang.c:19178
  2. Newsgroups: comp.unix.programmer,comp.unix.xenix,comp.unix.aix,comp.lang.c
  3. Path: sparky!uunet!wupost!spool.mu.edu!umn.edu!csus.edu!csusac!sactoh0!jak
  4. From: jak@sactoh0.sac.ca.us (Jay A. Konigsberg)
  5. Subject: Reading pins on a port
  6. Message-ID: <1993Jan4.092801.12117@sactoh0.sac.ca.us>
  7. Keywords: slave/local printer sets pin 20 high when buffer full and/or sets Xoff
  8. Organization: Sacramento Public Access Unix
  9. Date: Mon, 4 Jan 93 09:28:01 GMT
  10. Lines: 27
  11.  
  12. I'm writing a program to control a printer attached to the AUX port
  13. of a terminal. Accuctally, its operational. However, I have to guess
  14. when the buffer is too full. If enough data isn't sent, then the printer
  15. is idle and if too much is sent the terminal locks up and can't be used.
  16.  
  17. In testing I hooked a breakout box up to the AUX port and the printer
  18. and noticed that pin 20 (DTR) was going high when data ceased to be sent to
  19. the printer. Additionally, I suspect that the printer is sending Xon/Xoff
  20. but can't verify it.
  21.  
  22. Additionally, I hooked the breakout box up between the terminal and the
  23. computer and saw that the DTR high is passed through to the computer.
  24.  
  25. What I want to do is test the printer PRIOR to sending data through the
  26. terminal or, know that the printer sent an Xoff and wait for the Xon.
  27. If I can read the DTR from the serial port, that would be best. Though
  28. I want to support Xon/Xoff as a default.
  29.  
  30. This is a home project and will be released in alt.sources or perhaps
  31. unix.sources when I'm done.
  32.  
  33. Please respond by email as this has been posted to several newsgroups.
  34.  
  35. -- 
  36. -------------------------------------------------------------
  37. Jay @ SAC-UNIX, Sacramento, Ca.   UUCP=...pacbell!sactoh0!jak
  38. If something is worth doing, it's worth doing correctly.
  39.