How to tell which RS-232 cable your gage needs, test it in two minutes, and fix the wiring when neither cable works.
This post is also available in: English Español (Spanish) Deutsch (German) Français (French)
Your gage is plugged in. The COM port opens in ComTestSerial. The settings match the manual: 9600-N-8-1. You press the data button and nothing arrives.
When the communication parameters are right and the port is open, the problem is usually one of two things: the RS-232 device isn’t set to output data, or the cable is wrong. On the wiring side, the most common cause is two devices trying to transmit on the same wire. This guide explains why that happens, how to identify what you have in under two minutes, and what to do when the device doesn’t follow the standard at all.
Quick answer
RS-232 was designed to connect a terminal or computer (DTE, Data Terminal Equipment) to a modem (DCE, Data Communication Equipment). The pin names are written from the DTE’s point of view:
Connect a DTE to a DCE with a straight-through cable and everything lines up. Each transmitter feeds a receiver.
Connect two DTE devices with a straight-through cable and both transmitters drive pin 3. Both receivers listen on pin 2, where nothing is being sent. No data moves. The fix is a cable that swaps the lines in the middle. It’s called “null modem” because it lets two DTE devices talk directly, without the pair of modems that would originally have connected them.
Your PC’s serial port is DTE, and so is the port on a typical USB-to-serial adapter. Many gages, scales and instruments are also wired as DTE. Others are wired as DCE. The manual usually doesn’t say which, which is why this question comes up so often.
A straight-through cable works between DTE and DCE. Between two DTE devices, both transmit on pin 3 and nothing arrives until a null modem cable crosses the lines.
DB9 pin numbering, viewed from the mating side. Pins 2, 3 and 5 are the only ones most gages use.
Pin | Signal | Direction (from DTE) |
|---|---|---|
1 | DCD (Data Carrier Detect) | In |
2 | RxD (Receive Data) | In |
3 | TxD (Transmit Data) | Out |
4 | DTR (Data Terminal Ready) | Out |
5 | GND (Signal Ground) | N/A |
6 | DSR (Data Set Ready) | In |
7 | RTS (Request to Send) | Out |
8 | CTS (Clear to Send) | In |
9 | RI (Ring Indicator) | In |
Strictly speaking, the 9-pin connector is a DE-9; “DB9” is the name almost everyone uses. For most gage data collection, only pins 2, 3 and 5 matter. The handshake lines become important only when a device is configured for hardware flow control, which we cover below. For more background on baud rate, parity and RS-232 basics, see How to Interface with RS-232 Devices.
A straight-through cable is simple: pin 1 to pin 1, pin 2 to pin 2, and so on through pin 9.
A null modem cable is less standardized than the name suggests. Four wirings are commonly sold under the same label:
Variant | Data Lines | Ground | Handshake lines |
|---|---|---|---|
Minimal (3-wire) | 2 to 3, 3 to 2 | 5 to 5 | Not connected |
Loopback handshake | 2 to 3, 3 to 2 | 5 to 5 | 7 and 8 jumpered on each end; 1, 4 and 6 jumpered on each end |
Partial handshake | 2 to 3, 3 to 2 | 5 to 5 | 4 to 6 crossed in both directions; 7 and 8 jumpered on each end and wired to pin 1 on the other end |
Full handshake | 2 to 3, 3 to 2 | 5 to 5 | 7 to 8, 8 to 7; 4 to 6 on the other end (both directions), often also to pin 1 |
All of them work for a device that ignores the handshake lines, which describes most gages. They behave differently for a device that waits for CTS or DSR before it transmits. If one null modem cable works and another “identical” one doesn’t, the variant is the likely reason.
By convention, DTE ports are male and DCE ports are female. In practice that convention is not reliable, and connector gender says nothing about how a cable is wired inside.
The most common mix-up is with small DB9 adapters. A gender changer and a null modem adapter can look identical: same shell, same connectors on both ends. One passes every pin straight through. The other crosses pins 2 and 3. If you keep both in a toolbox, label them. The DB9 Adapter Kit includes one of each in both male-to-male and female-to-female.
Set the meter to continuity. Touch one probe to pin 2 on one end of the cable and find which pin on the other end beeps.
This tells you what the device is, without relying on the manual.
An idle RS-232 transmitter sits in the “mark” state at a negative voltage, usually between −3 V and −12 V depending on the driver chip (the standard’s valid range is −3 V to −15 V). An unconnected receive pin reads close to 0 V.
Both pins near 0 V. Some low-power RS-232 driver chips shut their transmitters off when they don’t detect a valid signal on their receive inputs, and wake up as soon as one appears. Battery-powered instruments often use them. Connect the device to a powered PC serial port and measure again at the back of the connector. If both pins still read near 0 V, the transmit line may be on a different pin (see the next section).
Some devices draw their power from the PC’s DTR or RTS lines, and some use non-standard 0 V to +5 V outputs that never go negative. Both read near 0 V on their own.
A pin idles at a positive voltage, around +3.3 V or +5 V. The device is probably using TTL-level (logic-level) serial, not true RS-232. TTL serial idles high and swings between 0 V and its supply voltage, with the opposite polarity to RS-232. Changing the cable won’t fix that. Don’t connect it directly to an RS-232 port either, because RS-232 voltages can damage a logic-level input. Contact us and we’ll help you find the right interface.
Open ComTestSerial, our free serial test program, on the PC’s COM port. Set the parameters from the device manual and trigger a reading. If nothing arrives, add a null modem adapter and try again. If data appears, you’ve found your answer.
ComTestSerial’s status indicators also show the state of the handshake lines, which helps with the next section. For a full walkthrough of finding the right COM port and reading the results, see COM Port Testing: Easy Windows Tools & Tips.
If you troubleshoot serial devices often, an RS-232 breakout box (also sold as a DB9 line tester) is worth keeping on the bench. It plugs inline between the device and the cable and has an LED for each signal line. You can see at a glance which pins are being driven, which handshake lines are asserted, and which line flickers when the device sends a reading. Fuller-featured models add switches and jumper wires, so you can open individual lines and cross-connect pins to try a null modem or custom wiring before you buy or build a cable.
Sometimes you’ve confirmed the parameters and tried both cable types, and the device still sends nothing, or sends garbage. At that point the problem is usually that the device doesn’t follow the standard DB9 pinout. Common patterns:
These situations show up most often with force gages, measurement amplifiers, older benchtop instruments, and equipment with proprietary RS-232 wiring.
Option 1: Build a custom cable. Take the pinout from the device manual and solder a cable to match. It works, but each cable is a one-off. If the pinout guess is wrong, you re-solder. If the cable fails two years from now, the wiring may exist only in the memory of whoever built it. In a controlled measurement system, an undocumented hand-wired cable is a configuration you can’t easily reproduce or verify.
Option 2: Use a configurable adapter. The ProAdapter has an internal push-pin matrix that assigns Tx, Rx, RTS, CTS, DTR, DSR, power and ground to any of the 9 output pins, with no soldering. It has a male DB9 on one end and a female DB9 on the other. You can try a mapping, test it in ComTestSerial, and change it in minutes.
A repeatable workflow:
The ProAdapter works with WedgeLink AT, WedgeLink SP, the MobileCollect RS-232 Remote, and GageWay Pro (front-panel channels require the Level Converter Cable).
Situation | What You Need |
|---|---|
Wiring is correct, you need more reach | 6′ DB9 Serial Extension Cable (straight-through, female to male) |
Both devices transmit on the same pin | DB9 Null Modem Cable (female to female) |
Wiring is correct, connector genders don’t match | Gender changer from the DB9 Adapter Kit |
Wiring needs a crossover and the genders don’t match | Null modem adapter from the DB9 Adapter Kit |
Non-standard pinout, handshake requirements, or a discontinued cable | |
Going wireless with MobileCollect | RS-232 V2 Connector, DB9, available male or female, in Standard wiring (for DCE devices) or Null Modem wiring (for DTE devices). Use the voltmeter test above to choose. |
A null modem cable is an RS-232 serial cable that crosses the transmit and receive lines (pin 2 to pin 3, pin 3 to pin 2) so two DTE devices, such as a PC and an instrument, can communicate directly.
At minimum: pin 2 to pin 3, pin 3 to pin 2, and pin 5 to pin 5. Full-handshake versions also connect pin 7 to pin 8, pin 8 to pin 7, and pin 4 to pin 6 on the opposite end in both directions, often with pin 1 tied to pin 6.
For serial connections, yes. “DB9 crossover cable” and “null modem cable” describe the same thing. An Ethernet crossover cable is something different and not interchangeable.
Yes. A null modem adapter on the end of a straight-through cable gives the same crossover. Check that the adapter’s handshake wiring suits your device.
Swapping straight-through for null modem won’t normally damage RS-232 equipment, because RS-232 drivers and receivers are required to withstand indefinite short circuits to ground or to any voltage up to ±25 V. There are two exceptions: a device that supplies or expects power on a DB9 pin, and a device with TTL-level (logic-level) serial, which RS-232 voltages can damage. Check the manual before experimenting with either.
No. Most USB-to-serial adapters present a DTE port, the same as a built-in PC serial port, so the same cable rules apply. If the adapter itself is the problem, see our FTDI driver page and Your USB Serial Converter Stopped Working.
Once the device is sending data, the next problem is the computer side: virtual COM ports, drivers, and software that has to listen on the right port with the right settings. MicroRidge interfaces take that off your plate.
Request a demo kit and test it with your own equipment before you buy.