attachment-0001
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns5="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If the endian is correct then, the value 8004
has a binary representation as follows:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>1000 0000 0000 0100<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That means to me that bit 15 is on and bit
2 is on. However bit 15 is NOT defined in RFC2790<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So the interpretation would be<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>“LowToner”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If the endian is wrong the the value is
0480 and it has a binary representation as follows:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>0000 0100 1000 0000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That means to me that bit 10 is on and bit
7 is on.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In this case the interpretation would be<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>“serviceRequested”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>“markerSupplyMissing”<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:PersonName w:st="on"><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Christian
Christiansen</span></font></st1:PersonName><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=navy face=Calibri><span style='font-size:
11.0pt;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Calibri><span style='font-size:
11.0pt;color:navy'> </span></font><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
pmp-bounces@pwg.org [mailto:pmp-bounces@pwg.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>William Wagner<br>
<b><span style='font-weight:bold'>Sent:</span></b> 14. september 2009 19:15<br>
<b><span style='font-weight:bold'>To:</span></b> farouk.boujnah@gmail.com<br>
<b><span style='font-weight:bold'>Cc:</span></b> pmp@pwg.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [PMP] Printer MIB
question</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-top:12.0pt'><font size=3 face=Calibri><span
style='font-size:12.0pt'>With regard to the question that you sent to <a
href="mailto:hastings@cp10.es.xerox.com">hastings@cp10.es.xerox.com</a>, <a
href="mailto:szilles@mv.us.adobe.com">szilles@mv.us.adobe.com</a>, <a
href="mailto:don@lexmark.com">don@lexmark.com</a>, <a
href="mailto:jgyllens@hpdmd48.boi.hp.com">jgyllens@hpdmd48.boi.hp.com</a>, 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 </span></font><font size=4 face="Courier New"><span
style='font-size:13.5pt;font-family:"Courier New"'>[.iso.3.6.1.2.1.25.3.5.1.2.1].
</span></font><font size=3><span style='font-size:12.0pt'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=3 face=Calibri><span
style='font-size:12.0pt'>
lowPaper
0<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=3 face=Calibri><span
style='font-size:12.0pt'>
noPaper
1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
lowToner
2<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
noToner
3<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
doorOpen
4<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
jammed
5<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
offline
6<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
serviceRequested 7<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
inputTrayMissing 8<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
outputTrayMissing 9<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
markerSupplyMissing 10<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
outputNearFull 11<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
outputFull 12<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
inputTrayEmpty 13<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>
overduePreventMaint 14<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>But
remember that, in the MIB, bits are numbered starting with the most significant
bit of the first byte being bit 0,<b><span style='font-weight:bold'><o:p></o:p></span></b></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>To
interpret </span></font><font size=4 face="Courier New"><span style='font-size:
13.5pt;font-family:"Courier New"'>80 04, </span></font><font size=3><span
style='font-size:12.0pt'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>Hope
this helps. Note also that the current Printer MIB is RFC3805, although some
printers still support only the earlier verson.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Calibri><span style='font-size:12.0pt'>Bill
Wagner/ Chair, Printer Working Group WIMS/PMP <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'><br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a href="http://www.mailscanner.info/"><b><span
style='font-weight:bold'>MailScanner</span></b></a>, and is <br>
believed to be clean. <o:p></o:p></span></font></p>
</div>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body>
</html>