*** This bug is a duplicate of bug 361635 ***
https://bugs.launchpad.net/bugs/361635
I found other bug using the RXTXcomm.jar version 2.1.7 in ubuntu 9.10 64 bits
(maybe too using other 64bits linux distros). The write to serial port works
right, but the read is wrong (JAVA error 134, Problematic frame: # C
[librxtxSerial-2.1-7.so+0x8333] read_byte_array+0x43).
SOLUTION: to resolv this problem download the prerelease 2.2
(http://rxtx.qbang.org/pub/rxtx/rxtx-2.2pre2-bins.zip), unzip, and copy the
files to:
sudo cp path/rxtx-2.2pre2-bins/RXTXcomm.jar /usr/share/java/RXTXcomm.jar
sudo cp path/rxtx-2.2pre2-bins/x86_64-unknown-linux-gnu/librxtxSerial.so
/usr/lib/librxtxSerial.so
too add this line to your code:
System.setProperty("gnu.io.rxtx.SerialPorts", "/dev/ttyACM1"); //or oher ACMx
And enjoy
--
librxtx-java doesn't find serial ports after upgrade to Jaunty
https://bugs.launchpad.net/bugs/367833
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs