Discussion:
[libhid-discuss] sending control message failed
Adrian Parker
2008-05-23 16:39:32 UTC
Permalink
Hey all, I'm calling the following:

hid = hid_new_HIDInterface();
matcher.vendor_id = HID_ID_MATCH_ANY;
matcher.product_id = HID_ID_MATCH_ANY;
matcher.matcher_fn = device_iterator; // This function is in fact returning
true for both of my USB devices
while ( (ret = hid_force_open(hid, 0, 0, &matcher, 2)) !=
HID_RET_DEVICE_NOT_FOUND)

For all of my devices with a HID interface I see the following:

WARNING_PRINT: hid_prepare_hid_descriptor(): failed to get HID descriptor
for USB device bus-0/\\.\libusb0-0004--0x045e-0?';:usb_control_msg: sending
control message failed, win error: A device attached to the system is not
functioning.

Then at the while loop exits I see:
WARNING_PRINT: hid_find_usb_device(): no matching USB device found.

I'm running as an Admin account on Windows XP. The devices are usable by
other programs (but not currently in use as far as I can tell). What can
cause that warning about the failure to send a USB Control Message? It
seems like hid_force_open is not finding any matching devices, when I
definatley have two plugged in (one of them is even a Microsoft device).


Also, will the mail discussion list archives ever be searchable?
--
Adrian Parker
Senior Programmer Analyst
Charles Lepple
2008-05-26 23:54:59 UTC
Permalink
Post by Adrian Parker
Also, will the mail discussion list archives ever be searchable?
Yes:

http://dir.gmane.org/gmane.comp.lib.libhid.general

I will add a link to the mail list info page shortly.
--
Charles Lepple
Adrian Parker
2008-05-27 00:20:07 UTC
Permalink
Cool, thanks.


Adrian
Post by Adrian Parker
Also, will the mail discussion list archives ever be searchable?
http://dir.gmane.org/gmane.comp.lib.libhid.general
I will add a link to the mail list info page shortly.
--
Charles Lepple
--
Adrian Parker
Senior Programmer Analyst
DLCSPM 6 Simulation
Building A31, CFB Kingston

Tel: (613) 541-5010 x3020
CSN: 271-3020
Email: parker at lsec.dnd.ca
Loading...