Article View: comp.sys.sgi.hardware
Article #102Re: /dev/plp I/O
From: Dave Olson
Date: Thu, 21 Jan 1993 22:48
Date: Thu, 21 Jan 1993 22:48
36 lines
2366 bytes
2366 bytes
In <1993Jan20.181528.9501@cs.sfu.ca> welman@cs.sfu.ca (Chris Welman) writes:
| Yes, I did see this in plp.h. On the read side I'm issuing PLPIOCRESET,
| PLPIOCREAD, and PLPIOCRTO (read timeout), in that order. No luck - the
| write call just hangs (or times out), presumably waiting for something
| to occur. I'm also doing a PLPIOCSTATUS to query the port status on
| both ends, and this tells me that the "printer" is considered to be offline,
| which makes me wonder whether the Indigo is expecting the "peripheral" to
| assert a signal on pin 13 (ONLINE) before anything will work. Obviously
| there is something I'm overlooking...
Thinking about it more, I think I know what the problem is. In the
bidirectional mode, you probably can't just hook the two ports up
directly, because it uses the conventions used by the Ricoh parallel
port scanner, and they are somewhat different than normal printers.
I need to get some hardware specs to get more detail; let me know if
you really want to pursue it by email.
| By the way, there is a second undocumented ioctl in plp.h, PLPIOCSETMASK.
| What does this do, and is it of any use to me?
Nothing. It is there for compatibility with the 4D/20 and 25, because
some programs used it and didn't like getting an error on that ioctl.
Here is the comment from the 20/25 driver (the hardware didn't support
this in later versions, and it was never much used):
/* Set printer abort mask: if any status bits match
* set bits in the mask, then printing stops. This
* can be used to cause printing to abort on paper out. */
case PLPIOCSETMASK:
--
Let no one tell me that silence gives consent, | Dave Olson
because whoever is silent dissents. | Silicon Graphics, Inc.
Maria Isabel Barreno | olson@sgi.com
Technical Details
Message-ID:
<v5tr6ss@zola.esd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!twilight!zola!anchor!olsonReferences:
<1993Jan19.191155.3829@cs.sfu.ca> <v3pthhg@zola.esd.sgi.com> <1993Jan20.181528.9501@cs.sfu.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!twilight!zola!anchor!olson From: olson@anchor.esd.sgi.com (Dave Olson) Newsgroups: comp.sys.sgi.hardware Subject: Re: /dev/plp I/O Keywords: parallel communications Message-ID: <v5tr6ss@zola.esd.sgi.com> Date: 21 Jan 93 22:48:44 GMT References: <1993Jan19.191155.3829@cs.sfu.ca> <v3pthhg@zola.esd.sgi.com> <1993Jan20.181528.9501@cs.sfu.ca> Sender: news@zola.esd.sgi.com (Net News) Distribution: na Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 36