powervar_cx_usb
Driver for Powervar GTS and UPM Series UPS equipment with USB connection
- Provided by: nut-server (Version: 2.8.4+really-2)
- Source: nut
- Report a bug
Driver for Powervar GTS and UPM Series UPS equipment with USB connection
powervar_cx_usb -h
powervar_cx_usb -a UPS_NAME [OPTIONS]
This man page only documents the hardware-specific features of the Powervar driver. For information about the core driver, see nutupsdrv(8).
This driver supports two Powervar UPS families with USB connections:
For serial connected UPM Series devices, see also powervar_cx_ser(8).
This driver supports the following optional settings in the ups.conf(5) file:
port = string
It is possible to control multiple UPS units simultaneously by running several instances of this driver, provided they can be uniquely distinguished by setting some combination of the vendor, product, vendorid, productid, serial, bus and/or device options detailed below. For devices or operating systems that do not provide sufficient information, the allow_duplicates option can be of use (limited and risky!)
vendorid = regex, productid = regex, vendor = regex, product = regex, serial = regex
Try lsusb(8) or running this NUT driver with -DD command-line argument for finding out the strings to match.
Examples:
bus = regex
Select a UPS on a specific USB bus or group of buses. The argument is a regular expression that must match the bus name where the UPS is connected (e.g. bus="002" or bus="00[2-3]") as seen on Linux in /sys/bus/usb/devices or lsusb(8); including leading zeroes.
device = regex
Select a UPS on a specific USB device or group of devices. The argument is a regular expression that must match the device name where the UPS is connected (e.g. device="001" or device="00[1-2]") as seen on Linux in /sys/bus/usb/devices or lsusb(8); including leading zeroes.
busport = regex
If supported by the hardware, OS and libusb on the particular deployment, this option should allow to specify physical port numbers on an USB hub, rather than logical device enumeration values, and in turn — this should be less volatile across reboots or re-plugging. The value may be seen in the USB topology output of lsusb -tv on systems with that tool, for example.
allow_duplicates
If you have several UPS devices which may not be uniquely identified by the options above (e.g. only VID:PID can be discovered there), this flag allows each driver instance where it is set to take the first match if available, or proceed to try another.
Normally the driver initialization would abort at this point claiming "Resource busy" or similar error, assuming that the otherwise properly matched device is unique — and some other process already handles it.
If you only care to know that at least one of your no-name UPSes is online, this option can help.
If you must really know which one, it will not!
usb_set_altinterface = bAlternateSetting
usb_config_index, usb_hid_rep_index, usb_hid_desc_index, usb_hid_ep_in, usb_hid_ep_out
As a rule of thumb for usb_hid_desc_index discovery, you can see larger wDescriptorLength values (roughly 600+ bytes) in reports of lsusb or similar tools.
LIBUSB_DEBUG = INTEGER
For the latter, you can set the LIBUSB_DEBUG driver option; alternatively you can classically export the environment variable LIBUSB_DEBUG before starting a NUT driver program (may be set and "exported" in driver init script or service method, perhaps via nut.conf(5)), to a numeric value such as 4 ("All messages are emitted").
For more details, including the currently supported values for your version of the library, see e.g.:
startdelay=num
offdelay=num
disptesttime=num
This driver supports the following Instant Commands (see upscmd(8)):
beeper.disable
beeper.enable
beeper.mute
shutdown.return
shutdown.stop
shutdown.reboot
shutdown.stayoff
test.battery.start.deep
test.battery.start.quick
test.battery.stop
test.failure.start
test.failure.stop
test.panel.start
reset.input.minmax
See upsrw(8) to see what variables are writable for the UPS.
For serial connected UPM Series devices, see powervar_cx_ser(8).
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.4/