Among all the serial interfaces in the market, RS-232 and RS-485 are the oldest ones and are still widely used.

RS-232

RS-232 stands for Recommended Standards 232. It was created in 1960 by the Electronic Industries Association (EIA) and is widely used in connecting computers and their peripheral devices. It provides a data rate of 1.42kbps and can send data up to 50 feet.

 RS-232 working: RS-232 is used in connecting and transferring data between Data Transmission Equipment (DTE) and Data Communication Equipment (DCE). DTEs basically act as transmitters, while DCEs act as receivers. The following pins are used:

From DTE, RTS generates requests to send data to DCE. From DCE, CTS clears the path to receive the data and the data is sent. Similarly, RTS generates requests and is cleared by CTS to transfer data from DCE to DTE.

Electrical specifications of RS-232: The following are the electrical specifications of RS-232:

Voltage levels: Voltage level in RS-232 ranges from -25V to +25V. Voltage levels are categorized as signal voltage and control voltage.

Signal voltage between -3V to -25V represents logic “0,” while signal voltage between +3V to +25V represents logic “1.” On the contrary, the control voltage between -3V to -25V represents logic “1” while signal voltage between +3V to +25V represents logic “0.” Voltage between -3V to +3V is considered to be indeterminate.

Slew rate: Slew rate is the rate of change of signal levels. RS-232 supports a slew rate of up to 30V/microsecond Operation voltage: Operation voltage is 250v AC max Current rating: Current rating is 3 amps max Baud rate: RS-232 supports baud rate from 110 to 230400. 1200, 4800, 9600 and 115200 are commonly used

Application of RS-232:

Older-generation PCs for connecting printers, modems, mouse and so on PLC machines, CNC machines and servo controllers Microcontroller boards, receipt printers, point of sale (PoS) systems and so on

RS-485

RS-485 is also known as TIA-485/EIA-485. It was widely used for connecting one DTE to one DCE and it provided a maximum speed of 20 kbps. As times changed and demand for speed and cost scaled up, industry started looking for an interface which could cater to the following needs:

Faster communication rate Long-distance communication Connect directly to DTE Connect multiple DTE

Keeping in mind the above considerations, RS-485 was designed and introduced. RS-485 is the most versatile and widely-used industry communication standard, since it caters to all of the above needs.  Using RS-485, it is possible to send data at the speed of 10 Mbps covering up to 50 feet. It is possible to send data up to the distance of 4,000 feet, but speed decreases gradually.

Data transmission in RS-485

RS-485 uses twisted-pair wire for data transmission. This means there are two wires (other than ground) for sending and receiving the data.  RS-485 follows a master-slave arrangement for sending the data. The master device is responsible for sending the data between two or more slaves. This master device is centrally located, with two slaves on either end and all the data flow and transmission coordinated by the master device.

Key differences between RS-232 and RS-485

There is not much difference between RS-232 and RS-485. Although they are similar in look and design, there exists few differences in specification and functionality. They are:

RS-232 has one sender and multiple listeners, while an RS-485 setup can have multiple senders and multiple listeners. Using RS-485, it is possible for multiple listeners and transmitters to talk to each other, which is not possible with an RS-232 setup. Thus, RS-485 supports full- and half-duplex communication, while RS-232 supports only duplex communication Designing and wiring RS-485 is easier because it involves two wires, while a typical RS-232 design involves four wires Programming RS-485 is difficult compared to RS-232. This is due to the fact that RS-485 gives only two wires for sending and receiving the data, while in RS-232 we have four wires for transmission of data RS-232 can send over a distance of 15 meters, while RS-485 can send data up to 1200 meters RS-232 supports point-to-point topology, while RS-485 supports multi-point topology

Application of RS-485

Widely used in computer and automation systems Commercial aircraft cabin vehicle bus PLCs, factory floors and ICS implementation Theatre and performances venues, for controlling lighting

Security issues

Prior to the development of Ethernet, security wasn’t a large concern for RS-232 and RS-485 systems. Even now, they are rarely connected to the internet, and that provides a buffer from attack. RS-485 systems running Modbus TCP/IP are connected more often, but the added risk is minimal.

Conclusion

Both RS-232 and RS-485 are widely used serial interfaces, with each having their application as suited and required. While RS-232 is favorable for short-distance low-speed requirements, RS-485 is more suitable for high-speed and long-range for duplex communication. There are many interfaces available in the market for interfacing and connecting these interfaces, thus providing freedom to vendors to choose either of them.  

Sources

RS485, RS422 and RS232, Omega RS232 Serial Communication Protocol: Basics, Working & Specifications, CircuitDigest What is RS232 Protocol and How it Works, Codrey RS485, specifications and in depth tutorial, Lammert Bies