On Thu, Aug 21, 2003 at 12:15:16PM +0200, Markus Heinz wrote:
> Hello,
>
> I am currently developing a software for linux which can read the ink
> level from ink jet printers. HP printers transmit their ink level in the
> IEEE 1284 device id. For printers attached via usb there is an ioctl for
> user space programs to get the device id. For printers attached via the
> parallel port there is none. So I hacked together a kernel module which
> reads the device id, parses it and makes the result available via the
> /proc filesystem. The result can be found at my homepage [1]. But now I
> want a cleaner design and so I implemented an ioctl for the parport
> which returns the device id like the usb ioctl does. So I can parse the
> device id in a user space program. It would be nice if you could include
> the patch [2] in the official linux kernel. I also wrote a small test
> program [3] to read the device id of a device attached to the parallel
> port which makes use of the new ioctl.
This is doable from user-space - indeed, libieee1284's test program
does so.
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Thu Aug 21 2003 - 09:11:43 EDT