如何在Windows和Java下与USB设备通信? [英] How to communicate with a USB device under Windows and Java?

查看:130
本文介绍了如何在Windows和Java下与USB设备通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows和Java下与USB设备进行通信,但我找不到一个好的库。我不希望用户必须安装任何额外的硬件或设备驱动程序才能使其工作。也就是说,我希望能够像其他Windows应用程序一样与USB进行交互。

I'd like to communicate with a USB device under Windows and Java but I can't find a good library to do so. I don't want the user to have to install any extra hardware or device drivers to make this work. That is, I want to be able to interact with USB just like other Windows applications do.

我熟悉jUSB和JSR 80,但两者似乎都是死的项目(至少对于Windows来说。

I am familiar with jUSB and JSR 80 but both seem to be dead projects (at least for Windows).

推荐答案

我前段时间对此进行过相当多的研究,不幸的事实是所有有用的免费USB + Windows + Java项目都已经死了。有商业和昂贵(价格39.99美元不是每个开发人员,但每个软件销售副本!) JCommUSB 可能有用的图书馆,虽然我没有经验;我们必须为USB驱动程序构建我们自己的自定义C包装器,并通过JNI与它们进行通信。

I did quite a bit of research on this some time ago, and the unfortunate fact was that all the useful free USB+Windows+Java projects were dead. There is commercial and expensive (price $39.99 is not per developer, but per copy of your software sold!) JCommUSB library which probably works, although I have no experience of it; we had to build our own custom C wrappers to the USB drivers and communicate with them through JNI.

这篇关于如何在Windows和Java下与USB设备通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆