home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9261 < prev    next >
Encoding:
Text File  |  1992-09-01  |  2.3 KB  |  57 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!panews!konopik.austin.ibm.com!konopik
  3. From: konopik@konopik.austin.ibm.com (Brad Konopik)
  4. Subject: Re: Can't send a break signal to a serial line defined as /dev/lp1
  5. Message-ID: <1992Aug31.043606.17396@ibmpa.awdpa.ibm.com>
  6. Sender: news@ibmpa.awdpa.ibm.com (News Master)
  7. Organization: IBM AIX Porting Center, Austin
  8. References: <Brt9G2.IAD@watserv1.waterloo.edu> <1196@curly.appmag.com>
  9. Date: Mon, 31 Aug 92 04:36:06 GMT
  10. Lines: 45
  11.  
  12. In article <1196@curly.appmag.com> pa@curly.appmag.com (Pierre Asselin) writes:
  13. >In <Brt9G2.IAD@watserv1.waterloo.edu>
  14. >hesse@watserv1.waterloo.edu (BJ Cameron - DCS) writes:
  15. >
  16. >>if(ioctl(ttyf, TCSBRK, 0) < 0 )
  17. >>           perror("Can't send BREAK: ");
  18. >
  19. >>If the backend file is /dev/lp1 the error is returned.  If the backend file
  20. >>is /dev/tty0 a BREAK signal is transmitted.
  21. >
  22. >Is there such a thing as a BREAK on a parallel interface?
  23. >
  24. >On a *serial* line a BREAK is a logical 0 held for a longer time than
  25. >normal (500ms?).  It is *not* a character with all the bits zero
  26. >because the stop bit (at logical 1) doesn't show up in time and the
  27. >receiver raises a framing error.
  28.  
  29. Close, Pierre.  A break condition exists when the received data input
  30. is held in the spacing (logic 0) state for longer than a full word
  31. transmission time (start bit + data bits + parity bit + stop bits).
  32. The receiver experiences the break until the line returns to the 
  33. marking (logic 1) state, at which time the receiver begins looking
  34. for another start bit.
  35.  
  36. >
  37. >>Any ideas?
  38. >
  39. >Yep.  Read the fine print of the printer documentation.  What you are
  40. >trying to do may be possible only if you use the serial interface.
  41. >But the parallel interface is ususally faster.
  42.  
  43. When using a serial printer, you are normally talking to the serial printer
  44. line discipline...not the posix line discipline.  The TCSBRK and TCSBREAK
  45. support are in the posix line discipline.  You're outta luck.
  46.  
  47. >-- 
  48. >
  49. >--Pierre Asselin, Magnetoresistive Head Engineering, Applied Magnetics.
  50. >  pa@appmag.com        the usual disclaimers apply.
  51.  
  52. -- 
  53.   tcpnet: konopik@konopik.austin.ibm.com  |  Brad Konopik
  54.  ibmvnet: KONOPIK at AUSTIN               |  IBM AIX Porting Center, Austin
  55. internet: konopik.austin.ibm.com!konopik@ibmpa.awdpa.ibm.com
  56.    uunet: ..!uunet!ibmsupt!ibmpa!konopik.austin.ibm.com!konopik
  57.