简体   繁体   English

使用Java在HMI和PC之间进行RS232通讯

[英]RS232 communication between HMI and PC using Java

I am trying to establish a communication between a PC (Windows) and Digital Weighing Scale Monitoring Module by RS232 communication cable. 我正在尝试通过RS232通信电缆在PC(Windows)和数字体重秤监视模块之间建立通信。 I am targeting to store the data from that module into a database using java. 我的目标是使用Java将来自该模块的数据存储到数据库中。 I am confident about the database part but I am not good yet in reading or writing data over a COM1 or COM2 port. 我对数据库部分很有信心,但是在通过COM1或COM2端口读取或写入数据方面还不是很好。 Since javax.comm is not available currently, give me some reference for the available alternatives so that I can study and learn from a reliable source. 由于javax.comm当前不可用,请给我一些可用替代方法的参考,以便我可以从可靠的来源中学习和学习。

Thanks in Advance 提前致谢

I have done it finally by JSSC library. 我终于通过JSSC库完成了它。 It is simple and user friendly 简单易用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM