Using Serial Ports
Check the info of a serial port with stty < /dev/ttyS0 -a
where /dev/ttyS0
can be any target serial device.
Similar information can be found with
setserial -a /dev/ttyS0
setserial -a /dev/ttyS0
Set serial port baud rate
stty -F /dev/ttyS2 19200
stty -F /dev/ttyS2 19200
UART: 16550A
denotes the specific UART chip on the serial device
Once you get this information you can use minicom
to send and receive data over serial by specifying the device and baud rate
minicom -D /dev/ttyS0 -b 9600
(for example)
PTY is fine to emulate TTY devices also
ADDITIONAL RESOURCES