Pages: [1]   Go Down
Author Topic: Arduino Serial Monitor (Ubuntu 10.04 64bit) [SOLVED]  (Read 8519 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 1
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
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

« Last Edit: February 06, 2011, 12:55:45 am by IAmCorbin » Logged

Colorado
Offline Offline
Full Member
***
Karma: 2
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)?
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@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?
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to search for the old library files like so:

Code:
find /. -readable -name *RXTX*
find /. -readable -name *rxtx*

But the only results are in my arduino workspace directory where I downloaded the rxtx files.

Does anyone else know where these files are hiding? or why it's still showing the old native versions when I can't even find them on the system?
« Last Edit: February 06, 2011, 12:36:48 am by IAmCorbin » Logged

Colorado
Offline Offline
Full Member
***
Karma: 2
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

find / -ls 2>&1 | grep -i librxtxSerial

edit added:  I believe my is the same.  mine works great.
./arduino
Stable Library
=========================================
Native lib Version = RXTX-2.2pre2
Java lib Version   = RXTX-2.1-7
WARNING:  RXTX Version mismatch
   Jar version = RXTX-2.1-7
   native lib Version = RXTX-2.2pre2
« Last Edit: February 04, 2011, 10:18:32 pm by mrtaylor » Logged

Colorado
Offline Offline
Full Member
***
Karma: 2
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe and don't quote me on this, your problem is related to a bug in the linux kernel.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/690798.  This is a long and drawn out bug and seems to affect a lot of different kernel versions.  Maybe you could search and find a kernel that works and upgrading to that kernel.

The kernel version I am running is: Linux 2.6.35-25-generic x86_64

Logged

0
Offline Offline
Newbie
*
Karma: 1
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Alright, I upgraded my kernel to 2.6.32-28 and was still getting the same crash.

I found and replaced the conflicting RXTX files with the 2.2pre2 version ones and now it is working. Thanks for the help.
Logged

Colorado
Offline Offline
Full Member
***
Karma: 2
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

excellent
Logged

Pages: [1]   Go Up
Jump to: