The serial ports in Linux

Despite all the preceding serial ports' names, in a GNU/Linux system, all these devices are seen in the same manner (actually some differences still remain, but they are special cases), that is, they are all represented by the the devices named /dev/ttyXXX, where the XXX string may vary according to the specific serial port implementations. For instance, the historical (and standard) names of PCs' UARTserial ports are /dev/ttyS0, /dev/ttyS1, but (as seen in the previous chapters) the USB-to-serial adapters can be named as /dev/ttyUSB0, /dev/ttyUSB1 or /dev/ttyACM0, /dev/ttyACM1.

As seen earlier, the tty prefix comes from the very old abbreviation of teletypewriter and was originally associated only with the physical connection ...

Get GNU/Linux Rapid Embedded Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.