© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
20 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ SerialPort performance
C#CC# / help
2y ago
❔ C# on Linux
C#CC# / help
3y ago
❔ Developing on linux?
C#CC# / help
3y ago
Installing C# on linux
C#CC# / help
2mo ago