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
2.09k stars 351 forks source link

Incorrect Status from Liebert PSI5-1500RM120 #1252

Open airforceixi opened 2 years ago

airforceixi commented 2 years ago

Running NUT 2.7.4 on Fedora 35 connecting to a Liebert PSI5-1500RM120. Does not provide any valid status information. Here are some outputs:

upsc ups@localhost

device.mfr: Vertiv Co.
device.model: Liebert PSI5
device.serial: ###
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0002
driver.parameter.synchronous: no
driver.parameter.vendorid: 10AF
driver.version: 2.7.4
driver.version.data: Belkin/Liebert HID 0.17
driver.version.internal: 0.41
ups.mfr: Vertiv Co.
ups.model: Liebert PSI5
ups.productid: 0002
ups.serial: ###
ups.status: OB
ups.vendorid: 10af

/etc/ups/ups.conf

[ups]
driver = usbhid-ups
port = auto
productid = 0002
vendorid = 10AF

usbhid-ups -DDDDD -a ups

Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
   0.000000     send_to_all: SETINFO driver.parameter.port "auto"
   0.000031     send_to_all: SETINFO driver.parameter.productid "0002"
   0.000040     send_to_all: SETINFO driver.parameter.vendorid "10AF"
   0.000052     debug level is '5'
   0.001548     upsdrv_initups...
   0.006497     Checking device (8087/0024) (002/002)
   0.006534     Failed to open device, skipping. (Permission denied)
   0.006546     Checking device (1D6B/0002) (002/001)
   0.006560     Failed to open device, skipping. (Permission denied)
   0.006566     Checking device (5986/02D2) (001/006)
   0.006575     Failed to open device, skipping. (Permission denied)
   0.006583     Checking device (0A5C/21E6) (001/005)
   0.006599     Failed to open device, skipping. (Permission denied)
   0.006605     Checking device (147E/2020) (001/004)
   0.006617     Failed to open device, skipping. (Permission denied)
   0.006623     Checking device (10AF/0002) (001/014)
   0.009188     - VendorID: 10af
   0.009203     - ProductID: 0002
   0.009207     - Manufacturer: Vertiv Co.
   0.009212     - Product: Liebert PSI5
   0.009215     - Serial Number: ###
   0.009219     - Bus: 001
   0.009222     - Device release number: 0002
   0.009229     Trying to match device
   0.009267     Device matches
   0.009291     nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
   0.009823     HID descriptor, method 1: (9 bytes) => 09 21 10 01 00 01 22 1b 00
   0.009842     HID descriptor length (method 1) 27
   0.009851     i=0, extra[i]=09, extra[i+1]=21
   0.009867     HID descriptor, method 2: (9 bytes) => 09 21 10 01 00 01 22 1b 00
   0.009878     HID descriptor length (method 2) 27
   0.009884     HID descriptor length 27
   0.010435     Report Descriptor size = 27
   0.010459     Report Descriptor: (27 bytes) => 06 00 ff 09 01 a1 01 09 02 15 00 26 ff 00
   0.010469      75 08 95 08 81 82 09 02 95 08 91 82 c0
   0.010514     Using subdriver: Belkin/Liebert HID 0.17
   0.010521     2 HID objects found
   0.010528     Entering libusb_get_report
   0.010863     libusb_get_report: Resource temporarily unavailable
   0.010892     Can't retrieve Report 00: Resource temporarily unavailable
   0.010906     hid_lookup_path: ff000001 -> not found in lookup table
   0.010916     hid_lookup_path: ff000002 -> not found in lookup table
   0.010926     Path: ff000001.ff000002, Type: Input, ReportID: 0x00, Offset: 0, Size: 8
   0.010934     Entering libusb_get_report
   0.011126     libusb_get_report: Resource temporarily unavailable
   0.011157     Can't retrieve Report 00: Resource temporarily unavailable
   0.011169     hid_lookup_path: ff000001 -> not found in lookup table
   0.011180     hid_lookup_path: ff000002 -> not found in lookup table
   0.011192     Path: ff000001.ff000002, Type: Output, ReportID: 0x00, Offset: 0, Size: 8
   0.011208     send_to_all: SETINFO ups.mfr "Vertiv Co."
   0.011219     send_to_all: SETINFO ups.model "Liebert PSI5"
   0.011230     send_to_all: SETINFO ups.serial "###"
   0.011242     send_to_all: SETINFO ups.vendorid "10af"
   0.011253     send_to_all: SETINFO ups.productid "0002"
   0.011262     Report descriptor retrieved (Reportlen = 27)
   0.011271     Found HID device
   0.011279     Detected a UPS: Vertiv Co./Liebert PSI5
   0.011292     hid_lookup_usage: UPS -> 00840004
   0.011301     hid_lookup_usage: BELKINBatterySystem -> 00860010
   0.011309     hid_lookup_usage: BELKINCharge -> 00860039
   0.011318     string_to_path: depth = 3
   0.011329     hid_lookup_usage: UPS -> 00840004
   0.011338     hid_lookup_usage: PowerSummary -> 00840024
   0.011356     hid_lookup_usage: RemainingCapacityLimit -> 00850029
   0.011365     string_to_path: depth = 3
   0.011374     hid_lookup_usage: UPS -> 00840004
   0.011385     hid_lookup_usage: PowerSummary -> 00840024
   0.011399     hid_lookup_usage: WarningCapacityLimit -> 0085008c
   0.011408     string_to_path: depth = 3
   0.011414     hid_lookup_usage: UPS -> 00840004
   0.011420     hid_lookup_usage: PowerSummary -> 00840024
   0.011430     hid_lookup_usage: RunTimeToEmpty -> 00850068
   0.011439     string_to_path: depth = 3
   0.011449     hid_lookup_usage: UPS -> 00840004
   0.011459     hid_lookup_usage: PowerSummary -> 00840024
   0.011472     hid_lookup_usage: iDeviceChemistry -> 00850089
   0.011479     string_to_path: depth = 3
   0.011487     hid_lookup_usage: UPS -> 00840004
   0.011498     hid_lookup_usage: BELKINBatterySystem -> 00860010
   0.011507     hid_lookup_usage: BELKINVoltage -> 00860030
   0.011517     string_to_path: depth = 3
   0.011527     hid_lookup_usage: UPS -> 00840004
   0.011535     hid_lookup_usage: BELKINConfig -> 00860026
   0.011542     hid_lookup_usage: BELKINConfigBatteryVoltage -> 00860044
   0.011549     string_to_path: depth = 3
   0.011558     hid_lookup_usage: UPS -> 00840004
   0.011567     hid_lookup_usage: BELKINPowerState -> 0086002a
   0.011577     hid_lookup_usage: BELKINInput -> 0086001a
   0.011587     hid_lookup_usage: BELKINFrequency -> 00860032
   0.011595     string_to_path: depth = 4
   0.011605     hid_lookup_usage: UPS -> 00840004
   0.011612     hid_lookup_usage: BELKINConfig -> 00860026
   0.011620     hid_lookup_usage: BELKINConfigFrequency -> 00860042
   0.011629     string_to_path: depth = 3
   0.011639     hid_lookup_usage: UPS -> 00840004
   0.011648     hid_lookup_usage: BELKINDevice -> 00860029
   0.011659     hid_lookup_usage: BELKINVoltageSensitivity -> 00860074
   0.011666     string_to_path: depth = 3
   0.011678     hid_lookup_usage: UPS -> 00840004
   0.011688     hid_lookup_usage: BELKINConfig -> 00860026
   0.011697     hid_lookup_usage: BELKINHighVoltageTransfer -> 00860054
   0.011706     string_to_path: depth = 3
   0.011732     hid_lookup_usage: UPS -> 00840004
   0.011746     hid_lookup_usage: BELKINConfig -> 00860026
   0.011755     hid_lookup_usage: BELKINHighVoltageTransferMax -> 0086005d
   0.011765     string_to_path: depth = 3
   0.011776     hid_lookup_usage: UPS -> 00840004
   0.011784     hid_lookup_usage: BELKINConfig -> 00860026
   0.011795     hid_lookup_usage: BELKINHighVoltageTransferMin -> 0086005e
   0.011804     string_to_path: depth = 3
   0.011815     hid_lookup_usage: UPS -> 00840004
   0.011824     hid_lookup_usage: BELKINConfig -> 00860026
   0.011833     hid_lookup_usage: BELKINLowVoltageTransfer -> 00860053
   0.011842     string_to_path: depth = 3
   0.011852     hid_lookup_usage: UPS -> 00840004
   0.011861     hid_lookup_usage: BELKINConfig -> 00860026
   0.011869     hid_lookup_usage: BELKINLowVoltageTransferMax -> 0086005b
   0.011878     string_to_path: depth = 3
   0.011888     hid_lookup_usage: UPS -> 00840004
   0.011896     hid_lookup_usage: BELKINConfig -> 00860026
   0.011905     hid_lookup_usage: BELKINLowVoltageTransferMin -> 0086005c
   0.011914     string_to_path: depth = 3
   0.011923     hid_lookup_usage: UPS -> 00840004
   0.011933     hid_lookup_usage: BELKINPowerState -> 0086002a
   0.011943     hid_lookup_usage: BELKINInput -> 0086001a
   0.011953     hid_lookup_usage: BELKINVoltage -> 00860030
   0.011961     string_to_path: depth = 4
   0.011969     hid_lookup_usage: UPS -> 00840004
   0.011983     hid_lookup_usage: BELKINConfig -> 00860026
   0.011991     hid_lookup_usage: BELKINConfigVoltage -> 00860040
   0.012000     string_to_path: depth = 3
   0.012011     hid_lookup_usage: UPS -> 00840004
   0.012020     hid_lookup_usage: BELKINPowerState -> 0086002a
   0.012031     hid_lookup_usage: BELKINOutput -> 0086001c
   0.012040     hid_lookup_usage: BELKINFrequency -> 00860032
   0.012047     string_to_path: depth = 4
   0.012055     hid_lookup_usage: UPS -> 00840004
   0.012063     hid_lookup_usage: BELKINPowerState -> 0086002a
   0.012073     hid_lookup_usage: BELKINOutput -> 0086001c
   0.012083     hid_lookup_usage: BELKINVoltage -> 00860030
   0.012092     string_to_path: depth = 4
   0.012101     hid_lookup_usage: UPS -> 00840004
   0.012110     hid_lookup_usage: BELKINControls -> 00860027
   0.012123     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.012131     string_to_path: depth = 3
   0.012141     hid_lookup_usage: UPS -> 00840004
   0.012150     hid_lookup_usage: BELKINControls -> 00860027
   0.012160     hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.012169     string_to_path: depth = 3
   0.012180     hid_lookup_usage: UPS -> 00840004
   0.012188     hid_lookup_usage: BELKINControls -> 00860027
   0.012198     hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.012206     string_to_path: depth = 3
   0.012217     hid_lookup_usage: UPS -> 00840004
   0.012226     hid_lookup_usage: BELKINControls -> 00860027
   0.012237     hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.012245     string_to_path: depth = 3
   0.012256     hid_lookup_usage: UPS -> 00840004
   0.012265     hid_lookup_usage: BELKINControls -> 00860027
   0.012274     hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.012284     string_to_path: depth = 3
   0.012294     hid_lookup_usage: UPS -> 00840004
   0.012304     hid_lookup_usage: BELKINControls -> 00860027
   0.012314     hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
   0.012322     string_to_path: depth = 3
   0.012328     hid_lookup_usage: UPS -> 00840004
   0.012333     hid_lookup_usage: BELKINDevice -> 00860029
   0.012340     hid_lookup_usage: BELKINUPSType -> 0086007c
   0.012349     string_to_path: depth = 3
   0.012358     hid_lookup_usage: UPS -> 00840004
   0.012366     hid_lookup_usage: BELKINPowerState -> 0086002a
   0.012375     hid_lookup_usage: BELKINOutput -> 0086001c
   0.012386     hid_lookup_usage: BELKINPercentLoad -> 00860035
   0.012395     string_to_path: depth = 4
   0.012406     hid_lookup_usage: UPS -> 00840004
   0.012413     hid_lookup_usage: BELKINConfig -> 00860026
   0.012419     hid_lookup_usage: BELKINConfigOverloadTransfer -> 00860045
   0.012428     string_to_path: depth = 3
   0.012441     hid_lookup_usage: UPS -> 00840004
   0.012451     hid_lookup_usage: PowerSummary -> 00840024
   0.012463     hid_lookup_usage: ManufacturerDate -> 00850085
   0.012469     string_to_path: depth = 3
   0.012479     hid_lookup_usage: UPS -> 00840004
   0.012486     hid_lookup_usage: BELKINConfig -> 00860026
   0.012494     hid_lookup_usage: BELKINConfigApparentPower -> 00860043
   0.012503     string_to_path: depth = 3
   0.012514     hid_lookup_usage: UPS -> 00840004
   0.012527     hid_lookup_usage: PowerSummary -> 00840024
   0.012538     hid_lookup_usage: iSerialNumber -> 008400ff
   0.012548     string_to_path: depth = 3
   0.012559     hid_lookup_usage: UPS -> 00840004
   0.012568     hid_lookup_usage: BELKINControls -> 00860027
   0.012578     hid_lookup_usage: BELKINTest -> 00860058
   0.012588     string_to_path: depth = 3
   0.012602     hid_lookup_usage: UPS -> 00840004
   0.012612     hid_lookup_usage: BELKINDevice -> 00860029
   0.012623     hid_lookup_usage: BELKINUPSType -> 0086007c
   0.012632     string_to_path: depth = 3
   0.012640     hid_lookup_usage: UPS -> 00840004
   0.012649     hid_lookup_usage: PowerSummary -> 00840024
   0.012661     hid_lookup_usage: RemainingCapacity -> 00850066
   0.012670     string_to_path: depth = 3
   0.012680     hid_lookup_usage: UPS -> 00840004
   0.012691     hid_lookup_usage: Input -> 0084001a
   0.012702     hid_lookup_usage: Frequency -> 00840032
   0.012711     string_to_path: depth = 3
   0.012721     hid_lookup_usage: UPS -> 00840004
   0.012731     hid_lookup_usage: Input -> 0084001a
   0.012741     hid_lookup_usage: Voltage -> 00840030
   0.012749     string_to_path: depth = 3
   0.012758     hid_lookup_usage: UPS -> 00840004
   0.012766     hid_lookup_usage: Output -> 0084001c
   0.012776     hid_lookup_usage: Voltage -> 00840030
   0.012784     string_to_path: depth = 3
   0.012794     hid_lookup_usage: UPS -> 00840004
   0.012805     hid_lookup_usage: PowerSummary -> 00840024
   0.012816     hid_lookup_usage: Voltage -> 00840030
   0.012823     string_to_path: depth = 3
   0.012834     hid_lookup_usage: UPS -> 00840004
   0.012843     hid_lookup_usage: PowerSummary -> 00840024
   0.012854     hid_lookup_usage: ConfigVoltage -> 00840040
   0.012862     string_to_path: depth = 3
   0.012871     hid_lookup_usage: UPS -> 00840004
   0.012880     hid_lookup_usage: Output -> 0084001c
   0.012890     hid_lookup_usage: PercentLoad -> 00840035
   0.012897     string_to_path: depth = 3
   0.012908     hid_lookup_usage: UPS -> 00840004
   0.012918     hid_lookup_usage: PowerSummary -> 00840024
   0.012930     hid_lookup_usage: Discharging -> 00850045
   0.012938     string_to_path: depth = 3
   0.012949     hid_lookup_usage: UPS -> 00840004
   0.012959     hid_lookup_usage: PowerSummary -> 00840024
   0.012971     hid_lookup_usage: Charging -> 00850044
   0.013161     string_to_path: depth = 3
   0.013174     hid_lookup_usage: UPS -> 00840004
   0.013183     hid_lookup_usage: PowerSummary -> 00840024
   0.013194     hid_lookup_usage: ShutdownImminent -> 00840069
   0.013203     string_to_path: depth = 3
   0.013214     hid_lookup_usage: UPS -> 00840004
   0.013224     hid_lookup_usage: PowerSummary -> 00840024
   0.013236     hid_lookup_usage: ACPresent -> 008500d0
   0.013243     string_to_path: depth = 3
   0.013254     hid_lookup_usage: UPS -> 00840004
   0.013262     hid_lookup_usage: PowerSummary -> 00840024
   0.013271     hid_lookup_usage: PresentStatus -> 00840002
   0.013284     hid_lookup_usage: Discharging -> 00850045
   0.013292     string_to_path: depth = 4
   0.013303     hid_lookup_usage: UPS -> 00840004
   0.013316     hid_lookup_usage: PowerSummary -> 00840024
   0.013327     hid_lookup_usage: PresentStatus -> 00840002
   0.013339     hid_lookup_usage: Charging -> 00850044
   0.013347     string_to_path: depth = 4
   0.013358     hid_lookup_usage: UPS -> 00840004
   0.013369     hid_lookup_usage: PowerSummary -> 00840024
   0.013376     hid_lookup_usage: PresentStatus -> 00840002
   0.013388     hid_lookup_usage: ShutdownImminent -> 00840069
   0.013396     string_to_path: depth = 4
   0.013408     hid_lookup_usage: UPS -> 00840004
   0.013418     hid_lookup_usage: PowerSummary -> 00840024
   0.013428     hid_lookup_usage: PresentStatus -> 00840002
   0.013441     hid_lookup_usage: ACPresent -> 008500d0
   0.013449     string_to_path: depth = 4
   0.013459     hid_lookup_usage: UPS -> 00840004
   0.013469     hid_lookup_usage: PowerSummary -> 00840024
   0.013477     hid_lookup_usage: PresentStatus -> 00840002
   0.013487     hid_lookup_usage: NeedReplacement -> 0085004b
   0.013494     string_to_path: depth = 4
   0.013504     hid_lookup_usage: UPS -> 00840004
   0.013516     hid_lookup_usage: PowerSummary -> 00840024
   0.013526     hid_lookup_usage: PresentStatus -> 00840002
   0.013539     hid_lookup_usage: BelowRemainingCapacityLimit -> 00850042
   0.013550     string_to_path: depth = 4
   0.013559     hid_lookup_usage: UPS -> 00840004
   0.013569     hid_lookup_usage: BELKINStatus -> 00860028
   0.013575     hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.013584     string_to_path: depth = 3
   0.013593     hid_lookup_usage: UPS -> 00840004
   0.013603     hid_lookup_usage: BELKINStatus -> 00860028
   0.013617     hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.013622     string_to_path: depth = 3
   0.013628     hid_lookup_usage: UPS -> 00840004
   0.013633     hid_lookup_usage: BELKINStatus -> 00860028
   0.013641     hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.013651     string_to_path: depth = 3
   0.013662     hid_lookup_usage: UPS -> 00840004
   0.013670     hid_lookup_usage: BELKINStatus -> 00860028
   0.013678     hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.013686     string_to_path: depth = 3
   0.013695     hid_lookup_usage: UPS -> 00840004
   0.013704     hid_lookup_usage: BELKINStatus -> 00860028
   0.013715     hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.013721     string_to_path: depth = 3
   0.013730     hid_lookup_usage: UPS -> 00840004
   0.013740     hid_lookup_usage: BELKINStatus -> 00860028
   0.013749     hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.013759     string_to_path: depth = 3
   0.013771     hid_lookup_usage: UPS -> 00840004
   0.013782     hid_lookup_usage: BELKINStatus -> 00860028
   0.013791     hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.013800     string_to_path: depth = 3
   0.013810     hid_lookup_usage: UPS -> 00840004
   0.013818     hid_lookup_usage: BELKINStatus -> 00860028
   0.013826     hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.013832     string_to_path: depth = 3
   0.013841     hid_lookup_usage: UPS -> 00840004
   0.013849     hid_lookup_usage: BELKINControls -> 00860027
   0.013859     hid_lookup_usage: BELKINTest -> 00860058
   0.013867     string_to_path: depth = 3
   0.013877     hid_lookup_usage: UPS -> 00840004
   0.013884     hid_lookup_usage: BELKINControls -> 00860027
   0.013891     hid_lookup_usage: BELKINTest -> 00860058
   0.013901     string_to_path: depth = 3
   0.013909     hid_lookup_usage: UPS -> 00840004
   0.013919     hid_lookup_usage: BELKINControls -> 00860027
   0.013929     hid_lookup_usage: BELKINTest -> 00860058
   0.013937     string_to_path: depth = 3
   0.013947     hid_lookup_usage: UPS -> 00840004
   0.013955     hid_lookup_usage: BELKINControls -> 00860027
   0.013962     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.013971     string_to_path: depth = 3
   0.013990     hid_lookup_usage: UPS -> 00840004
   0.014001     hid_lookup_usage: BELKINControls -> 00860027
   0.014012     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.014020     string_to_path: depth = 3
   0.014030     hid_lookup_usage: UPS -> 00840004
   0.014040     hid_lookup_usage: BELKINControls -> 00860027
   0.014049     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.014060     string_to_path: depth = 3
   0.014069     hid_lookup_usage: UPS -> 00840004
   0.014079     hid_lookup_usage: BELKINControls -> 00860027
   0.014088     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.014096     string_to_path: depth = 3
   0.014107     hid_lookup_usage: UPS -> 00840004
   0.014116     hid_lookup_usage: BELKINControls -> 00860027
   0.014125     hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.014134     string_to_path: depth = 3
   0.014145     hid_lookup_usage: UPS -> 00840004
   0.014154     hid_lookup_usage: BELKINControls -> 00860027
   0.014164     hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.014172     string_to_path: depth = 3
   0.014181     hid_lookup_usage: UPS -> 00840004
   0.014191     hid_lookup_usage: BELKINControls -> 00860027
   0.014201     hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.014210     string_to_path: depth = 3
   0.014219     hid_lookup_usage: UPS -> 00840004
   0.014226     hid_lookup_usage: BELKINControls -> 00860027
   0.014234     hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.014243     string_to_path: depth = 3
   0.014254     hid_lookup_usage: UPS -> 00840004
   0.014264     hid_lookup_usage: BELKINControls -> 00860027
   0.014274     hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.014281     string_to_path: depth = 3
   0.014293     hid_lookup_usage: UPS -> 00840004
   0.014303     hid_lookup_usage: BELKINControls -> 00860027
   0.014312     hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.014321     string_to_path: depth = 3
   0.014335     hid_lookup_usage: UPS -> 00840004
   0.014342     hid_lookup_usage: BELKINControls -> 00860027
   0.014350     hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
   0.014358     string_to_path: depth = 3
   0.014371     find_nut_info: unknown info type: load.off.delay
   0.014383     find_nut_info: unknown info type: load.on.delay
   0.014395     find_nut_info: unknown info type: load.off.delay
   0.014409     send_to_all: SETINFO device.type "ups"
   0.014421     send_to_all: SETINFO driver.version "2.7.4"
   0.014432     send_to_all: SETINFO driver.version.internal "0.41"
   0.014444     send_to_all: SETINFO driver.name "usbhid-ups"
   0.014451     upsdrv_initinfo...
   0.014460     send_to_all: SETINFO driver.version.data "Belkin/Liebert HID 0.17"
   0.014474     send_to_all: SETINFO driver.parameter.pollfreq "30"
   0.014483     upsdrv_updateinfo...
   0.266852     libusb_get_interrupt: Connection timed out
   0.266890     Got 0 HID objects...
   0.266912     Quick update...
   0.266954     send_to_all: SETINFO ups.status "OB"
   0.266972     send_to_all: DATAOK
   0.267141     dstate_init: sock /var/run/nut/usbhid-ups-ups open on fd 9
   0.267171     send_to_all: SETINFO driver.parameter.pollinterval "2"
   0.267189     send_to_all: SETINFO driver.parameter.synchronous "no"
   0.267208     send_to_all: SETINFO device.mfr "Vertiv Co."
   0.267227     send_to_all: SETINFO device.model "Liebert PSI5"
   0.267243     send_to_all: SETINFO device.serial "###"
   0.267268     upsdrv_updateinfo...
   0.519669     libusb_get_interrupt: Connection timed out
   0.519716     Got 0 HID objects...
   0.519728     Quick update...
   0.797679     new connection on fd 10
   0.797808     send_to_one: SETINFO device.mfr "Vertiv Co."
   0.797883     send_to_one: SETINFO device.model "Liebert PSI5"
   0.797933     send_to_one: SETINFO device.serial "###"
   0.798029     send_to_one: SETINFO device.type "ups"
   0.798093     send_to_one: SETINFO driver.name "usbhid-ups"
   0.798144     send_to_one: SETINFO driver.parameter.pollfreq "30"
   0.798202     send_to_one: SETINFO driver.parameter.pollinterval "2"
   0.798268     send_to_one: SETINFO driver.parameter.port "auto"
   0.798321     send_to_one: SETINFO driver.parameter.productid "0002"
   0.798374     send_to_one: SETINFO driver.parameter.synchronous "no"
   0.798427     send_to_one: SETINFO driver.parameter.vendorid "10AF"
   0.798487     send_to_one: SETINFO driver.version "2.7.4"
   0.798545     send_to_one: SETINFO driver.version.data "Belkin/Liebert HID 0.17"
   0.798597     send_to_one: SETINFO driver.version.internal "0.41"
   0.798664     send_to_one: SETINFO ups.mfr "Vertiv Co."
   0.798721     send_to_one: SETINFO ups.model "Liebert PSI5"
   0.798771     send_to_one: SETINFO ups.productid "0002"
   0.798826     send_to_one: SETINFO ups.serial "###"
   0.798875     send_to_one: SETINFO ups.status "OB"
   0.798901     send_to_one: SETINFO ups.vendorid "10af"
   0.798923     send_to_one: DATAOK
   0.798947     send_to_one: DUMPDONE
   2.268844     upsdrv_updateinfo...
   2.521126     libusb_get_interrupt: Connection timed out
   2.521174     Got 0 HID objects...
   2.521187     Quick update...
   4.270682     upsdrv_updateinfo...
   4.523128     libusb_get_interrupt: Connection timed out
   4.523176     Got 0 HID objects...
   4.523188     Quick update...
   6.272505     upsdrv_updateinfo...
   6.524942     libusb_get_interrupt: Connection timed out
   6.525038     Got 0 HID objects...
   6.525069     Quick update...
   8.274313     upsdrv_updateinfo...
   8.526732     libusb_get_interrupt: Connection timed out
   8.526780     Got 0 HID objects...
   8.526793     Quick update...
   8.806313     send_to_one: PONG
  10.275878     upsdrv_updateinfo...
  10.528313     libusb_get_interrupt: Connection timed out
  10.528368     Got 0 HID objects...
  10.528398     Quick update...
  12.277721     upsdrv_updateinfo...
  12.530170     libusb_get_interrupt: Connection timed out
  12.530219     Got 0 HID objects...
  12.530232     Quick update...
  14.279560     upsdrv_updateinfo...
  14.532043     libusb_get_interrupt: Connection timed out
  14.532097     Got 0 HID objects...
  14.532130     Quick update...
  14.812836     send_to_one: PONG

I can provide remote access for dev/testing if any devs are willing/available.

jimklimov commented 2 years ago

Hello, before we get to in-depth testing, can you please check if a local build of the current NUT master branch works for you?

Sadly, the last release was a few years ago and next one is still brewing, so there were a lot of fixes (including at least 2 merged PRs tagged as liebert) that are not yet packaged by distros.

Message ID: @.***>

airforceixi commented 2 years ago

@jimklimov I switched from Fedora to Ubuntu and followed the instructions in the Wiki on how to build & install the drivers from master. Appears to be the same. See below:

upsc ups@localhost

Init SSL without certificate database
device.mfr: Vertiv Co.
device.model: Liebert PSI5
device.serial: ###
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0002
driver.parameter.synchronous: no
driver.parameter.vendorid: 10AF
driver.version: 2.7.4-3723-g92ecace7
driver.version.data: Belkin/Liebert HID 0.17
driver.version.internal: 0.43
ups.mfr: Vertiv Co.
ups.model: Liebert PSI5
ups.productid: 0002
ups.serial: ###
ups.status: OB
ups.vendorid: 10af

usbhid-ups -DDDDD -a ups

Network UPS Tools - Generic HID driver 0.43 (2.7.4-3723-g92ecace7)
USB communication driver 0.33
   0.000000     [D5] send_to_all: SETINFO driver.parameter.port "auto"
   0.000061     [D5] send_to_all: SETINFO driver.parameter.productid "0002"
   0.000086     [D5] send_to_all: SETINFO driver.parameter.vendorid "10AF"
   0.000124     [D1] debug level is '5'
   0.001586     [D5] send_to_all: SETINFO device.type "ups"
   0.001615     [D2] Initializing an USB-connected UPS with library (null) (NUT subdriver name='USB communication driver' ver='0.33')
   0.001630     [D1] upsdrv_initups (non-SHUT)...
   0.434003     [D3] usb_busses=0x563fa085af10
   0.434071     [D2] Checking device (1D6B/0003) (004/001)
   0.434302     [D2] - VendorID: 1d6b
   0.434339     [D2] - ProductID: 0003
   0.434406     [D2] - Manufacturer: unknown
   0.434465     [D2] - Product: unknown
   0.434512     [D2] - Serial Number: unknown
   0.434565     [D2] - Bus: 004
   0.434594     [D2] - Device: 001
   0.434646     [D2] - Device release number: 0504
   0.434689     [D2] Trying to match device
   0.434706     [D2] match_function_subdriver (non-SHUT mode): matching a device...
   0.434724     [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
   0.434741     [D2] Device does not match - skipping
   0.434861     [D2] Checking device (1D6B/0002) (003/001)
   0.434988     [D2] - VendorID: 1d6b
   0.435011     [D2] - ProductID: 0002
   0.435031     [D2] - Manufacturer: unknown
   0.435050     [D2] - Product: unknown
   0.435062     [D2] - Serial Number: unknown
   0.435074     [D2] - Bus: 003
   0.435085     [D2] - Device: 001
   0.435104     [D2] - Device release number: 0504
   0.435123     [D2] Trying to match device
   0.435143     [D2] match_function_subdriver (non-SHUT mode): matching a device...
   0.435168     [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
   0.435189     [D2] Device does not match - skipping
   0.435236     [D2] Checking device (8087/0024) (002/002)
   0.502519     [D2] - VendorID: 8087
   0.502582     [D2] - ProductID: 0024
   0.502649     [D2] - Manufacturer: unknown
   0.502675     [D2] - Product: unknown
   0.502697     [D2] - Serial Number: unknown
   0.502720     [D2] - Bus: 002
   0.502758     [D2] - Device: 002
   0.502785     [D2] - Device release number: 0000
   0.502815     [D2] Trying to match device
   0.502840     [D2] match_function_subdriver (non-SHUT mode): matching a device...
   0.502884     [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
   0.502924     [D2] Device does not match - skipping
   0.525338     [D2] Checking device (1D6B/0002) (002/001)
   0.541398     [D2] - VendorID: 1d6b
   0.541445     [D2] - ProductID: 0002
   0.541457     [D2] - Manufacturer: unknown
   0.541471     [D2] - Product: unknown
   0.541505     [D2] - Serial Number: unknown
   0.541561     [D2] - Bus: 002
   0.541594     [D2] - Device: 001
   0.541627     [D2] - Device release number: 0504
   0.541671     [D2] Trying to match device
   0.541718     [D2] match_function_subdriver (non-SHUT mode): matching a device...
   0.541781     [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
   0.541825     [D2] Device does not match - skipping
   0.562864     [D2] Checking device (10AF/0002) (001/008)
   0.566011     [D2] - VendorID: 10af
   0.566076     [D2] - ProductID: 0002
   0.566123     [D2] - Manufacturer: Vertiv Co.
   0.566154     [D2] - Product: Liebert PSI5
   0.566176     [D2] - Serial Number: ###
   0.566205     [D2] - Bus: 001
   0.566224     [D2] - Device: 008
   0.566248     [D2] - Device release number: 0002
   0.566267     [D2] Trying to match device
   0.566309     [D2] match_function_subdriver (non-SHUT mode): matching a device...
   0.566366     [D3] match_function_regex: matching a device...
   0.566495     [D2] Device matches
   0.566600     [D3] nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
   0.566989     [D3] HID descriptor, method 1: (9 bytes) => 09 21 10 01 00 01 22 1b 00
   0.567015     [D3] HID descriptor length (method 1) 27
   0.567038     [D4] i=0, extra[i]=09, extra[i+1]=21
   0.567055     [D3] HID descriptor, method 2: (9 bytes) => 09 21 10 01 00 01 22 1b 00
   0.567067     [D3] HID descriptor length (method 2) 27
   0.567078     [D2] HID descriptor length 27
   0.567605     [D2] Report Descriptor size = 27
   0.567632     [D3] Report Descriptor: (27 bytes) => 06 00 ff 09 01 a1 01 09 02 15 00 26 ff 00
   0.567655     [D3]  75 08 95 08 81 82 09 02 95 08 91 82 c0
   0.567754     Using subdriver: Belkin/Liebert HID 0.17
   0.567777     [D1] 2 HID objects found
   0.567797     [D4] Entering libusb_get_report
   0.568044     libusb_get_report: error sending control message: Operation not permitted
   0.568073     [D1] Can't retrieve Report 00: Operation not permitted
   0.568093     [D5] hid_lookup_path: ff000001 -> not found in lookup table
   0.568106     [D5] hid_lookup_path: ff000002 -> not found in lookup table
   0.568126     [D1] Path: ff000001.ff000002, Type: Input, ReportID: 0x00, Offset: 0, Size: 8
   0.568146     [D4] Entering libusb_get_report
   0.568483     libusb_get_report: error sending control message: Operation not permitted
   0.568507     [D1] Can't retrieve Report 00: Operation not permitted
   0.568527     [D5] hid_lookup_path: ff000001 -> not found in lookup table
   0.568548     [D5] hid_lookup_path: ff000002 -> not found in lookup table
   0.568570     [D1] Path: ff000001.ff000002, Type: Output, ReportID: 0x00, Offset: 0, Size: 8
   0.568601     [D5] send_to_all: SETINFO ups.mfr "Vertiv Co."
   0.568623     [D5] send_to_all: SETINFO ups.model "Liebert PSI5"
   0.568648     [D5] send_to_all: SETINFO ups.serial "###"
   0.568671     [D5] send_to_all: SETINFO ups.vendorid "10af"
   0.568694     [D5] send_to_all: SETINFO ups.productid "0002"
   0.568714     [D2] Report descriptor retrieved (Reportlen = 27)
   0.568734     [D2] Found HID device
   0.568755     [D1] Detected a UPS: Vertiv Co./Liebert PSI5
   0.568783     [D5] hid_lookup_usage: UPS -> 00840004
   0.568805     [D5] hid_lookup_usage: BELKINBatterySystem -> 00860010
   0.568831     [D5] hid_lookup_usage: BELKINCharge -> 00860039
   0.568849     [D4] string_to_path: depth = 3
   0.568874     [D5] hid_lookup_usage: UPS -> 00840004
   0.568898     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.568927     [D5] hid_lookup_usage: RemainingCapacityLimit -> 00850029
   0.568946     [D4] string_to_path: depth = 3
   0.568970     [D5] hid_lookup_usage: UPS -> 00840004
   0.568993     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.569023     [D5] hid_lookup_usage: WarningCapacityLimit -> 0085008c
   0.569042     [D4] string_to_path: depth = 3
   0.569065     [D5] hid_lookup_usage: UPS -> 00840004
   0.569089     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.569117     [D5] hid_lookup_usage: RunTimeToEmpty -> 00850068
   0.569160     [D4] string_to_path: depth = 3
   0.569185     [D5] hid_lookup_usage: UPS -> 00840004
   0.569207     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.569237     [D5] hid_lookup_usage: iDeviceChemistry -> 00850089
   0.569255     [D4] string_to_path: depth = 3
   0.569278     [D5] hid_lookup_usage: UPS -> 00840004
   0.569299     [D5] hid_lookup_usage: BELKINBatterySystem -> 00860010
   0.569323     [D5] hid_lookup_usage: BELKINVoltage -> 00860030
   0.569341     [D4] string_to_path: depth = 3
   0.569364     [D5] hid_lookup_usage: UPS -> 00840004
   0.569383     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.569404     [D5] hid_lookup_usage: BELKINConfigBatteryVoltage -> 00860044
   0.569423     [D4] string_to_path: depth = 3
   0.569447     [D5] hid_lookup_usage: UPS -> 00840004
   0.569467     [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
   0.569490     [D5] hid_lookup_usage: BELKINInput -> 0086001a
   0.569511     [D5] hid_lookup_usage: BELKINFrequency -> 00860032
   0.569530     [D4] string_to_path: depth = 4
   0.569553     [D5] hid_lookup_usage: UPS -> 00840004
   0.569573     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.569594     [D5] hid_lookup_usage: BELKINConfigFrequency -> 00860042
   0.569613     [D4] string_to_path: depth = 3
   0.569635     [D5] hid_lookup_usage: UPS -> 00840004
   0.569656     [D5] hid_lookup_usage: BELKINDevice -> 00860029
   0.569678     [D5] hid_lookup_usage: BELKINVoltageSensitivity -> 00860074
   0.569697     [D4] string_to_path: depth = 3
   0.569720     [D5] hid_lookup_usage: UPS -> 00840004
   0.569740     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.569760     [D5] hid_lookup_usage: BELKINHighVoltageTransfer -> 00860054
   0.569779     [D4] string_to_path: depth = 3
   0.569803     [D5] hid_lookup_usage: UPS -> 00840004
   0.569821     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.569844     [D5] hid_lookup_usage: BELKINHighVoltageTransferMax -> 0086005d
   0.569863     [D4] string_to_path: depth = 3
   0.569885     [D5] hid_lookup_usage: UPS -> 00840004
   0.569905     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.569927     [D5] hid_lookup_usage: BELKINHighVoltageTransferMin -> 0086005e
   0.569945     [D4] string_to_path: depth = 3
   0.569969     [D5] hid_lookup_usage: UPS -> 00840004
   0.569988     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.570008     [D5] hid_lookup_usage: BELKINLowVoltageTransfer -> 00860053
   0.570028     [D4] string_to_path: depth = 3
   0.570051     [D5] hid_lookup_usage: UPS -> 00840004
   0.570070     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.570091     [D5] hid_lookup_usage: BELKINLowVoltageTransferMax -> 0086005b
   0.570111     [D4] string_to_path: depth = 3
   0.570135     [D5] hid_lookup_usage: UPS -> 00840004
   0.570153     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.570175     [D5] hid_lookup_usage: BELKINLowVoltageTransferMin -> 0086005c
   0.570194     [D4] string_to_path: depth = 3
   0.570218     [D5] hid_lookup_usage: UPS -> 00840004
   0.570241     [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
   0.570264     [D5] hid_lookup_usage: BELKINInput -> 0086001a
   0.570285     [D5] hid_lookup_usage: BELKINVoltage -> 00860030
   0.570304     [D4] string_to_path: depth = 4
   0.570327     [D5] hid_lookup_usage: UPS -> 00840004
   0.570346     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.570367     [D5] hid_lookup_usage: BELKINConfigVoltage -> 00860040
   0.570386     [D4] string_to_path: depth = 3
   0.570410     [D5] hid_lookup_usage: UPS -> 00840004
   0.570431     [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
   0.570455     [D5] hid_lookup_usage: BELKINOutput -> 0086001c
   0.570477     [D5] hid_lookup_usage: BELKINFrequency -> 00860032
   0.570496     [D4] string_to_path: depth = 4
   0.570519     [D5] hid_lookup_usage: UPS -> 00840004
   0.570539     [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
   0.570561     [D5] hid_lookup_usage: BELKINOutput -> 0086001c
   0.570582     [D5] hid_lookup_usage: BELKINVoltage -> 00860030
   0.570602     [D4] string_to_path: depth = 4
   0.570625     [D5] hid_lookup_usage: UPS -> 00840004
   0.570644     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.570667     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.570685     [D4] string_to_path: depth = 3
   0.570708     [D5] hid_lookup_usage: UPS -> 00840004
   0.570728     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.570750     [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.570769     [D4] string_to_path: depth = 3
   0.570792     [D5] hid_lookup_usage: UPS -> 00840004
   0.570811     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.570834     [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.570852     [D4] string_to_path: depth = 3
   0.570875     [D5] hid_lookup_usage: UPS -> 00840004
   0.570896     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.570918     [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.570937     [D4] string_to_path: depth = 3
   0.570960     [D5] hid_lookup_usage: UPS -> 00840004
   0.570980     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.571001     [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.571020     [D4] string_to_path: depth = 3
   0.571043     [D5] hid_lookup_usage: UPS -> 00840004
   0.571063     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.571084     [D5] hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
   0.571103     [D4] string_to_path: depth = 3
   0.571126     [D5] hid_lookup_usage: UPS -> 00840004
   0.571146     [D5] hid_lookup_usage: BELKINDevice -> 00860029
   0.571169     [D5] hid_lookup_usage: BELKINUPSType -> 0086007c
   0.571187     [D4] string_to_path: depth = 3
   0.571210     [D5] hid_lookup_usage: UPS -> 00840004
   0.571230     [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
   0.571253     [D5] hid_lookup_usage: BELKINOutput -> 0086001c
   0.571274     [D5] hid_lookup_usage: BELKINPercentLoad -> 00860035
   0.571293     [D4] string_to_path: depth = 4
   0.571316     [D5] hid_lookup_usage: UPS -> 00840004
   0.571335     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.571356     [D5] hid_lookup_usage: BELKINConfigOverloadTransfer -> 00860045
   0.571375     [D4] string_to_path: depth = 3
   0.571399     [D5] hid_lookup_usage: UPS -> 00840004
   0.571421     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.571450     [D5] hid_lookup_usage: ManufacturerDate -> 00850085
   0.571468     [D4] string_to_path: depth = 3
   0.571491     [D5] hid_lookup_usage: UPS -> 00840004
   0.571511     [D5] hid_lookup_usage: BELKINConfig -> 00860026
   0.571532     [D5] hid_lookup_usage: BELKINConfigApparentPower -> 00860043
   0.571552     [D4] string_to_path: depth = 3
   0.571576     [D5] hid_lookup_usage: UPS -> 00840004
   0.571599     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.571625     [D5] hid_lookup_usage: iSerialNumber -> 008400ff
   0.571644     [D4] string_to_path: depth = 3
   0.571667     [D5] hid_lookup_usage: UPS -> 00840004
   0.571686     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.571708     [D5] hid_lookup_usage: BELKINTest -> 00860058
   0.571727     [D4] string_to_path: depth = 3
   0.571750     [D5] hid_lookup_usage: UPS -> 00840004
   0.571770     [D5] hid_lookup_usage: BELKINDevice -> 00860029
   0.571792     [D5] hid_lookup_usage: BELKINUPSType -> 0086007c
   0.571811     [D4] string_to_path: depth = 3
   0.571834     [D5] hid_lookup_usage: UPS -> 00840004
   0.571857     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.571887     [D5] hid_lookup_usage: RemainingCapacity -> 00850066
   0.571905     [D4] string_to_path: depth = 3
   0.571927     [D5] hid_lookup_usage: UPS -> 00840004
   0.571950     [D5] hid_lookup_usage: Input -> 0084001a
   0.571973     [D5] hid_lookup_usage: Frequency -> 00840032
   0.571991     [D4] string_to_path: depth = 3
   0.572014     [D5] hid_lookup_usage: UPS -> 00840004
   0.572036     [D5] hid_lookup_usage: Input -> 0084001a
   0.572059     [D5] hid_lookup_usage: Voltage -> 00840030
   0.572077     [D4] string_to_path: depth = 3
   0.572099     [D5] hid_lookup_usage: UPS -> 00840004
   0.572122     [D5] hid_lookup_usage: Output -> 0084001c
   0.572145     [D5] hid_lookup_usage: Voltage -> 00840030
   0.572163     [D4] string_to_path: depth = 3
   0.572186     [D5] hid_lookup_usage: UPS -> 00840004
   0.572209     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572233     [D5] hid_lookup_usage: Voltage -> 00840030
   0.572251     [D4] string_to_path: depth = 3
   0.572274     [D5] hid_lookup_usage: UPS -> 00840004
   0.572296     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572321     [D5] hid_lookup_usage: ConfigVoltage -> 00840040
   0.572338     [D4] string_to_path: depth = 3
   0.572362     [D5] hid_lookup_usage: UPS -> 00840004
   0.572384     [D5] hid_lookup_usage: Output -> 0084001c
   0.572408     [D5] hid_lookup_usage: PercentLoad -> 00840035
   0.572426     [D4] string_to_path: depth = 3
   0.572450     [D5] hid_lookup_usage: UPS -> 00840004
   0.572473     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572501     [D5] hid_lookup_usage: Discharging -> 00850045
   0.572519     [D4] string_to_path: depth = 3
   0.572542     [D5] hid_lookup_usage: UPS -> 00840004
   0.572564     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572592     [D5] hid_lookup_usage: Charging -> 00850044
   0.572610     [D4] string_to_path: depth = 3
   0.572634     [D5] hid_lookup_usage: UPS -> 00840004
   0.572656     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572681     [D5] hid_lookup_usage: ShutdownImminent -> 00840069
   0.572699     [D4] string_to_path: depth = 3
   0.572723     [D5] hid_lookup_usage: UPS -> 00840004
   0.572745     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572775     [D5] hid_lookup_usage: ACPresent -> 008500d0
   0.572793     [D4] string_to_path: depth = 3
   0.572817     [D5] hid_lookup_usage: UPS -> 00840004
   0.572839     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572862     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.572890     [D5] hid_lookup_usage: Discharging -> 00850045
   0.572909     [D4] string_to_path: depth = 4
   0.572932     [D5] hid_lookup_usage: UPS -> 00840004
   0.572954     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.572976     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.573005     [D5] hid_lookup_usage: Charging -> 00850044
   0.573024     [D4] string_to_path: depth = 4
   0.573048     [D5] hid_lookup_usage: UPS -> 00840004
   0.573069     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.573092     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.573117     [D5] hid_lookup_usage: ShutdownImminent -> 00840069
   0.573154     [D4] string_to_path: depth = 4
   0.573169     [D5] hid_lookup_usage: UPS -> 00840004
   0.573188     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.573202     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.573227     [D5] hid_lookup_usage: ACPresent -> 008500d0
   0.573248     [D4] string_to_path: depth = 4
   0.573265     [D5] hid_lookup_usage: UPS -> 00840004
   0.573286     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.573310     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.573339     [D5] hid_lookup_usage: NeedReplacement -> 0085004b
   0.573359     [D4] string_to_path: depth = 4
   0.573383     [D5] hid_lookup_usage: UPS -> 00840004
   0.573406     [D5] hid_lookup_usage: PowerSummary -> 00840024
   0.573430     [D5] hid_lookup_usage: PresentStatus -> 00840002
   0.573461     [D5] hid_lookup_usage: BelowRemainingCapacityLimit -> 00850042
   0.573481     [D4] string_to_path: depth = 4
   0.573504     [D5] hid_lookup_usage: UPS -> 00840004
   0.573525     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573549     [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.573568     [D4] string_to_path: depth = 3
   0.573591     [D5] hid_lookup_usage: UPS -> 00840004
   0.573613     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573636     [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.573655     [D4] string_to_path: depth = 3
   0.573678     [D5] hid_lookup_usage: UPS -> 00840004
   0.573700     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573724     [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.573742     [D4] string_to_path: depth = 3
   0.573765     [D5] hid_lookup_usage: UPS -> 00840004
   0.573787     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573811     [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.573829     [D4] string_to_path: depth = 3
   0.573853     [D5] hid_lookup_usage: UPS -> 00840004
   0.573875     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573899     [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
   0.573917     [D4] string_to_path: depth = 3
   0.573941     [D5] hid_lookup_usage: UPS -> 00840004
   0.573962     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.573985     [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.574004     [D4] string_to_path: depth = 3
   0.574028     [D5] hid_lookup_usage: UPS -> 00840004
   0.574050     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.574073     [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.574093     [D4] string_to_path: depth = 3
   0.574116     [D5] hid_lookup_usage: UPS -> 00840004
   0.574137     [D5] hid_lookup_usage: BELKINStatus -> 00860028
   0.574161     [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
   0.574181     [D4] string_to_path: depth = 3
   0.574205     [D5] hid_lookup_usage: UPS -> 00840004
   0.574226     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574249     [D5] hid_lookup_usage: BELKINTest -> 00860058
   0.574268     [D4] string_to_path: depth = 3
   0.574293     [D5] hid_lookup_usage: UPS -> 00840004
   0.574314     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574337     [D5] hid_lookup_usage: BELKINTest -> 00860058
   0.574356     [D4] string_to_path: depth = 3
   0.574380     [D5] hid_lookup_usage: UPS -> 00840004
   0.574401     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574423     [D5] hid_lookup_usage: BELKINTest -> 00860058
   0.574442     [D4] string_to_path: depth = 3
   0.574467     [D5] hid_lookup_usage: UPS -> 00840004
   0.574487     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574510     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.574529     [D4] string_to_path: depth = 3
   0.574554     [D5] hid_lookup_usage: UPS -> 00840004
   0.574574     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574596     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.574615     [D4] string_to_path: depth = 3
   0.574640     [D5] hid_lookup_usage: UPS -> 00840004
   0.574660     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574682     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.574702     [D4] string_to_path: depth = 3
   0.574725     [D5] hid_lookup_usage: UPS -> 00840004
   0.574746     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574768     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.574787     [D4] string_to_path: depth = 3
   0.574811     [D5] hid_lookup_usage: UPS -> 00840004
   0.574831     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574854     [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
   0.574873     [D4] string_to_path: depth = 3
   0.574897     [D5] hid_lookup_usage: UPS -> 00840004
   0.574917     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.574939     [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.574959     [D4] string_to_path: depth = 3
   0.574983     [D5] hid_lookup_usage: UPS -> 00840004
   0.575003     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.575025     [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.575044     [D4] string_to_path: depth = 3
   0.575067     [D5] hid_lookup_usage: UPS -> 00840004
   0.575088     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.575111     [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.575130     [D4] string_to_path: depth = 3
   0.575154     [D5] hid_lookup_usage: UPS -> 00840004
   0.575175     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.575197     [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
   0.575216     [D4] string_to_path: depth = 3
   0.575239     [D5] hid_lookup_usage: UPS -> 00840004
   0.575259     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.575282     [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
   0.575302     [D4] string_to_path: depth = 3
   0.575326     [D5] hid_lookup_usage: UPS -> 00840004
   0.575346     [D5] hid_lookup_usage: BELKINControls -> 00860027
   0.575368     [D5] hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
   0.575388     [D4] string_to_path: depth = 3
   0.575415     [D2] find_nut_info: unknown info type: load.off.delay
   0.575437     [D2] find_nut_info: unknown info type: load.on.delay
   0.575462     [D2] find_nut_info: unknown info type: load.off.delay
   0.575488     [D5] send_to_all: SETINFO driver.version "2.7.4-3723-g92ecace7"
   0.575512     [D5] send_to_all: SETINFO driver.version.internal "0.43"
   0.575535     [D5] send_to_all: SETINFO driver.name "usbhid-ups"
   0.575554     [D1] upsdrv_initinfo...
   0.575579     [D5] send_to_all: SETINFO driver.version.data "Belkin/Liebert HID 0.17"
   0.575606     [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
   0.575626     [D1] upsdrv_updateinfo...
   0.828343     [D2] libusb_get_interrupt: Connection timed out
   0.828390     [D1] Got 0 HID objects...
   0.828403     [D1] Quick update...
   0.828432     [D5] send_to_all: SETINFO ups.status "OB"
   0.828472     [D5] send_to_all: DATAOK
   0.828626     [D2] dstate_init: sock /var/run/nut/usbhid-ups-ups open on fd 5
   0.828670     [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
   0.828711     [D5] send_to_all: SETINFO driver.parameter.synchronous "no"
   0.828771     [D5] send_to_all: SETINFO device.mfr "Vertiv Co."
   0.828838     [D5] send_to_all: SETINFO device.model "Liebert PSI5"
   0.828907     [D5] send_to_all: SETINFO device.serial "###"
   0.828935     [D1] upsdrv_updateinfo...
   1.081258     [D2] libusb_get_interrupt: Connection timed out
   1.081307     [D1] Got 0 HID objects...
   1.081322     [D1] Quick update...
   2.830846     [D1] upsdrv_updateinfo...
   3.084065     [D2] libusb_get_interrupt: Connection timed out
   3.084114     [D1] Got 0 HID objects...
   3.084129     [D1] Quick update...
   4.832685     [D1] upsdrv_updateinfo...
   5.085258     [D2] libusb_get_interrupt: Connection timed out
   5.085305     [D1] Got 0 HID objects...
   5.085319     [D1] Quick update...
   6.834523     [D1] upsdrv_updateinfo...
   7.087756     [D2] libusb_get_interrupt: Connection timed out
   7.087805     [D1] Got 0 HID objects...
   7.087819     [D1] Quick update...
   8.836359     [D1] upsdrv_updateinfo...
   9.089257     [D2] libusb_get_interrupt: Connection timed out
   9.089306     [D1] Got 0 HID objects...
   9.089320     [D1] Quick update...
  10.838198     [D1] upsdrv_updateinfo...
  11.091463     [D2] libusb_get_interrupt: Connection timed out
  11.091510     [D1] Got 0 HID objects...
  11.091525     [D1] Quick update...
  12.840039     [D1] upsdrv_updateinfo...
  13.093250     [D2] libusb_get_interrupt: Connection timed out
  13.093298     [D1] Got 0 HID objects...
  13.093313     [D1] Quick update...
  14.841877     [D1] upsdrv_updateinfo...
  15.095180     [D2] libusb_get_interrupt: Connection timed out
  15.095230     [D1] Got 0 HID objects...
  15.095246     [D1] Quick update...
jimklimov commented 2 years ago

Those "connection timed out" might be a HW problem, or might be a libusb(-0.1) issue. At least, IIRC there were a few reports where switching to libusb-1.0 branches helped. That is currently on trajectory to become part of NUT master branch, but if you're in a hurry - check the fightwarn-libusb-1.0+0.1-sysheaders branch as the currebt pinnacle.

airforceixi commented 2 years ago

@jimklimov I built the fightwarn-libusb-1.0+0.1-sysheaders branch using the same instructions but usbhid-ups appears to still use libusb-0.1:

Network UPS Tools - Generic HID driver 0.43 (2.7.4-4033-g1b39f976)
USB communication driver (libusb 0.1) 0.35
jimklimov commented 2 years ago

Do you have libusb-1.0-dev installed? Distros vary as to how they might call it though...

The new docs/config-prereq.txt lists the prerequisites on a number of platforms used by CI farm, you may want to check suggestions there.

airforceixi commented 2 years ago

@jimklimov I was able to install libusb-1.0-0-dev and build it again. I confirmed it's using libusb 1.0 now but the same issues persist.

jimklimov commented 2 years ago

Wondering if someone else (udev?) might have grabbed the USB device descriptor and not released it to the NUT driver...

Or if there is something about permissions?

Or a systems thing (controller/chipset/... preferring "bulk" I/O vs interrupts)?..

airforceixi commented 2 years ago

I had to modify the udev rules that came with nut to add the PID:VID of this UPS so that the commands would work to the degree they do now. Outside of that, I don't see anything else that could cause this but I'm not a developer so I'm not 100% what to look for. I have this issue with 3 of these UPSes, 2 of them connected to a Raspberry Pi and 1 connected to a laptop (for testing) and both have the same problem, so I don't think it's related to the host.

As mentioned earlier, I can provide access to my testing laptop for someone to inspect/test if there's availability.

airforceixi commented 2 years ago

I was able to install the Liebert Vertiv Power Assist software and that connects and reads the UPS values properly. Maybe that connectivity can be monitored for reverse engineering?

jimklimov commented 2 years ago

After a bit of reading up to refresh my memory, it seems that the pollonly flag might make the difference between interrupt-driven and driver-initiated transfers.

jimklimov commented 2 years ago

Reverse-engineering (by way of snooping on USB wire traffic) should be possible, is occasionally mentioned in issues or PR discussions here, but I haven't done that myself so can't really walk you (or other devs) through that.

What I know is that it's possible, and should be documented somewhere :\