Digital Signal Processing, IT, Telecomunications

RS232, RS422 and RS485: what are the differences?

RS232, RS422, and RS485 are serial data communication protocols. Their main differences are the topic of this post.

Why these standards were created?

They were created for the efficient and structured transfer of data between devices. Thanks to these standards, digital communication between devices from different manufacturers is possible. Serial communication protocols transmit data through a single medium, unlike parallel communication, where each bit of data requires a separate wire for transmission.

Some important concepts

Types of data transfer

Full duplex is the most common type, in which equipment can transmit and receive data at the same time.

data transmission type
In addition to full duplex, there are simplex, where communication is only in one direction, and half duplex, where data transmission in both directions is possible but not at the same time. Source: educar321.

Topology

topology types
In the point-to-point topology, there is only one channel between two devices. Whereas in multipoint, more than two devices can transmit and receive data on the same channel. Source: Be engineer.

RS232

Introduced in the 1960s by the Electronic Industries Association (EIA), it is the oldest of the three protocols. It was used for a long time in communication between computers and peripherals, such as printers, modems, and scanners. Data transmission in RS232 is full duplex, and the topology is point-to-point. Although USB has replaced RS232 in many applications, this protocol is still used in some industrial control systems, medical equipment, and older computers due to its simplicity and low power consumption.

Electric features

RS232 voltage level
In RS232, the voltage corresponding to the logical level ‘0’ can range from 3V to 25V. Meanwhile, the voltage level corresponding to the logical level ‘1’ ranges from -3V to -25V. Source: (Thakur e Conrad, 2006).

The maximum range is 15 meters (49 feet), and the data transfer rate is typically 19.2 kbps (kilobits per second), but it can reach up to 115.2 kbps. The data transfer type is full duplex, and the topology is point-to-point. However, only a single transmitter and a single receiver can be connected, and RS232 is susceptible to interference.

RS232 terminals and its functions

RS232 pinout
Source: IPC2U.
  • SG: ground terminal.
  • DTR: indicates that the start between equipment can begin.
  • TD: data transmission.
  • RD: data reception.
  • DCD: carrier detector, a carrier is a high frequency signal which transports information through modulation.
  • RI: sinalizes a received call.
  • CTS: a device sends a signal through this terminal, to indicate that it’s ready to receive data.
  • RTS: line to initiate data transfer.
  • DSR: sinalizes that it can set a connection.
Ports with 25 pins have secondary pins for the same functions, as well as test pins and separate clock signals for the transmitter and receiver. Source: Codrey.

RS422

Developed in 1975, to increase the transmission rate and range, RS422 can reach up to 1200 meters (3937 ft), while the speed depends on the distance and can range from 100 kbps to 10 Mbps (megabits per second), with the higher speed achieved at shorter distances. In contrast to RS232, it is possible to connect 1 transmitting device to up to 10 receiving devices.

Another method to reduce interference, adopted by RS422, is differential signaling. It involves measuring the voltage between the data transfer terminals (A and B in the figure), rather than measuring the voltage relative to ground, as in RS232. The 120Ω resistors are used for impedance matching, preventing signal reflection. Source: StackExchange.
With differential signaling, the digital signal ‘1’ is represented by a positive voltage between the terminals, while the digital signal ‘0’ is represented by a negative potential difference. 5V is the nominal voltage, while 1.5V and 200mV are the minimum voltages at the transmitter output and receiver input, respectively. Source: Delock.

RS422 also adopts point to point topology and full duplex transfer mode.

RS485

In RS422, receiving devices cannot transmit data on a shared channel. To solve this problem, the RS485 protocol was created, in 1983. In addition to having a multipoint topology, meaning multiple transmitters and receivers can be connected to the same channel, it also uses differential signaling and has the same range as RS422.

On contrast with other 2 protocols, RS485 can operate on full duplex, with 4 wires, and half duplex, with 2 wires. Source: Virtual Serial Port.
RS422 and RS485 terminals are identical. Source: Icode9.

With RS485, you can connect up to 32 devices, employing repeaters and signal amplifiers, the maximum device number can reach to 256. The speed is the same of RS422.

About Pedro Ney Stroski

Leave a Reply

Your email address will not be published. Required fields are marked *