I know 9-bit
serial communication is available in Linux
using parity bit.
And some Linux version offer MARK/SPACE parity mode
, so that i can set parity bit easily.
But as i know, this MARK/SPACE parity mode
is not a Linux standard, so a Linux may not support this mode.
How can i check the Linux i am using supports the mode or not ?
Do i have to make some code and test?
I want to know without these additional work.
Any way like by checking configuration information or kernel source?
And, if the Linux doesn't support MARK/SPACE parity mode
, is there any way to make it support?
Actually, in ubuntu12.04
, it is supported, but when i tried this with ubuntu14.04
, it seems not to support when i tested.
(in the case of ubuntu14.02
is using lxde
in embedded
)
==================EDIT=====================
MARK/SPACE parity
bit in here means if i can use 9-bit with termios
flag CMSPAR
.
and how can i check if this flag is available for 9bit communication. and if not, any way to activate this functionality.
otherwise i have to check every byte i send for even and odd parity, and then change parity mode to use 9-bit.
But if i can use CMSPAR flag, i just set PARODD
to set parity bit with CMSPAR
, regardless of data i send.
And company say the hardware support 9bit.
This is description on MARK/SPACE parity
.