I'm French, so I apologize if I don't express myself correctly.
My problem is that I can't see if Arduino receive the messages I'm sending with processing :
I want Arduino to read the letters I'm sending from processing but I don't know how
Here are my programs
Arduino code
int incomingbyte = 0;
void setup() {
Serial.begin(9600); // ouvre le port série et fixe le debit de communication à 9600 bauds
}
void loop() {
if (Serial.available() > 0) { // si des données entrantes sont présentes, on lit le 1er octet
incomingbyte = Serial.read();
Serial.write(incomingbyte);
delay(20);
Serial.print (incomingbyte);
delay(3000);
}
else {
Serial.print("Aucune donnée recue");
delay(10000);
}
}
That Processing code is a mess. There are useless { and } throughout the code. There is code that is commented out. That code clearly has nothing to do with your problem, so why did you post it? Delete it!
Use Sketch + Auto Format to properly indent the code, and put every (necessary) { on a new line.
The Arduino is responding to serial data from Processing, but Processing ignores any serial data coming in. Why?
How do you determine if someone has replied to your post? You read the forum, and see that there is a reply. Well, you are the Processing application, sending a text message to the forum.
I'm the Arduino application, reading your post, and sending a reply.
You, the Processing application, can read what I sent, or not. It's up to you. But, if you want to know what I sent, you really need to read it.