HOME

TheInfoList



OR:

Data Terminal Ready (DTR) is a
control signal In telecommunication, signaling is the use of signals for controlling communications. This may constitute an information exchange concerning the establishment and control of a telecommunication circuit and the management of the network. Classif ...
in
RS-232 In telecommunications, RS-232 or Recommended Standard 232 is a standard originally introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such a ...
serial communications, transmitted from data terminal equipment (DTE), such as a computer, to data communications equipment (DCE), for example a
modem A modulator-demodulator or modem is a computer hardware device that converts data from a digital format into a format suitable for an analog transmission medium such as telephone or radio. A modem transmits data by Modulation#Digital modulati ...
, to indicate that the terminal is ready for communications and the modem may initiate a communications channel. The DTR signal is present on pin 20 of the 22-wire RS-232 interface using a
DB-25 The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems. Description, no ...
connector, and on pin 4 of a newer
DE-9 The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems. Description, n ...
serial port. The signal is asserted (logic "1") by raising the voltage of the pin from negative to positive. Dropping the signal back to its negative state indicates to the modem that the communications session shall be terminated.


Signaling for modems

The DTR signal is an important call control signal for a data modem. According to the RS232 standard, dropping DTR from active to inactive for at least two seconds tells the modem to disconnect (end) a call or data connection. 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. When a computer wants to place a call, it asserts the DTR signal before sending commands. If the DTR signal is not asserted and the modem receives a ''dial'' command, modems either refuse to place the call, or they silently disable DTR support for the duration of that call; the actual behavior depends on the modem software. Other aspects of responses to changes in DTR can be manually overridden or configured on most newer modems. and higher values are used by some vendors.{{Citation , title=Alpha Micro GPRS Modem Functional Overview 1.0 , url=http://www.alphamicro.net/resources/GPRS_functional_overview.pdf , accessdate=2009-11-23 , year=2003 , author=Nick Robins , publisher=Alpha Micro Components , format=PDF , url-status=dead , archiveurl=https://web.archive.org/web/20070125091854/http://www.alphamicro.net/resources/GPRS_functional_overview.pdf , archivedate=2007-01-25 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 is 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.


Null modem operation

When a serial connection is made between two computers using a
null modem Null modem is a communication method to directly connect two DTEs (computer, terminal, printer, etc.) using an RS-232 serial cable. The name stems from the historical use of RS-232 cables to connect two teleprinter devices or two modems in orde ...
adapter, the DTR and the
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 ...
(DCD) 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.


Use for flow control

On some printers with serial interfaces, the DTR line is used for hardware flow control, similar to the use of RTS and CTS for modems. This practice is not consistent; other printers define RTS for this same purpose. When DTR is used for flow control, it manages the flow of 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.


Use as a power pin

On some hardware the DTR line (along with RTS) may be used to provide power. The most notable example of this is a serial mouse. The
DE-9 The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems. Description, n ...
serial port on the PC does not provide any dedicated power source. The mouse driver holds the DTR and RTS lines high at all times so that the device has a source of power. Another category of devices commonly powered by the DTR line includes converters between RS-232 and other serial standards such as
RS-422 RS-422, also known as TIA/EIA-422, is a technical standard originated by the Electronic Industries Alliance that specifies electrical characteristics of a digital signaling circuit. It was meant to be the foundation of a suite of standards that ...
and
RS-485 RS-485, also known as TIA-485(-A) or EIA-485, is a standard defining the electrical characteristics of drivers and receivers for use in serial communications systems. Electrical signaling is balanced, and multipoint systems are supported. The s ...
.


See also

*
Ring Indicator In telecommunications, RS-232 or Recommended Standard 232 is a standard originally introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such ...


References

RS-232 signals