Hi Markus<br><br><div class="gmail_quote">2009/9/6 Markus Wildi<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Arnaud<br>
<div><div></div><div class="h5"><br>
<br>
On Sunday 06 September 2009 15:44:58 you wrote:<br>
&gt; 2009/9/5 Markus Wildi<br>
&gt;<br>
&gt; &gt; Good morning Arnaud<br>
&gt;<br>
&gt; hi Markus<br>
&gt;<br>
&gt; &gt; find attached the output of the driver (debug level 5).<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Here is an output of apcupsd command apcaccess status<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; <a href="https://azug.minpet.unibas.ch/wikiobsvermes/index.php/Apcupsd#Useful_Comm" target="_blank">https://azug.minpet.unibas.ch/wikiobsvermes/index.php/Apcupsd#Useful_Comm</a><br>
&gt; &gt;ands<br>
&gt; &gt;<br>
&gt; &gt; Have a look at<br>
&gt; &gt; LASTXFER : Low line voltage<br>
&gt; &gt;<br>
&gt; &gt; and here an excerpt of the log file<br>
&gt; &gt;<br>
&gt; &gt; Feb 19 17:28:51 obsvermes apcupsd[2055]: UPS Self Test switch to battery.<br>
&gt; &gt; Feb 19 17:28:58 obsvermes apcupsd[2055]: UPS Self Test completed: Battery<br>
&gt; &gt; OK<br>
&gt;<br>
&gt; ok, I see why: currently, there are few values that are not mapped due to<br>
&gt; the boolean mechanism used in usbhid-ups to process (either outvolt or<br>
&gt; outfreq or nothing).<br>
&gt; these values are commented in the code (your unit is currently reporting &quot;5<br>
&gt; =&gt; self test&quot;):<br>
&gt;<br>
&gt; /* these input.transfer.reason can&#39;t be mapped at the moment... */<br>
&gt;     { 3, &quot;ripple&quot;, NULL },        /* Ripple */<br>
&gt;     { 5, &quot;self test&quot;, NULL },    /* Self Test or Discharge Calibration<br>
&gt; commanded<br>
&gt;                                  * Test usage, front button, or 2 week self<br>
&gt; test */<br>
&gt;     { 6, &quot;forced&quot;, NULL },        /* DelayBeforeShutdown or<br>
&gt; APCDelayBeforeShutdown */<br>
&gt;     { 10, &quot;forced&quot;, NULL },        /* Graceful shutdown by accessories */<br>
&gt;     { 11, &quot;self test&quot;, NULL },    /* Test usage invoked */<br>
&gt;     { 12, &quot;self test&quot;, NULL },    /* Front button initiated self test */<br>
&gt;     { 13, &quot;self test&quot;, NULL },    /* 2 week self test */<br>
&gt;<br>
&gt; adding support for these would means changing some more code, and I&#39;m not<br>
&gt; sure it&#39;s forth just for reporting the above...<br>
<br>
</div></div>Ok, that is a decision you have to take. But from my point of view I think<br>
it is a good information specifically if the self-test did not pass. That<br>
event should go to a log file.<br></blockquote><div><br>I&#39;ve logged a feature request to address that later:<br><a href="https://alioth.debian.org/tracker/index.php?func=detail&amp;aid=311944&amp;group_id=30602&amp;atid=411545">https://alioth.debian.org/tracker/index.php?func=detail&amp;aid=311944&amp;group_id=30602&amp;atid=411545</a><br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
&gt; moreover, the data you reported are not coherent: considering the log file,<br>
&gt; LASTXFER should have the value &quot;Self Test&quot; and not &quot;Low line voltage&quot;...<br>
<br>
</div>That is correct. The wiki link provides an output to show you, what apcupsd<br>
reports on my UPS. The excerpt of the log file reports the self test.<br></blockquote><div> <br>ok<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
&gt; just to be sure, apart from transfer.reason, everything is equivalent to<br>
&gt; apcupsd?<br>
</div>I&#39;m not the UPS expert and to me it appears ok.<br>
<div class="im"></div></blockquote><div> <br>yep, everything seems fine.<br>btw, you can put &quot;auto&quot; for the port.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt; btw, what is that eeprom thing in apcupsd? is it equivalent to upsrw?<br>
</div>I checked the current release of apcupsd and I do not find a command<br>
eeprom any more. There is no target named eeprom in the Makefiles.<br>
I know, that it did not work properly but I remember<br>
that it is used to store values directly in the UPS&#39;s eeprom.<br></blockquote><div> <br>ok, so it&#39;s indeed equivalent to upsrw.<br><br>cheers,<br></div><div>Arnaud<br></div></div>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br>
<br>