networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
1.95k stars 346 forks source link

[HCL] PowerWalker VI 800 CSW supported by nutdrv_qx #2483

Open pspot2 opened 3 months ago

pspot2 commented 3 months ago

PowerWalker VI 800 CSW (click)

upsc output:

battery.charge: 81
battery.voltage: 12.50
battery.voltage.high: 13.00
battery.voltage.low: 10.40
battery.voltage.nominal: 12.0
device.model: 800VA
device.type: ups
driver.name: nutdrv_qx
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.parameter.vendorid: 0665
driver.version: 2.8.0
driver.version.data: Mustek 0.07
driver.version.internal: 0.32
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
input.current.nominal: 3.0
input.frequency: 50.0
input.frequency.nominal: 50
input.voltage: 232.3
input.voltage.fault: 222.2
input.voltage.nominal: 230
output.voltage: 232.3
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 4
ups.productid: 5161
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0665

upscmd -l output:

Instant commands supported on UPS [ups_powerwalker_800csw]:

beeper.toggle - Toggle the UPS beeper
load.off - Turn off the load immediately
load.on - Turn on the load immediately
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 - Start a battery test
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

So far I've tested only beeper.toggle. Works fine. Will test more and amend the issue.

upsrw output:

[ups.delay.shutdown]
Interval to wait after shutdown with delay command (seconds)
Type: RANGE NUMBER
Option: "12-600" SELECTED

[ups.delay.start]
Interval to wait before (re)starting the load (seconds)
Type: RANGE NUMBER
Option: "0-599940" SELECTED

Linux kernel output when UPS is connected to the host via USB:

kernel: usb 1-6: new full-speed USB device number 5 using xhci_hcd
kernel: usb 1-6: New USB device found, idVendor=0665, idProduct=5161, bcdDevice= 0.02
kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=5
kernel: usb 1-6: Product: HID UPS
kernel: usb 1-6: Manufacturer: HID UPS
kernel: usb 1-6: SerialNumber: HID UPS
kernel: hid: raw HID events driver (C) Jiri Kosina
kernel: usbcore: registered new interface driver usbhid
kernel: usbhid: USB HID core driver
kernel: hid-generic 0003:0665:5161.0001: hiddev0,hidraw0: USB HID v1.10 Device [HID UPS HID UPS] on usb-0000:00:14.0-6/input0
kernel: hid-generic 0003:0665:5161.0002: hiddev1,hidraw1: USB HID v1.10 Device [HID UPS HID UPS] on usb-0000:00:14.0-6/input1

lsusb output:

Bus 004 Device 003: ID 0665:5161 Cypress Semiconductor USB to Serial

Startup log messages:

Using protocol: Mustek 0.07
No values for battery high/low voltages
Using 'guesstimation' (low: 10.400000, high: 13.000000)!
Battery runtime will not be calculated (runtimecal not set)
Network UPS Tools - UPS driver controller 2.8.0
pspot2 commented 3 months ago

A small remark: the UPS does report remaining runtime on its LCD screen, but this is not reflected in the driver. The driver reports battery charge in percent, but this value seems to be guesstimated.