networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.11k stars 352 forks source link

Ippon BackPower Pro II 800 not supported by blazer_usb #742

Open evilangel-ru opened 5 years ago

evilangel-ru commented 5 years ago

Ippon BackPower Pro II 800

Looks like new version of Ippon BackPower 800 doesn't work correctly with blazer_usb driver.

ups.conf

maxretry = 3

[bckpwr_800]
driver=blazer_usb
port = auto
desc = "Ippon Back Power Pro II 800"
sudo service nut-server status
nut-server.service - Network UPS Tools - power devices information server
   Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-11-23 01:08:13 MSK; 4min 23s ago
  Process: 31871 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
 Main PID: 31878 (upsd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/nut-server.service
           └─31878 /lib/nut/upsd

Nov 23 01:08:13 hpe systemd[1]: Starting Network UPS Tools - power devices information server...
Nov 23 01:08:13 hpe upsd[31871]: fopen /var/run/nut/upsd.pid: No such file or directory
Nov 23 01:08:13 hpe upsd[31871]: listening on 127.0.0.1 port 3493
Nov 23 01:08:13 hpe upsd[31871]: listening on 127.0.0.1 port 3493
Nov 23 01:08:13 hpe upsd[31871]: Can't connect to UPS [bckpwr_800] (blazer_usb-bckpwr_800): No such file or directory
Nov 23 01:08:13 hpe upsd[31871]: Can't connect to UPS [bckpwr_800] (blazer_usb-bckpwr_800): No such file or directory
Nov 23 01:08:13 hpe upsd[31878]: Startup successful
Nov 23 01:08:13 hpe systemd[1]: Started Network UPS Tools - power devices information server.
sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer_usb).
Temtaime commented 4 years ago

Same here.

Bus 001 Device 002: ID 06da:ffff Phoenixtec Power Co., Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x06da Phoenixtec Power Co., Ltd
  idProduct          0xffff
  bcdDevice            0.03
  iManufacturer           1 PPC
  iProduct                2 Offline UPS
  iSerial                 4 000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     495
         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     0x0008  1x 8 bytes
        bInterval             100
Device Status:     0x0000
  (Bus Powered)

But seems that it works with usbhid-ups driver. But this driver detects too few values.