<div>Hi,</div><div> </div><div>I've got a question about managing two UPSes under NUT.</div><div> </div><div>I have two similar model APC usb-connected UPSes to work with, but don't know how to manage them simultaneously from under Windows. Long story short, my ups.conf looks like this:</div>
<div> </div><div>--- ups.conf ---</div><div>[ups1]<br> driver= usbhid-ups<br> port= auto<br> serial=AS1054340323<br>[ups2]<br> driver= usbhid-ups<br>
port= auto<br> serial=AS1026662626</div><div>--- ups.conf ---</div><div> </div><div>I tried all the combinations with vendorid, productid, vendor, product as in the manual for usbhid-ups and libusb's test</div><div>
</div><div>--- TestLibUsb ---</div><div>- Manufacturer : American Power Conversion <br>- Product : Smart-UPS X 1500 FW:COM 03.6 / UPS 03.6<br>- Serial Number: AS1054340323</div><div>...</div><div> idVendor: 051Dh<br>
idProduct: 0003h</div><div>...</div><div>- Manufacturer : American Power Conversion <br>- Product : Smart-UPS X 1500 FW:COM 03.0 / UPS 03.1<br>- Serial Number: AS1026662626</div><div>...</div><div> idVendor: 051Dh<br>
idProduct: 0003h</div><div><div>...</div><div>--- TestLibUsb ---</div></div><div> </div><div>and tested them with usbhid-ups -a ups1 or usbhid-ups -a ups2. Moreover, the parameter productid included in the specs in ups.conf caused error: "GenerateConsoleCtrlEvent error : 87".</div>
<div> </div><div>Issuing usbhid-ups -a ups1 or usbhid-ups -a ups2 works, but </div><div> 1. exclusively - I can see only one UPS at a time (trying to run second ups while the first is running gives: "Can't claim USB device [051d:0003]: libusb0-dll:err [claim_interface] could not claim interface 0, win error: The requested resource is in use)</div>
<div> 2. randomly - This means that no matter what I put into ups.conf NUT will pick anything that responds first.</div><div>which eventually is useless.</div><div> </div><div>Thus my question is whether it is an error of usblib or NUT's usbhid-ups and more importantly: how to overcome this?. usblib itself is capable of enumerating the devices that's why I'm issuing my question here.</div>
<div> </div><div>Thanks in advance for help,</div><div>Rafal</div>