I'm trying to send 100 byte data to rs232, each byte have value from 0-255, I try to find the good way to indicated the first byte of data frame. Now I have only one idea by send 2 byte for the header, first byte for the header and second byte for header inverse.
F2 0D data1 data2.....data100
I know this way not so good, because some time data1-data100 maby can have same value as the header. Any one have a good idea ?