<div><div>Hi</div><div><br></div><div>I Bought a cheap Plexus 800VA UPS from ebuyer : <a href="http://www.ebuyer.com/product/240319" target="_blank">http://www.ebuyer.com/product/240319</a> to use with my Netgear ReadyNAS duo.</div>
<div><br></div><div>Initial version of NUT was very old and NAS didn't detect it although in the NAS log it said "UPS Disconnected". Syslog did send the following :</div><div><br></div><div>Jan 25 12:46:36 nas-27lfc kernel: usb 1-1: new low speed USB device using uhci_hcd and address 2</div>
<div>Jan 25 12:46:37 nas-27lfc kernel: usb 1-1: configuration #1 chosen from 1 choice</div><div>Jan 25 12:46:39 nas-27lfc kernel: usbcore: registered new driver hiddev</div><div>Jan 25 12:46:39 nas-27lfc kernel: hiddev96: USB HID v1.11 Device [ATCL FOR UPS ATCL FOR UPS] on usb-0000:00:</div>
<div>17.0-1</div><div>Jan 25 12:46:39 nas-27lfc kernel: usbcore: registered new driver usbhid</div><div>Jan 25 12:46:39 nas-27lfc kernel: drivers/usb/input/hid-core.c: v2.6:USB HID core driver</div><div><br></div><div>Installed 2.4.1 using apt and installed in place of initial version</div>
<div><br></div><div>Found various web documents detailing that blazer_usb would probably be the driver to use.</div><div><br></div><div>using usb.conf :</div><div><br></div><div>[UPS]</div><div>driver = blazer_usb</div><div>
port = auto</div><div><br></div><div>and running the driver in debug mode gives the following :</div><div><br></div><div>nas:/etc/nut# /lib/nut/blazer_usb -a UPS -u root -DDD</div><div>Network UPS Tools - Megatec/Q1 protocol USB driver 0.03 (2.4.1)</div>
<div>debug level is '3'</div><div>Checking device (0000/0000) (003/001)</div><div>- VendorID: 0000</div><div>- ProductID: 0000</div><div>- Manufacturer: Linux 2.6.17.14ReadyNAS ehci_hcd</div><div>- Product: EHCI Host Controller</div>
<div>- Serial Number: 0000:00:17.2</div><div>- Bus: 003</div><div>Trying to match device</div><div>Device does not match - skipping</div><div>Checking device (0000/0000) (002/001)</div><div>- VendorID: 0000</div><div>- ProductID: 0000</div>
<div>- Manufacturer: Linux 2.6.17.14ReadyNAS uhci_hcd</div><div>- Product: UHCI Host Controller</div><div>- Serial Number: 0000:00:17.1</div><div>- Bus: 002</div><div>Trying to match device</div><div>Device does not match - skipping</div>
<div>Checking device (0001/0000) (001/003)</div><div>- VendorID: 0001</div><div>- ProductID: 0000</div><div>- Manufacturer: ATCL FOR UPS</div><div>- Product: ATCL FOR UPS</div><div>- Serial Number: ATCL FOR UPS</div><div>
- Bus: 001</div><div>Trying to match device</div><div>Device matches</div><div>failed to claim USB device: could not claim interface 0: Device or resource busy</div><div>detached kernel driver from USB device...</div><div>
Trying megatec protocol...</div><div>send: Q1</div><div>read: error sending control message: Broken pipe</div><div>blazer_status: short reply</div><div>Status read 1 failed</div><div>send: Q1</div><div>read: error sending control message: Broken pipe</div>
<div>blazer_status: short reply</div><div>Status read 2 failed</div><div>send: Q1</div><div>read: error sending control message: Broken pipe</div><div>blazer_status: short reply</div><div>Status read 3 failed</div><div>Trying mustek protocol...</div>
<div>send: QS</div><div>read: QS</div><div>blazer_status: short reply</div><div>Status read 1 failed</div><div>send: QS</div><div>read: QS</div><div>blazer_status: short reply</div><div>Status read 2 failed</div><div>send: QS</div>
<div>read: QS</div><div>blazer_status: short reply</div><div>Status read 3 failed</div><div>Trying megatec/old protocol...</div><div>send: D</div><div>read: D</div><div>blazer_status: short reply</div><div>Status read 1 failed</div>
<div>send: D</div><div>read: D</div><div>blazer_status: short reply</div><div>Status read 2 failed</div><div>send: D</div><div>read: D</div><div>blazer_status: short reply</div><div>Status read 3 failed</div><div>No supported UPS detected</div>
<div><br></div><div>lsusb gives :</div><div><br></div><div>nas:/etc/nut# lsusb</div><div>Bus 003 Device 001: ID 0000:0000</div><div>Bus 002 Device 001: ID 0000:0000</div><div>Bus 001 Device 003: ID 0001:0000 Fry's Electronics</div>
<div>Bus 001 Device 001: ID 0000:0000</div><div><br></div><div>I also tried the usbhid-ups driver in explore mode as some people seemed to think that may work</div><div><br></div><div>[UPS]</div><div>driver = usbhid-ups</div>
<div>vendorid = 0001</div><div>productid = 0000</div><div>desc = "Plexus 800VA USB"</div><div>port = auto</div><div>explore</div><div><br></div><div>nas:/etc/nut# /lib/nut/usbhid-ups -a UPS -u root -DDD</div><div>
Network UPS Tools - Generic HID driver 0.34 (2.4.1)</div><div>USB communication driver 0.31</div><div>debug level is '3'</div><div>upsdrv_initups...</div><div>Checking device (0000/0000) (003/001)</div><div>- VendorID: 0000</div>
<div>- ProductID: 0000</div><div>- Manufacturer: Linux 2.6.17.14ReadyNAS ehci_hcd</div><div>- Product: EHCI Host Controller</div><div>- Serial Number: 0000:00:17.2</div><div>- Bus: 003</div><div>Trying to match device</div>
<div>Device does not match - skipping</div><div>Checking device (0000/0000) (002/001)</div><div>- VendorID: 0000</div><div>- ProductID: 0000</div><div>- Manufacturer: Linux 2.6.17.14ReadyNAS uhci_hcd</div><div>- Product: UHCI Host Controller</div>
<div>- Serial Number: 0000:00:17.1</div><div>- Bus: 002</div><div>Trying to match device</div><div>Device does not match - skipping</div><div>Checking device (0001/0000) (001/003)</div><div>- VendorID: 0001</div><div>- ProductID: 0000</div>
<div>- Manufacturer: ATCL FOR UPS</div><div>- Product: ATCL FOR UPS</div><div>- Serial Number: ATCL FOR UPS</div><div>- Bus: 001</div><div>Trying to match device</div><div>Device matches</div><div>HID descriptor, method 1: (9 bytes) => 09 21 11 01 00 01 22 20 00</div>
<div>HID descriptor, method 2: (9 bytes) => 09 21 11 01 00 01 22 20 00</div><div>HID descriptor length 32</div><div>Report Descriptor size = 32</div><div>Report Descriptor: (32 bytes) => 06 a0 ff 09 01 a1 01 09 03 15 00 25 01 75</div>
<div> 08 95 08 81 02 09 04 15 00 25 01 75 08 95 08 91 02 c0</div><div>Using subdriver: EXPLORE HID 0.1</div><div>Can't retrieve Report 0: Broken pipe</div><div>Path: ffa00001.ffa00003, Type: Input, ReportID: 0x00, Offset: 0, Size: 8</div>
<div>Can't retrieve Report 0: Broken pipe</div><div>Path: ffa00001.ffa00004, Type: Output, ReportID: 0x00, Offset: 0, Size: 8</div><div>Report descriptor retrieved (Reportlen = 32)</div><div>Found HID device</div><div>
Detected a UPS: ATCL FOR UPS/ATCL FOR UPS</div><div>upsdrv_initinfo...</div><div>upsdrv_updateinfo...</div><div>file_report_buffer: expected 0 bytes, but got 128!</div><div>Report[err]: (128 bytes) => 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00</div>
<div> 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01</div><div> 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00</div><div> 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00</div>
<div> 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00</div><div> 00 00 00 00 01 00 00 00 00 00 00 00</div><div>HIDGetEvents: failed to buffer report: Numerical result out of range</div><div>Got -34 HID objects...</div>
<div>Quick update...</div><div>dstate_init: sock /var/run/nut/usbhid-ups-UPS open on fd 5</div><div>upsdrv_updateinfo...</div><div>file_report_buffer: expected 0 bytes, but got 128!</div><div>Report[err]: (128 bytes) => 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00</div>
<div> 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01</div><div> 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00</div><div> 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00</div>
<div> 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00</div><div> 00 00 00 00 01 00 00 00 00 00 00 00</div><div>HIDGetEvents: failed to buffer report: Numerical result out of range</div><div>Got -34 HID objects...</div>
<div>Quick update...</div><div>Signal 2: exiting</div><div>upsdrv_cleanup...</div><div><br></div><div>this last section keeps repeating ad infinitum</div><div><br></div><div>I did also download the source for nut-2.6 and compiled it. Using the drivers from that version I get a similar result :</div>
<div><br></div><div>nas:/etc/nut# /usr/local/ups/bin/usbhid-ups -a plexus -u root -DDDDDD</div><div>Network UPS Tools - Generic HID driver 0.35 (2.6.0)</div><div>USB communication driver 0.31</div><div> 0.000000 debug level is '6'</div>
<div> 0.008437 upsdrv_initups...</div><div> 0.013888 Checking device (0000/0000) (003/001)</div><div> 0.014529 - VendorID: 0000</div><div> 0.014730 - ProductID: 0000</div><div> 0.014890 - Manufacturer: Linux 2.6.17.14ReadyNAS ehci_hcd</div>
<div> 0.015050 - Product: EHCI Host Controller</div><div> 0.015190 - Serial Number: 0000:00:17.2</div><div> 0.015351 - Bus: 003</div><div> 0.015491 Trying to match device</div><div> 0.016072 Device does not match - skipping</div>
<div> 0.016353 Checking device (0000/0000) (002/001)</div><div> 0.016854 - VendorID: 0000</div><div> 0.017054 - ProductID: 0000</div><div> 0.017214 - Manufacturer: Linux 2.6.17.14ReadyNAS uhci_hcd</div>
<div> 0.017375 - Product: UHCI Host Controller</div><div> 0.017515 - Serial Number: 0000:00:17.1</div><div> 0.017675 - Bus: 002</div><div> 0.017816 Trying to match device</div><div> 0.018076 Device does not match - skipping</div>
<div> 0.018277 Checking device (0001/0000) (001/003)</div><div> 0.059018 - VendorID: 0001</div><div> 0.062545 - ProductID: 0000</div><div> 0.065952 - Manufacturer: ATCL FOR UPS</div><div> 0.069319 - Product: ATCL FOR UPS</div>
<div> 0.072685 - Serial Number: ATCL FOR UPS</div><div> 0.076152 - Bus: 001</div><div> 0.079459 Trying to match device</div><div> 0.083206 Device matches</div><div> 0.102265 HID descriptor, method 1: (9 bytes) => 09 21 11 01 00 01 22 20 00</div>
<div> 0.105872 i=0, extra[i]=09, extra[i+1]=21</div><div> 0.110180 HID descriptor, method 2: (9 bytes) => 09 21 11 01 00 01 22 20 00</div><div> 0.113387 HID descriptor length 32</div><div> 0.124890 Report Descriptor size = 32</div>
<div> 0.128417 Report Descriptor: (32 bytes) => 06 a0 ff 09 01 a1 01 09 03 15 00 25 01 75</div><div> 0.131964 08 95 08 81 02 09 04 15 00 25 01 75 08 95 08 91 02 c0</div><div> 0.137816 Using subdriver: EXPLORE HID 0.1</div>
<div> 0.141102 Entering libusb_get_report</div><div> 0.148517 Can't retrieve Report 00: Broken pipe</div><div> 0.152705 hid_lookup_path: ffa00001 -> not found in lookup table</div><div> 0.156212 hid_lookup_path: ffa00003 -> not found in lookup table</div>
<div> 0.159659 Path: ffa00001.ffa00003, Type: Input, ReportID: 0x00, Offset: 0, Size: 8</div><div> 0.163026 Entering libusb_get_report</div><div> 0.170641 Can't retrieve Report 00: Broken pipe</div>
<div>
0.174068 hid_lookup_path: ffa00001 -> not found in lookup table</div><div> 0.175832 hid_lookup_path: ffa00004 -> not found in lookup table</div><div> 0.177395 Path: ffa00001.ffa00004, Type: Output, ReportID: 0x00, Offset: 0, Size: 8</div>
<div> 0.179279 send_to_all: SETINFO ups.mfr "ATCL FOR UPS"</div><div> 0.181884 send_to_all: SETINFO ups.model "ATCL FOR UPS"</div><div> 0.188277 send_to_all: SETINFO ups.serial "ATCL FOR UPS"</div>
<div> 0.189980 send_to_all: SETINFO ups.vendorid "0001"</div><div> 0.191663 send_to_all: SETINFO ups.productid "0000"</div><div> 0.193186 Report descriptor retrieved (Reportlen = 32)</div>
<div> 0.197435 Found HID device</div><div> 0.200762 Detected a UPS: ATCL FOR UPS/ATCL FOR UPS</div><div> 0.204569 find_nut_info: unknown info type: load.off.delay</div><div> 0.208397 find_nut_info: unknown info type: load.on.delay</div>
<div> 0.210040 find_nut_info: unknown info type: load.off.delay</div><div> 0.211703 send_to_all: SETINFO device.type "ups"</div><div> 0.213387 send_to_all: SETINFO driver.version "2.6.0"</div>
<div> 0.215190 send_to_all: SETINFO driver.version.internal "0.35"</div><div> 0.216854 send_to_all: SETINFO <a href="http://driver.name/" target="_blank">driver.name</a> "usbhid-ups"</div>
<div>
0.218437 upsdrv_initinfo...</div><div> 0.220060 send_to_all: SETINFO driver.version.data "EXPLORE HID 0.1"</div><div> 0.221784 send_to_all: SETINFO driver.parameter.pollfreq "30"</div>
<div> 0.223387 upsdrv_updateinfo...</div><div> 0.485812 libusb_get_interrupt: Connection timed out</div><div> 0.486032 Got 0 HID objects...</div><div> 0.486212 Quick update...</div><div> 0.486453 send_to_all: SETINFO ups.status "OB"</div>
<div> 0.486734 send_to_all: DATAOK</div><div> 0.487535 dstate_init: sock /var/state/ups/usbhid-ups-plexus open on fd 5</div><div> 0.487836 send_to_all: SETINFO driver.parameter.pollinterval "2"</div>
<div> 0.488096 send_to_all: SETINFO device.mfr "ATCL FOR UPS"</div><div> 0.488337 send_to_all: SETINFO device.model "ATCL FOR UPS"</div><div> 0.488597 send_to_all: SETINFO device.serial "ATCL FOR UPS"</div>
<div> 0.488778 upsdrv_updateinfo...</div><div> 0.745691 libusb_get_interrupt: Connection timed out</div><div> 0.745932 Got 0 HID objects...</div><div> 0.746092 Quick update...</div><div> 2.313347 Signal 2: exiting</div>
<div> 2.313607 upsdrv_cleanup...</div><div><br></div><div>using Blazer_usb on 2.6 gives virtually the same output as 2.4.1</div><div><br></div><div>Any ideas?</div><div><br></div></div>