Office-M > SoftwareDevelopment > Tips > HP-Printer |
ptal-pml
| "ink" / "KInk" | Graph-PageCounter-InkLevel
HP-InkJet-Printer
=================
It took me a while to find out the right PML-Objects to query page-count and ink-level of a HP-PSC-2175-Printer.
"Cmd" is the Linux shell command-line string.
First method: ptal-pml
----------------------
Query page-count:
PML-Object: 1.4.1.2.5
Cmd: ptal-pml mlc:usb:PSC_2170_Series get 1.4.1.2.5
Query ink-level (black):
PML-Object: 1.4.1.5.4.1.1
Cmd: ptal-pml mlc:usb:PSC_2170_Series get 1.4.1.5.4.1.1
Query ink-level (color / cmy):
PML-Object: 1.4.1.5.4.2.1
Cmd: ptal-pml mlc:usb:PSC_2170_Series get 1.4.1.5.4.2.1
I used only the black- and the cmy-cartridge.
When I have results of the photo-cartridge I will post the result.
Links:
PML Objects
HP Linux Inkjet Driver Project
HP OfficeJet Linux Driver Project
www.linuxprinting.org/HP-PSC_2170
^Top
Alternate method:
------------------
"ink" / "KInk"
--------------
There is a different approach that uses device-status-commands but didn't work for me as the USB-printer-port is occupied by the printer-daemon.
Querying the printer with "ptal-pml" is not possible in this state (without root privileges).
Links:
http://libinklevel.sourceforge.net/
http://ink.sourceforge.net/
http://kink.sourceforge.net/
http://greatnorthern.demon.co.uk/ inkblot (Gnome)
http://cyberelk.net/tim/libieee1284/
^Top
Graph-PageCounter-InkLevel
--------------------------
The necessary skripts you find here.
^Top
Questions / tips?
Last Update: