DTE/DCE

See all articles from SMUG Bytes v7 n5
Author(s): Bill Heberlein
Publication: SMUG Bytes
Pub Details: SMUG Bytes v7 n5 (Volume 7, Issue 5)
Date: May 1990
Pages: 6-7

What is the Difference between DTE and DCE configured ports on RS-232 equipment?

First, let’s define DTE and DCE. DTE stands for Data Terminal Equipment, which normally either initiates or receives data transmissions. DCE stands for Data Communications Equip., which is used as the media for inter-connecting equipment in a comm. link. Examples of each type of equipment are

DTE          DCE
Computers    Modems
Terminals    Multiplexors
Printers     DSU/CSUs

In reviewing the RS-232 interface, examination of the signal directions provides a clearer picture of how DTE & DCE devices communicate. See below:

DTE        Description            DCE
 2   Transmit Data/Receive Data    2
 3   Receive Data/Transmit Data    3
 4        Request to Send          4
 5         Clear to Send           5
 6        Data Set Ready           6
 7         Signal Ground           7
 8        Carrier Detect           8
15        Transmit Clock          15
17         Receive Clock          17
20      Data Terminal Ready       20
22        Ring Indicate           22
24        External Clock          24

As this indicates most of the control leads (5,6,8,etc.) are output by the DCE. This serves two purposes: First, it lets the main CPU port (DTE) know that the comm. link is up and operational by pin 6,”Data Set Ready,” with the modem as the data set. By the same token, the data set need not be online if the CPU is down, so it will look for pin 20,”Data Terminal Ready,” prior to establishing a connection to the remote device. Secondly, it lets the CPU know that the remote device is up and operational.

This sequence of events can best be seen in a multipoint polled-type system. It works like this: When the host system polls each device in a specific poll-type protocol, its data set uses a constant carrier configuration. Each drop in the network will have a switched carrier configuration.

On a flow chart, the sequence of events is as follows:

+Power up DTEs, both remote and local. DTR goes high from DTEs.
+Bring up comm. link or DCE equipment. “Data Set Ready” is output by DCE to let the system know th comm. link is operational.
+Boot operating sys. in CPU. “Request to Send” is output constant from CPU. The CPUs data set gives a “Clear to Send” signal to CPU and each drop gets”Carrier Detect”signal from their own data sets, which tells them the host is available for communications.
+The host will generate its poll. This will be sent to all drops on the link and it will be up to the links to respond to their own specific address (which will be part of the poll).
+Prior to responding to the poll, the DTE on the drop will raise “Requerst to Send,” get “Clear to Send” signal, & host will receive “Carrier Detect” from its “Data Set.” This will tell the host the drop is ready to send.
+Exchange of data can now occur.

In summary, there are many variations of this as manufacturers vary from standards.