<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m having trouble with the usbhid-ups driver and Windows.  NUT won’t connect to an APC SmartUPS 3000 via USB.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve had good success with NUT and Raspbian as well as NUT and Windows using the tripplitesu driver.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The current system is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Windows 7 Enterprise 64 bit<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">NUT 2.6.5-6 installed from MSI installer downloaded from networkupstools.org<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">libusb-win32-bin-1.2.6.0 installed and appears to work.  <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">APC Smart-UPS 3000 RM XL FW:691.19.D USB FW:7.4 is listed under libusb-win32 devices in device manager.<o:p></o:p></p>
<p class="MsoNormal">testlibusb-win also returns this info along with manufacturer, serial number, bus/device.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">UPS.conf:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  [UPS-0031]<o:p></o:p></p>
<p class="MsoNormal">                driver = usbhid-ups<o:p></o:p></p>
<p class="MsoNormal">                port = auto<o:p></o:p></p>
<p class="MsoNormal">#             vendorid = 051D<o:p></o:p></p>
<p class="MsoNormal">                desc = "UPS-0031"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I try to run UPSDRVCTL this is what I get:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">C:\Program Files (x86)\NUT\bin>upsdrvctl -D start<o:p></o:p></p>
<p class="MsoNormal">Network UPS Tools - UPS driver controller Windows-v2.6.5-5-7-g72f380c<o:p></o:p></p>
<p class="MsoNormal">   0.000000     Starting UPS: UPS-0031<o:p></o:p></p>
<p class="MsoNormal">Network UPS Tools - Generic HID driver 0.38 (Windows-v2.6.5-5-7-g72f380c)<o:p></o:p></p>
<p class="MsoNormal">USB communication driver 0.32<o:p></o:p></p>
<p class="MsoNormal">Can't claim USB device [051d:0002]: libusb0-dll:err [claim_interface] could not<o:p></o:p></p>
<p class="MsoNormal">claim interface 0, win error: The requested resource is in use.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">   0.087000     Driver failed to start (exit status=1)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If the problem is that interface 0 is in use is there a way to direct the NUT driver to claim a different interface?  Is that even the right question to ask?   I’m hoping someone has done this and can point me in the right direction.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I could just buy a Raspberry Pi for this but the Windows box is right there and I feel like I must be close to getting this figured out. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>