[Nut-upsuser] Can't get CyberPower UPS to work with Raspberry Pi 4

Robert Stocker kneadtoknow at gmail.com
Wed Oct 21 20:27:33 BST 2020


I've searched the listserv archive, to no avail, so I hope I'm not
duplicating a previous problem. I am anxious to get this working, so I'm
open to uninstalling what I have and starting over.

One note which may not be meaningful is that this UPS pre-dates the
Raspberry Pi I've got connected to it, and I used to use it with the
CyberPower software, which requires logging in with a username and
password. I have no idea if that figures into the problems I'm having.

Here are my specs:
OS:

Operating System:	 Raspbian GNU/Linux 10 (buster)
Kernel name & release:	 Linux 5.4.51-v7l+
Kernel version:		 #1333 SMP Mon Aug 10 16:51:40 BST 2020

exact NUT version:
Network UPS Tools 2.7.3, according to the last line of man ups

NUT installation method: from source tarball, package or Subversion,
installed from package with apt-get install, using a scripted install from
the Raspberry Pi forums (found here:
https://www.raspberrypi.org/forums/viewtopic.php?t=240651&p=1508882#p1508882
)

exact device name and related information (manufacturing date, web
pointers, …)
lsusb reports: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Actual model number is CST135LXU according to the device's labeling. Here's
the web page:
https://www.cyberpowersystems.com/product/ups/battery-backup/cst135xlu/

complete problem description, with any relevant traces, like system log
excerpts, and driver debug output. You can obtain the latter using the
following command, as root and after having stopped NUT:
/path/to/driver -DD -a <upsname>

After installing and rebooting, running ups-info returns:
Unable to retrieve UPS information

All attempts to use commands like upsc, upscmd, upsrw result in:
Error: Connection failure: Connection refused

Here is the first portion of the output from sudo /lib/nut/usbhid-ups -DD
-a <upsname>. I've tried letting the command run to completion, but it
doesn't seem to have an end.

Network UPS Tools - Generic HID driver 0.41 (2.7.4)
USB communication driver 0.33
   0.000000 debug level is '2'
   0.001167 upsdrv_initups...
   0.002216 Checking device (0080/A001) (002/039)
   0.002339 - VendorID: 0080
   0.002368 - ProductID: a001
   0.002393 - Manufacturer: unknown
   0.002422 - Product: unknown
   0.002449 - Serial Number: unknown
   0.002472 - Bus: 002
   0.002502 - Device release number: 0104
   0.002529 Trying to match device
   0.002562 Device does not match - skipping
   0.002603 Checking device (0080/A001) (002/038)
   0.002675 - VendorID: 0080
   0.002708 - ProductID: a001
   0.002736 - Manufacturer: unknown
   0.002765 - Product: unknown
   0.002794 - Serial Number: unknown
   0.002820 - Bus: 002
   0.002848 - Device release number: 0104
   0.002876 Trying to match device
   0.002904 Device does not match - skipping
   0.002945 Checking device (0764/0501) (001/003)
   0.009394 - VendorID: 0764
   0.009440 - ProductID: 0501
   0.009471 - Manufacturer: CPS
   0.009498 - Product: CST135XLU
   0.009527 - Serial Number: CR7EO2003120
   0.009553 - Bus: 001
   0.009582 - Device release number: 0200
   0.009613 Trying to match device
   0.009653 Device matches
   0.012189 HID descriptor length 487
   0.014668 Report Descriptor size = 487
   0.015155 Using subdriver: CyberPower HID 0.4
   0.015195 57 HID objects found
   0.017434 Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01,
Offset: 0, Size: 8, Value: 1
   0.018157 Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID:
0x02, Offset: 0, Size: 8, Value: 2
   0.018908 Path: UPS.PowerSummary.ff0100d0, Type: Feature, ReportID: 0x1b,
Offset: 0, Size: 8, Value: 5
   0.019665 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x03, Offset: 0, Size: 8, Value: 4
   0.020428 Path: UPS.PowerSummary.iOEMInformation, Type: Feature,
ReportID: 0x04, Offset: 0, Size: 8, Value: 3
   0.021156 Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID:
0x05, Offset: 0, Size: 8, Value: 1
   0.021916 Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID:
0x06, Offset: 0, Size: 8, Value: 2
   0.022902 Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID:
0x07, Offset: 0, Size: 8, Value: 100
   0.022953 Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature,
ReportID: 0x07, Offset: 8, Size: 8, Value: 5
   0.022992 Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature,
ReportID: 0x07, Offset: 16, Size: 8, Value: 10
   0.023031 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature,
ReportID: 0x07, Offset: 24, Size: 8, Value: 20
   0.023071 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature,
ReportID: 0x07, Offset: 32, Size: 8, Value: 10
   0.023107 Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature,
ReportID: 0x07, Offset: 40, Size: 8, Value: 100
   0.025413 Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
ReportID: 0x08, Offset: 0, Size: 8, Value: 100
   0.025452 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
ReportID: 0x08, Offset: 0, Size: 8, Value: 100
   0.025493 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID:
0x08, Offset: 8, Size: 16, Value: 8070
   0.025531 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID:
0x08, Offset: 8, Size: 16, Value: 8070
   0.025569 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input,
ReportID: 0x08, Offset: 24, Size: 16, Value: 300
   0.025607 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature,
ReportID: 0x08, Offset: 24, Size: 16, Value: 300
   0.028203 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID:
0x09, Offset: 0, Size: 8, Value: 24
   0.028919 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a,
Offset: 0, Size: 8, Value: 24
   0.029666 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.029705 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.029741 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input,
ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.029778 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
   0.029815 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input,
ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
   0.029850 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
   0.029886 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.029921 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.029956 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.029991 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
   0.030026 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type:
Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
   0.030062 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
   0.032423 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.032468 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.033154 Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID:
0x0d, Offset: 0, Size: 8, Value: 3
   0.033910 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e,
Offset: 0, Size: 8, Value: 120
   0.034656 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset:
0, Size: 16, Value: 120
   0.035409 Path: UPS.Output.LowVoltageTransfer, Type: Feature, ReportID:
0x10, Offset: 0, Size: 16, Value: 100
   0.035450 Path: UPS.Output.LowVoltageTransfer, Type: Input, ReportID:
0x10, Offset: 0, Size: 16, Value: 100
   0.035487 Path: UPS.Output.HighVoltageTransfer, Type: Feature, ReportID:
0x10, Offset: 16, Size: 16, Value: 139
   0.035523 Path: UPS.Output.HighVoltageTransfer, Type: Input, ReportID:
0x10, Offset: 16, Size: 16, Value: 139
   0.036156 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12,
Offset: 0, Size: 16, Value: 136
   0.036904 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13,
Offset: 0, Size: 8, Value: 5
   0.037655 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset:
0, Size: 8, Value: 6
   0.037691 Path: UPS.Output.Test, Type: Input, ReportID: 0x14, Offset: 0,
Size: 8, Value: 6
   0.038407 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.039156 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID:
0x16, Offset: 0, Size: 16, Value: -60
   0.039904 Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset:
0, Size: 1, Value: 0
   0.039941 Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17,
Offset: 1, Size: 1, Value: 0
   0.040657 Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID:
0x18, Offset: 0, Size: 16, Value: 810
   0.041407 Path: UPS.Output.ConfigApparentPower, Type: Feature, ReportID:
0x19, Offset: 0, Size: 16, Value: 1350
   0.042160 Path: UPS.Output.ff010043, Type: Feature, ReportID: 0x1a,
Offset: 0, Size: 8, Value: 1
   0.042202 Path: UPS.Output.ff010043, Type: Input, ReportID: 0x1a, Offset:
0, Size: 8, Value: 1
   0.042909 Path: UPS.ff0100ba.ff0100bb, Type: Feature, ReportID: 0x1c,
Offset: 0, Size: 16, Value: 0
   0.042948 Path: UPS.ff0100ba.ff0100bc, Type: Feature, ReportID: 0x1c,
Offset: 16, Size: 8, Value: 0
   0.042986 Path: UPS.ff0100ba.ff0100bd, Type: Feature, ReportID: 0x1c,
Offset: 24, Size: 16, Value: 0
   0.043038 Report descriptor retrieved (Reportlen = 487)
   0.043065 Found HID device
   0.043095 Detected a UPS: CPS/CST135XLU
   0.043179 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x03, Offset: 0, Size: 8, Value: 4
   0.046444 Path: UPS.PowerSummary.iOEMInformation, Type: Feature,
ReportID: 0x04, Offset: 0, Size: 8, Value: 3
   0.047953 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature,
ReportID: 0x07, Offset: 24, Size: 8, Value: 20
   0.048014 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature,
ReportID: 0x07, Offset: 32, Size: 8, Value: 10
   0.048067 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
ReportID: 0x08, Offset: 0, Size: 8, Value: 100
   0.048122 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID:
0x08, Offset: 8, Size: 16, Value: 8070
   0.048171 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature,
ReportID: 0x08, Offset: 24, Size: 16, Value: 300
   0.048221 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID:
0x09, Offset: 0, Size: 8, Value: 24
   0.048268 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0a,
Offset: 0, Size: 8, Value: 24
   0.048323 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x13,
Offset: 0, Size: 8, Value: 5
   0.048370 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.048418 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset:
0, Size: 8, Value: 6
   0.048468 Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID:
0x18, Offset: 0, Size: 16, Value: 810
   0.048541 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID:
0x16, Offset: 0, Size: 16, Value: -60
   0.048587 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.048643 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.048691 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.048735 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.048775 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
   0.048820 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type:
Feature, ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
   0.048863 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
Type: Feature, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
   0.048907 Path: UPS.Output.Boost, Type: Feature, ReportID: 0x17, Offset:
0, Size: 1, Value: 0
   0.048948 Path: UPS.Output.Overload, Type: Feature, ReportID: 0x17,
Offset: 1, Size: 1, Value: 0
   0.048989 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x0e,
Offset: 0, Size: 8, Value: 120
   0.049036 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x0f, Offset:
0, Size: 16, Value: 120
   0.049096 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x12,
Offset: 0, Size: 16, Value: 136
   0.049146 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset:
0, Size: 8, Value: 6
   0.049188 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset:
0, Size: 8, Value: 6
   0.049230 Path: UPS.Output.Test, Type: Feature, ReportID: 0x14, Offset:
0, Size: 8, Value: 6
   0.049274 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.049317 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID:
0x16, Offset: 0, Size: 16, Value: -60
   0.049359 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.049408 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.049450 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.049492 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.049535 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.049576 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 1
   0.049637 upsdrv_initinfo...
   0.049673 upsdrv_updateinfo...
   0.051177 Got 6 HID objects...
   0.051241 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.051285 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.051322 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input,
ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.051361 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
   0.051400 Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input,
ReportID: 0x0b, Offset: 4, Size: 1, Value: 1
   0.051439 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
Type: Input, ReportID: 0x0b, Offset: 5, Size: 1, Value: 0
   0.051472 Quick update...
   0.051509 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID:
0x16, Offset: 0, Size: 16, Value: -60
   0.051546 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.051582 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.051615 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.051648 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.051682 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
   0.051857 dstate_init: sock /var/run/nut/usbhid-ups-pbx open on fd 5
   0.051935 upsdrv_updateinfo...
   0.302816 libusb_get_interrupt: Connection timed out
   0.302906 Got 0 HID objects...
   0.302979 Quick update...
   0.303033 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID:
0x16, Offset: 0, Size: 16, Value: -60
   0.303060 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID:
0x15, Offset: 0, Size: 16, Value: -60
   0.303120 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x0b, Offset: 0, Size: 1, Value: 1
   0.303194 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature,
ReportID: 0x0b, Offset: 1, Size: 1, Value: 0
   0.303261 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0b, Offset: 2, Size: 1, Value: 0
   0.303334 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature,
ReportID: 0x0b, Offset: 3, Size: 1, Value: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20201021/9a4bb7d5/attachment-0001.html>


More information about the Nut-upsuser mailing list