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.13k stars 355 forks source link

Model: Powercool PC-1000VA not connecting #517

Open lyda opened 6 years ago

lyda commented 6 years ago

I've tried the blazer_usb, nutdrv_qx, nutdrv_atcl_usb drivers but with no success. Searching this repo it seems that the best option is nutdrv_atcl_usb for a Powercool PC-1000VA model, but when I run it with this /etc/nul/ups.conf file:

[fry1000]
    driver = nutdrv_atcl_usb
    vendor = 0001
    desc = "Fry 1000VA UPS"
        port = auto

I have this happen:

# /lib/nut/nutdrv_atcl_usb -DD -a fry1000
Network UPS Tools - 'ATCL FOR UPS' USB driver 1.11 (2.7.4.1)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000 debug level is '2'
   0.001137 Searching for USB device...
Segmentation fault (core dumped)
# /lib/nut/nutdrv_qx -DD -a fry1000
Network UPS Tools - Generic Q* USB/Serial driver 0.29 (2.7.4.1)
USB communication driver (libusb 1.0) 0.02
   0.000000 debug level is '2'
   0.001348 upsdrv_initups...
   0.007621 Checking device (1D6B/0002)
   0.007680 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007805 Checking device (1D6B/0001)
   0.007822 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007847 Checking device (067B/25A1)
   0.007860 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007867 Checking device (1D6B/0002)
   0.007878 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007885 Checking device (1D6B/0001)
   0.007896 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007902 Checking device (1D6B/0002)
   0.007914 Failed to open device, skipping. (Access denied (insufficient permissions))
   0.007924 Checking device (0001/0000)
   0.011196 - VendorID: 0001
   0.011238 - ProductID: 0000
   0.011244 - Manufacturer: unknown
   0.011255 - Product: MEC0003
   0.011260 - Serial Number: unknown
   0.011391 - Bus: 004
   0.011400 - Device release number: 0100
   0.011410 Trying to match device
   0.011475 Device matches
   0.011487 Reading first configuration descriptor
   0.011505 auto detached kernel driver from USB device
   0.011537 Claimed interface 0 successfully
   0.011593 qx_process_answer: short reply (input.voltage)
   0.011609 qx_process_answer: short reply (input.voltage)
   0.011629 qx_process_answer: short reply (input.voltage)
   0.011648 voltronic_qs_protocol: invalid protocol [M]
   0.011663 voltronic_qs_protocol: invalid protocol [M]
   0.011675 voltronic_qs_protocol: invalid protocol [M]
   0.011693 voltronic_qs_hex_protocol: invalid protocol [M]
   0.011706 voltronic_qs_hex_protocol: invalid protocol [M]
   0.011718 voltronic_qs_hex_protocol: invalid protocol [M]
   0.011735 qx_process_answer: short reply (input.voltage)
   0.011747 qx_process_answer: short reply (input.voltage)
   0.011758 qx_process_answer: short reply (input.voltage)
   0.011777 qx_process_answer: short reply (input.voltage)
   0.011789 qx_process_answer: short reply (input.voltage)
   0.011799 qx_process_answer: short reply (input.voltage)
   0.017190 received 47 (40)
   0.023181 received 47 (40)
   0.029256 received 47 (40)
   0.035257 received 47 (40)
   0.035391 qx_process_answer: short reply (ups.firmware.aux)
   0.041184 received 47 (40)
   0.041291 qx_process_answer: short reply (ups.firmware.aux)
   0.047250 received 47 (40)
   0.047359 qx_process_answer: short reply (ups.firmware.aux)
   0.053270 received 47 (40)
   0.059255 received 39 (35)
   0.059380 ups_infoval_set: non significant value [ups.firmware]
   0.065259 received 47 (40)
   0.071254 received 39 (35)
   0.071340 ups_infoval_set: non significant value [ups.firmware]
   0.077258 received 47 (40)
   0.083253 received 39 (35)
   0.083337 ups_infoval_set: non significant value [ups.firmware]
   0.089194 received 47 (40)
   0.089346 qx_process_answer: short reply (ups.firmware)
   0.095254 received 47 (40)
   0.095376 qx_process_answer: short reply (ups.firmware)
   0.101252 received 47 (40)
   0.101366 qx_process_answer: short reply (ups.firmware)
   0.107250 received 47 (40)
   0.107379 Using protocol: Q1 0.07
   0.107425 upsdrv_initinfo...
   0.113259 received 47 (40)
   0.113765 Can't autodetect number of battery packs [-1/0.00]
   0.113792 Battery runtime will not be calculated (runtimecal not set)
   0.113823 upsdrv_updateinfo...
   0.113937 Quick update...
   0.119253 received 47 (40)
   0.119534 dstate_init: sock /var/run/nut/nutdrv_qx-fry1000 open on fd 11
   0.119569 upsdrv_updateinfo...
   0.119580 Quick update...
   0.125248 received 47 (40)
   2.121700 upsdrv_updateinfo...
   2.121762 Quick update...
   2.127060 received 47 (40)
   4.122696 upsdrv_updateinfo...
   4.122745 Quick update...
   4.127874 received 47 (40)
   6.124825 upsdrv_updateinfo...
   6.124887 Quick update...
   6.129681 received 47 (40)
   8.126898 upsdrv_updateinfo...
   8.126955 Quick update...
   8.132433 received 47 (40)
  10.129031 upsdrv_updateinfo...
  10.129094 Quick update...
  10.134305 received 47 (40)
  12.131161 upsdrv_updateinfo...
  12.131225 Quick update...
  12.136111 received 47 (40)
  14.133290 upsdrv_updateinfo...
  14.133352 Quick update...
  14.138932 received 47 (40)
  16.135360 upsdrv_updateinfo...
  16.135416 Quick update...
  16.140688 received 47 (40)
  18.137490 upsdrv_updateinfo...
  18.137553 Quick update...
  18.142500 received 47 (40)
  20.139630 upsdrv_updateinfo...
  20.139687 Quick update...
  20.144391 received 47 (40)
  22.140468 upsdrv_updateinfo...
  22.140536 Quick update...
  22.146198 received 47 (40)
  24.142563 upsdrv_updateinfo...
  24.142613 Quick update...
  24.147967 received 47 (40)
  26.144705 upsdrv_updateinfo...
  26.144763 Quick update...
  26.149849 received 47 (40)
  28.147178 upsdrv_updateinfo...
  28.147241 Quick update...
  28.152609 received 47 (40)
  30.148750 upsdrv_updateinfo...
# Controlled by the ups.frith slack role. DO NOT EDIT.
  30.148814 Quick update...
  30.154480 received 47 (40)
  32.150893 upsdrv_updateinfo...
  32.150949 Full update...
  32.156236 received 47 (40)
  34.153050 upsdrv_updateinfo...
  34.153115 Quick update...
  34.158134 received 47 (40)
  36.155127 upsdrv_updateinfo...
  36.155176 Quick update...
  36.159917 received 47 (40)
  38.156319 upsdrv_updateinfo...
  38.156377 Quick update...
  38.161803 received 47 (40)
# Controlled by the ups.frith slack role. DO NOT EDIT.
  40.158383 upsdrv_updateinfo...
  40.158437 Quick update...
  40.163554 received 47 (40)
  42.160457 upsdrv_updateinfo...
  42.160531 Quick update...
  42.165442 received 47 (40)
  44.161130 upsdrv_updateinfo...
  44.161195 Quick update...
  44.166275 received 47 (40)
# Controlled by the ups.frith slack role. DO NOT EDIT.
  46.163267 upsdrv_updateinfo...
  46.163324 Quick update...
  46.168048 received 47 (40)
  48.165410 upsdrv_updateinfo...
  48.165470 Quick update...
  48.170937 received 47 (40)
  50.167547 upsdrv_updateinfo...
  50.167607 Quick update...
  50.172808 received 47 (40)
  52.169690 upsdrv_updateinfo...
  52.169747 Quick update...
  52.174603 received 47 (40)
  54.171763 upsdrv_updateinfo...
  54.171818 Quick update...
  54.177375 received 47 (40)
  56.173837 upsdrv_updateinfo...
  56.173892 Quick update...
  56.179211 received 47 (40)
^C
root@frith:/etc/nut# vi ups.conf
root@frith:/etc/nut# man nutdrv_atcl_usb
root@frith:/etc/nut# /lib/nut/nutdrv_ -DD -a fry1000
nutdrv_atcl_usb  nutdrv_qx
root@frith:/etc/nut# /lib/nut/nutdrv_atcl_usb -DD -a fry1000
Network UPS Tools - 'ATCL FOR UPS' USB driver 1.11 (2.7.4.1)
Warning: This is an experimental driver.
Some features may not function correctly.

Fatal error: 'subdriver' is not a valid variable name for this driver.

Look in the man page or call this driver with -h for a list of
valid variable names and flags.
root@frith:/etc/nut# vi ups.conf
root@frith:/etc/nut# /lib/nut/nutdrv_atcl_usb -DD -a fry1000
Network UPS Tools - 'ATCL FOR UPS' USB driver 1.11 (2.7.4.1)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000 debug level is '2'
   0.001107 Searching for USB device...
Segmentation fault (core dumped)
root@frith:/etc/nut# vi ups.conf
root@frith:/etc/nut# /lib/nut/nutdrv_atcl_usb -DD -a fry1000
Network UPS Tools - 'ATCL FOR UPS' USB driver 1.11 (2.7.4.1)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000 debug level is '2'
   0.000894 Searching for USB device...
Segmentation fault (core dumped)
root@frith:/etc/nut# man lsusb
root@frith:/etc/nut# lsusb -s 4:2 -v

Bus 004 Device 002: ID 0001:0000 Fry's Electronics
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0001 Fry's Electronics
  idProduct          0x0000
  bcdDevice            1.00
  iManufacturer           0
  iProduct                1 MEC0003
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     624
          Report Descriptor: (length is 624)
            Item(Global): Usage Page, data= [ 0x86 ] 134
                            Power Pages
            Item(Local ): Usage, data= [ 0x04 ] 4
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Usage Page, data= [ 0x84 ] 132
                            Power Device Page
            Item(Local ): Usage, data= [ 0x1e ] 30
                            Flow
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Report ID, data= [ 0x01 ] 1
            Item(Local ): Usage, data= [ 0x1f ] 31
                            Flow ID
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x40 ] 64
                            Config Voltage
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfa 0x00 ] 250
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x42 ] 66
                            Config Frequency
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0xf0 ] 61441
                            System: SI Linear, Unit: Seconds^-1
            Item(Global): Unit Exponent, data= [ 0x00 ] 0
                            Unit Exponent: 0
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x3c ] 60
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x53 ] 83
                            Low Voltage Transfer
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfa 0x00 ] 250
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x54 ] 84
                            High Voltage Transfer
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfa 0x00 ] 250
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0xfd ] 253
                            iManufacturer
            Item(Local ): Usage, data= [ 0xfe ] 254
                            iProduct
            Item(Local ): Usage, data= [ 0xff ] 255
                            iSerialNumber
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x03 ] 3
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Feature, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Global): Usage Page, data= [ 0x84 ] 132
                            Power Device Page
            Item(Local ): Usage, data= [ 0x1e ] 30
                            Flow
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Report ID, data= [ 0x02 ] 2
            Item(Local ): Usage, data= [ 0x1f ] 31
                            Flow ID
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Main  ): Feature, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x40 ] 64
                            Config Voltage
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfa 0x00 ] 250
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x42 ] 66
                            Config Frequency
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0xf0 ] 61441
                            System: SI Linear, Unit: Seconds^-1
            Item(Global): Unit Exponent, data= [ 0x00 ] 0
                            Unit Exponent: 0
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x3c ] 60
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x43 ] 67
                            Config Apparent Power
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 ] 53537
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x44 ] 68
                            Config Active Power
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Unit, data= [ 0x21 0xd1 ] 53537
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3
            Item(Global): Unit Exponent, data= [ 0x07 ] 7
                            Unit Exponent: 7
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x56 ] 86
                            Delay Before Startup
            Item(Global): Report Size, data= [ 0x18 ] 24
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0x10 ] 4097
                            System: SI Linear, Unit: Seconds
            Item(Global): Unit Exponent, data= [ 0x00 ] 0
                            Unit Exponent: 0
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x57 ] 87
                            Delay Before Shutdown
            Item(Global): Report Size, data= [ 0x18 ] 24
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0x10 ] 4097
                            System: SI Linear, Unit: Seconds
            Item(Global): Unit Exponent, data= [ 0x00 ] 0
                            Unit Exponent: 0
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Global): Usage Page, data= [ 0x84 ] 132
                            Power Device Page
            Item(Local ): Usage, data= [ 0x10 ] 16
                            Battery System
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Report ID, data= [ 0x03 ] 3
            Item(Local ): Usage, data= [ 0x11 ] 17
                            Battery System ID
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x02 ] 2
                            Present Status
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage, data= [ 0x6d ] 109
                            Used
            Item(Local ): Usage, data= [ 0x61 ] 97
                            Good
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x02 ] 2
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x06 ] 6
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Local ): Usage, data= [ 0x30 ] 48
                            Voltage
            Item(Global): Report Size, data= [ 0x18 ] 24
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x05 ] 5
                            Unit Exponent: 5
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x36 ] 54
                            Temperature
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0x00 0x01 0x00 ] 65537
                            System: SI Linear, Unit: Kelvin
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x58 ] 88
                            Test
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x06 ] 6
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x02 ] 2
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x58 ] 88
                            Test
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x04 ] 4
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Feature, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Global): Usage Page, data= [ 0x84 ] 132
                            Power Device Page
            Item(Local ): Usage, data= [ 0x16 ] 22
                            Power Converter
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Report ID, data= [ 0x04 ] 4
            Item(Local ): Usage, data= [ 0x17 ] 23
                            Power Converter ID
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x1a ] 26
                            Input
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Local ): Usage, data= [ 0x1b ] 27
                            Input ID
            Item(Local ): Usage, data= [ 0x1f ] 31
                            Flow ID
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x02 ] 2
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x02 ] 2
                            Present Status
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage, data= [ 0x61 ] 97
                            Good
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x07 ] 7
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Local ): Usage, data= [ 0x30 ] 48
                            Voltage
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x05 ] 5
                            Unit Exponent: 5
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x32 ] 50
                            Frequency
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0xf0 ] 61441
                            System: SI Linear, Unit: Seconds^-1
            Item(Global): Unit Exponent, data= [ 0x05 ] 5
                            Unit Exponent: 5
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Local ): Usage, data= [ 0x1c ] 28
                            Output
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Report ID, data= [ 0x05 ] 5
            Item(Local ): Usage, data= [ 0x1d ] 29
                            Output ID
            Item(Local ): Usage, data= [ 0x1f ] 31
                            Flow ID
            Item(Global): Report Size, data= [ 0x04 ] 4
            Item(Global): Report Count, data= [ 0x02 ] 2
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x0f ] 15
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x30 ] 48
                            Voltage
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x21 0xd1 0xf0 0x00 ] 15782177
                            System: SI Linear, Unit: Centimeter^2*Gram*Seconds^-3*Ampere^-1
            Item(Global): Unit Exponent, data= [ 0x05 ] 5
                            Unit Exponent: 5
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x32 ] 50
                            Frequency
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x01 0xf0 ] 61441
                            System: SI Linear, Unit: Seconds^-1
            Item(Global): Unit Exponent, data= [ 0x05 ] 5
                            Unit Exponent: 5
            Item(Global): Logical Maximum, data= [ 0xfe 0xff 0x00 0x00 ] 65534
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x35 ] 53
                            Percent Load
            Item(Global): Report Size, data= [ 0x10 ] 16
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x02 ] 2
                            Present Status
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage, data= [ 0x65 ] 101
                            Overload
            Item(Local ): Usage, data= [ 0x6e ] 110
                            Boost
            Item(Local ): Usage, data= [ 0x6f ] 111
                            Buck
            Item(Global): Report Size, data= [ 0x01 ] 1
            Item(Global): Report Count, data= [ 0x03 ] 3
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Unit, data= [ 0x00 ] 0
                            System: None, Unit: (None)
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Global): Report Size, data= [ 0x05 ] 5
            Item(Global): Report Count, data= [ 0x01 ] 1
            Item(Main  ): Input, data= [ 0x03 ] 3
                            Constant Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Main  ): End Collection, data=none
            Item(Main  ): End Collection, data=none
            Item(Main  ): End Collection, data=none
      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              10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)
clepple commented 6 years ago

despite the bogus USB VID:PID (0001:0000), the USB HID Report Descriptor looks long enough to be real. Please check out this section in the developer docs:

http://new.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers

or if that host is down for some reason: http://networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers

"How to make a new subdriver to support another USB/HID UPS"

zykh commented 6 years ago

What's wrong with nutdrv_qx? It seems to be working, with protocol Q1 and with the krauler subdriver (other MEC0003 devices work with the similar fabula subdriver, but this device apparently doesn't report an 'iManufacturer' string and so it ends up with the krauler one -- you should try them both and see which one works better).

clepple commented 6 years ago

@lyda ignore my previous message; I saw the SI units in the HID descriptor and didn't read the other debug messages.

@zykh is right - the nutdrv_qx output indicates that the driver started its main loop (it will not go into the background if you pass one or more -D flags.

deaddox commented 6 years ago

Hi Did you ever manage to get the PowerCool working with NUT? If so could you share a copy of your config?

jammmyb commented 3 years ago

Any joy on this?

been researching trying to get powercool UPS to talk to NUT under unRAID.

For a cheap effective UPS, it’d be great to get it working!