With regard to the question that you sent to hastings at cp10.es.xerox.com,
szilles at mv.us.adobe.com, don at lexmark.com, jgyllens at hpdmd48.boi.hp.com, it
has been forwarded to the Printer Working Group "PMP" mail list, which deals
with printer MIB issues. You may well have responses from other members, but
if I understand your question, it is how to interpret the response to OID
[.iso.3.6.1.2.1.25.3.5.1.2.1]. This appears to be the
hrPrinterDetectedErrorState object in the host resources MIB (RFC2790.) The
object value is "bit coded" as follows, and your program is interpreting the
response in hexadecimal.
lowPaper 0
noPaper 1
lowToner 2
noToner 3
doorOpen 4
jammed 5
offline 6
serviceRequested 7
inputTrayMissing 8
outputTrayMissing 9
markerSupplyMissing 10
outputNearFull 11
outputFull 12
inputTrayEmpty 13
overduePreventMaint 14
But remember that, in the MIB, bits are numbered starting with the most
significant bit of the first byte being bit 0,
To interpret 80 04, it may be easiest conceptually to covert the value to
binary 1000 0000 0000 0100. The value read therefore corresponds to bits 0
and bit 13, low paper and input tray empty.
Hope this helps. Note also that the current Printer MIB is RFC3805, although
some printers still support only the earlier verson.
Bill Wagner/ Chair, Printer Working Group WIMS/PMP
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pwg.org/pipermail/pmp/attachments/20090914/aae8acee/attachment-0001.html>