Fact-checked by Grok 2 weeks ago

Data Terminal Ready

Data Terminal Ready (DTR) is a control signal in the standard that originates from (DTE), such as a computer, to signal to (DCE), such as a , that the DTE is powered on, connected, and ready to initiate or receive communication. Defined in the original EIA standard, first introduced in 1960 and revised multiple times (with the current version being TIA/EIA-232-F from 1997), DTR serves as part of hardware handshaking to ensure reliable data exchange by confirming device readiness before transmission begins. In typical setups, DTR is asserted (set to the ON state) by the DTE when it opens a , indicating operational status, while its counterpart, Data Set Ready (DSR), is asserted by the DCE in response to confirm its own readiness after establishing a line . This pairing helps prevent data loss or errors in asynchronous links, though DTR is more commonly used for verification than for control, where signals like Request to Send (RTS) and Clear to Send (CTS) are preferred. Physically, DTR appears on pin 20 of the 25-pin DB-25 connector or pin 4 of the 9-pin DB-9 connector, operating at voltage levels (typically +3 to +15 V for logic 0 and -3 to -15 V for logic 1). Historically, DTR emerged as part of the original RS-232 specification to support early modem-based telecommunications, enabling coordinated startup of sessions in point-to-point links over distances up to 50 feet at speeds up to 20 kbps. In modern applications, such as industrial automation and legacy device interfacing, DTR remains relevant despite the prevalence of USB and Ethernet, often appearing in null modem cables where it is crossed with DSR to simulate DCE presence. Its role underscores the RS-232 protocol's emphasis on robust, standardized signaling for asynchronous data transfer between DTE and DCE.

Signal Fundamentals

Definition and Purpose

Data Terminal Ready (DTR) is a standard control signal in serial communications, transmitted from (DTE), such as a computer or terminal, to associated Data Communications Equipment (DCE), typically a . It is connected to pin 20 on the DB-25 connector and pin 4 on the DB-9 connector in the interface. The DTE asserts the DTR signal (typically by driving it to the ON state) to indicate its operational status and preparedness for data exchange. The DTR signal originated in the 1960s as part of the Electronic Industries Association (EIA) standard, first published in 1962, which defined interfaces for early devices including electromechanical teletypewriters and modems. This standard evolved from concepts in telegraphy signaling, where readiness indicators were essential for coordinating electromechanical equipment over serial links. Over time, and its control signals like DTR became foundational for reliable serial data transmission in and . The primary purpose of DTR is to notify the DCE that the DTE is powered on, operational, and ready to send or receive , thereby facilitating the initialization and maintenance of the communication . Unlike the Request to Send (RTS) signal, which requests permission for immediate transmission, DTR emphasizes the overall readiness of the terminal device to engage in a session, often remaining asserted throughout the connection. This distinction ensures coordinated handshaking without conflating device availability with transmission queuing.

Electrical Characteristics

The Data Terminal Ready (DTR) signal in the RS-232 interface conforms to the electrical specifications defined in the EIA-232 standard, which establishes voltage levels for reliable transmission over single-ended lines. For the DTR control signal, a logic high state (indicating ready) is represented by a positive voltage ranging from +3 V to +15 V, while a logic low state (indicating not ready) uses a negative voltage from -3 V to -15 V, with the region between -3 V and +3 V defined as an invalid or transition zone to enhance noise margin. Driver outputs must source or sink up to 5 mA while maintaining these levels into a 3 kΩ to 7 kΩ load, and receivers are guaranteed to interpret signals correctly if the voltage with respect to ground is +3 V or higher (for ON) or -3 V or lower (for OFF). The signal polarity for DTR is active high, meaning it is asserted by driving a positive voltage (logic high) to indicate the is powered and ready for communication, and deasserted by a negative voltage (logic low). This convention aligns with other control signals, where the positive voltage denotes an "ON" or active condition. In typical operation, the DTR signal is held in the high state for the duration of a communication session once asserted, rather than toggling rapidly like data signals. For compliance with EIA-232, the rise and fall times of the signal must not exceed 2 ms (corresponding to a maximum of 30 V/ms) to minimize and on adjacent lines. The DTR signal is assigned to specific pins on standard connectors: pin 20 on the DB-25 connector and pin 4 on the DB-9 connector, as defined in the original EIA-232-A through later revisions including EIA-232-E and -F. These pinouts remain compatible in modern implementations of , such as those in USB-to-serial adapters, provided they adhere to the core electrical and mechanical specifications. Due to its single-ended signaling without differential pairs, the DTR signal offers limited noise immunity, relying on the high voltage swings and the ±3 V hysteresis in receivers to reject common-mode noise. Consequently, maximum cable lengths are restricted to approximately 50 feet (15 meters) at standard baud rates up to 20 kbps, beyond which signal attenuation and noise can degrade reliability.

Core Applications in RS-232

Modem Signaling

In modem-based communications, Data Terminal Ready (DTR) serves as a key control signal for handshaking between (DTE), such as a computer, and (DCE), such as a , as defined in Recommendation V.24, where it is designated as circuit 108/2. The DTE asserts the DTR signal to indicate operational readiness, prompting the to prepare for connection establishment; this assertion indicates to the that the DTE is ready to initiate or receive data. Upon detecting the asserted DTR, the responds by activating Data Set Ready (DSR) to confirm its own readiness after linking to the telecommunications line, followed by asserting (DCD) once a suitable carrier signal from the remote is verified, thereby completing the handshake and allowing data exchange. DTR also governs session control in modem operations, particularly through the , which became the for dial-up s. Deasserting DTR typically instructs the modem to terminate the active session by hanging up the call or entering a reset state, preventing prolonged connections; for instance, the &D2 mode configures the modem to go on-hook and return to command mode upon an on-to-off DTR transition, while &D1 mode shifts to command mode without immediate disconnection, and &D0 ignores DTR changes entirely. This behavior ensures orderly session management, with the modem monitoring DTR transitions for a minimum duration set by S-register S25 (default 0.5 seconds) to avoid false triggers. Historically, DTR played a pivotal role in dial-up systems, exemplified by the Hayes Smartmodem introduced in 1981, which relied on DTR assertion to enable auto-answer functionality (via S-register S0 > 0) and facilitate remote access by signaling DTE readiness for incoming calls. In these systems, DTR's integration with the AT command set allowed seamless initiation of connections over telephone lines, supporting the growth of bulletin board services and early online networks. To handle error conditions, modems actively DTR for sudden deassertion, which often indicates DTE power loss or abrupt shutdown; this detection triggers an automatic hang-up (e.g., via &D2 ), thereby preventing orphaned sessions where a remote connection remains open without local control. Such , combined with a configurable hang-up delay in S-register S38 (default 20 seconds), ensures buffering is cleared before disconnection, maintaining session integrity in unreliable environments.

Null Modem Operation

In null modem operation, a specialized cable connects two (DTE) devices directly, such as computers or terminals, by crossing key signal lines to simulate the presence of a (DCE) like a , thereby enabling communication without remote infrastructure. This configuration tricks each DTE into believing it is interfacing with a modem, with the Data Terminal Ready (DTR) signal playing a central role in readiness indication; specifically, the DTR output from one DTE is crossed or looped to the Data Set Ready (DSR) and (DCD) inputs of the other, allowing mutual acknowledgment of operational status without an actual modem present. By asserting DTR, a device signals its readiness to the peer, mimicking the modem's response in a standard DTE-DCE link. Common configurations vary by connector type but consistently involve DTR cross-connections for handshaking simulation. For DB-9 connectors, prevalent in modern serial ports, DTR on pin 4 of one device connects to DCD on pin 1 and DSR on pin 6 of the other, alongside crossed Transmit Data (TD, pin 3) to Receive Data (RD, pin 2), and often Request to Send (RTS, pin 7) to Clear to Send (CTS, pin 8) for flow control support. In DB-25 setups, used in older equipment, DTR on pin 20 links to DSR on pin 6 and DCD on pin 8, with similar crossings for TD (pin 2) to RD (pin 3) and RTS (pin 4) to CTS (pin 5). These pinouts facilitate applications like direct PC-to-printer connections or emulation, where the looped DTR ensures automatic handshaking upon power-up. The primary advantages of DTR in setups include enabling local testing, debugging, and file transfers between devices using protocols such as or Zmodem, all without requiring external s or network access. This approach simplifies direct device-to-device links, supporting hardware handshaking for reliable data exchange in environments like integration. However, limitations arise because operation lacks true remote signaling; deasserting DTR does not replicate a modem "hang-up" but instead may prompt software to interpret it as a session termination, potentially leading to abrupt disconnections if not handled by the application. Additionally, compatibility depends on both devices supporting the same handshaking assumptions, as mismatched configurations can prevent readiness detection.

Specialized and Alternative Uses

Hardware Flow Control

In hardware flow control using the Data Terminal Ready (DTR) signal within communications, the deasserts DTR when its reaches capacity, signaling the sender to halt and thereby preventing from overflows. The sender continuously monitors the DTR line and resumes output only upon reassertion of the signal, once the has processed sufficient to free space. This mechanism operates independently of the data baud rate, allowing it to function reliably across varying speeds without synchronization issues. Compared to the more common Request to Send (RTS)/Clear to Send (CTS) method, DTR-based flow control serves as a simpler bilateral , particularly in hardware lacking full support for or software-based XON/XOFF protocols. While RTS/CTS provides granular, character-level pacing by toggling signals dynamically during active data transfer, DTR typically indicates overall device readiness and is less frequently modulated, making it suitable for basic setups where fine-tuned control is unnecessary. In practice, DTR is often paired with Data Set Ready (DSR) in crossed configurations, such as null modems, to enable mutual readiness confirmation between devices. A representative implementation occurs in serial printers and plotters, where the peripheral asserts DTR to indicate "ready to print" or process commands, and deasserts it upon saturation to pause incoming jobs from the host system. This ensures reliable output without overwhelming the device's limited , as seen in older dot-matrix or line printers connected via . DTR integrates into hardware handshaking for serial protocols like () over modems, where it helps maintain link stability during data exchange by confirming terminal readiness, distinct from PPP's software-based framing and negotiation layers. However, this approach has drawbacks, including slower response times compared to due to longer signal settling periods in transitions, which can introduce minor delays in high-throughput scenarios. Consequently, DTR flow control is less prevalent in modern high-speed links, where more efficient methods like USB or Ethernet predominate.

Power Supply Control

In resource-constrained environments, the Data Terminal Ready (DTR) signal in interfaces has been repurposed as a low-current DC power source to energize simple peripherals, leveraging its asserted state to provide a positive voltage output. When asserted (ON), DTR typically delivers +3 V to +15 V, often around +12 V, drawn from the host's , enabling it to power low-demand devices such as LEDs, small relays, or sensors requiring minimal current. This approach is common in port-powered devices, where DTR—along with signals like RTS or TXD—supplies the necessary voltage without an external power source, with current capabilities up to 50 mA per pin in standard UART implementations, though practical limits are often 10-20 mA to maintain reliability. One typical circuit implementation involves using DTR to drive a switch for controlling higher-voltage external supplies, such as converting the +12 V signal to activate a 5 V rail for peripherals; this setup is prevalent in DIY interfaces and where DTR's state (asserted or deasserted) acts as an on/off control for the load. For instance, an NPN with its base connected to DTR via a current-limiting can switch current to low-power sensors or indicators, ensuring the driver is not directly loaded beyond its specifications. Safety is paramount when employing DTR for power, as the signal line's current is inherently limited—typically to avoid exceeding 100 mA short-circuit protection in drivers—to prevent overload and potential damage to the host interface. Additionally, , such as through a or , is essential for sensitive loads to stabilize the variable +3 V to +15 V output and protect against fluctuations during signal transitions. Historically, this DTR power usage was widespread in and serial terminals and peripherals, powering devices like acoustic couplers or compact displays without dedicated power supplies, aligning with the era's emphasis on integrated, low-overhead connections for modems and early computer interfaces. By the 1990s, such applications extended to various port-powered widgets in resource-limited setups, capitalizing on RS-232's availability in personal computers for simple ancillary hardware. In contemporary systems, DTR-based has become largely obsolete, supplanted by USB's standardized 5 V power delivery up to 500 mA or more, which offers greater capacity and reliability for peripherals. Nonetheless, it persists in niche scenarios, where microcontrollers or interfaces repurpose DTR to toggle low-power modes or supply minimal voltage for diagnostic tools in or hobbyist applications.

Transmit Keying

In transmit keying applications, the Data Terminal Ready (DTR) signal is utilized in to control the on/off switching of a (CW) transmitter for transmission. By pulsing the DTR line high (typically +3 to +12 V) to key the transmitter on and low to key it off, software generates the precise timing for dits and dahs, producing the modulated RF carrier required for CW signals. To safely interface the low-voltage serial port with high-power RF equipment, isolation circuits are employed, such as opto-isolators (e.g., 4N23) or transistor-driven relays. These circuits prevent ground loops and protect the computer from voltage spikes; for instance, an opto-isolator uses the DTR signal to drive an LED, with the phototransistor output connecting to the radio's key line, capable of sinking up to 50 mA at 8-12 V. Relays provide galvanic isolation for higher-power setups, switching the key line via a simple NPN transistor like the 2N2222 triggered by DTR. Amateur radio software integrates DTR toggling to achieve accurate timing, typically supporting speeds of 5-50 words per minute (WPM). Programs like CwType configure DTR as the key output on a or COM port, pulsing it for dit/dah durations based on the selected WPM and Farnsworth spacing, while often pairing it with RTS for push-to-talk (PTT). Similarly, uses DTR for keying with precise loop-based timing, ensuring clean signals up to 40 WPM. This technique gained popularity in the with the rise of personal computers in and (RTTY) setups, where serial ports enabled direct control of transceivers via terminal node controllers (TNCs) and modems. In RTTY, DTR often handled (FSK) by toggling mark/space shifts, complementing early digital modes on HF bands. Such computer-assisted operations comply with FCC Part 97 rules, which permit automated CW generation provided the amateur operator maintains direct control and uses international . Compared to dedicated hardware keyers like the WinKey chip, DTR-based methods are simpler but limited by serial port baud rates (e.g., 9600 bps maximum) and software latency, restricting reliable operation to lower speeds and avoiding high-QRQ modes above 50 WPM. These constraints make DTR suitable primarily for low-speed and legacy digital modes rather than or rapid-fire operations.

References

  1. [1]
    Fundamentals of RS-232 Serial Communications - Analog Devices
    Mar 29, 2001 · RS-232 is a complete standard. This means that the standard sets out to ensure compatibility between the host and peripheral systems.
  2. [2]
    RS232 and Serial Communications - TAL Technologies
    DTR stands for Data Terminal Ready. Its intended function is very similar to the RTS line. DSR (Data Set Ready) is the companion to DTR in the same way that CTS ...
  3. [3]
    RS-232: A Comprehensive Guide to Understanding the Protocol
    DTR indicates that the DTE is ready to initiate communication, while DSR shows the DCE's readiness. These signals help coordinate the terminal equipment and ...Rs-232 Connectors And Pin... · Cable Length And Data... · Serial To Usb Adapters
  4. [4]
    What is the RS-232 Protocol, What it's used for, and RS232 Serial ...
    DTR (Data Terminal Ready): This signal indicates that the terminal or transmitter is ready to launch a connection with the receiver device. DSR (Data Set Ready): ...
  5. [5]
    Serial Communication - Computer Science
    None. History: RS-232C Pins/Signals (DB-25, DB-9). Clear to Send (5, 8); Data Carrier Detect (8, 1); Data Set Ready (6, 6); Data Terminal Ready (20, 4); Signal ...Missing: pinout | Show results with:pinout
  6. [6]
    [PDF] EIA 232 Info - Digi
    DTR, or Data Terminal Ready: This signal is generally used to indicate that the DTE is ready to receive and transmit data (the ready state).<|separator|>
  7. [7]
    EIA RS 232 Standard - Electronics Notes
    The RS-232 standard has come a long way since its initial release in 1962. Since then the standard has seen a number of revisions, but more importantly, RS232 ...Missing: teletypewriters | Show results with:teletypewriters
  8. [8]
    What is RS-232C? | Definition from TechTarget
    May 15, 2023 · The RS-232 standard originally targeted teletypewriters and modems before being adopted by other device types, including personal computers ...
  9. [9]
  10. [10]
    [PDF] Serial Interfaces – Part 1 - UCSB ECE
    □ DTR stands for “Data Terminal Ready”. ▫ Intended function is very similar to the RTS line except it has to do with indicating readiness to start or stop ...
  11. [11]
    The RS232 Standard - CAMI Research
    Tutorial discussion of the RS232 (EIA232) standard with signal names, definitions, and examples.
  12. [12]
    RS232 Voltage Levels - Signals DTR CTS RTS - Electronics Notes
    RS232 data voltage levels are -3 to -25V (logic 1) and +3 to +25V (logic 0). Control line levels are -3 to -25V (OFF) and +3 to +25V (ON).
  13. [13]
    [PDF] Interface Circuits for TIA/EIA-232-F (Rev. A) - Texas Instruments
    All 232 circuits carry voltage signals, with the voltage at the connector pins not to exceed ±25 V. All pins must be able to withstand a short circuit to any ...
  14. [14]
    V.24 : List of definitions for interchange circuits between data ... - ITU
    Nov 27, 2019 · V. 24 : List of definitions for interchange circuits between data terminal equipment (DTE) and data circuit-terminating equipment (DCE)
  15. [15]
    [PDF] echnical Reference or Hayesnf Modem Users - Bitsavers.org
    Jul 31, 1991 · the Result Codes that can be returned by Hayes modems. These are listed in numeric order. The third section defines Hayes Smartmodem Registers.
  16. [16]
    Modem control signals - IBM
    The server will toggle the Data Terminal Ready (DTR) signal from on to off to instruct the modem to terminate the connection.
  17. [17]
    Serial Port and Modem Cables - Columbia University
    Nov 28, 2006 · Data Terminal Ready (DTR): Indicates that the computer is on, in data mode, and is "paying attention" to the modem. When the DTR signal goes ...Missing: pinout | Show results with:pinout
  18. [18]
    Tech Stuff - RS-232 Cables, Wiring and Pinouts - ZyTrax
    Jan 20, 2022 · RS-232 uses DTE (PC) and DCE (modem) ends. Pinouts vary for DB9, DB25, and RJ45 connectors, with signal direction from the DTE end.
  19. [19]
    Product Documentation - NI
    **Summary of Null Modem Cable Configuration (RS-232) from NI Documentation:**
  20. [20]
  21. [21]
    What is DTR/DSR Flow Control? - Brainboxes
    ### Summary of DTR/DSR Flow Control
  22. [22]
    RS232 Tutorial on Data Interface and cables - ARC Electronics
    RS232 data is bi-polar.... +3 TO +12 volts indicates an "ON or 0-state (SPACE) condition" while A -3 to -12 volts indicates an "OFF" 1-state (MARK) condition.... ...
  23. [23]
    Port-powered serial converters - USconverters.com
    Port powered converters take their power from the connected RS-232 device's output signals. As an example, a PC normally has outputs on the Transmit Data (TD).
  24. [24]
    [PDF] SC32A Optically Isolated RS232 Interface - Campbell Scientific
    Power for the RS232 section is taken from the Data Terminal Ready (DTR) and Request To Send (RTS) lines of the RS232 peripheral. An on-board DC to DC converter ...<|control11|><|separator|>
  25. [25]
    [PDF] Understanding Power Requirements in RS-232 Applications (Rev. B)
    Transmission of data can be discontinued by hanging up the phone line, by the. DTE dropping its DTR circuit, by disconnecting the modem cable from the DTE.
  26. [26]
  27. [27]
  28. [28]
    Remote CW Keyer - QSL.net
    DTR, Data Terminal Ready, Morse keying output (positive = "key down"). 5, GND, Ground. 6, DSR, Data Set Ready. 7, RTS, Request To Send, PTT output (positive = " ...
  29. [29]
    Understanding the "Com Port Splitter" - West Mountain Radio
    These are RTS (ready to send) and DTR (data terminal ready). RTS activates the PTT (push to talk function) and DTR is often for keying the CW or FSK jack.
  30. [30]
    Simple rig audio and PTT interface - GW8IZR
    Isolated PTT and CW Key interface,. Most software uses the RS232 signal lines RTS for PTT and DTR for CW Key. The levels offered by most modern RS232 ports ...
  31. [31]
    [PDF] CW KEYER and CWtype setup - microHAM
    Assign radio control COM port, CW/PTT port, and WinKey port. In CWtype, select COM-Port, set PTT to RTS, and Key to DTR (CW output). Save as preset.
  32. [32]
    Fldigi Users Manual: CW Keyline Configuration
    The time to transmit is measured and compared to the ideal timing, 1200 msec / WPM. Be aware that this may transmit the characters. Use low power or a dummy ...<|separator|>
  33. [33]
    [PDF] ASCII, Baudot, and the Radio Amateur
    The 1970's have brought a revolution to amateur radio RTTY equipment and techniques, the latest being the addition of the ASCII computer code.
  34. [34]
    47 CFR Part 97 -- Amateur Radio Service - eCFR
    (1) CW. International Morse code telegraphy emissions having designators with A, C, H, J or R as the first symbol; 1 as the second symbol; A or B as the third ...97.101 – 97.121 · 97.401 – 97.407 · 97.3 Definitions · 97.307 Emission standards.
  35. [35]
    The Configurer – N1MM Logger Plus
    If you select Winkeyer, DO NOT set DTR to CW. Note: Only one Winkeyer is supported, but a single Winkeyer can key two radios. Two Radio Protocol – Support for ...