使用 Java 对 LPT 端口进行编程。真的吗?
条件:
操作系统为Windows XP
,
有LPT
端口
LED灯泡已连接到LPT
端口
必要:
使用Java使灯泡闪烁 是否可以? 对真实、经过验证的解决方案感兴趣。
有人这样做过吗?
我有几个选择:使用 javax.comm 和 RXTX。使用这些解决方案的成功率如何?
Conditions:
OS is Windows XP
have LPT
port
LED light bulb is connected to the LPT
port
Necessary:
using Java to make the bulb flash
Is it possible?
Interested in real, proven solutions.
Has anyone done this?
I have our few options: the use javax.comm
and RXTX
. How successful is to use these solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
曾经有一个很好的 Java 并行端口库,可以通过以下 URL 获得:
http://www.geocities.com /Juanga69/parport/
现在似乎已经消失了,但是您仍然可以通过互联网档案馆的回溯机访问它:
http://web.archive.org/web/20080523134328/http://www.geocities.com/Juanga69/parport/
这些文件也可以从这里下载(提供 Windows 和 Linux 版本,包括二进制文件和源代码):
http://www.ioi.knaw.nl/~heimel/computers/parport/
请注意,对于 Windows XP,您需要安装内核模式驱动程序,例如 UserPort。也可以从上述网站下载。
There used to be a nice Java parallel port library available at this URL:
http://www.geocities.com/Juanga69/parport/
It seems to be gone now, however you can still access it through the Internet Archive's wayback machine:
http://web.archive.org/web/20080523134328/http://www.geocities.com/Juanga69/parport/
The files can also be downloaded from here (Windows and Linux versions available, binaries and source code included):
http://www.ioi.knaw.nl/~heimel/computers/parport/
Note that for Windows XP you'll need to install a kernel-mode driver such as UserPort. This also can be downloaded from the sites above.