Dear maintainer,
Here goes the description of a critical bug in the driver for the Riello
UPS SPW 5000 A3 (riello_usb), perhaps affecting other Riello UPS models.
Environment
-----------
Computer with Debian Bookworm 64 bit - USB cable - Riello UPS SPW 5000 A3
# uname -a
Linux nodo1 6.8.8-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.8-4
(2024-07-26T11:15Z) x86_64 GNU/Linux
# lsusb | grep "Cypress"
Bus 001 Device 005: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232
Adapter
# /usr/lib/nut/riello_usb -a accettazione -D
Network UPS Tools - Riello USB driver 0.07 (2.8.0)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 [D1] debug level is '1'
0.007683 [D1] Failed to open device (1D6B/0003), skipping: Access denied
(insufficient permissions)
1.325394 [D1] countlost 0
1.789382 [D1] get_ups_status() -1
1.789502 [D1] countlost 1
1.789514 [D1] Communication with UPS is lost: status read failed!
2.253389 [D1] get_ups_status() -1
3.791129 [D1] countlost 2
3.791157 [D1] Communication with UPS is lost: status read failed!
4.253433 [D1] get_ups_status() -1
5.792704 [D1] countlost 3
5.792729 [D1] Communication with UPS is lost: status read failed!
6.253473 [D1] get_ups_status() -1
7.794325 [D1] countlost 4
7.794353 [D1] Communication with UPS is lost: status read failed!
8.253515 [D1] get_ups_status() -1
Using the older riello_usb driver from debian bullseye (2.7.4):
# /usr/lib/nut/riello_usb -a accettazione -D
Network UPS Tools - Riello USB driver 0.03 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '1'
1.434172 countlost 0
2.122197 get_ups_status() 0
2.586342 countlost 0
3.274223 get_ups_status() 0
4.587291 countlost 0
5.274216 get_ups_status() 0
6.588225 countlost 0
7.274345 get_ups_status() 0
8.589152 countlost 0
9.274338 get_ups_status() 0
10.590081 countlost 0
that's ok, the driver works well.
Seems the bug exists in the riello_usb driver, not in the whole package or
debian version.