Skip to content

Duplicate USB devices don't connect in 2.8.0 #1414

@ProjectInitiative

Description

@ProjectInitiative

OS: Fresh installed raspberry pi OS 64 bit
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye

Build commands used

Built from source with provided instructions. All commands used below:

sudo apt-get install -y make g++ gcc build-essential autoconf gettext m4 libtool libudev-dev automake pkg-config libusb-0.1-4 libusb-1.0-0-dev libsnmp-dev libgd-dev

groupadd nut
useradd -ms /bin/bash ups
usermod -aG nut ups
usermod -aG nut root

mkdir -p /var/run/nut
chown root:nut /var/run/nut
mkdir -p /var/state/ups
chown root:nut /var/state/ups
chmod 0770 /var/state/ups

git clone https://github.com/networkupstools/nut.git
/nut
./autogen.sh
./configure --with-user=ups --with-group=nut --with-usb --with-snmp --with-cgi
make -j $(nproc)
make install

nut-scanner output

sudo /usr/local/ups/bin/nut-scanner
Scanning USB bus.
No start IP, skipping SNMP
No start IP, skipping NUT bus (old connect method)
[nutdev1]
        driver = "usbhid-ups"
        port = "auto"
        vendorid = "0764"
        productid = "0601"
        product = "OR1500LCDRM1U"
        vendor = "CPS"
        bus = "001"
[nutdev2]
        driver = "usbhid-ups"
        port = "auto"
        vendorid = "0764"
        productid = "0601"
        product = "OR1500LCDRM1U"
        vendor = "CPS"
        bus = "001"

Adding this info to /usr/local/ups/etc/ups.conf and running sudo /usr/local/ups/sbin/upsdrvctl -u root start worked in previous versions, connected to both devices.

Presently upsdrvctl returns the following:

Network UPS Tools - UPS driver controller 2.8.0-18-gaaa72bebd
Network UPS Tools - Generic HID driver 0.47 (2.8.0-18-gaaa72bebd)
USB communication driver (libusb 1.0) 0.43
Using subdriver: CyberPower HID 0.6
Network UPS Tools - Generic HID driver 0.47 (2.8.0-18-gaaa72bebd)
USB communication driver (libusb 1.0) 0.43
Can't claim USB device [0764:0601]@0/0: Entity not found
Driver failed to start (exit status=1)

NOTE: only having one UPS plugged in works just fine, the problem only comes up when 2 or more are connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    USBUSB-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