From: Xiaofan C. <xia...@gm...> - 2010-10-09 08:57:00
|
Now it seems that there are some interests in the HIDAPI since it offers a true cross-platform API for the HID device (at least under Linux, Windows and Mac OS X, probably can be extended to FreeBSD 8/9 with the compatible libusb10 API). Looking at the hidapi.h, it seems to me hidapi is quite simple right now. So it might be a good idea to get some extension to it. http://github.com/signal11/hidapi/blob/master/hidapi/hidapi.h For example, right now libusb-1.0's HID API does not deal with HID Collections. HIDAPI does not seem to support that either. Under Windows HID API, you may have to deal with HID Collections. http://msdn.microsoft.com/en-us/library/ff539861%28v=VS.85%29.aspx Indeed, one commercial usbhidapi library provide the feature. http://www.kadtronix.com/usbhidapi_usr.htm The other missing feature is hot plug support. Actually the open source Python based pywinusb project has some support of hotplug (for HID device under Windows). pywinusb seems to be quite nice under Windows. http://code.google.com/p/pywinusb/source/browse/trunk/pywinusb/hid/core.py -- Xiaofan |