.NET API for HID (USB)? [closed]

2019-01-13 13:32发布

Is there an API in .NET (C#) for using USB HID (Human Interface) devices?

标签: c# .net api usb hid
8条回答
Fickle 薄情
2楼-- · 2019-01-13 13:59

There's nothing direct or high-level. There are some things you can do through the managed WMI API, but I've personally found a lot of WMI interaction with hardware to be cryptic at best and requiring a lot of trial-and-error to get it to do what you want. Someone on CodeProject has developed a .NET component for USB HDI you can try out that's probably going to fit the bill better than WMI.

查看更多
家丑人穷心不美
3楼-- · 2019-01-13 14:02

Here's mine little lib for dealing with HIDs. Might be useful especially when you are trying to communicate using raw HID reports. I've also included a simple demonstration of how to use it.

查看更多
\"骚年 ilove
4楼-- · 2019-01-13 14:05

I was also searching for it. I'm using the code I found here: http://janaxelson.com/hidpage.htm

查看更多
爷、活的狠高调
5楼-- · 2019-01-13 14:11

I would suggest you follow this example instead. It was invaluable in getting me up and running with HiD dev in C#.

查看更多
疯言疯语
6楼-- · 2019-01-13 14:13

Try looking at this: Simple HID Library. The main page has a list of other open source libraries.

查看更多
啃猪蹄的小仙女
7楼-- · 2019-01-13 14:15

Have you taken a look at this library?

http://code.google.com/p/csharp-usb-hid-driver/

查看更多
登录 后发表回答