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

HCL Ippon Smart Power Pro Euro 2200 supported by usbhid-ups #760

Open Lebensgefahr opened 4 years ago

Lebensgefahr commented 4 years ago

Ippon Smart Power Pro Euro 2200 Debian 10 nut version is 2.7.4-8 installed from default Debian 10 repository.

When Iam trying to run sudo /usr/sbin/upsdrvctl -D start ippon-smart-2200 I've got the error:

0.043399    Driver failed to start (exit status=1)
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer_usb).

ups.conf

[ippon-smart-2200]
#driver = usbhid-ups
driver = blazer_usb
port = auto
desc = "Ippon Smart Power Pro 2200 Euro"
default.battery.volage.high = 27.00
default.battery.volage.low = 21.00
offdelay = 35
ondelay = 3

Of course I've tried to specify product/vendor ID. But if I change driver to usbhid-ups it works.

sudo /usr/sbin/upsdrvctl -D start ippon-smart-2200
Network UPS Tools - UPS driver controller 2.7.4
   0.000000 Starting UPS: ippon-smart-2200
Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
Using subdriver: Phoenixtec/Liebert HID 0.3

upsc output

upsc ippon-smart-2200@localhost
Init SSL without certificate database
battery.charge: 100
battery.runtime: 3759
battery.type: PbAc
battery.volage.high: 27.00
battery.volage.low: 21.00
battery.voltage: 27
device.mfr: PPC
device.model: Offline UPS
device.serial: 000000000   
device.type: ups
driver.name: usbhid-ups
driver.parameter.offdelay: 35
driver.parameter.ondelay: 3
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: Phoenixtec/Liebert HID 0.3
driver.version.internal: 0.41
ups.load: 6
ups.mfr: PPC
ups.model: Offline UPS
ups.productid: ffff
ups.serial: 000000000   
ups.status: OL CHRG
ups.vendorid: 06da

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 06da:ffff Phoenixtec Power Co., Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
clepple commented 4 years ago

Is ups.status correct when on battery? Does CHRG go away when the battery has been fully charged?