home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!panews!konopik.austin.ibm.com!konopik
- From: konopik@konopik.austin.ibm.com (Brad Konopik)
- Subject: Re: Can't send a break signal to a serial line defined as /dev/lp1
- Message-ID: <1992Aug31.043606.17396@ibmpa.awdpa.ibm.com>
- Sender: news@ibmpa.awdpa.ibm.com (News Master)
- Organization: IBM AIX Porting Center, Austin
- References: <Brt9G2.IAD@watserv1.waterloo.edu> <1196@curly.appmag.com>
- Date: Mon, 31 Aug 92 04:36:06 GMT
- Lines: 45
-
- In article <1196@curly.appmag.com> pa@curly.appmag.com (Pierre Asselin) writes:
- >In <Brt9G2.IAD@watserv1.waterloo.edu>
- >hesse@watserv1.waterloo.edu (BJ Cameron - DCS) writes:
- >
- >>if(ioctl(ttyf, TCSBRK, 0) < 0 )
- >> perror("Can't send BREAK: ");
- >
- >>If the backend file is /dev/lp1 the error is returned. If the backend file
- >>is /dev/tty0 a BREAK signal is transmitted.
- >
- >Is there such a thing as a BREAK on a parallel interface?
- >
- >On a *serial* line a BREAK is a logical 0 held for a longer time than
- >normal (500ms?). It is *not* a character with all the bits zero
- >because the stop bit (at logical 1) doesn't show up in time and the
- >receiver raises a framing error.
-
- Close, Pierre. A break condition exists when the received data input
- is held in the spacing (logic 0) state for longer than a full word
- transmission time (start bit + data bits + parity bit + stop bits).
- The receiver experiences the break until the line returns to the
- marking (logic 1) state, at which time the receiver begins looking
- for another start bit.
-
- >
- >>Any ideas?
- >
- >Yep. Read the fine print of the printer documentation. What you are
- >trying to do may be possible only if you use the serial interface.
- >But the parallel interface is ususally faster.
-
- When using a serial printer, you are normally talking to the serial printer
- line discipline...not the posix line discipline. The TCSBRK and TCSBREAK
- support are in the posix line discipline. You're outta luck.
-
- >--
- >
- >--Pierre Asselin, Magnetoresistive Head Engineering, Applied Magnetics.
- > pa@appmag.com the usual disclaimers apply.
-
- --
- tcpnet: konopik@konopik.austin.ibm.com | Brad Konopik
- ibmvnet: KONOPIK at AUSTIN | IBM AIX Porting Center, Austin
- internet: konopik.austin.ibm.com!konopik@ibmpa.awdpa.ibm.com
- uunet: ..!uunet!ibmsupt!ibmpa!konopik.austin.ibm.com!konopik
-