Data Terminal Ready

Data Terminal Ready

Data Terminal Ready, abbreviated as DTR, is a control signal present inside an RS-232 serial communications cable that goes between a computer and another device, such as a modem. This is a one-way "high-low" signal going from the computer to the modem (or, in RS-232 terminology, "from DTE to DCE").

It is present on pin 4 of a DE-9 serial port, or pin 20 of a DB-25 port.

Contents

As used on modems

The DTR signal is one of the most important call control signals on a data modem. It is the most reliable method by which a computer tells the modem to disconnect (end) a call. Dropping the DTR from high to low for at least 2 seconds accomplishes this.

Without the DTR signal, there is only one other way to ask a modem to disconnect a call, and that is to put the modem in command mode using an escape code (typically "+++"), and then issue the hangup command ("ATH" per the Hayes command set). This method is problematic and undesirable for several reasons, because the best practice for the escape code is to disable it to prevent a denial of service vulnerability (see Time Independent Escape Sequence).

When a modem is being used for automatic answering (such as with the command ATS0=1), the DTR signal confirms to the modem that the computer is available to accept a call. In their default configuration, most modems will not answer a call if the DTR signal is low, even if auto answer is enabled.

When a computer wants to place a call, it raises the DTR signal before sending commands. If the DTR signal is not high and the modem receives a "dial" command, modems will either refuse to accept commands, place the call, or they will silently disable DTR support for the duration of that call (the actual behavior dependent on the modem firmware). Such behavior can be manually overridden or configured on most newer modems.

DTR configurability on modems

Virtually all modems new enough to support error correction and data compression (all modems 9600 bps and above, and some 2400 bps ones as well) have a built-in capability of modifying what they do with RS-232 signals, depending on the application.[citation needed] The AT command for manipulating DTR is typically AT&D followed by a single digit.[1] AT&D0 and AT&D2 are mandatory under V.250, and AT&D1 is optional.[2] AT&D3 is non-standard but widely implemented,[3][4] and higher values are used by some vendors.[5]

  • AT&D or AT&D0 - Ignore DTR signal. A call will continue regardless of the DTR line, and the only way to end the call is with the escape sequence, or if it gets terminated by the other side. This setting is only used if the computer equipment cannot provide or control DTR.
  • AT&D1 - Dropping the DTR signal puts the modem into Command Mode, without disconnecting the call. The computer may disconnect the call with the ATH command, or return to the call with ATO. This mode is useful if the computer wishes to change settings on the modem during the call (such as activating test modes).
  • AT&D2 (default on most modems) - Dropping the DTR signal will cause a disconnect. Following the disconnect, the modem returns to command mode.
  • AT&D3 (not supported by all modems) - Dropping the DTR signal will cause a disconnect, followed by a reset (similar to ATZ).

Many modems, especially older ones, have DIP switches that define the default DTR behavior when the modem is powered on or reset.[3] Newer modems use nonvolatile memory to hold this behavior, which can be manipulated with the AT&W command.

Many external modems have LED indicators on the front, one of which is TR ("terminal ready"). This light follows the state of the DTR pin. The light is on when DTR is high, and off when it's low. Modems will typically keep the TR light illuminated when the AT&D0 command is used to force the modem to ignore the DTR signal, regardless of the pin's actual state.

As used on null modem connections

When a serial connection is made between two computers using a null modem adapter, the DTR and DCD (Data Carrier Detect) lines are typically paired. This allows both ends of the connection to sense when the connection is active.

On many operating systems including Windows, the DTR line is held low while the serial port is unused and not being controlled by any applications.

As used on serial printers

On some serial printers, the DTR line is used for hardware flow control, similar to how RTS and CTS are used on modems. This practice is not consistent - other printers define RTS for this same purpose.

When DTR is used for flow control, this is to manage data from the printer to the computer. However, because during printing, the bulk of the data is from the computer to the printer, the importance of flow control in the opposite direction is minimal.

Used as a power pin

On some hardware the DTR line (along with RTS) is typically used to provide power. The most notable example of this is a serial mouse. The DE-9 serial port on the PC does not provide any power pins. The mouse driver holds the DTR and RTS lines high at all times so that the mouse may steal power for its own use.

Another category of devices commonly powered by the DTR line includes converters between RS-232 and other serial standards such as RS-422 and RS-485.

References

  1. ^ The Extended Hayes Command Set, KDE, http://docs.kde.org/stable/en/kdenetwork/kppp/hayes-extended-commands.html, retrieved 2009-11-23 
  2. ^ "6.2.9 Circuit 108 (data terminal ready) behaviour" (PDF), V.250 : Serial asynchronous automatic dialling and control (05/99, 07/03), ITU-T/Telecommunication Standardization Bureau, http://www.itu.int/rec/T-REC-V.250/en 
  3. ^ a b "8. Controlling EIA-232 Signaling", Courier V-Everything Command Reference, U.S. Robotics, http://www.usr.com/support/3453b/3453b-crg/chap%208-controlling%20EIA-232.htm, retrieved 2009-11-23 
  4. ^ "A.4 AT&D3 Implementation Issues" (RTF), PnP for COM Devices, rev 0.92, Microsoft and Hayes, February 28, 1995, http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/pnpcom.rtf 
  5. ^ Nick Robins (2003) (PDF), Alpha Micro GPRS Modem Functional Overview 1.0, Alpha Micro Components, http://www.alphamicro.net/resources/GPRS_functional_overview.pdf, retrieved 2009-11-23 

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Data Terminal Ready —   [Abk. DTR, dt. »Datenterminal bereit«], Bezeichnung für eine Steuerleitung der seriellen Schnittstelle, mit der die Datenendeinrichtung (Terminal) ihre Betriebsbereitschaft signalisiert …   Universal-Lexikon

  • Data Terminal Ready — Steckerleiste Der Begriff EIA 232, ursprünglich RS 232, bezeichnet einen Standard für eine serielle Schnittstelle, die in den frühen 1960ern von einem US amerikanischen Standardisierungskomitee (heute EIA – Electronic Industries Alliance)… …   Deutsch Wikipedia

  • Data Terminal Ready — signal from a computer (DTE) to a modem (DCE) that it is ready for communications, DTR …   English contemporary dictionary

  • Data Terminal Ready —    Abbreviated DTR. A hardware signal defined by the RS 232 C standard sent from a computer to a modem to indicate that the computer is ready to receive a transmission …   Dictionary of networking

  • data terminal ready — See DTR …   Dictionary of telecommunications

  • Data Carrier Detect — Data Carrier Detect, abbreviated as DCD, or alternately Carrier Detect abbreviated as CD, is a control signal present inside an RS 232 serial communications cable that goes between a computer and another device, such as a modem. This signal is a… …   Wikipedia

  • Ready for receiving — Mit Datenflusskontrolle (engl. data flow control) oder Datenflusssteuerung werden unterschiedliche Verfahren bezeichnet, mit denen die Datenübertragung von Endgeräten an einem Datennetz, die nicht synchron arbeiten, so gesteuert wird, dass eine… …   Deutsch Wikipedia

  • Command and Data modes (modem) — Command and Data modes refer to the two modes in which a computer modem may operate. These modes are defined in the Hayes command set, which is the de facto standard for all modems. These modes exist because there is only one channel of… …   Wikipedia

  • Data General — Industry Computer Fate Acquired Successor EMC Corporation Founded 1968 …   Wikipedia

  • High-Level Data Link Control — (HDLC) is a bit oriented synchronous data link layer protocol developed by the International Organization for Standardization (ISO). The original ISO standards for HDLC were: *ISO 3309 mdash; Frame Structure *ISO 4335 mdash; Elements of Procedure …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”