<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="Generator" content="Zarafa WebAccess v7.0.6-32752">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Re Powercom Vanguard driver for nut</title>
<style type="text/css">
body
{
font-family: Arial, Verdana, Sans-Serif ! important;
font-size: 12px;
padding: 5px 5px 5px 5px;
margin: 0px;
border-style: none;
background-color: #ffffff;
}
p, ul, li
{
margin-top: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<p>Hi </p><p>Have been trying to get nut and Powercom Vanguard 2000 ups communicating</p><p> </p><p>in the /lib/udev/rules.d/52-nut-usbups.rules file we have this entry</p><p># PowerCOM VGD - Vanguard - usbhid-ups<br />ATTR{idVendor}=="0d9f", ATTR{idProduct}=="0004", MODE="664", GROUP="nut"</p><p> </p><p>In the /etc/ups/ups.conf</p><p>[UPS]<br /> driver = usbhid-ups<br /> port = /var/lib/ups/hiddev0<br /> productid = 0004<br /><br />When running the command</p><p>upsdrvctl -u nut -DDDDD start</p><p> </p><p>It returns</p><p>Network UPS Tools - UPS driver controller 2.2.2<br />Starting UPS: UPS<br />exec: /sbin/usbhid-ups -a UPS -u nut<br />Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)<br /><br />No matching HID UPS found<br />Driver failed to start (exit status=1)</p><p> </p><p>Nut version</p><p>nut-2.2.2-3.el5</p><p>on kernel</p><p>2.6.18-308.11.1.el5PAE</p><p> </p><p>If we try using the powercom driver it complains it is a usbhid-ups and if we try some of the powercom settings in the ups.conf the usbhid-ups driver rejects them as unknown (ie) model = , linevoltage = ....</p><p> </p><p>lsusb -vd 0d9f:0004|sed -ne '/^\w/p;/\bi/p' returns</p><p>Protocol spec without prior Class and Subclass spec at line 4297<br />Bus 005 Device 002: ID 0d9f:0004 Powercom Co., Ltd<br />Device Descriptor:<br /> idVendor 0x0d9f Powercom Co., Ltd<br /> idProduct 0x0004<br /> iManufacturer 3 POWERCOM Co.,LTD<br /> iProduct 1 HID UPS Battery<br /> iSerial 2 004-0D9F-000<br /> iConfiguration 0<br /> iInterface 0</p><p> </p><p>Run the driver directly on debug level 4</p><p>/sbin/usbhid-ups -DDDD -a UPS</p><p> </p><p>debug level is '4'<br />upsdrv_initups...<br />Checking device (0000/0000) (008/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 008<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0D9F/0004) (005/002)<br />- VendorID: 0d9f<br />- ProductID: 0004<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 005<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (005/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 005<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (006/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 006<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (003/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 003<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (001/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 001<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (002/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 002<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (007/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 007<br />Trying to match device<br />Device does not match - skipping<br />Checking device (0000/0000) (004/001)<br />- VendorID: 0000<br />- ProductID: 0000<br />- Manufacturer: unknown<br />- Product: unknown<br />- Serial Number: unknown<br />- Bus: 004<br />Trying to match device<br />Device does not match - skipping<br />No appropriate HID device found<br />No matching HID UPS found<br /> </p><p>The log shows</p><p>Jul 21 21:32:29 server upsd[3760]: Can't connect to UPS [UPS] (usbhid-ups-UPS): No such file or directory<br />Jul 21 21:32:30 server upsmon[3764]: Poll UPS [UPS@localhost] failed - Driver not connected<br />Jul 21 21:34:35 server upsmon[3764]: UPS UPS@localhost is unavailable</p><p> </p><p>Is there something simple we are missing? Why does it add the UPS stanza to the driver (usbhid-ups-UPS) name and then fail?</p><p>Is there a patch for the usbhid-ups driver to recognise the Vanguard series?</p><p><br />TIA<br /> </p><p>Regards </p><p> </p><p>Compsos</p><p> </p>
</body>
</html>