Installing the serial communication for Java
Algemeen
With the help of this manual it is possible to communicate serial with Java. Wilhelm Tell uses serial communication with Java for some clients for the communication of measure machines and/or CNC-machines. If you are in need of serial communication with Java don't hesitate to contact Wilhelm Tell. We can solve this easy with the help of the
De J2EE-Webapplicatie WTell
Version control
| Version | Date | Adjustments |
| 1.0. | 15-okt-2008 | First manual in Dutch |
| 1.1 | 27-Feb-2008 | Translation to English |
Version Control
Installation Steps
Some devices need a serial communication with the computer. Java has standard not an option for serial communication within Windows. This communication could easily be achieved with the help of
project rtxt. Download the option withOUT Sun's CommAPI (namespace gnu.io) from this website.
After downloading this file you need to unzip this file and take the following actions.
Copy the file RXTXcomm.jar to \lib\ext\ directory of your java version
Copy the file rxtxParallel.dll and rxtxSerial.dll naar de \bin\ directory of your java version
Connect a null-modem cable to both serial ports of your computer or connect different computers with a null-modem cable.
Go to
Javacom Api Users guide and use the following programs
SimpleRead.java om for reading from COM1
Gebruik SimpleWrite.java for writing to COM2
Watch out: Replace the import javax.comm.* to import gnu.io.*;
Now should the program SimpleRead.java to read the values you write with the help of SimpleWrite.java.
 |
| Duke Green |