Byte banging. :-)
I'd test using only one byte instead of array. I'd Hserin wait for start character, process byte (could be moving into 256 byte array, increment bytes found counter), Hserin byte, goto process byte until receive end character, process array, start over.
Start-end can be anything you won't usually receive #$%&*+<>~|√π§Δ£¢€¥^°±{}/\!¡©®™℅[]¿?().
Hserin one byte multiple times might be more efficient than always receiving a large array, or it might not.
Robert




Bookmarks