[Nut-upsuser] Salicru and usbhid-ups

Håkon Alstadheim hakon at garbo.alstadheim.priv.no
Sun Nov 12 15:46:24 GMT 2023


I have a device that seems almost, but not quite supported, I'd like 
very much to help get it working, though I am no programmer. Feel free 
to ask me to test :)

This could probably go in https://networkupstools.org/ddl/ :

-------file: 
Salicru__SPS_2000_ADV_T__usbhid-ups__2.8.1-94-gd59c05349__01.dev , or 
maybe 1__2000__usbhid-ups__2.8.1-94-gd59c05349__01.dev

# DEVICE:URL:VENDOR: https://www.salicru.com/sps-2000-adv-t.html

# DEVICE:COMMENT:
# First report for new salicru HID subdriver from PR referenced
# above for Salicru SPS 2000 ADV T.
# NOTE: I (like abelgomez ) tried to set the value of
# `battery.charge.low` using `upsrw`, but although the command returns
# OK, no values seem to be modified.
# I was able to set `driver.flag.allow_killpower`, but issuing
# `upscmd  -u ** -p ** ny driver.killpower` did nothing, even though it 
replied
#  with 'OK'
# DEVICE:EOC
battery.charge: 100
battery.charge.low: 0
battery.charge.warning: 20
battery.runtime: 7200
battery.runtime.low: 400
battery.type: PbAcid
battery.voltage: 25.60
battery.voltage.nominal: 24
device.mfr: 1
device.model: 2000
device.serial: 000000000000
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 0
driver.name: usbhid-ups
driver.parameter.default.battery.runtime.low: 400
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0302
driver.parameter.synchronous: auto
driver.parameter.vendorid: 2e66
driver.state: quiet
driver.version: 2.8.1-94-gd59c05349
driver.version.data: Salicru HID 0.4
driver.version.internal: 0.52
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
input.frequency: 50.1
input.voltage: 231.9
input.voltage.nominal: 230
output.frequency: 50.1
output.voltage: 25.2
output.voltage.nominal: 24
ups.beeper.status: disabled
ups.load: 0
ups.mfr: 1
ups.model: 2000
ups.productid: 0302
ups.realpower.nominal: 1400
ups.serial: 000000000000
ups.status: OL
ups.vendorid: 2e66

# DEVICE:COMMENT-BLOCK:FIXME:UPSRW:
# [battery.charge.low]
# Remaining battery level when UPS switches to LB (percent)
# Type: STRING
# Maximum length: 10
# Value: 0
#
# [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
# DEVICE:EOC

# DEVICE:COMMENT-BLOCK:FIXME:UPSCMD: Commands (none reported)
# Instant commands supported on UPS [ny]:
#
# 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)
# DEVICE:EOC



More information about the Nut-upsuser mailing list