<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">Hope this helps.</span></blockquote><div><br></div><div>It did - thanks! I managed to hack around a bit earlier and did produce the driver binary but thought I would try from fresh with your steps and got the binary.</div><div><br></div><div>Unfortunately the problem is still there... after a while connection is lost, updates stop, and upsc reports stale data. Log attached.</div><div><br></div><div>What I'm thinking now is that I should run a cron job that regularly (every 5 minutes?) restarts the driver. Just killing and restarting nutdrv_qx doesn't work though, since the new process fails with unsupported device errors. Ideally what I need is for the USB driver to reattach itself in the cron and I think that would probably work. It's a hack, but should probably work. No idea where to start on this though. Let me know if you think I'm barking up the wrong tree.</div><div><br></div><div>Â </div></div>
</div>Something that puzzles me - when I restart the driver after a disconnect, this is a typical output from the driver with -DDDDD log level. It clearly can see, but not communicate with, the UPS. I've pasted it inline rather than gzipped it because it's short output. Hope that's ok within the forum.<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">$ sudo ~/nut/nut/drivers/nutdrv_qx -a apollo-ups -DDDDD</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Network UPS Tools - Generic Q* USB driver 0.12 (2.7.2-signed-142-gbcaa206)</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">Â Â 0.000000<span class="" style="white-space:pre"> </span>debug level is '5'</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 0.001382<span class="" style="white-space:pre"> </span>upsdrv_initups...</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 0.037904<span class="" style="white-space:pre"> </span>Checking device (0665/5161) (002/004)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.031424<span class="" style="white-space:pre"> </span>- VendorID: 0665</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.031937<span class="" style="white-space:pre"> </span>- ProductID: 5161</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.032277<span class="" style="white-space:pre"> </span>- Manufacturer: unknown</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.032583<span class="" style="white-space:pre"> </span>- Product: WayTech USB-RS232 Interface (V1.0)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Baud rate 2400bps</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.032743<span class="" style="white-space:pre"> </span>- Serial Number: unknown</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.032854<span class="" style="white-space:pre"> </span>- Bus: 002</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.032963<span class="" style="white-space:pre"> </span>Trying to match device</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.033077<span class="" style="white-space:pre"> </span>Device matches</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.033218<span class="" style="white-space:pre"> </span>nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.033353<span class="" style="white-space:pre"> </span>send_to_all: SETINFO ups.vendorid "0665"</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.033473<span class="" style="white-space:pre"> </span>send_to_all: SETINFO ups.productid "5161"</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 1.058070<span class="" style="white-space:pre"> </span>send: QGS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 2.060333<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 2.060857<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 2.080004<span class="" style="white-space:pre"> </span>send: QGS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 3.083062<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 3.083557<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 3.103189<span class="" style="white-space:pre"> </span>send: QGS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 4.105282<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 4.105819<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 4.116063<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 5.119279<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 5.121211<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 5.133023<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 6.135221<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 6.135755<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 6.146109<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 7.148251<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 7.148774<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 7.158990<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 8.160351<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 8.160908<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 8.172010<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 9.175280<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 9.175757<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â Â 9.186153<span class="" style="white-space:pre"> </span>send: M</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 10.188259<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 10.188747<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (ups.firmware.aux)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 10.204020<span class="" style="white-space:pre"> </span>send: QS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 11.206260<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 11.206790<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 11.222048<span class="" style="white-space:pre"> </span>send: QS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 12.224222<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 12.224701<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 12.240085<span class="" style="white-space:pre"> </span>send: QS</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 13.242540<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 13.243050<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 13.253967<span class="" style="white-space:pre"> </span>send: D</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 14.256905<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 14.257403<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 14.268058<span class="" style="white-space:pre"> </span>send: D</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 15.269799<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 15.270300<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 15.281049<span class="" style="white-space:pre"> </span>send: D</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 16.284067<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 16.284590<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 16.299050<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 17.300777<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 17.301277<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 17.315854<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 18.317540<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 18.318041<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 18.333092<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 19.335789<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 19.336262<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 19.351048<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 20.353004<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 20.354717<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 20.370944<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 21.372268<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 21.372835<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 21.387944<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 22.389204<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 22.389728<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 22.404025<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 23.407009<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 23.408849<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 23.424381<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 24.427777<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 24.428277<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 24.443050<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 25.446739<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 25.447259<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 25.461983<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 26.462939<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 26.463578<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 26.477954<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 27.480749<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 27.481263<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 27.496052<span class="" style="white-space:pre"> </span>send: Q1</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 28.499032<span class="" style="white-space:pre"> </span>read: No error (-110)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 28.499557<span class="" style="white-space:pre"> </span>qx_process_answer: short reply (input.voltage)</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 28.499856<span class="" style="white-space:pre"> </span>Device not supported!</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Â 28.500069<span class="" style="white-space:pre"> </span>Device not supported!</p><div><br></div><div><br></div><div><br></div></div></div>