C H A P T E R 3
Communication Channels
Since any character code can be transmitted as data with this protocol, it can be used for sending PostScript language jobs that contain binary images. Binary protocol is set by default when the LaserWriter Select 310 printer is powered on. It may also be selected by setting softwareiomode to 100.
This protocol requires that a quoting character be inserted at certain places in the data stream and that the character codes for certain characters be altered. Therefore, the host computer must filter binary data before sending it to the printer. When the protocol is enabled, it is used for transmission in both directions. The host should therefore filter any data it receives from the printer. Filtering may be done by an application program or within the operating system of the host. In the case of the LaserWriter Select 310 printer, the Apple LaserWriter driver does this filtering. Table
Table | Control characters in binary serial protocol | ||
|
|
|
|
Hex value | ASCII name | ASCII keyboard | Control function |
01 | SOH |
| Quote data byte |
03 | ETX | Abort job and flush to end of file | |
04 | EOT | ||
05 | ENQ | None | |
11 | DC1 | XON in XON/XOFF flow control | |
13 | DC3 | XOFF in XON/XOFF flow control | |
14 | DC4 | Request printer status | |
1C | FS |
| None |
To transmit the control characters as data, the characters must be quoted. This means that the character being sent is replaced by a
This method of quoting means that whenever one of the eight special characters is received, the control function is intended, regardless of whether or not the preceding character is
Note
All byte values other than those of the eight special characters are transmitted by simply sending the value. ◆
Communication Protocols | 51 |