如何使用 JAVA 向 COM PORT vpn free 发送数据?

2024-08-25Java开发问题
21

vpn free 免费vpn free vpn 本文介绍了如何使用 JAVA 向 COM PORT 发送数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧! 免费vpn free vpn vpn free

问题描述

可能重复:
Windows 上的 Java 串行通信

朋友们,我想在 JAVA 中连接并传输数据到 COM PORT(虚拟或原始)?

Friends, I want to connect and transfer data to COM PORT (either virtual or original) in JAVA?

推荐答案

这个问题已经被问过很多次了:

This question has been asked and 免费vpn answered many times:

使用Java从串口读取文件

用Java读取串口

用Java从串口读取文件

是否有用于访问 Serial 的 Java 库或框架端口?

Windows 上的 Java 串行通信

参考一些.

我个人推荐 http://serialio.com 的 SerialPort - 它不是免费的,但非常值得任何商业项目的开发商(无版税)许可费.可悲的是,它不再是免版税的,而且 SerialIO.com 似乎已将自己重塑为硬件销售商.我不得不搜索有关 SerialPort 的信息.

Personally I recommend SerialPort from http://serialio.com - it's not free, but it's vpn下载 免费vpn well worth the developer (no royalties) licensing fee for any commercial project. vpn free Sadly, it is no longer royalty free to deploy, and SerialIO.com seems to have remade themselves as a hardware seller; I had to search vpn vpn下载 free for information on SerialPort.

根据个人经验,我强烈建议反对 Sun、IBM 和 RxTx 实施,所有这些实施在 vpn下载 24/7 使用时都不稳定.有关详细信息,请参阅我对上述一些问题的回答.公平地说,自从我尝试 RxTx 以来,它可能已经走了很长一段路,尽管 Sun 和 IBM 的实现基本上已经被放弃了,即使在那时也是如此.

From personal experience, I strongly 免费vpn下载 recommend against the Sun, IBM and RxTx implementations, all of which were unstable in 24/7 use. Refer to my answers on some of the aforementioned questions for details. To be perfectly fair, RxTx 免费vpn下载 may 免费vpn have come a long way since I vpn free tried it, though the 免费vpn Sun 免费vpn and IBM vpn free implementations were essentially abandoned, vpn下载 even back then.

jSSC (Java 简单串行连接器),正如@Jodes 评论所建议的那样.

A newer free option that looks promising and may be free vpn下载 vpn worth trying is jSSC (Java Simple Serial vpn下载 Connector), as suggested 免费vpn下载 by @Jodes comment.

这篇关于如何使用 JAVA 向 COM PORT 发送数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send vpn下载 data 免费vpn下载 to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

如何使报表页面方向更改为“rtl"?
How to make a report page direction to 免费vpn下载 change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)...
2024-08-25 Java开发问题
19

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 free vpn Java开发问题
18

有没有办法在 Java 中检测 RTL 语言?
Is there any way to detect an vpn下载 RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)...
2024-08-25 Java开发问题
11

如何在 Java 中从 DB 加载资源包消息?
How to load resource bundle messages from DB in Java?(如何在 Java 中从 免费vpn DB 加载资源包消息?)...
2024-08-25 Java开发问题
13

如何更改 Java 中的默认语言环境设置以使其保持一致?
How do I change the default locale settings in Java to make them 免费vpn consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)...
2024-08-25 Java开发问题
13