Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!rpi!uupsi!sunic!news.funet.fi!funic!csc.fi!vsarkela From: vsarkela@csc.fi Newsgroups: comp.unix.ultrix Subject: Re: HP Plotter on a LAT DECserver Message-ID: <1991Feb17.214130.1@csc.fi> Date: 17 Feb 91 21:41:30 GMT References: <2674@mustang.mst6.lanl.gov> Sender: usenet@nic.funet.fi Followup-To: comp.unix.ultrix Lines: 78 In article <2674@mustang.mst6.lanl.gov>, carter@ferrari.mst6.lanl.gov (Dave Carter) writes: > > i know this is asking for trouble, but i'm trying to connect an HP > Plotter (7550) to a DECserver running LAT. since connecting printers > to LAT servers and making them work from ultrix printer queues has > always been my favorite task :-) i was hoping someone else has > attempted this, and could provide advice. specifically, the complete > setup used :-) including printcap entry, LAT port configuration, > cable type, etc. thanks! > > - dave We have DECsystem 5000/200 & ULTRIX 4.0 and we are using HP7550A plotters thru terminal servers. Here is how our printcap entry looks (don't type in the comments): lp2|2|hp2:\ :af=/usr/adm/hpacct:\ :br#2400:\ :ct=lat:\ <== LAT protocol :fc#0177777:\ :fs#03:\ <== XON/XOFF (also in the plotter) :if=/usr/lib/lpdfilters/hp7550a:\ <== filter :lf=/usr/adm/hperr:\ :lp=/dev/tty31:\ :op=HP_PORT:\ <== terminal server port name :os=:\ :pl#66:\ :pw#132:\ :sd=/usr/spool/hp2:\ :ts=DSRV04:\ <== terminal server name :uv=4.0:\ :xf=/usr/lib/lpdfilters/xf: And here is the filter we are using (without it there will be some pen up-commands ignored by the plotter): /* Put cr's every 72 chars */ #include #define LINELEN 72 /* default line length */ int llen = LINELEN; int main(argc, argv) int argc; char *argv[]; { register int c, /* incoming char */ col; /* next column to print into */ col = 0; while ((c=getchar()) != EOF) { if(c == ';') { if (col >= llen) { putchar(';\r\n'); col = 0; continue; } } putchar(c); col++; }/* while */ return(0); } LAT port should be configured to remote, noautobaud, nomodem & xon/xoff flow control enabled. Cable needs only pins 2, 3 & 7 connected. Sorry, but I don't remember if 2 & 3 are straight thru or crossover, but that is easy to check if you have a break-out box. Vesa Sarkela Keskuslaboratorio Oy vsarkela@opmvax.csc.fi Finnish Pulp & Paper Research Institute