[Nut-upsdev] CyberPower CP825AVR-G battery scale

Charles Lepple clepple at gmail.com
Thu Dec 22 02:08:35 UTC 2011


On Dec 21, 2011, at 8:40 PM, Cliff Wright wrote:

> A little over a month ago I acquired a CyberPower CP825AVR-G
> ups. I found the usb was reporting the same vendor id (0x0501)

(side note: 0x0501 is the product ID - the CyberPower vendor ID is defined earlier in the file as 0x0764)

> as a device requiring battery voltage scaling. However the
> CyberPower does not require the voltage scaling, and was thus
> showing the wrong voltage. I grabbed the software and removed
> the battery scaling from the file drivers/cps-hid.c(line 54) to
> make it work for me. Looks like the same usb device must have
> been used on another product, so either the product id will
> have to also be checked, or maybe add another config item
> to specify battery voltage scaling.

Thanks for the heads-up.

If you are using Linux, what does lsusb report? Perhaps there is something else in the USB device descriptor that can be used to automatically detect whether the voltage needs to be scaled.

-- 
Charles Lepple


More information about the Nut-upsdev mailing list