hello guys. I am coding on an Arduino and a Raspberry Pi.
I am making a test code for a protocol and made a test program that sends one byte from the Raspberry Pi
to an arduino. but Raspberry fails it after random amount of repeated try.
It works fine like few hundreds or thousands of time to send 1 byte to the Arduino but it fails.
The next problem is that when that happens, Arduino cannot even send correct values to Raspberry Pi
until i reset both of the Raspberry program and the Arduino. Does anybody know anything about this?
I Know this is complecated problem and It is also related about Raspberry but I think here could be a good place to ask this. Thank you for reading this.
I attached both of the source code for the Raspberry and the Arduino.