Liangxu Linux
Liangxu Linux
Jun 27, 2023 · Fundamentals

How to Access and Communicate with Linux Serial Ports Using C

This guide explains Linux serial port device files, shows how to list them, and provides four C programming methods—polling, select‑based interrupt, SIGIO signal handling, and threaded reading—complete with code examples and detailed configuration steps.

C++Device FilesLinux
0 likes · 10 min read
How to Access and Communicate with Linux Serial Ports Using C
Liangxu Linux
Liangxu Linux
Feb 21, 2021 · Fundamentals

Mastering UART: From Hardware Basics to Linux Serial Driver Implementation

This article provides a comprehensive guide to UART technology, covering its hardware protocol, baud‑rate calculations, RS232/RS485 differences, flow‑control methods, the Linux TTY serial framework with key data structures, driver registration lifecycle, RS485 debugging modes, and a complete C example for configuring and using a serial port on Linux.

Device DriversFlow ControlRS485
0 likes · 38 min read
Mastering UART: From Hardware Basics to Linux Serial Driver Implementation