Java serial communication and java serial communication instances
Perform the following operations on a 64-bit win8 system:
1. code compilation
Two Connection library files, rxtxSerial. dll and rxtxParallel. dll, must be downloaded for serial communication. I put the two files on the Internet in <JAVA_HOME> \ jre \ bin, but the compilation failed. Then I put them in <JAR_HOME> \ bin and compiled them. My directory is: "C: \ Program Files \ Java \ jre1.8.0 _ 31 \ bin"
Use the following dependencies for the created maven project:
<Dependency>
<GroupId> org. rxtx </groupId>
<ArtifactId> rxtx </artifactId>
<Version> 2.1.7 </version>
</Dependency>
If none of the above works, you can leave a message for me.
2. Test joint debugging (to be continued)
I will not talk about the details. The project is also my own reason for reading the serial port, mainly because of a header connection problem. I hope you will not make the same mistake as me, find more testing tools for the virtual serial port. test more by yourself.
The following is an article for transferring to netizens: you can increase your knowledge.
Http://blog.csdn.net/kabini/article/details/1601324