<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Findings of dual APC UPS sensor attachments</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We have several APC Smart UPSes (serial port/apcsmart) with the APC Temp/Humidity sensor cards (AP9612TH). The sensor cards have 2 plugs for 2 separate sensors. So far, we have only used one of the sensors in conjunction with the apcsmart module from nut. This has been working great. Example output:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">[nut@nut]# upsc APC11</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.humidity: 037.2</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.humidity.alarm.maximum: NO,NO</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.humidity.alarm.minimum: NO,NO</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.temperature: 21.08</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.temperature.alarm.maximum: NO,NO</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.temperature.alarm.minimum: NO,NO</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We thought of utilizing the second sensor port and have not been able to determine how to read the values of the second port.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Looking at the source code of apcsmart we noticed that the following characters are sent to the UPS to retrieve the current data: the letter 't' for temperature and the letter 'h' for humidity.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">One of our co-workers decided to use the Windows based software from APC and showed me that he can read both sensors fine. Ok, so we fired up from sysinternals the portmon tool to study what is happening on the serial port and we find the following:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The upper case letter 'T' produces 2 values:</FONT>

<BR><FONT SIZE=2 FACE="Arial">21.08,20.09</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The upper case letter 'H' produces 2 values:</FONT>

<BR><FONT SIZE=2 FACE="Arial">037.2,034.0</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If sensor 1 is not plugged in and sensor 2 is, then the output can look like:</FONT>

<BR><FONT SIZE=2 FACE="Arial">,034.3</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have 2 questions:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">1. could the web page </FONT><A HREF="http://www.networkupstools.org/protocols/apcsmart.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.networkupstools.org/protocols/apcsmart.html</FONT></U></A><FONT SIZE=2 FACE="Arial"> be updated to include this finding?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">2. could we modify the source code to accommodate this?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">In regards to the software, there are some issues. By default we still have to query for the old values so that the above output is maintained. Maybe a config switch (man apcsmart: extra arguments: multisensor:1 and default to 0) would specifically allow the admin to enable the dual values, then the output might look like:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">ambient.humdity1: x.x</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.humidty2: x.x</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.temperature1: x.x</FONT>

<BR><FONT SIZE=2 FACE="Arial">ambient.temperatuer2: x.x</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am unclear currently about the alarm.min and max values what exactly does NO,NO mean? Is that referring by chance to the 2 possible sensors?<BR>
</FONT>

<BR><FONT SIZE=2 FACE="Arial">I am willing to work on the source code - unless some else already knows and wants to implement this feature&#8230; I would like have to have feed back in particularly about how we should go about implementing the above (i.e. is that in line with the current project, for example).</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Steffen</FONT>
</P>

<P><FONT SIZE=1 FACE="Verdana">________________________________</FONT>
</P>

<P><FONT SIZE=1 FACE="Verdana">Steffen Plotner</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Systems Administrator/Programmer</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Systems &amp; Networking</FONT>
</P>

<P><FONT SIZE=1 FACE="Verdana">Amherst College</FONT>

<BR><FONT SIZE=1 FACE="Verdana">PO BOX 5000</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Amherst, MA 01002-5000</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Tel (413) 542-2348</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Fax (413) 542-2626</FONT>

<BR><FONT SIZE=1 FACE="Verdana">Email:<U> </U></FONT><U><FONT COLOR="#0000FF" SIZE=1 FACE="Verdana">swplotner@amherst.edu </FONT></U>

<BR><FONT SIZE=1 FACE="Verdana">________________________________</FONT>
</P>
<BR>

</BODY>
</HTML>