I have been trying for several weeks now to get Java to work with a serial device. It is an embedded device that implements a virtual serial port through USB. It works great in putty or even in a C# program I wrote, but Java is a real pain and I have yet to make it work. I am using rxtx serial library in Windows 7 and I can get it to work with a loopback device, but trying to send a command to the device I am trying to use results in no data being sent back and I am not sure why.
I would be really great if Serial Port Complete had Java code as well. I have tried all the examples on the Internet I could find, but nothing seems to work. The device I am trying to work with is called a Universal Bit Whacker (UBW) from www.sparkfun.com
. I send it a "V" command and it should return the firmware version, but nothing comes back for some reason. If anyone has any ideas, that would be great.
I will try using my Arduino and see if I have any better luck with that.