SUMMARY: HP LJIIISi to Sun via Serial

From: Axel Eble (eble@sun3.imbi.uni-freiburg.de)
Date: Mon Sep 23 1991 - 12:04:29 CDT


Hi Folks,

First of all, thanks to everyone who helped.

Summary of the problem:
When wanting to switch between the different printig modes via software,
you have to do hardware handshaking. Neither the SUN manuals nor the HP
manual (yeah, you guessed *that* :-) gave any useful hints. Our normal
connection didn't work.

John DiMarco made the right suggestion:
        Printer Sun
        2 --------------- 3
        3 --------------- 2
        5,6,8 ----------- 20
        20 -------------- 5
        7 --------------- 7

The appropriate /etc/printcap entry is

sio|Umwelt_LJIIISi|Umwelt:\
    :lp=/dev/ttya:\
    :br#38400:\
    :mx#5000:\
    :sh:\
    :rw:\
    :sf:\
    :if=/usr/local/etc/lpfilter/ps.3Si:\
    :df=/usr/local/etc/lpfilter/ps.3Si.duplex:\
    :cf=/usr/local/etc/lpfilter/ps:\
    :rf=/usr/local/etc/lpfilter/ps.rf:\
    :sd=/var/spool/pr/sio:\
    :ms=-icanon,-echo,cs8,-parenb,\
-brkint,-istrip,-ixon,-ixoff,crtscts:

siu|Weiss_LJIIISi|Weiss:\
    :lp=/dev/ttya:\
    :br#38400:\
    :mx#5000:\
    :sh:\
    :rw:\
    :sf:\
    :if=/usr/local/etc/lpfilter/ps.3Si.weiss:\
    :df=/usr/local/etc/lpfilter/ps.3Si.weiss.duplex:\
    :cf=/usr/local/etc/lpfilter/ps.weiss:\
    :rf=/usr/local/etc/lpfilter/ps.rf.weiss:\
    :sd=/var/spool/pr/siu:\
    :ms=-icanon,-echo,cs8,-parenb,\
-brkint,-istrip,-ixon,-ixoff,crtscts:

Now we have two queues, one for the upper papertray and one for the lower.
The upper one contains recycling paper, the lower one "normal" white paper.
The duplex option is activated via the "lpr -d"-switch (df=...) and the file
type is detected by a filter.
The assumptions I made are the following:
o A PostScript file have to contain at least one "showpage" in it (there are
   some software packages that don't use the "%!"-Standard).
o HP GL/2 is detected with an ESC.( as the first three bytes. This is some-
   what site-specific, but there *are* software packages that don't use the IN
   command.
o PCL 5 is detected with ESC& because the most used commands begin with ESC&.
   As you guessed :-) there are software packages that don't use the ESC E
   recommendation by HP...

Anybody interested in my filter? By the way, we use PostScript as our
standard.
Regards,
         Axel

Credits
Bob Shaw (bshaw@bobasun.csc.ti.com)
John DiMarco (jjd@db.toronto.edu)
Hau Chen Lee (mike@sbee.eng.sunysb.edu)
Mark Read (mark@gest20.SINet.SLB.COM)

and all the others who wanted to help:
Brian Colfer (brianc@labmed.ucsf.EDU)
Mike Madigan (madigan@phil.mop.com)

and to Frank Rizzo and Alek Kormanitsky

-- 
***************************************************************** 
     /\ xel Eble     | Email:   Balrog@IMBI.Uni-Freiburg.DE 
    /  \ Bachgasse 2 |          Axel.Eble@IMBI.Uni-Freiburg.DE
   / /\ \ 7800 Frei- |          Eble@RUF.Uni-Freiburg.DE 
  / ____ \     burg  | Irc:     Balrog
 /_/    \_\          | Smail:   see above; private: see left
*****************************************************************



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:18 CDT