Go Down

Topic: Arduino Serial Monitor (Ubuntu 10.04 64bit) [SOLVED] (Read 8 times) previous topic - next topic


Jan 29, 2011, 09:15 pm Last Edit: Feb 06, 2011, 06:55 am by IAmCorbin Reason: 1
I am still having trouble reading serial output from the Arduino. I am able to do it via the linux terminal but it crashes the Arduino IDE when I open the monitor. I also get the same error when I try and use the RxTx library to read serial with java through Eclipse.

If I run the Arduino IDE as root it results in the same crash as well.

The Arduino monitor actually worked when I first installed it up until I ran this command:
Code: [Select]
stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
which now allows me to use the command:
Code: [Select]
tail -f /dev/ttyUSB0
to read the serial output to the terminal

Here is the original post with all the details: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1295756150


I have working on another problem which may or may not be related to yours. so I have to ask what kernel version are you running? (uname -mrs)


In the original post, it looks like you had a version mismatch between the RXTX jar and the native library.  Have you tried it with both pieces at 2.2pre2 (or whatever the latest version for your distribution is)?


@mrtaylor - I am running Linux 2.6.32-24-generic x86_64

@mellis - I tried updating to the latest version multiple times but can't seem to update my native lib version. Does this just mean there is a RxTx jar on my system I need to replace with the latest version? I thought I had moved all the RxTx files to the necessary locations, but I guess not?


The native lib is probably called something like libRXRX.so or librxtxSerial.so or similar.  I'm not sure where it is, but having a mismatch between the Java and native version of the library could definitely cause problems or crashes.

Go Up