Serial communication study notes under Linux operating system

  
 

First, what is serial communication

Serial communication refers to the serial transmission of data between the host computer and peripherals and between the host system and the host system. When using serial communication, each character sent and received is actually transmitted one bit at a time, each bit is 1 or 0.


Second, serial communication classification

Serial communication can be divided into synchronous communication and asynchronous communication. Synchronous communication is to realize the transmission and reception of data according to the software identification of synchronization characters, which is a communication method using character resynchronization technology.


2.1 Synchronous communication

Synchronous communication is a communication method for continuously transmitting data serially, and only one frame of information is transmitted in one communication. The information frame here is different from the character frame in asynchronous communication and usually contains several data characters. Figure:

Single Synchronous Character Frame Structure

+-----+------+-------+------+- ----+--------+-------+-------+

Copyright © Windows knowledge All Rights Reserved