[Nut-upsdev] patch for old APC Smart-UPS 600

Arjen de Korte nut+devel at de-korte.org
Sat Nov 25 09:04:30 CET 2006


Konstantin 'Kastus' Shchuka wrote:

[...]

> I came up with the following patch to apcsmart.h:
> 
> --- nut-2.0.4.orig/drivers/apcsmart.h
> +++ nut-2.0.4/drivers/apcsmart.h
> @@ -254,6 +254,10 @@
>         /* APC600 */
>         { "6QD",        "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
>         { "6TI",        "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
> +       /* Smart-UPS 600 */
> +       { "D6",         "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
> +       { "D5",         "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
> +       { "D4",         "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
>         /* CS 350 */
>         { "5.4.D",      "\1ABPQRSUYbdfgjmnx9",  0 },
>  
> I understand that it is a clumsy way to make it work but it was the easiest
> for me.

No, this is how the compatibility detecting is supposed to work. I
applied this patch to the trunk (and Testing). The only thing I
modified, is the insertion point.

> I am not sure how many more old Smart-UPS 600 are still in use and if it's
> worth including into NUT.

At least one I suppose. Since this is not likely going to break
anything, I think it is worth adding.

Regards, Arjen




More information about the Nut-upsdev mailing list