Java进行串口通信的数据获取
发布时间
阅读量:
阅读量
最近接 thumb upcoming project, 可能会有来自 RS232 路由器的数据传输过来, 为了更好地掌握相关技术, 在开始项目前学习了 Java 在串口通信中的应用, 并担心可能会忘记, 所以准备了一份笔记以便后续查阅和复习
java的操作方式是基于RXTX的实现为,并且可以通过访问以下链接获取资源:http://fizzed.com/oss/rxtx-for-java
安装说明:
Windows
RXTXcomm.jar goes in \jre\lib\ext (under java)
rxtxSerial.dll goes in \jre\bin
Mac OS X (x86 and ppc) (there is an Installer with the source)
RXTXcomm.jar is located within /Library/Extensions.
The file librxtxSerial.jnilib is situated within /Library/Extensions.
Execute the script located at fixperm.sh within the specified directory. Fixing permissions is performed within a sub
全部评论 (0)
还没有任何评论哟~
