On Aug 8, 2014, at 9:15 AM, Charles Lepple <[email protected]> wrote:

> On Aug 7, 2014, at 10:52 PM, Charles Lepple <[email protected]> wrote:
> 
>> On Aug 7, 2014, at 10:18 PM, Matthew Stapleton <[email protected]> wrote:
>> 
>>> I just got a Cyberpower SOHO Value 1200 ELCD UPS and even with nut 2.7.2, 
>>> it appears to report battery voltage too low due to the battery scaling 
>>> function (In drivers/cps-hid.c). Even though the ups has usb id: 0764:0501, 
>>> UPS.PowerSummary.Voltage reports 26.6 for the 24V batteries so when the 
>>> 0.667 battery scale is applied that goes down to 17.7V.
>> 
>> I'm wondering if that scale factor is only needed for that one Dynex UPS 
>> model. We should be able to do a string match, which is ugly, but should 
>> work (especially if we default to no scaling).
>> 
>> Logged: https://github.com/networkupstools/nut/issues/142
> 
> It's not just Dynex models - there are some early "UPS VALUE" and "CP 1000D" 
> units that seem to need the correction factor. I'll try to add a check that 
> looks to see if the battery voltage makes sense.

Matthew, can you try the attached patch, and run the driver it with -DDDD?

https://github.com/networkupstools/nut/commit/c8950dee9c91ce45d05d8f220ea26891fb92329e

Also, if anyone else has a Cyberpower UPS with the 0501 productID, I'd 
appreciate any additional testing.

Thanks,

-- 
Charles Lepple
clepple@gmail


Attachment: cps_hid_scale.patch
Description: Binary data

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to