Serial Port Problems in Ubuntu 10.04 64-bit
I am trying to access a serial device. It is a USB to Serial device that acts kind of like a parallel port. It is called a UBW(Universal Bit Whacker from SparkFun.com). I was able to use C# in MonoDevelop to write to the C# port just fine, but I am tearing my hair out trying to do this in Java. I am fairly new to Java, but serial port programming should not be that difficult. Apparently it is though.
I tried using Eclipse RXTX plugins, but that did not work. It seemed to work, but no data got to the UBW even though it seemed to detect the /dev/ttyAMC0 port which it uses. So, I created a symbolic link to ttyUSB0. It works fine in a terminal program, but not in Java.
So, I decided to just install RXTX as it specifies on its web site and then I compiled the program and ran it from the command line using javac to compile and java to run the program. That did not work either.
I have been working on a solution to this for over a week now. Is there no way to get Java to work with the serial port in Linux and 64-bit or am I going to have to go back to using C#. It seems kind of stupid to me to have a programming language that will not work with serial ports. There are still a lot of devices out there that use serial ports. I even saw an example where someone was using php to access serial ports in Linux. What is it with Java anyway. I am trying to learn Java, but if it can't do something this simple I am not sure it is worth learning. All I am trying to do is send a simple command to the serial port and have the UBW interpret that command and turn on an LED. This should be really simple.