How to Reset a Serial Port in Linux, ttyS0, ttyAM0, etc.
When connecting to a Linux device using a serial port there may be times where that connection becomes stuck open and thus will not provide sane output to the TTY port. This issue can be resolved by killing the PID (Process ID) and letting the serial port process restart. The serial port connection should be…