<div dir="ltr">Hi Charles, and thanks for your suggestion.<div><br></div><div>I tried the nutdrv_qx and moved the rules file like you said, and re-attached the USB. It picked up to begin with, but within 10 minutes it lost the device again.</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">$ sudo upsdrvctl start</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Network UPS Tools - UPS driver controller 2.7.1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Network UPS Tools - Generic Q* USB/Serial driver 0.01 (2.7.1)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">USB communication driver 0.32</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Using protocol: Megatec 0.01</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">No values for battery high/low voltages</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Using 'guesstimation' (low: 10.400000, high: 13.000000)!</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Battery runtime will not be calculated (runtimecal not set)</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p></div><div>After reboot:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">$ upsc apollo-ups@localhost</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Init SSL without certificate database</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">battery.charge: 100</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">battery.voltage: 13.50</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">battery.voltage.high: 13.00</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">battery.voltage.low: 10.40</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">battery.voltage.nominal: 12.0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">device.type: ups</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><a href="http://driver.name">driver.name</a>: nutdrv_qx</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.parameter.pollfreq: 30</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.parameter.pollinterval: 2</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.parameter.port: auto</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.version: 2.7.1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.version.data: Megatec 0.01</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">driver.version.internal: 0.01</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">input.current.nominal: 3.0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">input.frequency: 50.0</p></div><div>(etc)</div><div><br></div><div>Then roughly 10 minutes later</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">Broadcast Message from nut@ubun                                                </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">        (somewhere) at 21:35 ...                                               </p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">                                                                               </p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Communications with UPS apollo-ups@localhost lost                              </p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">                                                                               </p>
<p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">$ upsc apollo-ups@localhost</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Init SSL without certificate database</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Error: Data stale</p></div><div><br></div><div>Not sure what other logs I can provide to try to troubleshoot this?</div><div><br></div><div>Thanks</div><div>Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 January 2015 at 21:04, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> 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"><span class="">On Jan 2, 2015, at 1:07 PM, Mike Raath <<a href="mailto:raathm@gmail.com" target="_blank">raathm@gmail.com</a>> wrote:<br><br><blockquote type="cite">I built a single VM to monitor the UPS (Ubuntu Server 14.04 i386) and installed NUT on the box from the apt packages. I set it up as per the previous box with the blazer_usb driver and all goes well, for a while. Initially, the UPS reports correctly via upsc, but after a while I get the "Data stale" error, and the box is no longer recognised.<br></blockquote><br></span>This same UPS? <a href="http://news.gmane.org/find-root.php?message_id=CA+=8wNMxFBYkT75aw2jePfA+LaKuNXuvDKvYG3t9B8D+ChPwfQ@mail.gmail.com" target="_blank">http://news.gmane.org/find-root.php?message_id=CA%2b%3d8wNMxFBYkT75aw2jePfA%2bLaKuNXuvDKvYG3t9B8D%2bChPwfQ%40mail.gmail.com</a><div><br></div><div>It looks like Ubuntu 14.04 has NUT 2.7.1, so the nutdrv_qx driver is available. It is a replacement for the blazer_* drivers, and should be a superset of the blazer_usb functionality. I would recommend switching, as there shouldn't be many changes necessary: <a href="http://www.networkupstools.org/docs/man/nutdrv_qx.html#_notes_for_the_previous_user_of_blazer_drivers" target="_blank">http://www.networkupstools.org/docs/man/nutdrv_qx.html#_notes_for_the_previous_user_of_blazer_drivers</a></div><div><br>It also looks like the Ubuntu 14.04 package still is affected by a udev-related bug: <a href="https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1099947/comments/4" target="_blank">https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1099947/comments/4</a> If you rename the <span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px;background-color:rgb(255,255,255)">52-nut-usbups.</span><u></u><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px;background-color:rgb(255,255,255)">rules</span> file to <span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px;background-color:rgb(255,255,255)">62-nut-usbups.</span><u></u><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;line-height:18px;background-color:rgb(255,255,255)">rules</span> as indicated in that URL, and unplug and re-plug in the USB cable (or run "udevadm trigger -- subsystem-match=usb"), subsequent driver runs should find the USB device.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><div>-- <br>Charles Lepple<br>clepple@gmail<br><br><br></div><br></div></font></span></div></blockquote></div><br></div>