需要 modbus Java 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4689381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Need modbus Java library
提问by Damir
I need simple modbus Java library with source code. I found on google but there is .jar file and doesn't have strong using manual. Can anybody suggest me modbus library with using manual or source code ?
我需要带有源代码的简单 modbus Java 库。我在谷歌上找到了,但有 .jar 文件并且没有强大的使用手册。有人可以使用手册或源代码建议我使用 modbus 库吗?
采纳答案by Juvanis
Try this one:
试试这个:
http://sourceforge.net/projects/jamod/files/jamod/1.2/
http://sourceforge.net/projects/jamod/files/jamod/1.2/
By the way, you can use JDGUI to see the sources of any jar file.
顺便说一句,您可以使用 JDGUI 查看任何 jar 文件的来源。
回答by jassuncao
回答by Hymantrades
FieldKitis paid and open source, and haves support for several languages including Java
j2modis a fork of jamod
If you are using Modbus RTU (Serial) Java Communications API is needed; stolen from FieldKit documentation:
如果您使用的是 Modbus RTU(串行),则需要 Java Communications API;从 FieldKit文档中窃取:
The Java Communication API is available from different sources:
- Sun Microsystems is publishing versions for the Solaris and the Windows platform at http://java.sun.com/products/javacomm/.
- Keane Jarvi publishes a LGPL licensed Linux and cross-platform COMM API at http://www.rxtx.org/.
- An excellently performing package for a large variety of platforms is the SerialPort package from Solutions Consulting at http://www.serialio.com. Using this package, poll cycles of less than 10 ms can be achieved!
Java 通信 API 可从不同来源获得:
- Sun Microsystems 正在http://java.sun.com/products/javacomm/ 上发布 Solaris 和 Windows 平台的版本。
- Keane Jarvi 在http://www.rxtx.org/ 上发布了 LGPL 许可的 Linux 和跨平台 COMM API 。
- 来自http://www.serialio.com 的Solutions Consulting 的 SerialPort 软件包是适用于各种平台的性能卓越的软件包。使用这个包,可以实现小于 10 ms 的轮询周期!
Perhaps jSSCis a good javax.comm implementation too.
也许jSSC也是一个很好的 javax.comm 实现。