В продолжении https://www.linux.org.ru/forum/admin/13554424
Есть ИБП Ippon Innova G2 1000 с VID:PID 06da:ffff. Да, странные VID:PID 06da ffff.
Также есть NUT версии 2.7.2-4ubuntu1.2 и Ubuntu 16.04.3 LTS
alexey@alexey-laptop:~$ uname -a
Linux alexey-laptop 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
alexey@alexey-laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
alexey@alexey-laptop:~$ ls -la /dev/usb/
итого 0
drwxr-xr-x 2 root root 80 фев 14 18:52 .
drwxr-xr-x 22 root root 4580 фев 14 18:54 ..
crw------- 1 root root 180, 1 фев 14 18:51 hiddev1
crw------- 1 root root 180, 2 фев 14 18:52 hiddev2
alexey@alexey-laptop:~$ lsusb
Bus 002 Device 004: ID 1199:9011 Sierra Wireless, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0489:e052 Foxconn / Hon Hai
Bus 001 Device 003: ID 04f2:b2fc Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 06da:ffff Phoenixtec Power Co., Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
alexey@alexey-laptop:~$ sudo lsusb -v -d 06da:ffff
Bus 003 Device 002: ID 06da:ffff Phoenixtec Power Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x06da Phoenixtec Power Co., Ltd
idProduct 0xffff
bcdDevice 1.29
iManufacturer 1 PPC
iProduct 2 HID UPS
iSerial 4 NG21KBKX1DCX00011
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
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.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 1436
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 20
Device Status: 0x0000
(Bus Powered)
После подключения UPS к ноутбуку, dmesg:
[ 43.208153] usb 3-4: new full-speed USB device number 2 using xhci_hcd
[ 43.338851] usb 3-4: New USB device found, idVendor=06da, idProduct=ffff
[ 43.338855] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[ 43.338857] usb 3-4: Product: HID UPS
[ 43.338858] usb 3-4: Manufacturer: PPC
[ 43.338860] usb 3-4: SerialNumber: NG21KBKX1DCX00011
[ 43.339038] usb 3-4: ep 0x81 - rounding interval to 128 microframes, ep desc says 160 microframes
[ 43.348742] hidraw: raw HID events driver (C) Jiri Kosina
[ 43.359926] usbcore: registered new interface driver usbhid
[ 43.359929] usbhid: USB HID core driver
[ 43.377026] hid-generic 0003:06DA:FFFF.0001: hiddev0,hidraw0: USB HID v1.11 Device [PPC HID UPS] on usb-0000:00:14.0-4/input0
Пытался использовать драйвер blazer_usb с таким конфигом /etc/ups/ups.conf:
[ippon]
driver = blazer_usb
port = /dev/usb/hiddev1
vendorid = 06da
productid = ffff
[ippon]
driver = blazer_usb
port = /dev/usb/hiddev2
vendorid = 06da
productid = ffff
[ippon]
driver = blazer_usb
port = auto
vendorid = 06da
productid = ffff
То пишет
alexey@alexey-laptop:~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Megatec/Q1 protocol USB driver 0.11 (2.7.2)
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).
Driver failed to start (exit status=1)
Если добавить строчку subdriver = phoenix, т.е. конфиг /etc/ups/ups.conf приобретет вид:
[ippon]
driver = blazer_usb
port = auto
vendorid = 06da
productid = ffff
subdriver = phoenix
alexey@alexey-laptop:~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Megatec/Q1 protocol USB driver 0.11 (2.7.2)
No supported UPS detected
Driver failed to start (exit status=1)
Если заменить драйвер на nutdrv_qx, то конфиг /etc/ups/ups.conf получится следующий:
[ippon]
driver = nutdrv_qx
port = auto
vendorid = 06da
productid = ffff
alexey@alexey-laptop:~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic Q* USB/Serial driver 0.06 (2.7.2)
USB communication driver 0.32 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 nutdrv_qx).
Driver failed to start (exit status=1)
Если добавить строчку subdriver = phoenix, т.е. конфиг /etc/ups/ups.conf приобретет вид:
[ippon]
driver = nutdrv_qx
port = auto
vendorid = 06da
productid = ffff
subdriver = phoenix
И опять не работает:
alexey@alexey-laptop:~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic Q* USB/Serial driver 0.06 (2.7.2)
USB communication driver 0.32
Startup timer elapsed, continuing...
Device not supported!
Менял порт и на auto и на /dev/usb/hiddev2 и /dev/usb/hiddev1 (один из интерфейсов – аккумулятор ноутбука, а другой должен быть от ИБП).
Так вот хотелось узнать, какой драйвер NUT нужен для UPS Ippon Innova G2 1000 (нет, именно проблема скорее всего в драйвере, так как UPS новый, а кабель USB только что из коробки, где был сам ИБП).