简体   繁体   中英

Communicate of USB-HID device on windows 8

I have an embedded board with USB device port and i would like to transfer data from/to the PC at a rate of 1600Kbps.

The actual data transferred is ADC data. Basically, i need to transfer this data to a Windows 8 machine as fast as possible.

Device side: I have a HID device which is recognized by the windows as a HID. The HID uses one interface with 2 endpoint, a interrupt based IN endpoint (as in any HID device) which can send a 64 byte to the Windows. I have another interrupt OUT endpoint can receive 64 bytes of data. And as all USB devices i have End Point 0 to send Control transfers.

I would like to build a tool with.Net and some USB based driver. Could anybody kindly please suggest me the best library i can use for USB communication? some samples would be fine.

Thanks in advance

You might look into using HIDAPI , but in order to call it from C# you will have to define a bunch of tricky methods using PInvoke.

There is also the HidLibrary project for .NET but it looks unmaintained.

If you want to transfer binary data over HID - you can look for approach and design that MS did in their Component Firmware Update (CFU) spec and in corresponding example code .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM