Java serial communication implementation process example
1. Download the 64 bit rxtx for Java link: http://fizzed.com/oss/rxtx-for-java
2. Unzip the downloaded package and put it into Java according to the instructions_ Home is the installation path of Java
3. In Maven's POM Add under XML
4. Serial port API
Commport: the abstract class of the port commportidentifier: the core class for serial port access and control. Serialport: it can directly read, write and set the serial port
5. List available ports on this machine
6. General steps: open the serial port to get the serial port object = = "set parameters = =" read and write to the serial port = = "close the serial port, in which the read operation to the serial port is commonly used
ABC content, that is, the specific operation of reading serial port:
Write operation:
summary
The above is all about the example of Java serial communication implementation process in this paper. I hope it will be helpful to you. If you have any questions, you can leave a message at any time and look forward to your valuable comments.