<div dir="ltr">Hi,<br><br><div>I have used the truss command as directed. I have attached both the driver output and the last few sections of truss output leading to the hang. Both outputs end at the CTRL+C i pressed when i was forced to end the processes.</div><div><br></div><div>Hope this is helpful. Please bear with me if i didn't run it with the right options etc - as I mentioned, I'm a little new to Solaris.</div><div><br></div><div>Regards,</div><div>Richard</div><br><div class="gmail_quote">On Sun, Apr 5, 2015 at 1:09 AM Richard Flint <<a href="mailto:richard.flint@gmail.com">richard.flint@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you for the rapid response. I will try and investigate getting answers to some of your points but I'm a little new to Solaris so I'll need some time. Glancing at the configure output, it looks like it built against v0.1.7 of libusb (yes i think that is derived from the one you mention),<br><br>checking for libusb version via pkg-config... 0.1.7 found<br>checking for libusb cflags... <br>checking for libusb ldflags... -lusb <br>checking for usb.h... yes<br>checking for usb_init... yes<br>checking for usb_detach_kernel_driver_np... no<div><br></div><div>I will first investigate how to set the debug level.</div><div><br></div><div>Regards,</div><div>Richard</div></div><div dir="ltr"><div><br><div class="gmail_quote">On Sun, Apr 5, 2015 at 12:44 AM Charles Lepple <<a href="mailto:clepple@gmail.com" target="_blank">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 4, 2015, at 7:19 PM, 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"><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">More extensive debugging by running the driver sudo ./nutdrv_qx -u root -a MY_UPS -DDDDDD indicates the driver works normally then will randomly stop working at stop "send: QS". The debug logs show values successfully retrieved repeatedly until something like:</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">....</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"><div>Quick update...</div><div>send: QS</div><div>read: (247.9 239.1 248.0 005 50.0 27.5 --.- 00001001</div><div>update_status: OL</div><div>update_status: !LB</div><div>update_status: !CAL</div><div>update_status: !FSD</div><div>upsdrv_updateinfo...</div><div>Quick update...</div><div>send: QS</div></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">(driver hangs here)</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">I'm using Generic Q* USB/Serial driver 0.06 (2.7.2) with USB communication driver 0.32. Playing with pollinterval didn't help - Is there anything further I can do to help troubleshoot this problem?</div></blockquote><div><br></div></div></div><div style="word-wrap:break-word"><div><div>Thanks, this narrows it down a good deal.</div><div><br></div><div>@zykh made some changes to nutdrv_qx since the 2.7.2 release, but at first glance, I don't think those will alter the symptoms you are seeing.</div><div><br></div><div>Can you provide some detail on the libusb port that you built against? If it is derived from the original <a href="http://sourceforge.net" target="_blank">sourceforge.net</a> libusb-0.1, does it have a USB_DEBUG environment variable that can be set to log extra information? </div><div><br></div><div>Also, is it possible to do a system call trace to figure out what libusb and the OS are doing at the time of the hang? It's been a while since I last used Solaris, but if memory serves, you could use something like truss to approximate what strace does on Linux.</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></div></div></blockquote></div></div>