We are using a Java application that manages a pin via a serial port. This works fine on windows with Sun Comm.jar supplied by the dll and properties file.
Now we are trying to use this solution on Linux (in fact, it works on various other versions of Linux in the field) - with Ubuntu server mode.
After many attempts - blood, sweat and almost tears, we have this scenario:
Java version 1.4.2_17 Linux - Ubuntu Comm libs - Comm3 supplied by the sun with the default driver specified
An external comm test shows the communication ports: / dev / ttyS0 and / dev / ttyS 1 But the Java application says that it is not possible to open the port / dev / ttyS 1
(invalid port errors occur using RXRT files)
Could anyone use java 1.4.2 for linux to communicate over the serial port and find a solution that I could apply in my script?
much appreciated
Phill
java linux serial-port
Phillip gibb
source share