I tests the NUT packet with the 5SC 500i ups eaton. It is connected to the turris omnii via the usb connector.
After the connection, create /dev/hidXXXX.
[ 1946.294322] hid-generic 0003:0463:FFFF.0003: hiddev0,hidraw1: USB HID v1.10 Device [EATON Eaton 5SC] on usb-f10f8000.usb3-1.3/input0
This device does not exist for about a one second. Just be gone!
This proves me because the command ups to shutdown the end with a message:
Network UPS Tools - UPS driver controller 3.10-76-gd2caa7d
Network UPS Tools - Generic HID driver 0.41 (3.10-76-gd2caa7d)
USB communication driver 0.33
Can not claim USB device [0463:ffff]: No such file or directory
Driver failed to start (exit status = 1)
Mouse work corectly!? Permanently create /dev/hidraw0.
[ 17.064464] input: Microsoft Comfort Mouse 3000 as /devices/platform/soc/soc:internal-regs/f10f8000.usb3/usb4/4-1/4-1.2/4-1.2:1.0/0003:045E:077B.0001/input/input0
The nut-server package can not create two LISTEN ip1 and LISTEN ip2 commands.
When creating ups.conf, I can not to create commands without the second parameter so “param1 = xxx”!
Such orders are for example:
/lib/nut /usbhid-ups -h
Do not use polling, just use interrupt pipe: -x interruptonly NOK
Number of bytes to read from interrupt pipe : -x interruptsize=value OK