<br><br><div class="gmail_quote">2009/1/4 Charles Lepple <span dir="ltr">&lt;<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, Jan 2, 2009 at 3:27 PM, Hannu Vuolasaho &lt;<a href="mailto:vuokko@msn.com">vuokko@msn.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; We are still in the process of collecting all the NUT/USB/*BSD<br>
&gt;&gt; documentation from various emails, but have you also checked<br>
&gt;&gt; /dev/usb0? I believe that libusb on BSD requires permissions on<br>
&gt;&gt; /dev/usb? to scan the bus to find /dev/ugen0.<br>
&gt;<br>
&gt; That seems to be requiremement. What else might be wrong? After I chenged<br>
&gt; permissions for usb0<br>
&gt;<br>
&gt; I got different error.<br>
&gt;<br>
&gt; Network UPS Tools - UPS driver controller 2.4.0-pre1<br>
&gt; Network UPS Tools - BCMXCP UPS driver 0.18 (2.4.0-pre1)<br>
&gt; USB communication subdriver 0.17<br>
&gt; Can&#39;t reset POWERWARE USB endpoint<br>
&gt; Unable to find POWERWARE UPS device on USB bus<br>
&gt;<br>
&gt;<br>
&gt; Not very helpful error message. what should I next try?<br>
<br>
</div>Can you try the following patch:<br>
<br>
diff --git a/drivers/nut_usb.c b/drivers/nut_usb.c<br>
index 494a1fa..4ca2691 100644<br>
--- a/drivers/nut_usb.c<br>
+++ b/drivers/nut_usb.c<br>
@@ -165,8 +165,8 @@ usb_dev_handle *nutusb_open(const char *port)<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if (usb_clear_halt(dev_h, 0x81) &lt; 0)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{<br>
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; upslogx(LOG_ERR, &quot;Can&#39;t reset POWERWARE USB endpoint&quot;);<br>
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; goto errout;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; upslogx(LOG_ERR, &quot;Can&#39;t reset POWERWARE USB endpoint: %s&quot;,<br>
usb_strerror());<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; /* goto errout; */<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;return dev_h;<br>
<br>
<br>
That should tell us what the error was, and see if we can continue past it.<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br></div></div>you might also want to set libusb debug using USB_DEBUG=3<br>this can also report some low level things...<br>(btw, it might be a good idea to document this somewhere!)<br>
<br>cheers,<br clear="all">Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br><br>