Hello everybody,
I have a communication problem between Arduino 1.5.2 and Processing 2.0b8. Indeed, when I want to create a new Serial in Processing, i have an error message "Error inside Serial.<init>()". I have already check communication port and everything is ok. Arduino sends the good data because I can see it in the monitoring activity in Arduino but not in Processing. My librairies Java and Native are correct. I'm working on a mac and my installation is working but when I switch with a PC, is not working anymore. Let me show you my code:
Arduino code :
Arduino response :
0,24.9,99.9
0,24.6,99.9
0,24.6,99.9
0,24.7,99.9
0,24.8,99.9
0,24.8,99.9
0,24.9,99.9
0,24.9,99.9
0,24.8,99.9
0,24.6,99.9
Processing response :
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
[0] "COM3"
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.<init>(Serial.java:178)
at processing.serial.Serial.<init>(Serial.java:116)
at sketch__01P.setup(sketch__01P.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.<init>()
at processing.serial.Serial.errorMessage(Serial.java:666)
at processing.serial.Serial.<init>(Serial.java:190)
at processing.serial.Serial.<init>(Serial.java:116)
at sketch__01P.setup(sketch__01P.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Hope you can help me :) Thank you for those one who have the solution !