Apple 310 manual Communication Dynamics, XON/XOFF Flow Control for PC Communication

Page 66

C H A P T E R 3

Communication Channels

XON/XOFF Flow Control for PC Communication

To set up the LaserWriter Select 310 printer for serial interface with the IBM PC over the serial port using XON/XOFF flow control at 19200 baud, issue the following MS-DOS commands to your computer:

MODE COM1:19200,N,8,1

MODE LPT1:=COM1:

These commands alone are not sufficient to handle XON/XOFF flow control. Some applications may handle this protocol themselves. Otherwise, you should install a different MS-DOS printer driver to avoid communication problems when printing large documents.

Note

You must issue these commands to your IBM PC whenever the computer is turned on. Alternatively, you may place them in

the AUTOEXEC.BAT file on your MS-DOS disk.

The LaserWriter Select 310 printer comes from the factory with its serial port configured for option 68: 8-bit data, no parity, DTR flow control, with 57600 baud. If you need to set up the printer for XON/XOFF communication at 19200 baud, send the following routine to the printer from the host, using either the parallel port, or the serial port at 57600 baud.

serverdict begin 0 exitserver

statusdict begin

9sccbatch 0 eq exch 19200 eq and not

{9 19200 0 setsccbatch} if

end stop

This routine tests the current values of the sccbatch parameters (see Chapter 2), and if they are not set for 19200 baud and option 0, it sets these values using setsccbatch.

Note

These changes are not permanently stored, since the LaserWriter Select 310 printer has no EEROM. They will not persist across power cycles. You should send this sequence each time the printer is turned on or whenever the serial communication parameters have been changed.

Communication Dynamics

Data transmitted by the LaserWriter Select 310 printer, whether it is generated by executing the PostScript language program or by some other spontaneous event such as an error, is logically asynchronous with respect to the data received. This means that the host computer must be prepared to consume data received from the LaserWriter Select 310 printer while waiting to send more data to the printer. If the host computer is not set up to do this, the printer and the host may each wait for the other to consume data, and a deadlock will occur.

54

Communication Dynamics

Image 66
Contents Apple LaserWriter Select 310 Printer Limited Warranty on Media and Replacement Contents Page Communication Channels Page Figures and Tables Page About This Note What This Note ContainsConventions Used in This Note Other Reference MaterialFor More Information ApdaPage LaserWriter Select Hardware1 LaserWriter Select 310 Hardware ROM Communication Ports Serial Port for RS-232C DevicesCentronics Parallel Connector 2An 8-pin serial port connectorPstrobe Signal Status Lights Memory Capabilities ROM CapabilityBatch Mode Basic OperationDram Expansion Interactive Mode TypesPaper Handling 7Paper handling options Page LaserWriter Select 310 Software Software Overview Adobe PostScript Programming LanguagePostScript Interpreter LaserWriter Select 310 Driver TypesSelects the paper tray containing A4-size paper and sets Communication Device Parameters Software ParametersProduct Strings Compatibility OperatorsStatusdict Setting Compatibility Operators Device Defaulttimeouts Setting System ParametersCheckpassword IdlefontsProductA PrinternameProduct RamsizeSetdefaulttimeouts SetpasswordSetidlefonts Defaultpapertray Setting Page Device ParametersDefaultmultipurposetraysize SetprinternameMargins ManualfeedtimeoutManualfeed PagestackorderSetdefaultmultipurposepapertraysize PapersizePapertray Setdefaultpapertray SetdostartpageSetmargins Setpagestackorder SetpagetypeSetpapertray Setjobtimeout Setting User ParametersJobtimeout JobnameSetting Device Parameters WaittimeoutSetsoftwareiomode Setting Communication Parameters SoftwareiomodePacketbackchannel Sccbatch SetpacketbackchannelSetting Engine Device Parameters SetsccbatchDarkness Currentcacheparams Setting Extensions to PostScript LevelSetdarkness CurrentpackingPackedarray SetcacheparamsPrinter Error Parameter SetpackingPrintererror PostScript Language ChangesPacked Arrays Packed Arrays Versus Ordinary ArraysCreating Packed Arrays Immediately Evaluated Names Device Resolution Images Changes in Font Cache OperationEnd-of-Line Recognition TrueType Fonts New OperatorsCommunication Channels Serial Communication Baud RatesParity Settings Flow ControlDTR Flow Control SCC Operator Encoding XON/XOFF Flow ControlCommunication Protocols Simple Communication ProtocolBinary Communication Protocol SOH CTL-A Communicating with an IBM PC Parallel InterfaceSerial Interface DTR Flow Control for PC CommunicationCommunication Dynamics XON/XOFF Flow Control for PC CommunicationStatus Queries and Spontaneous Messages Errorerror OffendingCommand operator %%