stty serial port settings for parity not persistent
问题 I have a netcore app that opens the serial port, and writes "parity error" on the console once a parity error gets detected. It works fine in Windows 10 but can't get it to work under Linux. My assumption is that the OS is not passing the parity error to netcore. For checking the port settings I run: stty -D /dev/ttyS0 -ignpar inpck then I run: stty -D /dev/ttyS0 -a and the settings seem to be properly set (-ignpar inpck) as expected. Then I run my netcore 3 app but parity error is not