C#C
C#13mo ago
floribe2000

SerialPort ParityReplace on Linux

I have an issue with the use of SerialPort on linux.
If parity is set to none, everything seems to work just fine. However, I need to connect to a device using a serial connection where the parity bit is used to indicate a specific byte (some embedded device stuff, there's no way to change that).
On windows, I can ignore the parity errors caused by this by setting ParityReplace to 0, however, on linux this has no effect.
It is not possible to just set parity to none, because I need to specifically set the parity bits when sending messages to the embedded devices.

From what I can tell, it appears this is not implemented. Is this correct or am I missing something here?
If this is indeed the case, are there any known workarounds for this problem? Unfortunately, I was unable to find anything about this problem.
Was this page helpful?