I have a question about preamble and preamble breaker.
I am implementing a simple visible light communication using arduino. I have used a Manchester encoding scheme. While I have understood that a preamble is required in order to have a synchronization at the word/packet level since Manchester encoding is helpful only at the bit level and not at the word or packet level, I am not sure what properties the preamble should have.
At this point I have tried sending a simple message like "Hello World" using a preamble of 10101010. I sent this without much understanding of a suitable sequence for the use as a preamble. I have sent two preambles like that, a "preamble breaker", and a Start of frame byte before the transmission of actual data, ending the whole frame with the ETX(End of frame)
Just before sending the STX(start of the frame), for preamble breaker I selected 00101010 with just the last bit differing.
Could someone please explain me the choice of a suitable preamble and also if such a preamble breaker is necessary because there is already a Start of Frame byte(0x02 in my case) before actual data is being transmitted?
Thank you.
Edited the two extra bits in preamble to make it a byte.