<div dir="ltr">Hi,<br><br>Thanks for all the help. I have a spare pcengines ALIX box lying around and I am going to repurpose that as a dedicated UPS monitoring system.<div><br></div><div>Regards,</div><div>Richard</div></div><br><div class="gmail_quote">On Mon, Apr 6, 2015 at 2:27 PM Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">On Apr 6, 2015, at 8:46 AM, Richard Flint <<a href="mailto:richard.flint@gmail.com" target="_blank">richard.flint@gmail.com</a>> wrote:<br></div><div style="word-wrap:break-word"><div><br><blockquote type="cite">Unfortunately this approach isn't going to work.<div><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I've done some further research and it would appear that it is the underlying ugen device and not libusb that is failing to honor the timeout.</div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://mail-index.netbsd.org/tech-misc/2006/03/17/0000.html" target="_blank">https://mail-index.netbsd.org/tech-misc/2006/03/17/0000.html</a></div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">The person above worked around this by having the device opened in non blocking mode using the <span style="line-height:normal">O_NONBLOCK flag but this required changing libusb</span>.</div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word"><div><div>Unfortunately, the ugen drivers in Solaris, NetBSD, FreeBSD, etc. are similarly named, but not necessarily the same code. At least with the *BSDs, you can inspect the code to see what has changed (and the BSD USB support has improved significantly across the board since 2006 when that message was posted).</div><div><br></div><div>OpenUSB seems to work around the blocking issue by creating a separate timeout thread, so I still think there is some hope there.</div><div><br></div><div>On the other hand, if that doesn't work, I would consider setting up another system dedicated to monitoring the UPS, and setup NUT on Solaris to be a client to the other system. Linux on x86_64 is probably the best supported OS for NUT and a USB UPS, but others have had success with embedded ARM and MIPS Linux systems. I have a Soekris net5501 running FreeBSD monitoring the USB UPS in my home "data center" in the basement, and it has been very reliable: <a href="http://soekris.com/products/net5501.html" target="_blank">http://soekris.com/products/net5501.html</a> (also available in a rack-mount form factor; I have no connection to Soekris other than using their equipment)</div></div></div><div style="word-wrap:break-word"><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br>

</div>
<br></div></blockquote></div>