Let's assume that I run a program which reads/writes to a serial port (/dev/ttyS0). I known that the program uses baud rate 19200 and dynamically sets parity bit (mark parity or space parity).
Is it possible to check those parameters from terminal ?
I have tried setserial -g /dev/ttyS0. Here is output (nothing about parity bit and baud rate):
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4