Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* HP plotter connection?
@ 1993-06-28 22:01 Alan McCormac
  1993-07-05 13:46 ` Alan McCormac
  0 siblings, 1 reply; 5+ messages in thread
From: Alan McCormac @ 1993-06-28 22:01 UTC (permalink / raw)



Hi dec fans,

I am having a problem trying to hook a plotter to a DECstation 5000/200.
The plotter is an HP7550A and I have it connected to tty00 through its
terminal port.  I have it configured in Local Standalone mode with serial
settings as follows:

	9600 baud, 8-bits, no parity, full duplex
	direct (ie: no modem), no bypass, XON/XOFF handshaking

I have the following entry in mp /etc/printcap file:

   hp|plotter|1|HP7550A Plotter in Room 111:\
        :br#9600:\
        :fc#0177777:fs#0177411:\
        :xc#0177777:xs#0021000:\
        :ct=dev:lp=/dev/tty00:\
        :lf=usr/adm/lpd-errs:

The plotter appeared to work fine with small test programs, but when the
plot file got big, I got a "I/O buffer overflow" error and lost the rest 
of the input file.  According to the manuals (as I interpret them), my 
printcap fs and xs settings should have implemented XON/XOFF correctly.
I have also tried several other iterations.  If I try changing both the 
printcap and the plotter settings, the permutations are in the gajillions.
Please help me find the right one.  

AtDhVaAnNkCsE!		(that's thanks in advance of course :-)

--------------------------------------------------------------------------
Alan McCormac                                        |  amccor@dres.dnd.ca
Vehicle Concepts Group - DRES                        |  Tel: (403)544-4832
Box 4000, Medicine Hat, Alberta, Canada    T1A 8K6   |  FAX: (403)544-3761
--------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HP plotter connection?
  1993-06-28 22:01 HP plotter connection? Alan McCormac
@ 1993-07-05 13:46 ` Alan McCormac
  1993-07-05 16:18   ` Jerry Weiss
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alan McCormac @ 1993-07-05 13:46 UTC (permalink / raw)



--
In article <1993Jun28.220118.6997@dres.dnd.ca>, I wrote:
|> 
|> I am having a problem trying to hook a plotter to a DECstation 5000/200.
|> The plotter is an HP7550A and I have it connected to tty00 through its
|> terminal port.  I have it configured in Local Standalone mode with serial
|> settings as follows:
|> 
|> 	9600 baud, 8-bits, no parity, full duplex
|> 	direct (ie: no modem), no bypass, XON/XOFF handshaking
|> 
|> I have the following entry in mp /etc/printcap file:
|> 
|>    hp|plotter|1|HP7550A Plotter in Room 111:\
|>         :br#9600:\
|>         :fc#0177777:fs#0177411:\
|>         :xc#0177777:xs#0021000:\
|>         :ct=dev:lp=/dev/tty00:\
|>         :lf=usr/adm/lpd-errs:
|> 
|> The plotter appeared to work fine with small test programs, but when the
|> plot file got big, I got a "I/O buffer overflow" error and lost the rest 
|> of the input file.  According to the manuals (as I interpret them), my 
|> printcap fs and xs settings should have implemented XON/XOFF correctly.
|> I have also tried several other iterations.  If I try changing both the 
|> printcap and the plotter settings, the permutations are in the gajillions.
|> Please help me find the right one.  
|> 

I haven't heard a solution from anyone yet.  Is it possible I'm the only
person on the Internet that wants to use an HP plotter on a DECstation?

Also, is it possible I'm using the wrong plotter port?  Should I connect
to the Computer/Modem port in order for the handshaking to work?

Any shred of help is much appreciated.

AtDhVaAnNkCsE!		(that's thanks in advance of course :-)

--------------------------------------------------------------------------
Alan McCormac                                        |  amccor@dres.dnd.ca
Vehicle Concepts Group - DRES                        |  Tel: (403)544-4832
Box 4000, Medicine Hat, Alberta, Canada    T1A 8K6   |  FAX: (403)544-3761
--------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HP plotter connection?
  1993-07-05 13:46 ` Alan McCormac
@ 1993-07-05 16:18   ` Jerry Weiss
  1993-07-07 16:30   ` Carl Lowenstein
  1993-07-09 17:51   ` Jeff Lewis
  2 siblings, 0 replies; 5+ messages in thread
From: Jerry Weiss @ 1993-07-05 16:18 UTC (permalink / raw)


In article <1993Jul5.134650.28130@dres.dnd.ca> amccor@vcg02.dres.dnd.ca (Alan McCormac) writes:
>
>--
>I haven't heard a solution from anyone yet.  Is it possible I'm the only
>person on the Internet that wants to use an HP plotter on a DECstation?
>

Well, my email to you bounced after 72 hrs of attempts to deliever.

A few things to look into.

1) Make sure the plotter is in X-on/X-off mode.  Some of the older HP
Plotters come up in HP ACQ/ENQ mode.    You can usually change the 
handshaking method by careful programming before sending any plotter
data.

2) If they don't come up either ACQ/ENQ or X-on/X-off mode, they are 
probably looking for a hardware handshake instead.  You should check 
you machine documentation to see if the port you are using supports
them.

-- 
Jerry S. Weiss
j-weiss@nwu.edu
Dept. Medicine, Northwestern Univ. Medical School, Chicago, Illinois
%SYSTEM-S-PHALOKTARG,  Phasers Locked on Target, Ready to Fire


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HP plotter connection?
  1993-07-05 13:46 ` Alan McCormac
  1993-07-05 16:18   ` Jerry Weiss
@ 1993-07-07 16:30   ` Carl Lowenstein
  1993-07-09 17:51   ` Jeff Lewis
  2 siblings, 0 replies; 5+ messages in thread
From: Carl Lowenstein @ 1993-07-07 16:30 UTC (permalink / raw)


In article <1993Jul5.134650.28130@dres.dnd.ca> amccor@vcg02.dres.dnd.ca (Alan McCormac) writes:
>
>--
>In article <1993Jun28.220118.6997@dres.dnd.ca>, I wrote:
>|> 
>|> I am having a problem trying to hook a plotter to a DECstation 5000/200.
>|> The plotter is an HP7550A and I have it connected to tty00 through its
>|> terminal port.  I have it configured in Local Standalone mode with serial
>|> settings as follows:
>|> 
>|> 	9600 baud, 8-bits, no parity, full duplex
>|> 	direct (ie: no modem), no bypass, XON/XOFF handshaking
>|> 
>|> I have the following entry in mp /etc/printcap file:
>|> 
>|>    hp|plotter|1|HP7550A Plotter in Room 111:\
>|>         :br#9600:\
>|>         :fc#0177777:fs#0177411:\

I think the you have inverted the sense of some bits in :fs#
I would use :fs#0301

>|>         :xc#0177777:xs#0021000:\

In similar serial situations I use :xs:040

>|>         :ct=dev:lp=/dev/tty00:\
>|>         :lf=usr/adm/lpd-errs:
>|> 
>|> The plotter appeared to work fine with small test programs, but when the
>|> plot file got big, I got a "I/O buffer overflow" error and lost the rest 
>|> of the input file.  According to the manuals (as I interpret them), my 
>|> printcap fs and xs settings should have implemented XON/XOFF correctly.
>
>I haven't heard a solution from anyone yet.  Is it possible I'm the only
>person on the Internet that wants to use an HP plotter on a DECstation?
>
>--------------------------------------------------------------------------
>Alan McCormac                                        |  amccor@dres.dnd.ca
>Vehicle Concepts Group - DRES                        |  Tel: (403)544-4832
>Box 4000, Medicine Hat, Alberta, Canada    T1A 8K6   |  FAX: (403)544-3761
>--------------------------------------------------------------------------

Mail to your address bounces.

        carl lowenstein         marine physical lab     u.c. san diego
        {decvax|ucbvax} !ucsd!mpl!cdl                 cdl@mpl.ucsd.edu
                                                  clowenstein@ucsd.edu


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HP plotter connection?
  1993-07-05 13:46 ` Alan McCormac
  1993-07-05 16:18   ` Jerry Weiss
  1993-07-07 16:30   ` Carl Lowenstein
@ 1993-07-09 17:51   ` Jeff Lewis
  2 siblings, 0 replies; 5+ messages in thread
From: Jeff Lewis @ 1993-07-09 17:51 UTC (permalink / raw)



My mail bounced, too:

We've got the following setup with our HP7550A hanging off of a 5000/200:

/etc/printcap:

plotter1|hp1|hp7550|7550|HP7550 8-pen auto-feed plotter:\
        :lp=/dev/tty01:\
        :sd=/usr/spool/plotter1d:\
        :br#9600:\
        :fc#0177477:\
        :ff=PG;:\
        :lf=/usr/adm/lpd-errs:\
        :of=/usr/local/bin/hp7550f:\
        :sh:\
        :rs:


listing of /dev:

> l@quim(6): ll -d /dev/tty01
> crw--w--w-  1 root     wheel     34,   3 Jul  9 13:31 /dev/tty01


and where "hp7550f" is the c program:


/******* hp7550f.c **********/

#include     <stdio.h>
#include     <sgtty.h>

#define BUFSIZE (1024)

main(argc, argv)
int argc;
char **argv;

{

    hp7550_init();

    hp7550_cat();

    exit(0);

}

hp7550_init()
{
    struct sgttyb params;

    ioctl(fileno(stdout), TIOCGETP, &params);
    params.sg_flags &= ~(ECHO|XTABS|CRMOD);
    params.sg_ospeed = params.sg_ispeed = B9600;
    ioctl(fileno(stdout), TIOCSETP, &params);

}

hp7550_cat()
{
    char c[BUFSIZE];
    register int got;

    while ((got = read(fileno(stdin), c , BUFSIZE)) > 0)
    {
        write(fileno(stdout), c, got);
    }
}


/* END OF CODE */


I inherited this setup, and I'll try to help if I can, but now you know about as
much as I do about it - it hasn't been broken so I haven't fiddled with it.

Good luck,

- -- ---- -------- ---------------- --------------------------------
Jeff				Sys Admin, Dept. of Radiation Oncology
lewis@radonc.unc.edu		UNC School of Medicine, Chapel Hill
- -- ---- -------- ---------------- --------------------------------
Jeff				Sys Admin, Dept. of Radiation Oncology
lewis@radonc.unc.edu		UNC School of Medicine, Chapel Hill


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1993-07-09 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-28 22:01 HP plotter connection? Alan McCormac
1993-07-05 13:46 ` Alan McCormac
1993-07-05 16:18   ` Jerry Weiss
1993-07-07 16:30   ` Carl Lowenstein
1993-07-09 17:51   ` Jeff Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox