I need help to find a way to start the usbhid-ups driver successfully, i always get a failed status after start of the driver

THX

 

used environment:

  • OS: 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

  • NUT version 2.7.4

  • NUT installation method: apt-get install nut

  • UPS: PowerWalker VI 650 SB

  • problem description, with any relevant traces, like system log excerpts, and driver debug output

  • lsusb
    Bus 001 Device 003: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS

  • cat /etc/nut/ups.conf
    # Set maxretry to 3 by default, this should mitigate race with slow devices:
    maxretry = 3
    [PowerWalker650]
       driver  = usbhid-ups
       port = auto
       desc = "server"
     
  • upsdrvctl start
    Network UPS Tools - UPS driver controller 2.7.4
    Network UPS Tools - Generic HID driver 0.41 (2.7.4)
    USB communication driver 0.33
    No matching HID UPS found
    Driver failed to start (exit status=1)
    Network UPS Tools - Generic HID driver 0.41 (2.7.4)
    USB communication driver 0.33
    No matching HID UPS found
    Driver failed to start (exit status=1)
    Network UPS Tools - Generic HID driver 0.41 (2.7.4)
    USB communication driver 0.33
    No matching HID UPS found
    Driver failed to start (exit status=1)
  • You can obtain the latter using the following command, as root and after having stopped NUT:

    /path/to/driver -DD -a <upsname>
    /lib/nut/usbhid-ups -DD -a PowerWalker650
    Network UPS Tools - Generic HID driver 0.41 (2.7.4)
    USB communication driver 0.33
       0.000000     debug level is '2'
       0.003634     upsdrv_initups...
       0.026290     Checking device (1D6B/0003) (002/001)
       0.043513     - VendorID: 1d6b
       0.044473     - ProductID: 0003
       0.044928     - Manufacturer: unknown
       0.045433     - Product: unknown
       0.045847     - Serial Number: unknown
       0.046276     - Bus: 002
       0.046843     - Device release number: 0419
       0.047250     Trying to match device
       0.047684     Device does not match - skipping
       0.050203     Checking device (0764/0601) (001/003)
       0.053610     - VendorID: 0764
       0.054105     - ProductID: 0601
       0.054620     - Manufacturer: 1
       0.055013     - Product:  650
       0.055434     - Serial Number:
       0.055845     - Bus: 001
       0.056418     - Device release number: 0200
       0.056845     Trying to match device
       0.057251     Device matches
       0.057334     failed to claim USB device: could not claim interface 0: No such file or directory
       0.057475     failed to detach kernel driver from USB device: could not detach kernel driver from interface 0: No route to host
       0.057554     failed to claim USB device: could not claim interface 0: No such file or directory
       0.057600     failed to detach kernel driver from USB device: could not detach kernel driver from interface 0: No route to host
       0.057768     failed to claim USB device: could not claim interface 0: No such file or directory
       0.057825     failed to detach kernel driver from USB device: could not detach kernel driver from interface 0: No route to host
       0.057870     failed to claim USB device: could not claim interface 0: No such file or directory
       0.058006     failed to detach kernel driver from USB device: could not detach kernel driver from interface 0: No route to host
       0.058050     Can't claim USB device [0764:0601]: could not detach kernel driver from interface 0: No route to host

     

_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to