Subject: Re: Setting up a serial printer
To: Bruce Anderson <brucea@spacestar.net>
From: Jan-Hinrich Fessel <fessel@DeTeMobil.de>
List: port-i386
Date: 09/07/1999 11:57:57
--==_Exmh_-993256048P
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

In message <B3F76CD3-151F7F@192.168.2.21>you write:
> Please verify that your printer is a serial printer in the Apple
> laserwriter cable matrix
> http://til.info.apple.com/techinfo.nsf/artnum/n30154
> if it is serial I can supply the pinout for a pc<->Mac cable.

It is a serial printer.  You can use a standard PC cable on the DB25 serial 
port.  You probably need to tell it to use any other speed than 9600 on the 
serial port.  And don't configure it to use the appletalk port only.

You probably need to issue commands like:
serverdict begin 0 exitserver
statusdict begin 25 57600 64 setsccbatch
statusdict begin false setdostartpage
but your mileage may vary, because this is for a LWIINTX

If this following postscript works, i.e. produces a printout, the 
abovementioned commands should work:
%!PS
/Helvetica findfont 14 scalefont setfont
/cr{show 182 currentpoint 20 sub exch pop moveto}def
/tb{show 300 currentpoint exch pop moveto}def
/Which{5 -1 roll 4 exch sub -1 roll cr 3{pop}repeat}def
statusdict begin 25 sccbatch end 182 650 moveto
exch (Baud:)tb 10 string cvs cr
(Paritaet:)tb dup 30 bitshift -30 bitshift
(Keine-Leerst.) (ungerade) (gerade) (keine-Mark.) Which
(Handshake:)tb dup 27 bitshift -29 bitshift
(XON/XOFF) (DSR/DTR) (ETX/ACK) (ungultiger Wert) Which
(Datenbit):)tb dup 25 bitshift -30 bitshift
(Standard) (7) (8) (ungultiger Wert) Which
(Stoppbit:)tb -7 bitshift 0 eq{ (1) (2) }ifelse
show showpage

Grüße
        Oskar



--==_Exmh_-993256048P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.3i

iQCVAwUBN9ThpbA63tqjeAhZAQFZfQP8DyjBCrHj7Eu0fItOuDIWiiNihBVxpCxj
CLpbE847YNpN9+O6oNE3T/wXF2mLS9iYt9XSTWM0qAhI/Mx3uvItB3lorD2etqax
SI7dg2HlI3sFJdkHs6I6f7hH/cZ2iU39OomOehUAcVtWOrPMgAIUVvmQekpJQyf7
oJ0MN82Z+rs=
=4mlg
-----END PGP MESSAGE-----

--==_Exmh_-993256048P--