[Nut-upsdev] APC USB UPS vs FreeBSD 6.x

Arjen de Korte nut+devel at de-korte.org
Mon Jun 1 08:03:02 UTC 2009

Citeren Daniel O'Connor <doconnor op gsoft.com.au>:

> PS the battery.date is odd, ie
> battery.date: 1988/00/39
> battery.mfr.date: 2008/12/08

Most likely, this is a bug in the UPS firmware. This value is set by  
the HID path

     UPS.Battery.APCBattReplaceDate, Type: Feature, ReportID: 0x1c,  
Offset: 0, Size: 24, Value: 14728.000000

The reported value here (an APC specific one) should be a  
hexadecimal-as-decimal format like observed on other APC devices.  
However, APC seems to be using the standard way of encoding the date  
as written in the USB HID PDC specification and which is used for

     UPS.ManufacturerDate, Type: Feature, ReportID: 0x7b, Offset: 0,  
Size: 16, Value: 14728.000000
     UPS.Battery.ManufacturerDate, Type: Feature, ReportID: 0x20,  
Offset: 0, Size: 16, Value: 14728.000000

which translate to 'ups.mfr.date' and 'battery.mfr.date' respectively.  
Note the difference in the size. The latter two correctly use 16 bits  
(as specified), but the first uses 24 bits (which is too much).

Best regards, Arjen
Please keep list traffic on the list

More information about the Nut-upsdev mailing list