Skip to content

riello_usb multiple identical ups USB issue #1744

@shgubar

Description

@shgubar

I have several Riello UPS connected via USB to RPi4. Only one of them works, that is, the problem with all the others. At the same time, I know which bus they are on, as well as the device number.

Is it possible to make device identification for this driver (I saw other posts with similar problems, but for other drivers)?

UPS info:

Riello SEP 1000VA ER

RPi4 info:

System: Raspbian Buster
Linux rasp4 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

NUT Driver info:

riello_usb -h (compiled from nut-master):
Network UPS Tools - Riello USB driver 0.07 (2.8.0.1)

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter
Bus 001 Device 003: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232 Adapter
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ups.conf:

[riello1000]
         driver = riello_usb
         port = auto
         #port = /dev/bus/usb/001/003
         desc = "Riello SEP 1000 ER"
         #device = 003
         #vendor = 04b4
         #productid = 5500
         pollinterval = 15
 
[rps1000]
        driver = riello_usb
        #port = /dev/bus/usb/001/004
        port = auto
        desc = "Riello SEP 1000 ER NP"
        #device = 004
        #vendor = 04b4
        #productid = 5500
        pollinterval = 15

riello_usb -a riello1000 -DD:

Network UPS Tools - Riello USB driver 0.07 (2.8.0.1)
Warning: This is an experimental driver.
Some features may not function correctly.

    0.000000 [D1] debug level is '2'
    0.001899 [D1] Succeeded to become_user(nut): now UID=1002 GID=1002
    0.112263 [D2] Checking device (1D6B/0003) (002/001)
    0.181240 [D1] libusb_open get iManufacturer failed, retrying...
    0.181305 [D1] libusb_open get iManufacturer failed, retrying...
    0.181357 [D1] libusb_open get iManufacturer failed, retrying...
    0.181407 [D1] libusb_open get iProduct failed, retrying...
    0.181462 [D1] libusb_open get iProduct failed, retrying...
    0.181512 [D1] libusb_open get iProduct failed, retrying...
    0.181560 [D1] libusb_open get iSerialNumber failed, retrying...
    0.181607 [D1] libusb_open get iSerialNumber failed, retrying...
    0.181658 [D1] libusb_open get iSerialNumber failed, retrying...
    0.181709 [D2] - VendorID: 1d6b
    0.181756 [D2] - ProductID: 0003
    0.181799 [D2] - Manufacturer: unknown
    0.181842 [D2] - Product: unknown
    0.181884 [D2] - Serial Number: unknown
    0.181931 [D2] - Bus: 002
    0.181977 [D2] - Device: 001
    0.182020 [D2] - Device release number: 0510
    0.182062 [D2] Trying to match device
    0.182109 [D2] Device does not match - skipping
    0.182565 [D2] Checking device (04B4/5500) (001/004)
    0.189681 [D2] - VendorID: 04b4
    0.189738 [D2] - ProductID: 5500
    0.189787 [D2] - Manufacturer: Cypress Semiconductor
    0.189837 [D2] - Product: USB to Serial
    0.189885 [D2] - Serial Number: unknown
    0.189934 [D2] - Bus: 001
    0.189982 [D2] - Device: 004
    0.190033 [D2] - Device release number: 0001

By the way, when 'nut-server' is started, files are created only for one (the last one from the list UPS):

srw-rw---- 1 nut nut 0 дек 26 14:17 riello_usb-rps1000=
-rw-r--r-- 1 nut nut 4 дек 26 14:17 riello_usb-rps1000.pid

As far as I understand, it should be created for everyone UPS.

Please help to connect multiple devices.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RielloRiello UPS devices (serial, usb), usually with a variant of Qx protocolUSBUSB-duplicate-devicesTrack bugs and issues about monitoring several devices that seem identical to NUT or libusb

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions