Justin Ellison
2011-Mar-31 01:53 UTC
[Nut-upsuser] Cyberpower CP850PFCLCD 120% battery charge
Hello all, I have a CyberPower Systems CP850PFCLCD that I'm hooking up to NUT 2.4.3 from apt running under Ubuntu 10.04. Using the usbhid-ups driver, things *seem* to work at first glance, but there are some odd issues. The most notable issue is that the battery.charge indicator reads 120 when at full charge. I came across this post here: http://lists.alioth.debian.org/pipermail/nut-upsuser/2007-September/003222.htmlbut it looks like the user never supplied the necessary data. The other issue that I found was that the LB flag is sent way to early when I unplugged the UPS from the outlet. I captured a log of upsc polling every 5 seconds and I'm attaching to this message. I'm more than happy to supply debug output, but I don't know if you want me to unplug the UPS from the outlet during that debug or not. Thanks in advance for any help, Justin ------------ ue Mar 29 23:30:39 CDT 2011 battery.charge: 120 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 450 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 117.0 input.voltage.nominal: 120 output.voltage: 117.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OL ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:30:44 CDT 2011 battery.charge: 105 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 367 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:30:49 CDT 2011 battery.charge: 96 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 360 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:30:54 CDT 2011 battery.charge: 96 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 360 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:30:59 CDT 2011 battery.charge: 87 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 304 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:04 CDT 2011 battery.charge: 87 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 304 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:09 CDT 2011 battery.charge: 83 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 290 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:14 CDT 2011 battery.charge: 81 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 283 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: OB DISCHRG LB ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:19 CDT 2011 battery.charge: 79 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 276 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: FSD OB DISCHRG LB ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:24 CDT 2011 battery.charge: 78 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 253 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: FSD OB DISCHRG LB ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:29 CDT 2011 battery.charge: 74 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 222 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: FSD OB DISCHRG LB ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 Tue Mar 29 23:31:34 CDT 2011 battery.charge: 74 battery.charge.low: 10 battery.charge.warning: 20 battery.mfr.date: CPS battery.runtime: 222 battery.runtime.low: 300 battery.type: PbAcid battery.voltage: 16.0 battery.voltage.nominal: 24 device.mfr: CP850PFCLCD device.model: CRDA103.981 device.serial: CPS device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.4.3 driver.version.data: CyberPower HID 0.3 driver.version.internal: 0.34 input.transfer.high: 139 input.transfer.low: 88 input.voltage: 0.0 input.voltage.nominal: 120 output.voltage: 120.0 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.delay.start: 30 ups.load: 56 ups.mfr: CP850PFCLCD ups.model: CRDA103.981 ups.productid: 0501 ups.realpower.nominal: 510 ups.serial: CPS ups.status: FSD OB DISCHRG LB ups.test.result: No test initiated ups.timer.shutdown: -60 ups.timer.start: -60 ups.vendorid: 0764 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110330/3db8513e/attachment-0001.htm>
Charles Lepple
2011-Mar-31 03:07 UTC
[Nut-upsuser] Cyberpower CP850PFCLCD 120% battery charge
On Mar 30, 2011, at 9:53 PM, Justin Ellison wrote:> Tue Mar 29 23:31:14 CDT 2011 > battery.charge: 81 > battery.charge.low: 10 > battery.charge.warning: 20 > battery.mfr.date: CPS > battery.runtime: 283 > battery.runtime.low: 300Not sure about the 120% charge issue. The UPS decides when to signal a "low battery" condition, and at this point in the logs, the UPS's estimation of remaining runtime has dropped below the limit. I'd guess that the LB flag is set when either the runtime or the charge goes below its limit. You should[*] be able to use upsrw to adjust "battery.runtime.low", but be sure to account for the amount of time needed to sync filesystems and kill processes. [*] Both "battery.runtime.low" and "battery.charge.low" are flagged as writable by the driver, but the actual result depends on the UPS firmware.
Arjen de Korte
2011-Mar-31 19:09 UTC
[Nut-upsuser] Cyberpower CP850PFCLCD 120% battery charge
Citeren Justin Ellison <justin op techadvise.com>:> I have a CyberPower Systems CP850PFCLCD that I'm hooking up to NUT 2.4.3 > from apt running under Ubuntu 10.04. Using the usbhid-ups driver, things > *seem* to work at first glance, but there are some odd issues. The most > notable issue is that the battery.charge indicator reads 120 when at full > charge. I came across this post here: > http://lists.alioth.debian.org/pipermail/nut-upsuser/2007-September/003222.htmlbut > it looks like the user never supplied the necessary data.For whatever reason the people that made the UPS firmware decided that they didn't need to follow the USB HID PDC specifications. From the data you sent, it looks like the value for battery charge that is reported by the UPS needs some conversion (coefficient and/or offset) to get to the true battery charge. Most likely, this is present in the bundled software for the UPS, but sadly we don't know them. So unless you're going to change that, the situation is unlikely to improve. It looks like '120' means 100% charge, but one data point is not enough to find (at least) two missing parameters.> The other issue that I found was that the LB flag is sent way to early when > I unplugged the UPS from the outlet.I don't think so. The data you posted indicated that about the time the UPS started reporsing LB (low battery), the runtime fell below the battery.runtime.low, so this is about right. If you don't need 5 minutes to shutdown your system, you might try lowering this value (if the UPS supports that) and see if this increases the useable time on battery. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)