salut Jean,<br><br><div class="gmail_quote">2009/5/16 Jean Delvare <span dir="ltr"><<a href="mailto:khali@linux-fr.org">khali@linux-fr.org</a>></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>
> 2009/5/8 Jean Delvare <<a href="mailto:khali@linux-fr.org">khali@linux-fr.org</a>><br>
</div><div><div></div><div class="h5">> > I use an APC Back-UPS RS 800, overall my experience with NUT is very<br>
> > good but there is one feature I am missing: the ability to ask the UPS<br>
> > for a battery test. upscmd -l shows the following commands available:<br>
> ><br>
> > $ upscmd -l rs800<br>
> > Instant commands supported on UPS [rs800]:<br>
> ><br>
> > beeper.disable - Disable the UPS beeper<br>
> > beeper.enable - Enable the UPS beeper<br>
> > beeper.mute - Temporarily mute the UPS beeper<br>
> > beeper.off - Obsolete (use beeper.disable or beeper.mute)<br>
> > beeper.on - Obsolete (use beeper.enable)<br>
> > load.off - Turn off the load immediately<br>
> > load.off.delay - Turn off the load with a delay (seconds)<br>
> > shutdown.reboot - Shut down the load briefly while rebooting the UPS<br>
> > shutdown.stop - Stop a shutdown in progress<br>
> > test.panel.start - Start testing the UPS panel<br>
> > test.panel.stop - Stop a UPS panel test<br>
> > $<br>
> ><br>
> > As you can see, it is possible to test the front panel, and that works<br>
> > OK, but no test.battery.start/stop. I would like to know if other APC<br>
> > Back-UPS RS users see the same problem. If the feature is missing from<br>
> > the driver, I would like to know why, as well as offer my help to<br>
> > implement it. I don't know the NUT code at all, but I can help with<br>
> > testing.<br>
> ><br>
> > I know the hardware supports it because the Windows software that APC<br>
> > ships does implement it, and it worked OK last time I tried (several<br>
> > months ago.)<br>
> ><br>
><br>
> once more, I don't have much APC knowledges, and we still lack an APC<br>
> maintainer for NUT.<br>
> so you're somehow on your own.<br>
> but, I've found a few info (I guess you're running apcsmart):<br>
> - from apcsmart.h,<br>
> Â Â Â Â { "test.battery.start", 0, Â Â Â Â Â Â Â Â Â Â Â APC_CMD_BTESTTOGGLE<br>
> },<br>
> Â Â Â Â { "test.battery.stop", Â 0, Â Â Â Â Â Â Â Â Â Â Â APC_CMD_BTESTTOGGLE<br>
> },<br>
><br>
> with APC_CMD_BTESTTOGGLE = 'W'<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'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">
> from there, you can snif on windows for the command, or... well I don't<br>
> 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 "usbhid-ups -D -a ..." and post back the tree dumped.<br>check for a string path that matches battery.test.<br>if it's not UPS.BatterySystem.Battery.Test, then you win and just have to add it to drivers/apc-hid.c<br>
otherwise, we'll have to dig...<br><br>cheers,<br>Arnaud <br></div></div>-- <br>Linux / Unix Expert R&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>