05-14-2012 02:58 PM
05-14-2012 03:14 PM
05-14-2012 03:50 PM
05-14-2012 03:55 PM
reading and processing should be apart, in that way you can skip data when it comes too fast.
So it boils down to string processing
match string for three A's and eventually the next.
While the next 3 A's are not in you can just read the available bytes at port, and add to the previous data.
Than hand over for processing the interesting data to a consumer part.