USB to DB9 Serial Adapter: Getting the Wiring Right

DB9 is the connector everyone pictures when they think of serial, even though the standard originally used 25 pins. Getting the correct gender and wiring is the whole job.

Quick Answer

A USB to DB9 serial adapter presents a 9 pin D-sub connector carrying RS-232 signals, usually male. Match the gender to the equipment socket and confirm whether the link needs straight through or null modem wiring. Only pins 2, 3 and 5 carry data and ground; the remaining pins are handshake and status lines that some equipment requires.

DB9 Pinout

PinSignalDirection from the computer
1DCD, carrier detectInput
2RXD, receive dataInput
3TXD, transmit dataOutput
4DTR, data terminal readyOutput
5GND, signal groundGround
6DSR, data set readyInput
7RTS, request to sendOutput
8CTS, clear to sendInput
9RI, ring indicatorInput

Gender and Connector Options

OptionUseNote
Male DB9Plugs into most equipment socketsThe usual adapter output
Female DB9Plugs into equipment with a male socketLess common, sometimes needed
DB9 to DB25 adapterOlder modems and plottersPinout conversion, not just size
Screw terminalsBare wire installationsUsed in industrial cabinets
Right angle DB9Tight spacesCheck the direction of the bend

Straight Through or Null Modem

Straight through

Pins map one to one. Used when the computer connects to a modem, instrument or any device acting as DCE.

Null modem

Transmit and receive are crossed and handshake lines looped, so two DTE devices can talk.

How to tell

Read the equipment manual. If it expects a null modem cable and you use straight through, the link appears dead rather than degraded.

Real-World Applications

Related Guides

For cabling choices, read USB to serial cable. For port setup, see USB to COM port adapter. For isolated industrial units, start with RS232 to USB adapter.

FAQ

Is DB9 the original serial connector?

No. RS-232 originally used a 25 pin connector. The 9 pin version became standard on PCs.

How many pins are actually used?

Three for basic data: transmit, receive and ground. The rest are handshake and status signals.

Can I use a straight cable where null modem is required?

No. Data directions collide and nothing transfers. Use the correct wiring.

Do all adapters end in male DB9?

Most do. If your equipment has a male socket, buy a female output adapter or a gender changer.