ups
ups copied to clipboard
Communicating with NUCUPS, but voltages and currents reported as zero
Hi @nicupavel and @mini-box,
Fantastic to have a Linux tool to talk with the mini-box UPSs - good job! I have built and tested. It looks to be communicating with the UPS fine, but has a few issues reading some of the data, such as voltage and current (see logs below). This is possibly connected to the hid_interrupt_read failed with return code -110
error reported but the usb library.
Have tried running with root user and also made sure to stop NUT and processes that might have locked access to the USB interface. (in fact this cleared the error interface 0 already claimed by driver "usbfs", attempting to detach it
I saw initially.)
Is there anything you can suggest we try to correct this?
Thank you for your help.
Cheers,
Adam
$ openups -t nucups -s
Device selected: nucups
Selected device nucups: DC-DC NUC UPS
Found and initialized hid device:
Product: DCDC-NUC UPS, Manufacturer: MINI-BOX.COM, Firmware Version: (null)
hid_interrupt_read failed with return code -110
Read error: -110
hid_interrupt_read failed with return code -110
Read error: -110
Input: 0
Output: 0
Charger Flags: 11521
State Flags: 0
Shutdown Flags: 0
VIn: 0.000000
IOut: 0.000000
VOut:0.000000
VIgnition: 0.000000
POut: 0.000000
Temperature1: 0.000000
Temperature2: 0.000000
Temperature3: 0.000000
Temperature4: 0.000000
BatVoltage1: 3.851000
BatVoltage2: 3.850000
BatVoltage3: 3.852000
BatVoltage4: 3.850000
CellBalanceOn1: 0
CellBalanceOn2: 0
CellBalanceOn3: 0
CellBalanceOn4: 0
CellDetected1: 1
CellDetected2: 1
CellDetected3: 1
CellDetected4: 1
BatOverallVoltage: 15.404000
BatPack: 18.174999
IChgDchg: 0.000000
VerMajor: 0
VerMinor: 0
State: 0
ChargeEndedCondition: 3
BatteryLevel: 99
Mode: 0
CPUUsage: 0
Read configuration
failed to release interface: 0
$ lsusb
...
Bus 001 Device 008: ID 04d8:d007 Microchip Technology, Inc.
...