Shenzhen, China

DB9 Pinout for RS-232: What Your Cable Drawing Should Confirm

A DB9 pinout for RS-232 shows which numbered contacts carry data, handshaking signals, and signal ground. To order a cable, you also need to know which end sends each signal and which contact at the other end receives it. Take the pin table below to the equipment drawings, then write the cable connections as pairs of numbered contacts. A reviewer should be able to read each pair aloud and identify exactly where a continuity probe goes.

The RS-232 DTE DB9 pinout

DB9 is a common name for the nine-contact D-sub connector, also called DE-9. The directions below are relative to the DTE port on the equipment. On that port, the transmitter drives TXD and the receiver listens on RXD. The same shell shape can also appear on equipment with other interfaces. Check the exact model and interface mode before applying this reference. NI illustrates the distinction in Figure 1 and Table 4 of its Serial Legacy Hardware guide, which lists different signal assignments for RS-232 and RS-422/485 on its nine-contact connector.

RS-232 DB9 reference assignments from a DTE port
PinSignalDirection at DTE
1DCD, data carrier detectInput
2RXD, received dataInput
3TXD, transmitted dataOutput
4DTR, data terminal readyOutput
5GND, signal groundCommon reference
6DSR, data set readyInput
7RTS, request to sendOutput
8CTS, clear to sendInput
9RI, ring indicatorInput

Some equipment implements only a subset. The footnote in NI's table, for example, marks certain control contacts as unconnected on specific ports. Make a copy of the equipment pin list and circle the contacts the application actually uses. Include the serial port mode and any required flow-control settings on the review copy so the engineer checking the harness has the same starting point as the engineer configuring the devices.

Decide where each signal goes

For two compatible nine-contact ports with complementary DTE and DCE assignments, a straight-through cable connects like-numbered contacts. For two DTE ports, check whether the equipment calls for a null-modem cable. The data paths then cross from the transmitter on one port to the receiver on the other. Ask which handshaking inputs each device expects to see, since additional connections depend on the equipment and its configuration. NI's GPIB-RS232 wiring example for a DTE with handshaking shows how its converter connects RXD to TXD and RTS to CTS. Treat that wiring scheme as a reference for the devices in the NI example.

Here is a hypothetical drawing excerpt for two DTE ports whose equipment manuals allow data and signal ground only, with hardware flow control disabled. J1 and J2 are identifiers on the cable drawing. Both equipment ports follow the reference table above. The example is deliberately limited to that equipment configuration.

Example connection schedule for a data-only DTE-to-DTE cable
Contact on J1Contact on J2What to verify
32Data sent by the J1-side port reaches the J2-side receiver.
23Data sent by the J2-side port reaches the J1-side receiver.
55Both ports share the specified signal reference.
Other positionsOther positionsRecord each unused position as unconnected and check for unintended paths within the agreed test coverage.

When building the production netlist, expand any grouped instruction such as “other positions” into specific connector contacts. Label the connector shells separately and give any shield connection its own row. The equipment designer should specify whether the shell or shield connects at either end and whether that connection is isolated from signal ground. A continuity result then has a clear interpretation when a probe touches the metal shell.

Freeze the view before someone wires the first sample

A technician looking into a connector has a different view from someone looking at its wire entry. Label every sketch with its viewing side and mark a fixed reference such as the wide side of the D-sub shell or a connector's position-one feature. Carry the J1 and J2 labels from the sketch to the wiring schedule and the test fixture. During the drawing review, ask a second person to point to the same numbered contact on the manufacturer drawing and on the part in hand.

If the cable connects an internal board header to a panel port, draw the header as a full second endpoint. Include its reference designator, mating connector and pin-one orientation as installed. For a LUONYX example of that form factor, see the IDC to D-SUB9 male flat cable. The board documentation supplies the header signals and the cable drawing records where those signals land. Carry the cable exit direction into the installation view so the sample can be checked against available space at the panel or board.

Hand off a drawing that can be tested

Send the controlled drawing, both equipment pin tables and any existing sample together. At LUONYX's OEM drawing review, the buyer can provide technical drawings, specifications and samples. If a legacy cable is the only physical reference, indicate which equipment revision it served and identify any wiring detail that needs engineering confirmation. A supplier can trace the sample and return a proposed connection schedule for review against the current equipment requirements.

Turn the confirmed schedule into the inspection reference. Its header should identify the cable part number, drawing revision, fixture and test program. The record should show which expected paths were checked and which positions were included in isolation checks. If an end-to-end communication check is part of approval, list the equipment models and the relevant port settings alongside the result. A technician investigating a later fault can then reproduce the relevant setup and compare it with the approved wiring.

Give each unresolved item a disposition before the order moves forward. For example, the buyer might approve the data paths while leaving the shell bond open pending an enclosure review. Write that decision next to the shell row and name the person who will confirm it. Once the revised drawing defines the bond, update the fixture instructions and ask for the affected checks to be repeated. Keep the earlier sample result with its original revision so it stays clear which wiring was actually inspected.

DB9 pinout questions

Can I choose a straight-through cable from the connector gender?

Use the equipment's signal directions and contact numbers to choose the wiring. Gender specifies how the plugs and receptacles mate. The port documentation and required flow-control behavior determine the connection schedule.

Which pins carry transmit, receive, and ground?

On the DTE reference above, pin 3 transmits, pin 2 receives, and pin 5 is signal ground. Read the equipment manual for each end and label directions from that end's perspective before pairing contacts.

How do I handle an unused handshake pin on the drawing?

Mark its position and intended state in the connection schedule, then agree whether the test fixture will check it for unwanted connections. If the equipment specifies a jumper or loopback, give that connection its own row and record the associated port setting.