Newsgroups: comp.sys.apollo Path: utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system From: system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson)) Subject: BSD lpd (was Re: Beware SR10.3) Message-ID: <1991Mar20.054629.25594@alchemy.chem.utoronto.ca> Organization: University of Toronto Chemistry Department References: <9103082016.AA01167@cc2.cc.umr.edu> Date: Wed, 20 Mar 1991 05:46:29 GMT In article <9103082016.AA01167@cc2.cc.umr.edu> obrennan@CC3.CC.UMR.EDU (obrennan) writes: > I'm trying to hook up a printer to one of the serial lines on > a DN4500 running SR10.3. >--------------------------------------------------------- >In the printcap file you can use XC and XS to clear and set >the LOCAL MODE bits, and FC and FS to clear and set the SG_FLAGS >as documented in the MAN pages section 4 for TTY. These flag >bits control the tty interface. The ^Q/^S control mode (same as >-insynch) is set by the LOCAL MODE bits. To be more specific, here are the settings I have been using in /etc/printcap for over a year to connect an Imagen laser printer to a DN10000: imagen:\ :lp=/dev/tty03:\ :af=/usr/adm/imagen_acct/imagen:\ :lf=/usr/spool/lpd/imagen/log:\ :sd=/usr/spool/lpd/imagen:\ :lo=lock:\ :br#19200:\ :fc#0177777:\ :xc#0177777:\ :fs#0340:\ :xs#044040:\ :rw:\ :sh:\ :mx#10000:\ :cf=/usr/local/lib/icif:\ :df=/usr/local/lib/idvi:\ :gf=/usr/local/lib/igraph:\ :if=/usr/local/lib/ipf:\ :nf=/usr/local/lib/idimp:\ :rf=/usr/local/lib/ifort:\ :tf=/usr/local/lib/icat:\ :vf=/usr/local/lib/imp:\ :rs: These settings are for 8 bit, no parity, 19200 baud, XON/XOFF flow control, no character translations ("raw" mode), no echo. Note that the various filters are part of the Imagen UNIX Software. The difference between /dev/siox and /dev/tty0x is mainly in the way the cable must be wired -- if you are going to use the tty0x devices, you must make sure DCD is wired high (or held high by the printer). The siox devices don't care about DCD. (I am not 100% sure that it is DCD, since I don't have my printer cable wiring diagram here, but it is one of the control pins for sure -- I'm pretty sure it is DCD since this causes trouble when you want to talk to a modem: it won't raise DCD until it gets a connection, but you can't get a connection until you can talk to the modem). Mike. -- Mike Peterson, System Administrator, U/Toronto Department of Chemistry E-mail: system@alchemy.chem.utoronto.ca Tel: (416) 978-7094 Fax: (416) 978-8775