Serial communication, detecting parity bits
- From: Mattias Brändström <"thebrasse at brasse dot org">
- Date: Fri, 20 Jan 2006 11:13:41 +0100
Hello!
I'm in the process of writing some code that will use RS-232 and a somewhat old protocol to speak to some external hardware. The protocol specifies that the first byte of each protocol packet will have its wakeup bit or parity bit set. I need to find these marked bytes in order to determine where each packet starts.
This confuses me a bit. All serial communication programming I have done so far have beem blissfully unaware of parity bits, stop bits and so forth. As I understand it these are abstracted away by read(), open(), tcsetattr(), etc.
My question is this: Is there some way that I can figure out if the wakeup or parity bit was set on a specific byte in the stream that I have read from the serial port?
Regards, Mattias .
- Follow-Ups:
- Re: Serial communication, detecting parity bits
- From: kobus
- Re: Serial communication, detecting parity bits
- From: Floyd L. Davidson
- Re: Serial communication, detecting parity bits
- Prev by Date: Re: Linux/unix Shell
- Next by Date: mod_timer
- Previous by thread: mq_open() problem
- Next by thread: Re: Serial communication, detecting parity bits
- Index(es):
Relevant Pages
|