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

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!utcsri!torn!watserv2.uwaterloo.ca!watserv1!hesse
  3. From: hesse@watserv1.uwaterloo.ca (BJ Cameron - DCS)
  4. Subject: Re: Can't send a break signal to a serial line defined as /dev/lp1
  5. Message-ID: <BtyI3r.HEn@watserv1.uwaterloo.ca>
  6. Organization: University of Waterloo
  7. References: <1992Aug31.043606.17396@ibmpa.awdpa.ibm.com>
  8. Date: Wed, 2 Sep 1992 15:09:26 GMT
  9. Lines: 35
  10.  
  11. From article <1992Aug31.043606.17396@ibmpa.awdpa.ibm.com>, by konopik@konopik.austin.ibm.com (Brad Konopik):
  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.  
  23. (A bunch of stuff about "what a break signal is" and confussion over serial and parallel deleted)
  24.  
  25. Gee Brad, you just get back from vacation? :) I posted this back in July.  I guess I should have posted a followup with the answer received from Rich Coe via mail.
  26. He suggested:
  27.  
  28.  /* push the posix line discipline */
  29. ioctl(fd, TXADDCD, "posix");
  30. ioctl(fd, TCSBRK, 0);
  31.      /* pop the posix line discipline */
  32. ioctl(fd, TXDELCD, "posix");
  33.  
  34. >>>Any ideas?
  35. > When using a serial printer, you are normally talking to the serial printer
  36. > line discipline...not the posix line discipline.  The TCSBRK and TCSBREAK
  37. > support are in the posix line discipline.  You're outta luck.
  38.  
  39. I tried the above and it works fine; it allows sending a break signal over a 
  40. serial line defined as /dev/lp1.  Hope this helps anyone else trying to print
  41. through a modem or other communication device.
  42.  
  43. Bri
  44.