<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV>Hi ,<BR><BR>I am using libhid on Ubuntu to connect to a composit USB device 
that enumerates as a <SPAN class=yshortcuts id=lw_1236402421_0 
style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed">mass storage</SPAN> as 
well as HID device. When using the sample code of libhid, the call 
hid_force_open() fails with the following printout, and return code of 12. Any 
ideas what could cause this.<BR><BR>Much appreciate your 
help.<BR><BR>regards,<BR>--- asad<BR><BR>NOTICE: hid_init(): libhid 
0.2.15+20060325.0.0 is being initialized.<BR>&nbsp; TRACE: hid_init(): 
initialising USB subsystem...<BR>&nbsp; TRACE: hid_init(): scanning for USB 
busses...<BR>&nbsp; TRACE: hid_init(): scanning for USB devices...<BR>NOTICE: 
hid_init(): successfully initialised HID library.<BR>&nbsp; TRACE: 
hid_new_HIDInterface(): creating a new HIDInterface instance...<BR>&nbsp; TRACE: 
hid_force_open(): forcefully opening a device interface according to matching 
criteria...<BR>&nbsp; TRACE: hid_get_usb_handle(): acquiring handle for a USB 
device...<BR>&nbsp; TRACE: hid_find_usb_device(): enumerating USB 
busses...<BR>&nbsp; TRACE: hid_find_usb_device(): enumerating USB devices on bus 
004...<BR>&nbsp; TRACE: hid_find_usb_device(): inspecting USB device 
004/001[0]...<BR>&nbsp; TRACE: hid_compare_usb_device(): comparing match 
specifications to USB device...<BR>&nbsp; TRACE: hid_compare_usb_device(): 
inspecting vendor ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): no match on 
vendor ID.<BR>&nbsp; TRACE: hid_compare_usb_device(): inspecting product 
ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): no match on product 
ID.<BR>&nbsp; TRACE: hid_compare_usb_device(): no custom matching function 
supplied.<BR>NOTICE: hid_find_usb_device(): vendor 0x1d6b of USB device 
004/001[0] does not match 0x05dc.<BR>&nbsp; TRACE: hid_find_usb_device(): 
enumerating USB devices on bus 003...<BR>&nbsp; TRACE: hid_find_usb_device(): 
inspecting USB device 003/001[0]...<BR>&nbsp; TRACE: hid_compare_usb_device(): 
comparing match specifications to USB device...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): inspecting vendor ID...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no match on vendor ID.<BR>&nbsp; TRACE: 
hid_compare_usb_device(): inspecting product ID...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no match on product ID.<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no custom matching function supplied.<BR>NOTICE: 
hid_find_usb_device(): vendor 0x1d6b of USB device 003/001[0] does not match 
0x05dc.<BR>&nbsp; TRACE: hid_find_usb_device(): enumerating USB devices on bus 
002...<BR>&nbsp; TRACE: hid_find_usb_device(): inspecting USB device 
002/003[0]...<BR>&nbsp; TRACE: hid_compare_usb_device(): comparing match 
specifications to USB device...<BR>&nbsp; TRACE: hid_compare_usb_device(): 
inspecting vendor ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): no match on 
vendor ID.<BR>&nbsp; TRACE: hid_compare_usb_device(): inspecting product 
ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): no match on product 
ID.<BR>&nbsp; TRACE: hid_compare_usb_device(): no custom matching function 
supplied.<BR>NOTICE: hid_find_usb_device(): vendor 0x046d of USB device 
002/003[0] does not match 0x05dc.<BR>&nbsp; TRACE: hid_find_usb_device(): 
inspecting USB device 002/001[0]...<BR>&nbsp; TRACE: hid_compare_usb_device(): 
comparing match specifications to USB device...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): inspecting vendor ID...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no match on vendor ID.<BR>&nbsp; TRACE: 
hid_compare_usb_device(): inspecting product ID...<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no match on product ID.<BR>&nbsp; TRACE: 
hid_compare_usb_device(): no custom matching function supplied.<BR>NOTICE: 
hid_find_usb_device(): vendor 0x1d6b of USB device 002/001[0] does not match 
0x05dc.<BR>&nbsp; TRACE: hid_find_usb_device(): enumerating USB devices on bus 
001...<BR>&nbsp; TRACE: hid_find_usb_device(): inspecting USB device 
001/004[0]...<BR>&nbsp; TRACE: hid_compare_usb_device(): comparing match 
specifications to USB device...<BR>&nbsp; TRACE: hid_compare_usb_device(): 
inspecting vendor ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): match on 
vendor ID: 0x05dc.<BR>&nbsp; TRACE: hid_compare_usb_device(): inspecting product 
ID...<BR>&nbsp; TRACE: hid_compare_usb_device(): match on product ID: 
0x0802.<BR>&nbsp; TRACE: hid_compare_usb_device(): no custom matching function 
supplied.<BR>NOTICE: hid_find_usb_device(): found a matching USB device 
001/004[0].<BR>&nbsp; TRACE: hid_force_open(): claiming USB device 
001/004[0].<BR>&nbsp; TRACE: hid_os_force_claim(): failed to claim USB device 
001/004[0], trying 2 more time(s)...<BR>&nbsp; TRACE: hid_os_force_claim(): 
detaching kernel driver from USB device 001/004[0]...<BR>WARNING: 
hid_os_force_claim(): failed to detach kernel driver from USB device 
001/004[0]...<BR>WARNING: hid_force_open(): failed to claim USB device 
001/004[0].<BR>&nbsp; TRACE: hid_close(): closing USB device 
001/004[0]...<BR>&nbsp; TRACE: hid_close(): closing handle of USB device 
001/004[0]...<BR>NOTICE: hid_close(): successfully closed USB device 
001/004[0].<BR>&nbsp; TRACE: hid_close(): freeing memory allocated for HID 
parser...<BR>&nbsp; TRACE: hid_close(): resetting 
HIDInterface...<BR>hid_force_open failed with return code 
12<BR><BR></DIV></BODY></HTML>