gpt4 book ai didi

java - 在Java中实现串行通信的最简单的 'free'方法是什么?

转载 作者:行者123 更新时间:2023-11-30 05:14:38 25 4
gpt4 key购买 nike

我是 Java 新手,并且为自己设定了一个要编写的项目,以便我可以进行一些“实践”学习。我精通 C++,但想在我的技能组合中添加另一种语言。

无论如何,该项目的一部分包括串行通信。我的目标是 Windows XP 平台,该项目并不真正需要跨平台。

我正在使用 NetBeans,经过快速研究后,我发现对串行通信的“内置”支持已不复存在。

进一步搜索使我找到了 RXTX,但是,在进行简单安装后,他们列出的(在 wiki 上)示例似乎不起作用。

我见过几个可购买的串行库,但我不想走这条路,至少现在还不想。

那么,最好的前进方向是什么?坚持使用 RXTX 并在那里进行故障排除?或者有更简单使用的替代方法吗?

最佳答案

来自here :

javax.comm package 3.0 has replace javax.comm 2.0:

Sun is no longer offering the 2.0 release of javax.comm, since 3.0 Update1 contains important bug fixes allowing to better support it..

javax.comm 3.x offers new conveniences for the the user, as well as improvements to the portmapping architecture and support for our Sun Ray thin client platform, with no change to the core API or functionality. Among the features available with javax.comm 3.0 is an interactive serial port tool, which is helpful in basic diagnosis of serial port connectivity.

javax.comm for Windows have been EOLed:

A Windows port of javax.comm is not currently offered by Sun. There has not been sufficient demand to justify supporting javax.comm on Windows, particularly considering that javax.comm for Windows is available from other sources, such as rxtx.

关于java - 在Java中实现串行通信的最简单的 'free'方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2028192/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com