I am doing some communication stuff to swap some data between a Windows desktop computer ans an Arduino Mega using serial port 2, old RS232, 5V of course.
The data coming from the desktop is formatted as 512byte chunks to maximize data storage in a SD card attaches to the Mega (MOSI MISO).
To avoid data losses in wiring link I decided to follow the data by a couple checksums: XOR'ing all bytes and also summing them all (using just the 8 less significant).
This two types of checks running in parallel, do really complement each other? Make sense? Any similar but better choice (not too complicated, please )