Re: Serial communication, detecting parity bits
- From: Mattias Brändström <"thebrasse at brasse dot org">
- Date: Thu, 26 Jan 2006 16:39:28 +0100
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 .
- References:
- Serial communication, detecting parity bits
- From: Mattias Brändström
- Re: Serial communication, detecting parity bits
- From: kobus
- Re: Serial communication, detecting parity bits
- From: Tauno Voipio
- Re: Serial communication, detecting parity bits
- From: Mattias Brändström
- Re: Serial communication, detecting parity bits
- From: David Schwartz
- Serial communication, detecting parity bits
- Prev by Date: compile warning with EXPORT_SYMBOL
- Next by Date: Re: compile warning with EXPORT_SYMBOL
- Previous by thread: Re: Serial communication, detecting parity bits
- Next by thread: mod_timer
- Index(es):