服务支持

16

2023

-

11

Transmission Modes in Data Communication


The Parocon digital communication input safety barrier isolates and converts digital signals from the hazardous area, outputs them as isolated digital signals to the safe area for two-way communication, and simultaneously provides an intrinsically safe, isolated power supply to field instruments in the hazardous area. This product requires independent power supply and features three-terminal isolation among the input, output, and power supply. The available digital signal interfaces include RS-232, RS-485, and CAN.

01-Data Communication Mode (Direction of Data Flow)

(1) Simplex Communication

The transmitted information always flows in one direction and is not permitted to flow in the opposite direction. In this mode, the transmitting end can only send data, while the receiving end can only receive data. Examples of simplex communication include a computer connected to a keyboard, a computer connected to a printer, and radio broadcasting.

(2) Half-duplex communication

In this mode, data can be transmitted in both directions over the communication channel, but at any given moment, transmission is limited to only one direction. In half-duplex communication, both parties can send and receive messages; however, when one party is transmitting, the other can only receive, and the two parties take turns sending and receiving. This communication method offers advantages such as simple and reliable control, low communication costs, and high efficiency. Half-duplex communication is commonly used in industrial communication systems.

(3) Full-Duplex Communication

Clearly, this mode refers to a situation in which both communicating parties can simultaneously transmit and receive information. Full-duplex communication requires that both ends of the link be equipped with independent transmitting and receiving mechanisms capable of operating concurrently, as well as two transmission channels with symmetrical performance. Consequently, the control system is relatively complex and the cost is higher; however, the communication efficiency is also very high. This mode is commonly used for communication between computers.

02-Data Transmission Method

Data transmission mode refers to the order in which data codes are transmitted and the method of synchronization during signal transmission; the issue of the transmission order of data codes is essentially the issue of the arrangement of communication lines. Based on the arrangement, data transmission can be classified into serial transmission and parallel transmission. To ensure that the signals sent by the transmitting end are accurately received by the receiving end, synchronization between the two ends is essential; therefore, according to the synchronization method, data transmission can also be divided into synchronous transmission and asynchronous transmission.

(1) Parallel Transmission and Serial Transmission

Parallel transmission involves sending data in groups simultaneously over multiple parallel channels. For example, eight data bits (one byte) or sixteen data bits (one word) may be transmitted at the same time. In addition to the data lines, a “strobe” line is required to synchronize the transmitting and receiving ends. Parallel transmission offers high communication speeds but requires a large number of data lines; it is acceptable for short-distance communication, but its high cost and susceptibility to crosstalk make it impractical for long-distance applications. Parallel transmission is typically used for communication between computers and printers, as well as between peripheral devices.

Serial transmission refers to a method in which data is transmitted bit by bit, sequentially, over a single communication channel. In serial transmission, the number of required data lines is significantly reduced; however, challenges arise, such as accurately determining the start position of each transmitted byte. Serial transmission offers several advantages, including low cost, ease of implementation, simple control, and high reliability in long-distance communications. Consequently, it is commonly used in industrial communication systems.

In theory, parallel transmission is faster than serial transmission; however, in practical applications, numerous other factors must be taken into account, such as electromagnetic interference between cables and synchronization issues among conductors. To minimize interference, the operating frequency of parallel transmission cannot be too high. Consequently, at higher data rates, serial transmission is not necessarily slower than parallel transmission—this is one of the reasons why serial transmission is so widely used today.

Schematic diagrams of parallel transmission and serial transmission are shown in Figure 2-7.

(2) Synchronous Transmission and Asynchronous Transmission

In computer systems, all operations must be carried out in an orderly manner under the coordination of a clock. Data communication is no exception; all processing tasks are executed under the control of specific timing pulses. To ensure coordinated operation at the transmitting end and accurate data reception, synchronization becomes critically important in data communication systems.

In parallel communication, a “strobe” signal is typically used to coordinate the operation of the transmitter and receiver. In contrast, in serial communication, binary data are transmitted and received bit by bit in sequence, one bit at a time; therefore, synchronous transmission refers specifically to serial transmission. Asynchronous transmission and synchronous transmission are two synchronization methods employed in serial communication. The fundamental difference between them lies in whether the clocks at the transmitting and receiving ends are independent or synchronized: if they are independent, it is asynchronous transmission; if they are synchronized, it is synchronous transmission.

1) Asynchronous transmission

This method transmits data on a per-character basis, sending one character at a time. Each character can be either 5 bits or 8 bits. A start bit is appended before each character to indicate its beginning, and a stop bit is appended after each character to indicate its end; the stop bit can be 1 bit, 1.5 bits, or 2 bits. Generally, for 5-bit characters, the stop bit is 1 or 1.5 bits, while for other bit lengths, the stop bit is 1 or 2 bits.

Asynchronous transmission employs character synchronization. In this mode, each character is transmitted independently and at random, with a non-uniform transmission rate and arbitrary inter-character spacing; hence the term “asynchronous transmission.”

Because start and stop bits are added at the beginning and end of each character, which increases the overhead of the transmitted code, asynchronous transmission is simple to implement but has relatively low transmission efficiency. A schematic diagram of asynchronous transmission is shown in Figure 2-8.

2) Synchronous Transmission

This method transmits data in units of data blocks (frames), which can be composed of character blocks or bit blocks. It is evident that synchronous transmission is more efficient than asynchronous transmission.

In synchronous transmission, the clocks at the transmitter and receiver must be synchronized. Synchronization can be achieved through either external synchronization or self-synchronization. In external synchronization, the transmitter sends a sequence of synchronized clock pulses to the receiver before transmitting data; the receiver then adjusts its reception timing based on this clock frequency, locking its internal clock to the synchronized rate, and subsequently receives data at this rate. Self-synchronization, on the other hand, derives the synchronization signal directly from the data stream itself—for example, when digital signals use Manchester encoding, the transition in the middle of each bit can serve as the synchronization signal. Clearly, self-synchronization is superior to external synchronization; therefore, self-synchronization is now the standard approach, whereby the clocking characteristics are extracted directly from the received data.

There are two types of synchronous transmission: one is bit-oriented synchronous data transmission, and the other is character-oriented synchronous data transmission. In synchronous transmission, a start flag is prefixed to each data block to indicate its beginning, and an end flag is suffixed to it to indicate its end; the receiver then processes the data in blocks based on these flags. The combination of the start flag, the data block, and the end flag is collectively referred to as a frame, with the start flag called the frame header and the end flag called the frame trailer. Both the frame header and frame trailer are special bit patterns (such as 01111110) or synchronization characters (SYN), and bit stuffing or character stuffing techniques are employed to ensure that the data within the block does not conflict with the synchronization characters. Thus, synchronous transmission is a frame-synchronization-based method. A major drawback of character-oriented synchronous transmission is its tight coupling with specific character encoding sets, which hinders interoperability, and the character stuffing method it employs is very cumbersome to implement. Consequently, modern synchronous transmission generally adopts the bit-oriented synchronization approach. Bit-oriented synchronous transmission is independent of character encoding sets, its bit-stuffing technique is easy to implement, it supports high data transmission rates, and it can realize a variety of sophisticated control functions; therefore, this method has found widespread application. The frame format in synchronous transmission is shown in Figure 2-9.