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/ttyS0setserial -a /dev/ttyS0Set serial port baud rate
stty -F /dev/ttyS2 19200stty -F /dev/ttyS2 19200
UART: 16550Adenotes 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