If the endian is correct then, the value 8004 has a binary
representation as follows:
1000 0000 0000 0100
That means to me that bit 15 is on and bit 2 is on. However bit 15 is
NOT defined in RFC2790
So the interpretation would be
"LowToner"
If the endian is wrong the the value is 0480 and it has a binary
representation as follows:
0000 0100 1000 0000
That means to me that bit 10 is on and bit 7 is on.
In this case the interpretation would be
"serviceRequested"
"markerSupplyMissing"
Christian Christiansen
________________________________
From: pmp-bounces at pwg.org [mailto:pmp-bounces at pwg.org] On Behalf Of
William Wagner
Sent: 14. september 2009 19:15
To: farouk.boujnah at gmail.com
Cc: pmp at pwg.org
Subject: [PMP] Printer MIB question
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 <http://www.mailscanner.info/> , and is
believed to be clean.
--
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/7f11c868/attachment-0001.html>