I have a line in my code: hid_set_usb_debug(0).<br>However, I have noticed something.<br><br>If I have<br><br> mount -t usbfs none /dev/bus/usb<br><br>then my hid_interrupt_write()/read() get the error: "could not claim interface 0: device or resource busy".
<br><br><br>If I don't have /dev/bus/usb mounted,<br>I get a different error: "could not detach kernel driver from interface 0: No data available.<br><br><br>Is there some "setup" I need to do so interface 0 is available for me to do interrupt_write()/read()?
<br><br>Mark<br><br><br><div><span class="gmail_quote">On 9/28/06, <b class="gmail_sendername">Charles Lepple</b> <<a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mark S. Townsley wrote:<br>> Hi:<br>><br>> I am using hid_interrupt_write() and hid_interrupt_read() to talk to my<br>> HID<br>> device. But both calls come back with an error saying:<br>><br>> "could not claim interface 0: Device or resource busy".
<br><br>What is the full error message? Is this from setting USB_DEBUG to<br>something non-zero?<br><br>> But my hid_force_open() issues earlier in the same code (and remains open)<br>> was successful.<br>> Shouldn't hid_force_open() already claim the required interface so
<br>> interrupt_write/read can use<br>> the claimed interface?<br><br>Yes, it should be taken care of in hid_force_open().<br><br>--<br>Charles Lepple<br><a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a><br><br><br>
_______________________________________________<br>libhid-discuss mailing list<br><a href="mailto:libhid-discuss@lists.alioth.debian.org">libhid-discuss@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss">
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss</a><br></blockquote></div><br>