LINUX.ORG.RU

Избранные сообщения om-nom-nimouse

Помогите подключить NUT с Powercom WOW 1000U

Форум — Admin

Есть UPS Powercom WOW-1000U

# lsusb
...
Bus 004 Device 002: ID 0d9f:00a4 Powercom Co., Ltd WOW Uninterruptible Power Supply (HID PDC) 

Nut версии 2.7.2 под Centos 7.

# dmesg | tail
[99924.596286] usb 4-2: new low-speed USB device number 2 using ohci-pci
[99924.990367] usb 4-2: New USB device found, idVendor=0d9f, idProduct=00a4
[99924.990377] usb 4-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[99924.990383] usb 4-2: Product:   UPS  WOW-1000U FW3.A4
[99924.990388] usb 4-2: Manufacturer: POWERCOM Co.,LTD
[99924.990393] usb 4-2: SerialNumber: 3A4-0000-0001
[99925.024491] hid-generic 0003:0D9F:00A4.0001: hiddev0,hidraw0: USB HID v1.00 Device [POWERCOM Co.,LTD    UPS  WOW-1000U FW3.A4 ] on usb-0000:00:12.1-2/input0
# cat /etc/ups/ups.conf
 [ups]
#driver = powercom
 driver = usbhid-ups
 port = auto
#port = /dev/usb/hiddev0

При запуске утилиты получаю ошибку:

# sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
No matching HID UPS found
Driver failed to start (exit status=1)

Нашла вариант запуска команды от рута:

# upsdrvctl -u root start ups
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32

На сколько поняла из форумов, дальше нужно запустить сервер:

# sudo service nut-server start
Redirecting to /bin/systemctl start nut-server.service
A dependency job for nut-server.service failed. See 'journalctl -xe' for details.

Мануалов толком не нашла, настраиваю по темам форумов, в т.ч. этого.

]# journalctl -xe
июл 16 19:17:57 apollo16 systemd[1]: Dependency failed for Network UPS Tools - power devices information
-- Subject: Ошибка юнита nut-server.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Произошел сбой юнита nut-server.service.
--
-- Результат: dependency.
июл 16 19:17:57 apollo16 systemd[1]: Job nut-server.service/start failed with result 'dependency'.
июл 16 19:17:57 apollo16 systemd[1]: Unit nut-driver.service entered failed state.
июл 16 19:17:57 apollo16 systemd[1]: nut-driver.service failed.
июл 16 19:17:57 apollo16 polkitd[813]: Unregistered Authentication Agent for unix-process:18179:20416609

Это сам ups:

# lsusb -v -d 0d9f:00a4

Bus 004 Device 002: ID 0d9f:00a4 Powercom Co., Ltd WOW Uninterruptible Power Supply (HID PDC)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0d9f Powercom Co., Ltd
  idProduct          0x00a4 WOW Uninterruptible Power Supply (HID PDC)
  bcdDevice            0.01
  iManufacturer           3 POWERCOM Co.,LTD
  iProduct                1   UPS  WOW-1000U FW3.A4
  iSerial                 2 3A4-0000-0001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    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 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     747
         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:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Пробовала в настройка использовать другой порт и другой драйвер, но всегда были ошибки.

Теперь при повторном выполнение команды, появляется ошибка:

# sudo upsdrvctl -u root start ups
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
Can't claim USB device [0d9f:00a4]: No such file or directory
Driver failed to start (exit status=1)

При изменении драйвера - ошибка другая:

# cat /etc/ups/ups.conf

[ups]
driver = powercom
port = auto

# upsdrvctl -u root start ups
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - PowerCom protocol UPS driver 0.14 (2.7.2)

Unable to open auto: No such file or directory

Things to try:

 - Check 'port=' in ups.conf

 - Check owner/permissions of all parts of path

Fatal error: unusable configuration
Driver failed to start (exit status=1)

Если порт поменять на определяемое устройство, выдает такое:

# cat /etc/ups/ups.conf

[ups]
driver = powercom
port = /dev/usb/hiddev0

# upsdrvctl -u root start ups
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - PowerCom protocol UPS driver 0.14 (2.7.2)

Unable to open /dev/usb/hiddev0: No such file or directory

Things to try:

 - Check 'port=' in ups.conf

 - Check owner/permissions of all parts of path

Fatal error: unusable configuration
Driver failed to start (exit status=1)

Для Powercom драйверов всего два. Подскажите, как подключить UPS?

 , ,

manik207
()