albenik / go-serial

A cross-platform serial library for go-lang (custom implementation based on http://go.bug.st/serial.v1)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect parity errors?

opened this issue · comments

Is there a way to detect parity errors?

What do you mean?
Please point me to any documentation about programmatically parity error detection.

Is it possible to detect parity errors? For instance, if the parity bit should be set given the settings and you receive data that does not have the bit set, what happens?

Most operating systems provide a way to report parity errors but not in a consistent way. Though many would support sending a replacement character in case of errors.

.net core c# supports parity errors detection.

https://docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport?view=netframework-4.8

@mr-nand Thank you for the information.
I did a little research and found that pySerial which I used as a feature source has the same issue pyserial/pyserial#357 and it not resolved yet too.
Unfortunately, I haven't free time to research and resolve this issue by myself, so I am ready to port it from somewhere like PySerial when it will be done or accept a PR.