This topic is about serial port communication in Java.
Some equipment will send data automatically, but some will need to send a request command from PC.
To let the Java application communicate with the equipment via the RS-232 hardware (serial ports), need the JavaComm or RXTX library.
Java programming, need to implement SerialPortEventListener in order to listen for incoming data.
To display data on SWT component need to put under this code.
Note: See full source code here.
ไม่มีความเห็น