Apple 310 manual Serial Communication, Baud Rates

Page 58

C H A P T E R 3

Communication Channels

The LaserWriter Select 310 printer has two communication ports that support two communication channels. One port is the RS-232 serial port used for serial communication. The other is the Centronics parallel port used to connect the LaserWriter Select 310 printer to an IBM-PC compatible computer. The section “Communication Ports,” in Chapter 1, describes the physical characteristics of the connectors. This chapter deals with the software support for the serial and parallel communication channels.

Serial Communication

When the LaserWriter Select 310 printer is in serial mode, it uses the RS-232 port to send data and receive data encoded in ASCII. Certain characters serve special purposes. For example, Control-D marks the end of the file, and Return indicates end of line. The server performs a job by reading and executing a PostScript program from the serial port. When it reads the end-of-file character and the program terminates, the server sends an end-of-file character, ends the job, and starts a new one.

Three parameters control the details of serial communication. They are channel, baud rate, and options. These parameters may be changed by invoking the statusdict operator setsccbatch. Serial communication is asynchronous, start-stop, and uses 7 or 8 bits per character. The 8-pin serial connector is designated as a channel in the PostScript interpreter by the integer 9. Table 3-1 summarizes the default settings for the LaserWriter Select 310 printer serial communication channel.

Table 3-1Default settings for the serial communication channel parameters

Parameter

Default settings

Other settings

Data bits

8

7

Parity

None

None

Stop bits

One

Flow control

DTR

XON/XOFF

Baud rate

57600

Any baud rate that divides into 115200 with a

 

 

quotient of two or more

Protocol

Binary

Simple

Baud Rates

The baud rate is given as an integer, such as 1200 or 9600. The baud-rate parameter may be any positive integer less than 100000. However, the hardware can only achieve certain baud rates, and other values are rounded to the nearest achievable rate. Below 57600 baud, the achievable rates are 9600, 10473, 11520, 12800, 14400, 16457, 19200, 23040, 28800, and 38400. Any baud rate that divides into 115200 with a quotient of two or more is legal. The Macintosh host computer supports a 57600 baud rate. Host systems other than the Macintosh are most likely to support a 19200 baud rate.

46

Serial Communication

Image 58
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 CapabilityBasic Operation Batch ModeDram Expansion Interactive Mode TypesPaper Handling 7Paper handling options Page LaserWriter Select 310 Software Adobe PostScript Programming Language Software OverviewPostScript 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 RamsizeSetpassword SetdefaulttimeoutsSetidlefonts Defaultpapertray Setting Page Device ParametersDefaultmultipurposetraysize SetprinternameMargins ManualfeedtimeoutManualfeed PagestackorderPapersize SetdefaultmultipurposepapertraysizePapertray Setdostartpage SetdefaultpapertraySetmargins Setpagetype SetpagestackorderSetpapertray Setjobtimeout Setting User ParametersJobtimeout JobnameWaittimeout Setting Device ParametersSetsoftwareiomode Softwareiomode Setting Communication ParametersPacketbackchannel Sccbatch SetpacketbackchannelSetsccbatch Setting Engine Device ParametersDarkness Currentcacheparams Setting Extensions to PostScript LevelSetdarkness CurrentpackingPackedarray SetcacheparamsPrinter Error Parameter SetpackingPrintererror PostScript Language ChangesPacked Arrays Versus Ordinary Arrays Packed 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 RatesFlow Control Parity SettingsDTR 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 %%