Repository navigation
Closed
Labels
CyberPower (CPS)DDLHCLIncorrect or missing readingsOn some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)USBimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)
Milestone
Description
Product: https://www.cyberpower.com/eu/ro/product/sku/ut1050eg
$ upsc upsb
Init SSL without certificate database
Error: Unknown UPS
admin@jarod[~]$ upsc ups
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 5044
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 27.0
battery.voltage.nominal: 24
device.mfr: CPS
device.model: UT1050EG
device.serial:
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.version: 2.8.0
driver.version.data: CyberPower HID 0.6
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
input.frequency: 499.0
input.transfer.high: 295
input.transfer.low: 167
input.voltage: 234.0
input.voltage.nominal: 230
output.voltage: 233.0
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 8
ups.mfr: CPS
ups.model: UT1050EG
ups.productid: 0501
ups.realpower.nominal: 630
ups.serial:
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764
$ upsrw ups
[battery.charge.low]
Remaining battery level when UPS switches to LB (percent)
Type: STRING
Maximum length: 10
Value: 10
[battery.runtime.low]
Remaining battery runtime when UPS switches to LB (seconds)
Type: STRING
Maximum length: 10
Value: 300
[input.transfer.high]
High voltage transfer point (V)
Type: STRING
Maximum length: 10
Value: 295
[input.transfer.low]
Low voltage transfer point (V)
Type: STRING
Maximum length: 10
Value: 167
[ups.delay.shutdown]
Interval to wait after shutdown with delay command (seconds)
Type: STRING
Maximum length: 10
Value: 20
[ups.delay.start]
Interval to wait before (re)starting the load (seconds)
Type: STRING
Maximum length: 10
Value: 30
$ upscmd -l ups
Instant commands supported on UPS [ups]:
beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.mute - Temporarily mute the UPS beeper
beeper.off - Obsolete (use beeper.disable or beeper.mute)
beeper.on - Obsolete (use beeper.enable)
load.off - Turn off the load immediately
load.off.delay - Turn off the load with a delay (seconds)
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.battery.start.deep - Start a deep battery test
test.battery.start.quick - Start a quick battery test
test.battery.stop - Stop the battery test
passed test.battery.start.quick
Reacted by haarp and Kotaru
Metadata
Metadata
Assignees
Labels
CyberPower (CPS)DDLHCLIncorrect or missing readingsOn some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)USBimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)
Type
Projects
- StatusShow more project fieldsTodo
Activity
strainu commentedon Dec 12, 2024
Note that, while not tested, the following models should also work:
jimklimov commentedon Dec 16, 2024
NOTE: Input frequency seems off by a factor of 10 (499.0 I guess should be in ~50Hz range), but voltages seem surprisingly correct :) in regard to issues addressed in #2718, #439, #169... so maybe there are different firmwares with same vendor/product IDs in play, that we may want to differentiate.
Can you please check if fixes in current NUT codebase (2.8.2 or master, particularly a custom build of PR #2718) do not actually break input/output voltage reporting on your device?
Stasiz commentedon Jan 5, 2025
I confirm that it works fine with UT650EG.
Config:
OS and package:
Native app:
NUT:
jimklimov commentedon Jan 5, 2025
@Stasiz : Thanks for the report, especially for the bit about
pwrstat- interesting to see they also see frequency as 499 HZ (presuming native value is off by 10x, so 49.9), so NUT v2.8.2 did not fix it and/or firmwares do differ and they do not have a way to tell (USB HID is supposed to pass measurement units/exponents, so saying "0.1Hz" should not be a problem for them).Maybe need a blunt tool for these, like "if freq in [480..620] divide by 10"? :\
As for the serial number value, did you remove yours or is it reported empty?
drivers/cps-hid.c, NEWS.adoc: try to fix frequency scaling dynamically [
jimklimov commentedon Jan 5, 2025
Cheers, can you please try if the PR above fixes the reported frequency to 49.9Hz?
Check https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests about prerequisites and actually building NUT (you can run the driver from the build workspace for the test, without changing your OS installed files).
The Git checkout would start as
Stasiz commentedon Jan 5, 2025
nut-issue-2717
jimklimov commentedon Jan 5, 2025
Thanks! This looks better :)
jimklimov commentedon Jan 5, 2025
Strange that some numbers line
ups.loadandbattery.runtimelook so different (although the change is somewhat consistent). Did you disconnect the load while testing?Stasiz commentedon Jan 5, 2025
Yes, I tested it without load.