Processing: USB Serial connection workaround
Hi all,
Currently I'm playing with an Arduino UNO Microcontroler but, using Processing over linux I found a bug.
When I tried to open an USB Serial port, Processing did not recognize it.
DMESG:
cristian04@finally:/dev$ dmesg | grep ttyProcessing Test Code:
[ 0.000000] console [tty0] enabled
[ 1.435405] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.435616] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 12.901934] cdc_acm 2-5:1.0: ttyACM0: USB ACM device << Arduino UNO
import processing.serial.*;Processing Result:
void setup()
{
println(Serial.list());
}
WARNING: RXTX Version mismatchSo, ttyACM0 is not listed
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
[0] "/dev/ttyS0"
Workaround (As root):
root@finally:/dev$ ln -s /dev/ttyACM0 /dev/ttyS4And then you should get:
WARNING: RXTX Version mismatchUseful? Please leave your comments ;)
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
[0] "/dev/ttyS4"
[1] "/dev/ttyS0"
Labels: arduino, processing, tutorial
1 Comments:
ah....weno ahora espiquineais...igual no entendi ni jota!!! Anyway I trust u now and ever!!! XXXX ME =P
Post a Comment
Subscribe to Post Comments [Atom]
<< Home