<br>Yes I can follow the code in hid_interrupt_write().&nbsp; But what does that mean?<br>Does that mean libhid and libusb cannot be used to talk to my device?<br>It looks like I cannot set/get report (for write() and read()).&nbsp; But what does that mean?
<br>Am I missing a step in the setup so report descriptors were not made available?<br><br><div><span class="gmail_quote">On 9/28/06, <b class="gmail_sendername">Charles Lepple</b> &lt;<a href="mailto:clepple@ghz.cc">clepple@ghz.cc
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sep 28, 2006, at 8:09 PM, Mark S. Townsley wrote:<br><br>&gt; More info....
<br>&gt;<br>&gt;<br>&gt; Before I go into all the libhid stuff, I actually called libusb<br>&gt; stuff, specifically<br>&gt; to usb_detach_kernel_driver_np().<br><br>If you are calling libusb functions directly, you should be able to
<br>follow the code in hid_interrupt_write.<br><br>&gt; Since seeing the &quot;could not detach from kernel errors&quot;, I comment<br>&gt; out the code,<br>&gt; rmmod the hid driver, and now interrupt_write()/read() returns this
<br>&gt; error:<br>&gt;<br>&gt;&nbsp;&nbsp; No error hid_interrupt_write 1 failed with return code 21<br>&gt;<br>&gt;<br>&gt; I have&nbsp;&nbsp;hid_set_debug(10);<br>&gt;<br>&gt; What does return code 21 means?<br><br>Return codes are enumerated here:
<br><br><a href="http://www.ghz.cc/~clepple/libhid/doc/html/hid_8h.html#a64">http://www.ghz.cc/~clepple/libhid/doc/html/hid_8h.html#a64</a><br><br>Check the source for hid_interrupt_write:<br><br><a href="http://www.ghz.cc/~clepple/libhid/doc/html/hid__exchange_8c-">
http://www.ghz.cc/~clepple/libhid/doc/html/hid__exchange_8c-</a><br>source.html#l00380<br><br>--<br>Charles Lepple<br><a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a><br><br><br></blockquote></div><br>