[Nut-upsdev] APC Back-UPS 500

Peter Selinger selinger at mathstat.dal.ca
Sun May 7 16:22:01 UTC 2006


Rob Crittenden wrote:
> 
> >>>>I'm using nut 2.0.2 from Fedora Core 4 and had some trouble getting my
> >>>>APC Back-UPS 500 working. I ended up having to rebuild the RPM myself
> >>>>after making some code changes.
> > 
> > If you still have them, please send these "code changes". -- Peter
> 
> I just bumped up the wait time.
> 
> --- nut-2.0.2/server/upsd.h     2005-01-27 09:33:19.000000000 -0500
> +++ nut-2.0.2-rcrit/server/upsd.h       2005-12-23 22:51:27.000000000 -0500
> @@ -43,7 +43,7 @@
>   #include "ctype.h"
>   #include "upstype.h"
> 
> -#define INITIAL_WAIT_MAX 5     /* max 5 seconds for DUMPDONEs to arrive */
> +#define INITIAL_WAIT_MAX 15    /* max 5 seconds for DUMPDONEs to arrive */
>   #define NUT_NET_ANSWER_MAX SMALLBUF
> 
>   /* prototypes from upsd.c */

Does anybody have objections to making this change permanent? It seems
reasonable for upsd to be a little more patient, if some devices are
that slow. If this will not break anything, I suggest we change this
to 15.
 
> Unfortunately that UPS seems kaput. It started oscilating between online 
> and battery every second or so. Talk about creepy. 

I hope that it was really the UPS, and not the driver, that caused
this oscillation. I know at least one UPS (a Belkin) that reports
"online" on its interrupt pipeline, and simultaneously "on battery" on
its query pipeline, so that the state would seem to oscillate. While
this is a broken behavior by the UPS, it would be possible for a
bug-aware driver to compensate for it.

-- Peter



More information about the Nut-upsdev mailing list