<div dir="ltr">Hello,<div><br></div><div>I am trying to get nut running on a Windows 2012 R2 server (x64). I am using the MSI release of 2.6.5-3. The attached UPS is an APC xs1500 (model bx1500g). The connection is an RJ45 to USB cable.</div><div><br></div><div>Here is my ups.conf:</div><div><div>[xs1500]</div><div><span class="" style="white-space:pre">      </span>driver = usbhid-ups</div><div><span class="" style="white-space:pre">        </span>port = auto</div><div><span class="" style="white-space:pre">        </span>desc = "APC Back-UPS xs1500"</div></div><div><br></div><div>The problem I am encountering is upsd crashing with an 'Out of memory' error. I can start usbhid-ups.exe and it will correctly dump variables from the UPS, so communication with the UPS itself seems to work. However, when I try to run 'upsc xs1500', I get the following output from upsd (running with debugging output):</div><div><br></div><div><div>C:\Program Files (x86)\NUT\sbin>upsd -DDDDD</div><div>Network UPS Tools upsd 2.6.5-3723:3731M</div><div>  Â 0.000000 Â  Â  listen_add: added ::1:3493</div><div>  Â 0.000000 Â  Â  listen_add: added <a href="http://127.0.0.1:3493">127.0.0.1:3493</a></div><div>  Â 0.015628 Â  Â  setuptcp: try to bind to 127.0.0.1 port 3493</div><div>  Â 0.031310 Â  Â  listening on 127.0.0.1 port 3493</div><div>  Â 0.031310 Â  Â  setuptcp: try to bind to ::1 port 3493</div><div>  Â 0.031310 Â  Â  listening on ::1 port 3493</div><div>  Â 0.031310 Â  Â  Connected to UPS [xs1500]: usbhid-ups-xs1500</div><div>  Â 0.046874 Â  Â  mainloop: wait for 4 filedescriptors</div><div>  <snip></div><div>  33.390678 Â  Â  mainloop: no data available</div><div>  33.390678 Â  Â  Pinging UPS [xs1500]</div><div>  33.390678 Â  Â  mainloop: wait for 4 filedescriptors</div><div>  33.406254 Â  Â  Got PONG from UPS [xs1500]</div><div>  33.406254 Â  Â  mainloop: wait for 4 filedescriptors</div><div>  34.749994 Â  Â  Out of memory</div></div><div><br></div><div>upsc only shows a generic error:</div><div><br></div><div><div>C:\Program Files (x86)\NUT\bin>upsc xs1500</div><div>Error: Write error: Unknown error</div></div><div><br></div><div>However, usbhid-upd.exe displays the following:</div><div><br></div><div><div>C:\Program Files (x86)\NUT\bin>usbhid-ups.exe -a xs1500 -DD</div><div>Network UPS Tools - Generic HID driver 0.37 (2.6.5-3723:3731M)</div><div>USB communication driver 0.31</div><div>  Â 0.000000 Â  Â  debug level is '2'</div><div>  Â 0.000000 Â  Â  upsdrv_initups...</div><div>  Â 0.000000 Â  Â  Checking device (051D/0002) (bus-0/\\.\libusb0-0001--0x051d-0x0002)</div><div>  Â 0.015628 Â  Â  - VendorID: 051d</div><div>  Â 0.015628 Â  Â  - ProductID: 0002</div><div>  Â 0.031251 Â  Â  - Manufacturer: American Power Conversion</div><div>  Â 0.031251 Â  Â  - Product: Back-UPS BX1500G FW:866.L5 .D USB FW:L5</div><div>  Â 0.031251 Â  Â  - Serial Number: 3B1045X04728</div><div>  Â 0.046933 Â  Â  - Bus: bus-0</div><div>  Â 0.046933 Â  Â  Trying to match device</div><div>  Â 0.062500 Â  Â  Device matches</div><div>  Â 0.091516 Â  Â  HID descriptor length 1133</div><div>  Â 0.092016 Â  Â  Report Descriptor size = 1133</div><div>  Â 0.107654 Â  Â  Using subdriver: APC HID 0.95</div></div><div><snip></div><div><div>  32.094517 Â  Â  upsdrv_updateinfo...</div><div>  32.094517 Â  Â  Got 3 HID objects...</div><div>  32.110104 Â  Â  Quick update...</div><div>  32.813233 Â  Â  Read error : 109</div><div>  34.094483 Â  Â  upsdrv_updateinfo...</div><div>  34.110249 Â  Â  Got 2 HID objects...</div><div>  34.141355 Â  Â  Full update...</div></div><div><br></div><div>I'm not sure if the 'Read error' is indicative of anything, but it occurs exactly when upsd crashes with the 'Out of memory' error.</div><div><br></div><div>Any help here would be greatly appreciated.</div><div><br></div><div>-- <br><div class="gmail_signature">Ryan Sizemore</div><div class="gmail_signature"><br></div>
</div></div>