ubuntu 14.04. Пытаюсь подружить NUT c ups (
http://www.eastups.com/en/productshow.aspx?CateId=525&Id=217&PCateId=447) в
этой стране выпускается под брендом
DNS в виде 2х моделей 1500VA и 2000VA. Управляет всем этим балоганом из батарей 8битный микроконтроллер в связке с cy7c63813, который судя по всему не более, чем мост usbhid<-->usart (надо проверить, но лесть туда совсем неохота.. цеплять анализатор и т.д.). Определяется, как hiddev1 (hiddev0 это мыша/keyb).
me@Adam:~$ dmesg | tail
[49020.223386] device eth0 left promiscuous mode
[49020.442249] device eth0 entered promiscuous mode
[49130.038755] usb 3-2: USB disconnect, device number 5
[49133.690216] usb 3-2: new low-speed USB device number 6 using ohci-pci
[49133.859953] usb 3-2: New USB device found, idVendor=0001, idProduct=0000
[49133.859962] usb 3-2: New USB device strings: Mfr=1, Product=1, SerialNumber=1
[49133.859968] usb 3-2: Product: ATCL FOR UPS
[49133.859972] usb 3-2: Manufacturer: ATCL FOR UPS
[49133.859976] usb 3-2: SerialNumber: ATCL FOR UPS
[49133.870086] hid-generic 0003:0001:0000.0005: hiddev0,hidraw2: USB HID v1.11 Device [ATCL FOR UPS ATCL FOR UPS] on usb-0000:00:12.0-2/input0
Со стороны ПК все более, чем убого. Написанная китайцами поделка на делфи.
Итак я поставил nut, добавил в /etc/nut/ups.conf:
[dns]
driver = usbhid-ups
vendorid = 0001
productid = 0000
desc = "DNS"
port = auto
и пробую его подцепить :
sudo /lib/nut/usbhid-ups -a dns -DD
0.771949 Checking device (0001/0000) (003/006)
0.783385 - VendorID: 0001
0.783406 - ProductID: 0000
0.783411 - Manufacturer: ATCL FOR UPS
0.783416 - Product: ATCL FOR UPS
0.783420 - Serial Number: ATCL FOR UPS
0.783425 - Bus: 003
0.783429 Trying to match device
0.783440 Device does not match - skipping
если выбрать другой драйвер, например : blazer_usb.
0.778625 Checking device (0001/0000) (003/006)
0.789890 - VendorID: 0001
0.789920 - ProductID: 0000
0.789930 - Manufacturer: ATCL FOR UPS
0.789939 - Product: ATCL FOR UPS
0.789948 - Serial Number: ATCL FOR UPS
0.789957 - Bus: 003
0.789965 Trying to match device
0.790048 Device matches
0.790073 failed to claim USB device: could not claim interface 0: Device or resource busy
0.790517 detached kernel driver from USB device...
0.795957 Trying megatec protocol...
0.801890 Stall condition cleared
0.801921 blazer_status: short reply
0.801932 Status read 1 failed
0.807886 Stall condition cleared
0.807907 blazer_status: short reply
0.807919 Status read 2 failed
0.813882 Stall condition cleared
0.813913 blazer_status: short reply
0.813924 Status read 3 failed
0.813934 Trying mustek protocol...
0.813959 blazer_status: short reply
0.813968 Status read 1 failed
0.813979 blazer_status: short reply
0.813988 Status read 2 failed
0.813997 blazer_status: short reply
0.814006 Status read 3 failed
0.814014 Trying megatec/old protocol...
0.814024 blazer_status: short reply
0.814033 Status read 1 failed
0.814042 blazer_status: short reply
0.814050 Status read 2 failed
0.814059 blazer_status: short reply
0.814068 Status read 3 failed
0.814076 Trying zinto protocol...
0.819875 Stall condition cleared
0.819889 blazer_status: short reply
0.819894 Status read 1 failed
0.825877 Stall condition cleared
0.825894 blazer_status: short reply
0.825898 Status read 2 failed
0.831884 Stall condition cleared
0.831908 blazer_status: short reply
0.831918 Status read 3 failed
0.831928 No supported UPS detected
так как их подружить ?