Re: Serial communication, detecting parity bits



David Schwartz wrote:
"Mattias Brändström" <"thebrasse at brasse dot org"> wrote in message news:43d7ac54$0$487$cc7c7865@xxxxxxxxxxxxxxx


The only thing I worried about now is what will happen if my the data stream contains the combination 0xff 0x00. How do I know that that combination is legitimate data and not a parity error?

Maybe someone has a nice solution to this?


If your data stream contains the combination 0xff 0x00, it will be encoded as 0xff 0xff 0x00. In fact, every 0xff in the data will be replaced by two 0xff's.


Nice! I could not find this information in the termios man page. This will enable me to implement that arcane protocol.


:.:: mattias
.