Java serial communication and java serial communication instances

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.