salut Jean,<br><br><div class="gmail_quote">2009/5/16 Jean Delvare <span dir="ltr">&lt;<a href="mailto:khali@linux-fr.org">khali@linux-fr.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Arnaud,<br>
<br>
Thanks for your answer.<br>
<div class="im"><br>
On Fri, 15 May 2009 23:47:34 +0200, Arnaud Quette wrote:<br>
&gt; 2009/5/8 Jean Delvare &lt;<a href="mailto:khali@linux-fr.org">khali@linux-fr.org</a>&gt;<br>
</div><div><div></div><div class="h5">&gt; &gt; I use an APC Back-UPS RS 800, overall my experience with NUT is very<br>
&gt; &gt; good but there is one feature I am missing: the ability to ask the UPS<br>
&gt; &gt; for a battery test. upscmd -l shows the following commands available:<br>
&gt; &gt;<br>
&gt; &gt; $ upscmd -l rs800<br>
&gt; &gt; Instant commands supported on UPS [rs800]:<br>
&gt; &gt;<br>
&gt; &gt; beeper.disable - Disable the UPS beeper<br>
&gt; &gt; beeper.enable - Enable the UPS beeper<br>
&gt; &gt; beeper.mute - Temporarily mute the UPS beeper<br>
&gt; &gt; beeper.off - Obsolete (use beeper.disable or beeper.mute)<br>
&gt; &gt; beeper.on - Obsolete (use beeper.enable)<br>
&gt; &gt; load.off - Turn off the load immediately<br>
&gt; &gt; load.off.delay - Turn off the load with a delay (seconds)<br>
&gt; &gt; shutdown.reboot - Shut down the load briefly while rebooting the UPS<br>
&gt; &gt; shutdown.stop - Stop a shutdown in progress<br>
&gt; &gt; test.panel.start - Start testing the UPS panel<br>
&gt; &gt; test.panel.stop - Stop a UPS panel test<br>
&gt; &gt; $<br>
&gt; &gt;<br>
&gt; &gt; As you can see, it is possible to test the front panel, and that works<br>
&gt; &gt; OK, but no test.battery.start/stop. I would like to know if other APC<br>
&gt; &gt; Back-UPS RS users see the same problem. If the feature is missing from<br>
&gt; &gt; the driver, I would like to know why, as well as offer my help to<br>
&gt; &gt; implement it. I don&#39;t know the NUT code at all, but I can help with<br>
&gt; &gt; testing.<br>
&gt; &gt;<br>
&gt; &gt; I know the hardware supports it because the Windows software that APC<br>
&gt; &gt; ships does implement it, and it worked OK last time I tried (several<br>
&gt; &gt; months ago.)<br>
&gt; &gt;<br>
&gt;<br>
&gt; once more, I don&#39;t have much APC knowledges, and we still lack an APC<br>
&gt; maintainer for NUT.<br>
&gt; so you&#39;re somehow on your own.<br>
&gt; but, I&#39;ve found a few info (I guess you&#39;re running apcsmart):<br>
&gt; - from apcsmart.h,<br>
&gt; Â  Â  Â  Â  { &quot;test.battery.start&quot;, 0, Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â APC_CMD_BTESTTOGGLE<br>
&gt; },<br>
&gt; Â  Â  Â  Â  { &quot;test.battery.stop&quot;, Â 0, Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â APC_CMD_BTESTTOGGLE<br>
&gt; },<br>
&gt;<br>
&gt; with APC_CMD_BTESTTOGGLE = &#39;W&#39;<br>
<br>
</div></div>No, I am not using the apcsmart driver but the usbhid-ups driver as<br>
recommended at <a href="http://www.networkupstools.org/compat/stable.html" target="_blank">http://www.networkupstools.org/compat/stable.html</a>. Does<br>
it change anything to your analysis? Should I try the apcsmart driver?<br>
<div class="im"></div></blockquote><div><br>no, not at all. I just wasn&#39;t sure.<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; from there, you can snif on windows for the command, or... well I don&#39;t<br>
&gt; know.<br>
<br>
</div>I will be happy to do so if it helps improve the nut drivers. Is there<br>
any sniffer software you can recommend?<br>
</blockquote><div><br>no need ATM. just fire the driver using &quot;usbhid-ups -D -a ...&quot; and post back the tree dumped.<br>check for a string path that matches battery.test.<br>if it&#39;s not UPS.BatterySystem.Battery.Test, then you win and just have to add it to drivers/apc-hid.c<br>
otherwise, we&#39;ll have to dig...<br><br>cheers,<br>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>