Hi guys, I am desperate about this issue. I searched for this kind of problem in this forum and on Google. I've read several topics about this, but nothing...
My arduino is a UNO and I am using it to control some 8 valves when the computer request it. The computer sends a message (RS232) as "Vn=vX" where V is a command for valve, n is the valve number, v is "1" or "0" or "?" that means to open or close the valve or request the state of the n-th valve respectively, X is a end of string char control. When arduino receives this string it executes the code to change the state of the valve and completes the action by sending back to the computer a string as "V8=bbbbbbbbX where b represents the bits on/off for the eight valves
For up to the 5th or 6th request, I receive the response from arduino, everything is fine, but suddenly arduino stops to send data. If I stop my program on the computer, closing the comm port, and open the serial monitor on Arduino IDE, I also do not have any response, although arduino still execute the tasks, in other words: arduino is running, receiving data from the serial, but nothing is received from arduino, nothing comes out from arduino serial.
I will post below my code: