Fact-checked by Grok 2 weeks ago

Data Carrier Detect

Data Carrier Detect (DCD), also known as Received Line Signal Detector (RLSD) in some standards, is a control signal in the interface that indicates to the (DTE), such as a computer, whether the (DCE), such as a , is receiving a valid signal from a remote DCE. This signal is essential for establishing and maintaining connections in asynchronous serial data transmission, particularly in modem-to-modem communications, where it confirms the presence of a suitable before allowing data flow. When active, DCD asserts a positive voltage level (typically +3 V to +15 V) to signify detection of the carrier, enabling the DTE to initiate or continue transmission without errors due to an absent remote signal. Defined in the EIA/TIA-232-E standard, DCD functions as an output from the DCE and an input to the DTE, operating unidirectionally to provide real-time status on line connectivity. In hardware implementations, it corresponds to pin 8 on the 25-pin (DB-25) connector and pin 1 on the 9-pin (DE-9) connector, adhering to the voltage swing requirements of the protocol for reliable signaling over distances up to 50 feet. As part of the modem control signals—alongside others like (DTR) and Clear to Send (CTS)—DCD plays a critical role in handshaking sequences, preventing data transmission over an inactive or noisy line and thus reducing errors in legacy systems like early and industrial automation. Though and its signals like DCD originated in the for teletypewriter applications, they remain relevant in systems, GPS devices, and equipment despite the rise of USB and Ethernet alternatives. Modern adaptations, such as RS-232 transceivers in integrated circuits, continue to support DCD for compatibility in mixed-protocol environments, ensuring robust carrier detection in point-to-point links.

Overview and Fundamentals

Definition and Purpose

Data Carrier Detect (DCD) is a binary control signal defined within the standard, used to indicate the presence of a valid signal transmitted from a remote device. This signal operates as a status indicator in interfaces, where it transitions between two discrete states to reflect the detection or absence of the . The primary purpose of DCD is to notify the Data Terminal Equipment (DTE), such as a computer or , that a reliable communication link has been established with the remote device, thereby permitting the DTE to initiate or continue data transmission only when the signal is active. By asserting DCD, the system ensures that data is not sent over an unreliable or absent connection, preventing errors and optimizing the efficiency of the serial link. In the interface, DCD is generated by the Data Communications Equipment (DCE), such as a , and received by the DTE. The signal's basic states are asserted, representing a logical 1 when a is detected, and deasserted, representing a logical 0 when no carrier is present.

Historical Development

The Data Carrier Detect (DCD) signal was introduced as part of the original EIA standard, published in 1962 by the Electronic Industries Association (EIA), to standardize interfaces for teletypewriters and early computer-modem communications. This inclusion addressed the critical need for reliable carrier signal detection in early data transmission over analog telephone lines, which were prone to and , enabling devices to confirm an active connection before proceeding with data exchange. Subsequent revisions of the standard refined DCD's role while maintaining compatibility, with key milestones including RS-232C in 1969, which formalized the 25-pin connector; RS-232D in 1987, adding timing specifications; EIA-232-E in 1991; and the final major update, TIA/EIA-232-F, in 1997, which incorporated enhancements for evolving serial needs. Internationally, the V.24 recommendation, first approved by the CCITT in 1972 as the functional equivalent to , defined DCD (as circuit 109, or CF) for similar interchange purposes between (DTE) and (DCE). DCD's design persisted in later standards, such as EIA/TIA-561 released in 1990, which adapted signaling—including DCD—for compact 8-position connectors in mobile and telephony devices. Although the prominence of DCD and waned with the advent of digital alternatives like USB in the late 1990s and Ethernet for networked communications, the signal continues to play a role in legacy systems, industrial controls, and embedded applications as of , where its simplicity and robustness remain advantageous for point-to-point serial links.

Technical Specifications

Pinout and Interface

In the standard, the Data Carrier Detect (DCD) signal is assigned to pin 8 on the legacy 25-pin (DB-25) connector, where it serves as the input from the (DCE) to the (DTE) to indicate the presence of a carrier signal. For modern implementations, the 9-pin (DE-9 or DB-9) connector reassigns DCD to pin 1, maintaining compatibility while reducing connector size for compact devices. Adaptations using RJ-45 connectors, as defined by EIA/TIA-561, typically map DCD to pin 2 to enable over twisted-pair cabling in networked or extended environments. The interface for DCD aligns with international standards, including V.24, which designates it as Circuit for received line signal detector functionality, ensuring consistent signal interchange between DTE and DCE. It also complies with ISO/IEC 2110, which specifies the mechanical aspects of the D-sub connectors and supports interchange in interfaces. Connector types emphasize the distinction between the original 25-pin DB-25, favored in early industrial and telecommunications equipment for its full pin allocation, and the prevalent 9-pin DE-9, which omits less-used signals but retains essential ones like DCD for cost-effective, space-constrained applications. Gender conventions mandate connectors (with pins) for DTE devices, such as computers, and connectors (with sockets) for DCE devices, like modems, to facilitate straightforward straight-through cabling without adapters. Proper interfacing requires a dedicated signal ground—pin 5 on DE-9 or pin 7 on DB-25—to establish a common reference potential between DTE and DCE, minimizing voltage differentials that could distort signals. Shielding the cable with a grounded or braided is essential to mitigate , particularly for DCD, as external noise can induce false carrier detections; recommended cable capacitance should not exceed 2500 pF total to preserve over distances up to 20 meters.

Signal Behavior and States

The Data Carrier Detect (DCD) signal operates using bipolar voltage levels defined by the EIA-232 standard, where assertion (indicating carrier detection) occurs at -15 V to -3 V, representing the logical "on" state for control signals, and deassertion (indicating ) occurs at +3 V to +15 V, representing the "off" state. The region between -3 V and +3 V serves as the transition threshold, where the signal state is undefined to provide a 2 V at the receiver input. Timing characteristics of the DCD signal ensure reliable operation and , with a maximum of 30 V/μs limiting the rate of voltage change during transitions to reduce and emissions. Rise and fall times are controlled accordingly, typically resulting in transition durations on the order of hundreds of microseconds for the full voltage swing, though exact times vary with implementation but must comply with the slew rate limit. State transitions for DCD are triggered by the detecting device's assessment of the incoming carrier: the signal asserts upon acquisition of a valid carrier meeting predefined criteria, such as sufficient signal strength and modulation quality, and deasserts upon carrier loss, such as due to signal fade or disconnection. To handle intermittent carriers and prevent rapid "flapping" between states, receiver circuits incorporate input hysteresis, typically 0.5 V, which requires the input voltage to exceed the threshold by this margin before switching states, thereby stabilizing against brief fluctuations. Error conditions, particularly false positives where noise mimics a valid carrier assertion, arise from environmental interference or electromagnetic noise on the line, potentially leading to erroneous state changes. Mitigation includes the inherent 2 V noise margin in voltage thresholds, on-chip hardware filters in transceivers to reject transients, and software-based polling that verifies signal stability over multiple reads before acting on a transition.

Primary Applications

Modem Communications

In modem communications, the Data Carrier Detect (DCD) signal serves as a critical indicator from the (Data Circuit-terminating Equipment, or DCE) to the connected device (, or DTE), confirming the presence of a valid carrier tone from the remote . This assertion occurs upon successful detection of the modulated carrier signal transmitted over the , establishing the link necessary for data exchange. In early standards like Bell 103, an asynchronous full-duplex (FSK) protocol operating at 300 bits per second with distinct originate and answer frequencies (e.g., 1070/1270 Hz for originate mark/space), the asserts DCD once the remote carrier is reliably received, typically after the answer tone handshake. Similarly, the ITU-T V.21 protocol, its international counterpart also at 300 bps using FSK with frequencies such as 980/1180 Hz for low-band originate, triggers DCD assertion following carrier tone validation to signal link readiness. DCD integrates seamlessly with RS-232 handshake signals to orchestrate the dial-up connection sequence and flow control. Upon dialing (e.g., via ATD command in Hayes-compatible s), the local emits an originate tone; if the remote answers and its is detected, DCD transitions high (asserted), informing the DTE that the is viable. This enables activation of Request to Send (RTS) from the DTE, prompting the to assert Clear to Send (CTS) for hardware flow control, allowing bidirectional data flow only under stable conditions. In asynchronous modes, prevalent in dial-up scenarios, this sequence prevents transmission attempts over noisy or unestablished lines, with DCD remaining a prerequisite for engagement to data rates and avoid buffer overflows. During ongoing data transfer in asynchronous modems, DCD provides monitoring of integrity; deassertion upon loss—due to line noise, remote hang-up, or signal fade—triggers protective measures like automatic disconnection. To mitigate transient interruptions, modems implement a configurable delay (e.g., via S10 register in Hayes sets, defaulting to 1.4 seconds) before interpreting loss as a full disconnect, prompting a hang-up () or retry sequence while notifying the DTE via result codes like "." This behavior ensured reliability in legacy environments, such as early over 56k modems (e.g., V.90/V.34 protocols), where brief drops could otherwise corrupt sessions. The , foundational to interoperability from the 1980s through the 56k era, facilitated DCD management and status oversight in these contexts. Commands like &C1 configure DCD to mirror true , while result codes and register queries (e.g., via ATI or S-register reads) allowed software to poll connection viability, enabling applications to automate retries or logging in dial-up networking prevalent until adoption. This standardization supported widespread use in personal computing, from systems to initial web access, where DCD's role in carrier validation underpinned robust link maintenance.

Null Modem Connections

In null modem connections, Data Carrier Detect (DCD) is simulated locally or crossed between devices to mimic the presence of a remote carrier signal, which originally indicates an established link in standard setups. This adaptation enables direct communication between two (DTE) devices, such as computers, without an intervening , by presenting a persistent "connected" state to the software. The wiring of a cable typically crosses the transmit and receive lines (pins 2 and 3 on DB-9 or equivalent on DB-25) while handling control signals like DCD (pin 1 on DB-9 or pin 8 on DB-25) to bypass the need for an actual . In a common configuration, DCD is crossed to the remote (DTR) signal (pin 4 on DB-9 or pin 20 on DB-25), allowing each device to interpret the other's DTR assertion as DCD activation, thus signaling a valid link. Alternatively, for simpler setups, DCD may be tied to a local +5V or +12V source or looped directly to the local DTR within the cable or adapter to maintain constant assertion, eliminating any dependency on remote signaling. Variations in null modem designs address different levels of hardware and software compatibility. A full null modem cable crosses all control lines, including DCD to remote DTR and secondary signals like Data Set Ready (DSR), providing comprehensive simulation for applications requiring full handshaking. In contrast, a partial null modem often loops DCD to the local DTR (along with DSR) at each end, creating a self-contained "always on" state that satisfies software expecting DCD without inter-device crossing of controls. These connections have limitations, as the simulated DCD does not monitor actual remote carrier presence, potentially allowing undetected link failures or cable issues to go unnoticed. They were particularly prevalent in 1980s and 1990s networking for direct serial links, such as computer-to-computer file transfers using the Kermit protocol, which supported robust error-free transmission over such cables.

Advanced and Specialized Uses

Pulse-Per-Second (PPS) Timing

In timing synchronization applications, the Data Carrier Detect (DCD) pin of an serial port can be repurposed to carry Pulse-Per-Second () signals from external sources, such as GPS receivers, enabling software-based timestamping through interrupts triggered by DCD state transitions. This setup allows systems to capture precise time marks without dedicated hardware, leveraging the serial interface's modem control lines for low-jitter signal detection. The RFC 2783 specification defines a Pulse-Per-Second for operating systems, utilizing DCD transitions to achieve sub-millisecond accuracy suitable for the Network Time Protocol (NTP). It outlines an interface where handles are created from file descriptors using the time_pps_create function, and timestamps are fetched via time_pps_fetch in nanosecond-resolution struct timespec format. Kernel binding through time_pps_kcbind disciplines the system timebase with modes like PPS_KC_HARDPPS for hardclock integration. Implementation involves edge-triggered assertion on the DCD pin, typically at a 1 Hz rate, where rising (assert) or falling (clear) edges—specified via PPS_CAPTUREASSERT or PPS_CAPTURECLEAR flags—mark UTC second boundaries with minimal latency. Kernel-level capture ensures timestamps occur close to the hardware interrupt, reducing jitter to below the system clock tick interval, often achieving microsecond-level precision when paired with NTP. The PPSDISC line discipline in the kernel manages DCD interrupts for this purpose, requiring privileged access for binding operations. Such configurations support high-precision clocks in network servers for Stratum 1 NTP synchronization and in for correlating observations with UTC.

Integration with Other Hardware

In industrial hardware, Data Carrier Detect (DCD) serves as a key link status indicator in RS-232-enabled Programmable Logic Controllers (PLCs) and sensors, particularly those utilizing RTU protocols over serial connections. For instance, in RTU implementations on interfaces, DCD can indicate physical link status when a is involved, helping to confirm connection integrity in point-to-point setups common to some systems. This functionality ensures reliable communication in environments like process automation, where devices may monitor DCD to verify the before data exchange. Beyond traditional timing applications, DCD plays a role in GPS and navigation systems. In legacy networking equipment such as routers, DCD monitors the physical on serial interfaces, which can extend to virtual detection in serial-based VPN tunnels. For example, in older models like the 800 series, the asserts DCD to indicate line protocol up/down status, enabling routers to maintain VPN connectivity over serial links by correlating physical signal presence with health. Similarly, in embedded systems like serial shields, advanced variants support DCD through hardware handshaking extensions, allowing microcontrollers to interface with devices and detect remote endpoint availability for applications such as remote sensor polling. Modern adaptations of DCD persist through USB-to-RS-232 converters, notably those using chipsets, which preserve full control signals including DCD for legacy compatibility. Devices like the USB-COM232-PLUS series emulate levels up to 3 Mbps while routing DCD, RTS, and CTS signals, enabling seamless integration of older peripherals with USB hosts in industrial or diagnostic setups. Although DCD usage has declined in TTL-level communications due to simplified 3.3V/5V interfaces lacking full handshaking, it remains relevant in certain specialized hardware interfaces.

References

  1. [1]
    Fundamentals of RS-232 Serial Communications - Analog Devices
    Mar 29, 2001 · Data Carrier Detect (DCD): This signal is turned ON when the DCE is receiving a signal from a remote DCE, which meets its suitable signal ...
  2. [2]
    [PDF] RS 232 Signal Information
    DCD, or Data Carrier Detect: This is an input for DTE devices and an output for DCE devices. This signal is used to show that there is a valid connection ...
  3. [3]
    RS232 Data Interface - Data Connect Enterprise
    Data Carrier Detect (DCD) indicates that a good carrier is being received from the remote modem. ... This is a standard 9 to 25 pin cable layout for async data on ...
  4. [4]
    [PDF] Interface Circuits for TIA/EIA-232-F (Rev. A) - Texas Instruments
    This document on ANSI Electronic Industries Association/Telecommunication. Industry Association TIA/EIA-232-F and ITU V. ... Data Carrier Detect (DCD) – Receive ...
  5. [5]
    Unravelling the RS-232 standard - EE World Online
    Jan 17, 2017 · The terminal could then signal the modem to go “off-hook” and wait for Data Carrier Detect (DCD) signal. This was to eliminate any noise on ...
  6. [6]
    EIA RS 232 Standard - Electronics Notes
    The RS 232 standard has been one of the most successful serial data transmission standards ever introduced. First developed in the early 1960s it has remained ...
  7. [7]
    [PDF] AN-917 Popular Connector Pin Assignments for Data Communication
    EIA/TIA-561 is a new standard released in 1990 and specifies a small 8 position interface for non- synchronous interface between DTEs and DCEs. The uniqueness ...
  8. [8]
    3 Reasons USB Ports Are Replacing Serial Ports - Voler Systems
    USB ports replaced serial ports for computing devices and equipment because they offer higher speed, better durability, and memory device compatibility.Missing: rise Ethernet continued
  9. [9]
  10. [10]
    [PDF] DB9 RJ45 adapters - USconverters.com
    DB9 to RJ45 adapters are often used in combination with a RS232 repeater for extending the distance of a serial RS232 link, but can be used for any adapter or ...Missing: adaptations | Show results with:adaptations
  11. [11]
    [PDF] ITU-T Rec. V.24 (02/2000) List of definitions for interchange circuits ...
    Feb 17, 2000 · This Recommendation applies to the interconnecting circuits being called interchange circuits at the interface between DTE and DCE for the ...
  12. [12]
    None
    ### Summary of https://www.ti.com/lit/an/slla037a/slla037a.pdf
  13. [13]
    [PDF] DS232A Dual RS-232 Transmitter/Receiver - Analog Devices
    The receivers have 0.5 volts of hysteresis (typical) to improve noise rejection. The TTL/CMOS compatible outputs of the receivers will be low whenever the ...Missing: DCD | Show results with:DCD
  14. [14]
    [PDF] Configuring and Managing External Modems - Cisco
    The modem dialin command frees up CTS input for hardware flow control. Modern modems do not require the assertion of DTR to answer a phone line (that is, to ...
  15. [15]
    FAQ-What is the meaning of DCD&DTR&DSR&RTS&CTS - Huawei
    Jul 27, 2012 · For the five control signaling, DTR and RTS are sent by DTE device (such as router). DSR, CTS and DCD are sent by DCE device (such as MODEM).
  16. [16]
    [PDF] 56K Softmodem Command Reference
    modems carrier signal. Data carrier detect (DCD) is a signal from the modem to the DTE indicating that the carrier signal is being received from a remote modem.Missing: RS- 232
  17. [17]
    Hayes Modem AT Strings and Commands - Computer Hope
    Jun 14, 2025 · 0=force DCD signal active, 1=DCD signal indicates true state of remote carrier signal. &Dn - Controls DTR (Data Terminal Ready) transition.Missing: V8 | Show results with:V8
  18. [18]
    Serial Port and Modem Cables - Columbia University
    Nov 28, 2006 · The result is a null modem cable – a cable that presents itself to each computer as if it were coming out of a modem. There are several classes ...
  19. [19]
    11.3. Cable from console port to terminal (or another PC)
    In this case only a three-wire or two-wire RS-232 null modem cable is needed. Figure 11-4. Null modem cable with no status or handshaking. Signal ground ...
  20. [20]
    RS232 serial null modem cable wiring and tutorial - Lammert Bies
    Select the right RS232 null modem cable. In depth tutorial of all types of serial null modem cables. Includes easy to use selection table.Null modem, an introduction · Null modem without... · Null modem with loop back...
  21. [21]
    Pulse-Per-Second (PPS) Signal Interfacing
    The simplest way to collect a PPS signal is from a GPS over a serial handshake pin, typically DCD; Linux supports this. On FreeBSD systems (with the PPS_SYNC ...Missing: receiver | Show results with:receiver
  22. [22]
    RFC 2783 - Pulse-Per-Second API for UNIX-like Operating Systems ...
    RFC 2783 - Pulse-Per-Second API for UNIX-like Operating Systems, Version 1.0. This RFC is labeled as "Legacy"; it was published before a formal source was ...
  23. [23]
    Getting accurate time GPS PPS over USB - Brian Kloppenborg
    Sep 7, 2023 · In the case of RS-232, the PPS signal is typically connected to the Data Carrier Detect (DCD) pin; however, it can also appear on the Ring ...
  24. [24]
    TrueTime GPS/GOES/OMEGA/WWV Receivers - NTP.org
    The TrueTime GPS/GOES/OMEGA/WWV Receivers driver supports several models of Kinemetrics/TrueTime timing receivers, including 468-DC MK III GOES Synchronized ...Missing: DCD | Show results with:DCD
  25. [25]
    [PDF] Serial Communications RS232, RS485, RS422
    This protocol is used in industrial applications and most SCADA PLC's have drivers for. Modbus RTU. ... 1 Carrier Detect (CD). CD. CD 1 Carrier Detect (CD). 2 ...
  26. [26]
    Serial port data communication using MODBUS protocol
    Jan 22, 2008 · RS-232 is a standard for serial binary data transfer between a data terminal equipment (DTE) and a data circuit-terminating equipment (DCE), ...
  27. [27]
    What is NMEA? - Ag Leader
    NMEA-0183 data is sent at 4800 baud. The data is ... NMEA-0183 Message Structure. NMEA-0183 ... Data Carrier Detect, <-, 8. 20, 4, Data Terminal Ready ...
  28. [28]
    NMEA0183 Interfacing - How To Guide - Boating and Fishing Forum
    Feb 2, 2009 · 1 Input DCD Data Carrier Detect 2 Input RXD Received Data 3 Output TXD Transmitted Data 4 Output DTR Data Terminal Ready 5 Signal Ground 6 ...
  29. [29]
    About NMEA - Ag Leader
    NMEA-0183 data is sent at 4800 baud. The data is transmitted in the form ... Data carrier detect, <, 8. 20, 4, Data terminal ready, >, 20. 22, 9, Ring indicator ...
  30. [30]
    Configuring the Serial Interface [Cisco 800 Series Routers]
    Jul 24, 2014 · By default, when the serial interface is operating in DTE mode, it monitors the Data Carrier Detect (DCD) signal as the line up/down indicator.
  31. [31]
    Serial Interface Cards - Cisco
    When the port is in DTE mode, the CONN LED indicates that Data Send Ready (DSR), Data Carrier Detect (DCD), and Clear To Send (CTS) have been detected. When the ...
  32. [32]
    RS232 (MAX232) shield with hardware handshaking - Arduino Forum
    Jan 11, 2012 · This shield is fairly unique in that it allows you to implement hardware handshaking (CTS/RTS) through two standard digital pins.
  33. [33]
    [PDF] FT232R USB UART IC Datasheet - FTDI
    The UART interface also supports the RS232. BREAK setting and detection conditions. Additionally, the UART signals can each be individually inverted and have a ...
  34. [34]
    USB-COM232-PLUS1 - FTDI
    In stockDesigned with FTDI's FT232R Full-Speed USB device the module can enable connecting legacy RS232 peripherals to your PC USB port at data rates up to 3Mbps. The ...
  35. [35]
    [PDF] A-429 HS/LS TO SERIAL CONVERTER - Shadin Avionics
    The purpose of this converter is to take the ARINC 429 high or low speed input data. The serial output (RS-232 or RS-422) will provide the information ...