1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>Serial Printer</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="UP" title="Printcap Database " href= 12 "printcapref.htm"> 13 <link rel="PREVIOUS" title="Parallel Printer" href="x5848.htm"> 14 <link rel="NEXT" title="Bounce Queue " href="lpdbounce.htm"> 15 </head> 16 17 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 18 "#0000FF" vlink="#840084" alink="#0000FF"> 19 <div class="NAVHEADER"> 20 <table summary="Header navigation table" width="100%" border= 21 "0" cellpadding="0" cellspacing="0"> 22 <tr> 23 <th colspan="3" align="center">LPRng Reference Manual: 5 24 Sep 2003 (For LPRng-3.8.22)</th> 25 </tr> 26 27 <tr> 28 <td width="10%" align="left" valign="bottom"><a href= 29 "x5848.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom">Chapter 32 12. Printcap Database</td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "lpdbounce.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="SECT1"> 42 <h1 class="SECT1"><a name="SERIAL">12.10. Serial 43 Printer</a></h1> 44 45 <p>Options used:</p> 46 47 <ul> 48 <li> 49 <p><var class="LITERAL">br=</var><span class= 50 "emphasis"><i class="EMPHASIS">serial port bit 51 rate</i></span></p> 52 </li> 53 54 <li> 55 <p><var class="LITERAL">rw</var> FLAG <span class= 56 "emphasis"><i class="EMPHASIS">device opened 57 RW</i></span></p> 58 </li> 59 60 <li> 61 <p><var class="LITERAL">stty=</var><span class= 62 "emphasis"><i class="EMPHASIS">stty options for serial 63 port configuration</i></span></p> 64 </li> 65 </ul> 66 <br> 67 <br> 68 69 <p>The following is a typical printcap for a serial 70 printer:</p> 71 72 <div class="INFORMALEXAMPLE"> 73 <a name="AEN5898"></a> 74<pre class="SCREEN"> 75 # Local Serial ASCII printer 76 lp2 77 :lp=/dev/ttya 78 :rw 79 :cm=Serial printer 80 :sd=/var/spool/lpd/lp2 81 :stty=9600 -echo -crmod -raw -oddp -evenp pass8 cbreak ixon 82 :filter=/usr/local/sbin/lpf 83 :mx=0 84</pre> 85 </div> 86 <br> 87 <br> 88 89 <p>Let's examine the new options:</p> 90 91 <ol type="1"> 92 <li> 93 <p>A serial port is usually <span class="emphasis"><i 94 class="EMPHASIS">bidirectional</i></span>, and printers 95 will report errors back to the host computer. The <var 96 class="LITERAL">rw</var> flag will cause the printer port 97 to be opened <var class="LITERAL">read-write</var>, and 98 the <b class="APPLICATION">lpd</b> server will report 99 status information.</p> 100 </li> 101 102 <li> 103 <p>The <var class="LITERAL">stty</var> option specifies 104 the <tt class="COMMAND">stty(1)</tt> flags and line speed 105 needed to configure the serial line (See <a href= 106 "secserial.htm">Serial Printers</a> for details).</p> 107 </li> 108 109 <li> 110 <p>The legacy <var class="LITERAL">br</var> (bit rate) 111 option can be used to specify the line speed as well.</p> 112 </li> 113 </ol> 114 <br> 115 <br> 116 </div> 117 118 <div class="NAVFOOTER"> 119 <hr align="LEFT" width="100%"> 120 121 <table summary="Footer navigation table" width="100%" border= 122 "0" cellpadding="0" cellspacing="0"> 123 <tr> 124 <td width="33%" align="left" valign="top"><a href= 125 "x5848.htm" accesskey="P">Prev</a></td> 126 127 <td width="34%" align="center" valign="top"><a href= 128 "index.htm" accesskey="H">Home</a></td> 129 130 <td width="33%" align="right" valign="top"><a href= 131 "lpdbounce.htm" accesskey="N">Next</a></td> 132 </tr> 133 134 <tr> 135 <td width="33%" align="left" valign="top">Parallel 136 Printer</td> 137 138 <td width="34%" align="center" valign="top"><a href= 139 "printcapref.htm" accesskey="U">Up</a></td> 140 141 <td width="33%" align="right" valign="top">Bounce 142 Queue</td> 143 </tr> 144 </table> 145 </div> 146 </body> 147</html> 148 149