| |

RS232 to Ethernet Cable Pinout: Two Common Wiring Diagrams

rs232 to ethernet cable pinout​

The “TX/RX Cross” Mystery: Null Modem vs. Straight-Through

The most common reason for a “silent” connection is getting the TX and RX lines backward.

Three wires are all you need for basic communication:

SignalPurpose
TX (Transmit)Sends data out
RX (Receive)Receives data in
GND (Ground)Reference for both signals

The Rule: TX on one end connects to RX on the other. Data needs a path, and ground gives it a reference. Why cross them? Because one device’s “transmit” must go to the other device’s “receive.” If you connect TX to TX, nothing happens—they are both trying to talk, and nobody is listening.

Identifying Your Device: DTE vs. DCE

To get the wiring right, you must identify your device type:

  • DTE (Data Terminal Equipment): Like your PC or a PLC.
  • DCE (Data Communication Equipment): Like a modem or some Ethernet converters.

When to cross: If you connect two DTE devices (like a PC to a PLC), you must use a Null-Modem cable to cross pins 2 and 3. It is essential to keep these roles seperate to avoid damage or communication silence.

rs232 to ethernet wiring​

Core Connector Pinouts: DB9 and RJ45

DB9 Connectors (The Traditional Standard)

Most RS232 devices use a DB9 connector. DB9 pins are numbered, and for standard communication, you only care about three:

PinSignal
2RX
3TX
5GND

If both ends are DB9: You need a null-modem cable that crosses pins 2 and 3.

  • Converter pin 3 → Device pin 2
  • Converter pin 2 → Device pin 3
  • Pin 5 → Pin 5
Two DB9 connectors

RJ45 Pinout (T568B Standard)

Ethernet cable uses 8 wires with standard colors. The T568B wiring is most common:

PinColorTypical Ethernet Use
1White/OrangeTX+
2OrangeTX-
3White/GreenRX+
4BlueUnused
5White/BlueUnused
6GreenRX-
7White/BrownUnused
8BrownUnused

For RS232, we only need a few of these wires. You can assign colors yourself—just write down what you used.

rs232 to ethernet cable pinout​

RS232 (DB9) to RJ45 Pinout Generator

Select your configuration to generate the wiring map and assess physical limits.

🚨 Running cable longer than 15 meters (50ft)?

Stop crimping passive cables. You will drop packets and risk frying your PLC motherboard with ground loops. See how to safely tunnel your RS232 signals over your existing Ethernet LAN instead.

Show Me How to Bridge RS232 over IP →
RS232/RS485 Field Cheat Sheet
A3 Printable

🛠️ RS232/RS485 Field Cheat Sheet (PDF)

The complete physical layer reference guide. Formatted for high-res A3 printing. Enter your email to get the download link.

* Instant redirect to the high-res PDF. No spam.

Three Common Industrial Scenarios

Scenario 1: DB9 to RJ45 (The Console Standard)

Many devices, such as PLCs, door controllers, and network switches, use RJ45 jacks for their serial ports. To connect these to your computer, you need a cable going from the RJ45 port on the device to the DB9 port on your computer.

Standard DB9 to RJ45 Pinout:

RJ45 PinDB9 PinSignal
12RX
23TX
35GND
4-8Not connected

This wiring follows the standard DTE (Data Terminal Equipment) configuration, which is the case for almost all modern computers.

DB9 to RJ45 wiring

If your device is DCE (Modems or specific converters):

RJ45 PinDB9 PinSignal
13TX
22RX
35GND

Always check the manual of your specific equipment. Manufacturers like Cisco, Digi, and Siemens often have their own pinout standards.

Scenario 2: Terminal Blocks

Common in industrial converters, these feature three screws labeled TX, RX, and GND:

TerminalConnect To
TXDevice’s RX
RXDevice’s TX
GNDDevice’s GND
Terminal block with three colored wires

Scenario 3: Using Ethernet Cable as RS232 Extension

The RS232 standard technically limits communication to 15 meters (roughly 50 feet). Beyond that, signal degradation and noise become significant issues. Ethernet cable (Cat5e or better) is an excellent option for extending this range because its twisted pairs help negate interference.

For Longer Runs: If you must go further using Cat5 or Cat6, you need to lower the baud rate (e.g., from 115200 to 9600) to compensate for signal loss and capacitance.

If both ends are DTE (computer to computer, or computer to most equipment):

RJ45 End ARJ45 End BSignal
12TX → RX
21RX → TX
33GND → GND
All othersNot connected

This is a null modem crossover cable. TX on one end goes to RX on the other.

Two RJ45 connectors with pin 1

If one end is DTE and the other is DCE (rare):

RJ45 End ARJ45 End BSignal
11TX → TX
22RX → RX
33GND → GND

What About Flow Control (RTS/CTS)?

The setups above use only three wires, which is sufficient for most applications as many devices don’t require hardware flow control. However, if your device requires RTS/CTS:

SignalRJ45 PinDB9 Pin
RTS47
CTS58

Use the same color scheme throughout and document it. You’ll thank yourself later when troubleshooting.

The $5,000 Grounding Mistake

You have to connect ground every time. Without it, the signals have no reference. Data will be garbled or completely missing. But here’s the nuance: shield ground is not the same as signal ground.

  • Signal ground (pin 5 on DB9) carries the reference voltage for the data. It must be connected.
  • Connecting the shield at both ends creates ground loops—current flows through the shield, inducing noise on your data lines. This is a common but costly mistake.
rs232 to ethernet wiring P1

Systematic Troubleshooting: The Loopback Test

When your wiring seems okay but nothing is working, do not guess. Test it. The Loopback Test is a way to isolate the problem on your own without special tools.

  1. Disconnect the cable at the device end.
  2. Jumper TX to RX: Use a small wire to connect the Transmit pin to the Receive pin on the connector.
  3. Send Data: Use a terminal program (like Putty). If what you type appears on the screen, your converter and cable are perfect. If not, the link is broken.

Decision Flowchart: When It Doesn’t Work

rs232 to ethernet wiring P2
SymptomLikely CauseFix
No dataTX/RX swappedSwap pins 1 and 2
Garbled dataWrong baud rate, or ground missingCheck settings, verify GND connected
Intermittent connectionBad crimp or solderRe-do the connector
Nothing worksUsing Ethernet switch in betweenYou cannot put RS232 through a switch. It’s point-to-point only.

A Note on Voltages and Isolation

One important note before you connect your custom cable: Standard RS232 signals swing between+12V and -12V. If your receiving end expects 0-5V TTL (like many microcontrollers), or if someone accidentally patches this RJ45 into an active PoE port (48V), hardware damage is almost guaranteed.

When to Move Beyond Passive Cables

Passive DIY cables are great for local, temporary troubleshooting. But for permanent factory floor deployments, the industry standard has shifted away from running long serial lines. The risks of ground loops (like the $5,000 mistake mentioned earlier) and EMI noise are just too high.

Instead, the reliable approach is to use Active Serial Servers at the edge. This provides optical/magnetic isolation to protect the PLC motherboards, and encapsulates the serial data into TCP/IP packets so it can route safely across your existing Ethernet LAN.

If your project requires network encapsulation rather than physical wiring, this is exactly the hardware we build at Valtoris.
Review our isolated Serial-to-Ethernet specs →

1CH RS232485422 ETH 5A

Frequently Ask Questions

Q: Will plugging my DIY RS232-to-RJ45 cable into a PoE switch damage my equipment?

A: Yes it is very likely to happen. Standard RS232 chips are designed to handle ±15V maximum. Power over Ethernet switches can send between 48 volts and 54 volts of direct current through the line. If you plug your device into a Power over Ethernet port by mistake, the overvoltage can instantly destroy the serial transceiver or the equipment’s motherboard. Always label your serial-over-Cat5 ports clearly.

Q: Can I use a standard “Cisco Console Cable” (light blue) for any industrial device with an RJ45 serial port?

A: No. There is no standard for RS232 over RJ45. Cisco uses a pinout called “rollover”. Using this cable on other devices—such as an APC UPS—can bridge the wrong pins, can shut down your system away or even damage the hardware. Always check with the manufacturer to get the pinout before you connect.

Q: I finished wiring my custom RJ45 to DB9 cable. How can I safely verify it works before connecting it to my industrial equipment?

A: To do this in a way you should do a local loopback test using your personal computer .Disconnect the cable from your equipment, use a small wire to temporarily short the TX and RX pins on the connector, and type into a terminal program like PuTTY.  If the things you type appear on the screen again that means your cable is working correctly and pinout are correct.

Q: My cable passes the continuity test, but the data becomes garbled when the factory motors turn on. Is my pinout wrong?

A: If the pinout is correct the problem is probably interference or a ground loop. RS232 signals are not balanced. Can pick up a lot of electrical noise over long cable runs. Make sure the signal ground, which is Pin 5 on DB9 is connected properly, and if you are using shielded Cat5e cable, make sure the shield is grounded at one end only to prevent inducing noise on your data lines.

Q: I extended my RS232 connection over the network, but my legacy CNC software only lets me select “COM1” or “COM2”. How do I input the IP address?

A: Legacy software cannot natively understand IP addresses or network routes. You must bridge this gap by installing a Virtual COM (VCOM) driver on your computer. This software captures your legacy application’s local COM port requests and transparently redirects them over the Ethernet network to your converter. If you have never set this up before, you can follow our step-by-step tutorial on [How to Install and Configure Virtual COM Port Drivers]

Q: My physical wiring to the serial server is perfect, but my SCADA system still cannot read the sensor data. What am I missing?

A: Physical wiring only fixes the hardware part. If your main SCADA system uses Modbus TCP over Ethernet and your end-device uses Modbus RTU (over Serial), the data formats are completely incompatible. You have to go to your servers website and set it up to change the Modbus TCP protocol to work with your Modbus RTU end-device. For the exact mapping configuration, refer to our [Modbus RTU to Modbus TCP Gateway Setup Guide].

At Valtoris, we design and manufacture active industrial networking gear (like LTE routers and IP serial servers). So why provide a DIY passive wiring guide? Because our engineers started in the field, too. We know what it’s like to be stuck on a factory floor at 2 AM, desperately needing to splice a CAT5 cable to a DB9 port just to get a legacy PLC talking again. We provide these diagrams to help you get out of a jam today. Because we understand the value of knowing the physical layer inside and out. When your topology outgrows passive cabling and requires active TCP/IP routing, you'll know exactly why.

REQUEST A QUOTE

SKU/Part No.