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

[HCL] PowerWalker VFI 1000 AT supported by usbhid-ups #2632

Open
evgeniy-harchenko opened this issue Sep 16, 2024 · 6 comments
Open

[HCL] PowerWalker VFI 1000 AT supported by usbhid-ups #2632

evgeniy-harchenko opened this issue Sep 16, 2024 · 6 comments
Labels
DDL HCL impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) PowerWalker PowerWalker and BlueWalker branded devices

Comments

@evgeniy-harchenko
Copy link

PowerWalker VFI 1000 AT

upsc:

battery.charge: 94
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: 1 
battery.runtime: 58740
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 27.4
battery.voltage.nominal: 24
device.mfr: 1 
device.model: 1000
device.serial: [redacted]
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.offdelay: 20
driver.parameter.ondelay: 30
driver.parameter.pollfreq: 5
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0601
driver.parameter.synchronous: auto
driver.parameter.vendorid: 0764
driver.state: quiet
driver.version: 2.8.1
driver.version.data: CyberPower HID 0.8
driver.version.internal: 0.52
driver.version.usb: libusb-1.0.27 (API: 0x100010a)
input.frequency: 50.0
input.transfer.high: 300
input.transfer.low: 160
input.voltage: 210.5
input.voltage.nominal: 230
output.frequency: 49.9
output.voltage: 24.8
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 0
ups.mfr: 1 
ups.model: 1000
ups.productid: 0601
ups.realpower.nominal: 900
ups.serial: [redacted]
ups.status: OL CHRG
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

upsrw:

[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

[driver.debug]
Current debug verbosity level of the driver program
Type: NUMBER
Value: 0

[driver.flag.allow_killpower]
Safety flip-switch to allow the driver daemon to send UPS shutdown command (accessible via driver.killpower)
Type: NUMBER
Value: 0

[input.transfer.high]
High voltage transfer point (V)
Type: STRING
Maximum length: 10
Value: 300

[input.transfer.low]
Low voltage transfer point (V)
Type: STRING
Maximum length: 10
Value: 160

[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:

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)
driver.killpower - Tell the driver daemon to initiate UPS shutdown; should be unlocked with driver.flag.allow_killpower option or variable setting
driver.reload - Reload running driver configuration from the file system (only works for changes in some options)
driver.reload-or-error - Reload running driver configuration from the file system (only works for changes in some options); return an error if something changed and could not be applied live (so the caller can restart it with new options)
driver.reload-or-exit - Reload running driver configuration from the file system (only works for changes in some options); exit the running driver if something changed and could not be applied live (so service management framework can restart it with new options)
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

My ups.conf:

[nutdev1]
        driver = "usbhid-ups"
        port = "auto"
        desc = "PowerWalker VFI 1000 AT"        
        vendorid = "0764"
        productid = "0601"
        pollfreq = 5
        offdelay = 20
        ondelay = 30
        default.ups.timer.shutdown = 20        
        default.ups.timer.start = 30

Shutdown of clients, server and UPS works. But it seems it ignores ondelay and offdelay. I tried different values for them but the result is always the same. After upsmon -c fsd in /bin/upssched-cmd invoked server starts to shutdown. After ~15 seconds timer appears on the UPS's display. After even ~10 seconds UPS shuts down outlets (timer is still on dislay). After all of that UPS continues to work with outlets turned off. And only after 2 more minutes UPS shuts down.

@jimklimov jimklimov added HCL DDL PowerWalker PowerWalker and BlueWalker branded devices impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) labels Sep 16, 2024
@jimklimov
Copy link
Member

Thank you!

@evgeniy-harchenko
Copy link
Author

evgeniy-harchenko commented Sep 17, 2024

By the way. output.voltage is wrong in 2.8.1. There was no problem in 2.7.4. Unfortunately, I can't test latest version now, Ubuntu repository has not provide it yet.

@jimklimov
Copy link
Member

jimklimov commented Sep 17, 2024

Can you try building current NUT to test the driver from workspace? No need to replace the existing installation, although you would need to add prerequisite and tool packages...

https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests

@evgeniy-harchenko
Copy link
Author

Just checked on clear Ubuntu 22.04 with last git version 2.8.2.1068-1068-g967cb5403. Unfortunately, same problems (delay and output.voltage).

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: 1 
battery.runtime: 45480
battery.runtime.low: 300
battery.status: 100%
battery.type: PbAcid
battery.voltage: 27.5
battery.voltage.nominal: 24
device.mfr: 1 
device.model: 1000
device.serial: [redacted]
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.product: 1000
driver.parameter.productid: 0601
driver.parameter.serial: [redacted]
driver.parameter.synchronous: auto
driver.parameter.vendor: 1
driver.parameter.vendorid: 0764
driver.state: quiet
driver.version: 2.8.2.1068-1068-g967cb5403
driver.version.data: CyberPower HID 0.81
driver.version.internal: 0.57
driver.version.usb: libusb-1.0.25 (API: 0x1000109)
input.frequency: 50.0
input.transfer.high: 300
input.transfer.low: 160
input.voltage: 231.0
input.voltage.nominal: 230
output.frequency: 50.0
output.voltage: 24.8
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 0
ups.mfr: 1 
ups.model: 1000
ups.productid: 0601
ups.realpower.nominal: 900
ups.serial: [redacted]
ups.status: OL
ups.timer.shutdown: 20
ups.timer.start: 30
ups.vendorid: 0764

@jimklimov
Copy link
Member

For voltage, diff suggests this was among drivers impacted by #1024 and related work to fix wrong encoding of sime values. Maybe it misfires here, try adding disable_fix_report_desc to the ups.conf section for the device.

@evgeniy-harchenko
Copy link
Author

Not helped 😞. By the way, I don't know what this value shows, but sometimes it changes its value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL HCL impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) PowerWalker PowerWalker and BlueWalker branded devices
Projects
Status: Todo
Development

No branches or pull requests

2 participants