Java USB 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/862880/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 20:23:03  来源:igfitidea点击:

Java USB library

javaapiusb

提问by

Is there a good Java USB API i can use? I tried JUSB but it doesn't seem to work. It's also very old, no updates since 2001.

我可以使用一个好的 Java USB API 吗?我试过 JUSB 但它似乎不起作用。它也很旧,自 2001 年以来没有更新。

回答by dfa

Try this. It uses JNAso potentially it is more "hackable" than any JNI-based library

试试这个。它使用JNA,因此它可能比任何基于 JNI 的库更“可破解”

回答by Robert

About two years ago I used Java libusbwith success. It has the advantage that you are not limited to special device classes like HID.

大约两年前,我成功地使用了Java libusb。它的优点是您不限于像 HID 这样的特殊设备类别。

回答by Vinh

I used usb4java. On Windows, I installed WinUSB driver and it appeared to work Google: usb4java The advantage is high-level usb api. so the program is virtually portable to different lib. (not only usb4java)

我使用了usb4java。在 Windows 上,我安装了 WinUSB 驱动程序,它似乎可以运行 Google: usb4java 优点是高级 USB api。所以该程序实际上可以移植到不同的库中。(不仅是usb4java)