Код: Выделить всё
[pro1000]
port = auto
driver = blazer_usb
desc = "SVEN PRO 1000 USB"`
проверяю:
Код: Выделить всё
/lib/nut/blazer_usb -DDD -u root -a pro1000
результат:
Код: Выделить всё
Network UPS Tools - Megatec/Q1 protocol USB driver 0.11 (2.7.2)
0.000000 debug level is '3'
0.000314 Checking device (1D6B/0003) (002/001)
0.000349 - VendorID: 1d6b
0.000352 - ProductID: 0003
0.000354 - Manufacturer: Linux 4.4.0-101-generic xhci-hcd
0.000355 - Product: xHCI Host Controller
0.000357 - Serial Number: 0000:00:14.0
0.000358 - Bus: 002
0.000359 Trying to match device
0.000361 Device does not match - skipping
0.000410 Checking device (0001/0000) (001/003)
0.001483 - VendorID: 0001
0.001489 - ProductID: 0000
0.001490 - Manufacturer: unknown
0.001492 - Product: MEC0003
0.001493 - Serial Number: unknown
0.001495 - Bus: 001
0.001496 Trying to match device
0.001498 Device matches
0.002410 Trying megatec protocol...
0.002416 send: Q1
0.005151 received 47 (40)
0.005157 read: (000.0 000.0 000.0 000 00.0 0.00 00.0 00000000
0.005183 Status read in 1 tries
0.005184 Supported UPS detected with megatec protocol
0.005186 send: F
0.006907 received 22 (35)
0.006914 read: #000.0 0.0 00.00 00.0
0.006920 Ratings read in 1 tries
0.006922 send: I
0.009482 received 39 (35)
0.009488 read: #
0.009493 Vendor information read in 1 tries
0.009495 No values provided for battery high/low voltages in ups.conf
0.009498 Using 'guestimation' (low: 0.000000, high: 0.000000)!
0.009500 Battery runtime will not be calculated (runtimecal not set)
0.009506 send: Q1
0.012150 received 47 (40)
0.012156 read: (000.0 000.0 000.0 000 00.0 0.00 00.0 00000000
0.012186 dstate_init: sock /var/run/nut/blazer_usb-pro1000 open on fd 5
0.012194 send: Q1
0.014983 received 47 (40)
0.014989 read: (000.0 000.0 000.0 000 00.0 0.00 00.0 00000000
То есть драйвер определяет устройство, как совместимое с протоколом, но дальше на каждый запрос ответ только 1 - нули. Соответственно, при отключении питания статус с OL на OB не меняется. Система Ubuntu Server 16.04 amd64 с последними обновлениями.