Showing posts with label RS485. Show all posts
Showing posts with label RS485. Show all posts

Sunday, March 8, 2015

RS422, RS485, comparison with RS232

RS232 is well-known due to popularity of today’s PC’s, unlike the RS422 and RS485. These are used in industry for control systems and data transfers (small volumes, less than hundreds of Mb/s).
So, what is the main difference between RS 232 and RS 422 & 485? The RS 232 signals are represented by voltage levels with respect to ground.

There is a wire for each signal, together with the ground signal (reference for voltage levels). This interface is useful for point-to-point communication at slow speeds. For example, port COM1 in a PC can be used for a mouse, port COM2 for a modem, etc. This is an example of point-to-point communication: one port, one device. Due to the way the signals are connected, a common ground is required. This implies limited cable length? About 30 to 60 meters maximum. (Main problems are interference and resistance of the cable.) Shortly, RS 232 was designed for communication of local devices, and supports one transmitter and one receiver.
RS422 & 485 uses a different principle: Each signal uses one twisted pair (TP) line-two wires twisted around themselves. We’re talking ‘Balanced data transmission’, or ‘Differential voltage transmission’. Simply, let’s label one of the TP wires ‘A’ and the other one ‘B’. Then, the signal is inactive when the voltage at A is negative and the voltage at B is positive. Otherwise, the signal is active, A is positive and B is negative. Of course, the difference between the wires A and B matters. For RS 422 & 485 the cable can be up to 1200 meters (4000 feet) long, and commonly available circuits work at 2.5 MB/s transfer rate.
What is the difference between RS 422 and RS 485? Electrical principle is the same both use differential transmitters with alternating voltages 0 and 5V. However, RS is intended for point-to-point communications, like RS 232. RS 422 is intended uses two separate TP wires, data can be transferred in both directions simultaneously. RS 422 is often used to extend a RS 232 line, or in industrial environments.
RS 485 is used for multiply-point communications: more devices may be connected to a single cable- similar to e.g ETHERNET networks, which use coaxial cable. Most RS 485 systems use Master/Slave architecture, where each slave unit has its unique address and responds only to packets addressed to this unit. These packets are generated by Master (e.g PC), which periodically polls all connected salve units.

Quick Comparison Chart:

Wednesday, April 30, 2014

DTE & DCE / DB25 & DB9 Port

DTE & DCE / DB25 & DB9 Port


Let's talk about DCE (Data Communications Equipment) and DTE (Data Terminal Equipment) devices. The difference between DCE and DTE is largely in the Plug and the direction if each pin (input or output). Your desktop PC is termed as a DTE device.
DCE devices use a 25-pin female connector while a DTE device uses a 25 pin male connector. Also, complimentary signals lines like transmit and receive are "swapped" between the two types. Thus, a straight-through cable can be used to connect a DCE device to a DTE device.
DTEDCE
25 pin Male pinout25 pin Female pinout
Pin 1 - Shield GroundPin 1 - Shield Ground
Pin 2 - Transmitted Data (TD) outputPin 2 - Transmitted Data (TD) input
Pin 3 - Receive Data (RD) inputPin 3 - Receive Data (RD) output
Pin 4 - Request To Send (RTS) outputPin 4 - Request To Send (RTS) input
Pin 5 - Clear To Send (CTS) inputPin 5 - Clear To Send (CTS) output
Pin 6 - Data Set Ready (DSR) inputPin 6 - Data Set Ready (DSR) output
Pin 7 - Signal GroundPin 7 - Signal Ground
Pin 8 - Carrier Detect (CD) inputPin 8 - Carrier Detect (CD) output
Pin 20 - Data Terminal Ready (DTR) outputPin 20 - Data Terminal Ready (DTR) input
Pin 22 - Ring Indicator (RI) inputPin 22 - Ring Indicator (RI) output
You can effectively convert DCE/DTE devices by using a NULL Modem cable. The null modem cable swaps the complimentary signals and allows a DCE device to act like a DTE and vice-versa.
The following chart depicts the cabling of the DB9 connector found on an IBM-PC type computer.
DTE
9 pin Male pinout
Pin 1 - Carrier Detect (CD) input
Pin 2 - Receive Data (RD) input
Pin 3 - Transmitted Data (TD) output
Pin 4 - Data Terminal Ready (DTR) output
Pin 5 - Signal Ground
Pin 6 - Data Set Ready (DSR) input
Pin 7 - Request To Send (RTS) output
Pin 8 - Clear To Send (CTS) input
Pin 9 - Ring Indicator (RI) input
Back to Top