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.99k stars 349 forks source link

[Legrand Keor SP 1000] Incorrect output voltage shown #1535

Open D4rk4 opened 2 years ago

D4rk4 commented 2 years ago

430v vs expected 230v

root@rpi-ups-office:~# upsc ups-office
Init SSL without certificate database
battery.charge: 100
battery.runtime: 1507
battery.voltage: 27.2
device.mfr: Legrand  
device.model: Legrand UPS  
device.type: ups
driver.name: usbhid-ups
driver.parameter.bus: 001
driver.parameter.pollfreq: 10
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.product: Legrand UPS
driver.parameter.productid: 0032
driver.parameter.synchronous: auto
driver.parameter.vendor: Legrand
driver.parameter.vendorid: 1CB0
driver.version: 2.8.0
driver.version.data: Legrand HID 0.2
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.24 (API: 0x1000109)
input.voltage: 239.0
output.voltage: 430.0
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 27
ups.mfr: Legrand  
ups.model: Legrand UPS  
ups.productid: 0032
ups.status: OL CHRG
ups.vendorid: 1cb0
root@rpi-ups-office:~# dpkg -l | grep ii | grep UPS
ii  libnutscan1:arm64                    2.7.4-13                         arm64        network UPS tools - scanner library
ii  libnutscan2:arm64                    2.8.0-1~exp1                     arm64        network UPS tools - scanner library
ii  libupsclient4:arm64                  2.7.4-13                         arm64        network UPS tools - client library
ii  libupsclient6:arm64                  2.8.0-1~exp1                     arm64        network UPS tools - client library
ii  nut                                  2.8.0-1~exp1                     all          network UPS tools - metapackage
ii  nut-client                           2.8.0-1~exp1                     arm64        network UPS tools - clients
ii  nut-server                           2.8.0-1~exp1                     arm64        network UPS tools - core system
jimklimov commented 2 years ago

I wonder if a build vs libusb-1.0 (compared to 0.1 for older NUT packages) had to do with it, or some other changes? Maybe some mayhem with LogMin/LogMax correction, or getting this UPS interpreted as a 3-phase?..

There was recently a report about CPS HID not reporting a voltage item where older NUT does still.

jimklimov commented 1 year ago

FWIW, linking to #1973 and #439 as possibly related issues (although not in CPS HID).

xorbug commented 1 year ago

I recently started using nut with a Legrand Keor SP 800 and noticed that some reported values are wrong as well (as shown by upsc):

battery.charge: 100
battery.charge.warning: 30
battery.runtime: 2811
battery.voltage: 13.5
device.mfr: Legrand  
device.model: Legrand UPS  
device.type: ups
driver.name: usbhid-ups
driver.parameter.bus: 001
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.product: Legrand UPS
driver.parameter.productid: 0032
driver.parameter.synchronous: auto
driver.parameter.vendor: Legrand
driver.parameter.vendorid: 1CB0
driver.version: 2.8.0
driver.version.data: Legrand HID 0.2
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
input.voltage: 175.0 <--- ~230 expected
output.voltage: 2160.0 <--- ~230 expected
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 0 <--- current load expected (at least when OB i guess, but not the case)
ups.mfr: Legrand  
ups.model: Legrand UPS  
ups.productid: 0032
ups.realpower.nominal: 800
ups.status: OL CHRG
ups.vendorid: 1cb0