Maybe these issues have been solved in the past. I don’t think there is necessarily a very good solution, though.
The problem is that serial communications is imperfect. Characters get messed up in transit between two devices. When they do, that in turn messes up carefully thought out protocols, like “Capture characters in a buffer until you see the linend; then process the buffer as a single message.”
[Read More...]