Code Monkey home page Code Monkey logo

Comments (4)

jimklimov avatar jimklimov commented on June 12, 2024

Hello, a couple of quick ideas first:

  • make sure that udev/upower rules got applied (e.g. services restarted, including systemctl restart udev or a reboot), especially if you had make install deliver the NUT rules files and none were present before (as from packaging, earlier release, etc.) - this is often behind permissions issues
  • check also https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests for recently tested hints about building and installing in a systemd-based environment (closer to the end)
  • for CPS-derived devices there's also https://github.com/networkupstools/nut/wiki/CyberPower-Systems-(CPS)-know-how - notably, their controllers tend to go to sleep at inconvenient times (more frequent polling may help)
  • there were also quite a few stability reports with Raspberries involved, still not sure if that is a problem with the platform or testament to its popularity :) It seems RPi3 and RPi5 are involved more frequently than RPi4, for what it's worth...

Also, can you show lsusb -vvv -d 0764:0601 - specifically I wonder what it says where it reports how many "interfaces" it has, with their transfer sizes. Recently more and more devices are on the market whose USB HID interface is not number zero, NUT is catching up with those (master branch recently grew driver options for forcing a custom number, helpful at least for experiments)...

from nut.

mablebee avatar mablebee commented on June 12, 2024

Thanks for your first quick ideas. It seams that if I do a usbreset 0764:0601 before starting the services or manually running usbhid-ups then the connection is established.

I'm currently building the current master and will retry. Meanwhile: here is the output from lsusb -vvv -d 0764:0601

Bus 001 Device 003: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0764 Cyber Power System, Inc.
  idProduct          0x0601 PR1500LCDRT2U UPS
  bcdDevice            2.00
  iManufacturer           3 1
  iProduct                1 3000
  iSerial                 2 000000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     739
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              20
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              20
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

from nut.

jimklimov avatar jimklimov commented on June 12, 2024

Thanks! So it seems there is one descriptor, so at least this part should be pretty normal:

          bDescriptorType        34 Report
          wDescriptorLength     739

from nut.

mablebee avatar mablebee commented on June 12, 2024

OK, so I did a complete fresh reinstall, changed the config files and it's working fine now (and persistently stable through reboots).

I have absolutely no idea what the issue was before - probably a reboot after the make install would have been a good idea.

A Raspberry is now master and there are 2 WinNUT clients (Windows 2022 VMs), 3 Proxmox Servers and two QNAP Systems as slaves configured and working.

Thanks for your help!

from nut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.