[libhid-discuss] Libhid cygwin port (aka libhid-win) with libusb

Xiaofan Chen xiaofanc at gmail.com
Fri Jul 24 01:54:02 UTC 2009


On Fri, Jul 24, 2009 at 9:48 AM, Xiaofan Chen<xiaofanc at gmail.com> wrote:
> On Fri, Jul 24, 2009 at 8:39 AM, Andrew Herson<andrew.herson at gmail.com> wrote:
>> HI guys,
>>
>> Nice work on this project.  I am well on my way to getting user space
>> access on my HID device but have a few more hurdles.
>>
>> 1)      My setup: libusb working so-so on cygwin on an i686 windows machine
>> 2)      I can get the device descriptors and the hid descriptors from my device
>> 3)      I cannot get HID reports from my device using libusb alone so a
>> turned to your guys
>
> Why not forget about libhid and libusb all-together for HID device under
> Windows? You can use native HID API. There are many examples here.
> http://www.lvr.com/hidpage.htm
>
> More examples:
> For pk2cmd (I am a tester), the developers decide to use libusb
> under Linux, native HID API under Windows and Mac OS X.
> http://www.microchip.com/pickit2
>
>> 4)      I cannot make the project
> libhid is not known to work under Windows as far as I know. Last time
> Rob Krakora ported it to Windows and I tested it and it seem to work.
> But I have since lost the zip file as my last desktop crashed. And
> I do not think it is a good fit for HID device under Windows due to
> limitation of libusb-win32.
> http://permalink.gmane.org/gmane.comp.lib.libusb.devel.windows/1476

At least untillibusb-win32 1.0 is finished to include the native HID API
backend. The SVN has not been updated for two years and it is not
working yet.
http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb1/src/dll/


-- 
Xiaofan http://mcuee.blogspot.com



More information about the libhid-discuss mailing list