Getting access to TTYs
There're several ways to get access to a serial port in a GNU/Linux system, starting from the minicom program we used to interact with the system's serial console from the host PC. However, since in a UNIX system, everything is a file, we can use generic tools such as echo and cat too! However, they are not enough due the fact that we have to set up several communication settings before starting the data transmission. To do this, we can use the stty command already introduced earlier, which allow us to set up all tty devices' parameters.
Its usage is not as tricky as we may think. However, after the first approach, everything should become easier. For instance, if we wish to display the current serial port settings, we can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access