This is for a atmega168 at various baudrates(38400, right now)
I have a spec for a Comm protocol.
It is an STX char, 32 bytes then a CR character. With various fields in the 32 characters.
Right now I am just running a loop that checks for the STX char then saves the next 32 chars to an array as the data comes in. I skip the CR and look for the next STX char.
It works ok but I run into issues where it get out of sync and that messes everything up.
Any one have a more proven Comm protocol that I would help with reliability.