Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/cps-hid.c, NEWS.adoc: try to fix frequency scaling dynamically #2752

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

jimklimov
Copy link
Member

Closes: #2717

Some CPS devices report frequency off by a factor of 10 (also in the vendor's own pwrstat tool) as e.g. 499.0. This PR should try to detect the scaling range and adjust the reading.

EDUCATED GUESS: Probably the underlying problem is a yet another mis-use of USB HID report format, with an interim change to reporting in 0.1HZ units in some firmwares, but not updating the exponent in the report.

@jimklimov jimklimov added CyberPower (CPS) USB impacts-release-2.8.0 Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks) Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) labels Jan 5, 2025
@jimklimov jimklimov added this to the 2.8.3 milestone Jan 5, 2025
@jimklimov jimklimov merged commit 09ad17e into networkupstools:master Jan 5, 2025
30 checks passed
@jimklimov jimklimov deleted the issue-2717 branch January 5, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CyberPower (CPS) impacts-release-2.8.0 Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks) impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) USB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HCL] Cyber Power System UT1050EG supported by usbhid-ups
1 participant