๐ Technical Review & Standards Reviewed by the Valtoris Industrial Networking Team. > The wiring diagrams provided in this guide strictly adhere to EIA/TIA-232-F serial communication standards and TIA/EIA-568-B Ethernet cabling specifications to ensure safe signal transmission.
If you looked up “rs232 to ethernet cable pinout ” you are probably thinking of two things.
- You have a device with an RS232 port that uses an RJ45 connector (common on industrial PLCs, network gear, and access control systems). You need to connect it to your computer’s DB9 serial port.
- You want to use cheap Ethernet cable to extend an RS232 connection beyond the standard 15-meter limit, because official RS232 cables are expensive.
Either way you need to know which wire goes where.
Lets be clear: RS232 and Ethernet are different. You can’t plug an RS232 device into an Ethernet port. Don’t expect it to work just by plugging it in. However, you can use the internal wires of an Ethernet cable to carry RS232 signals. The trick is getting the RS232 to ethernet pinout right.
โ ๏ธ Crucial Note Before You Wire: A DIY RS232-to-RJ45 cable is a passive connection. It simply uses Ethernet wires to carry serial signals up to 15 meters. It will NOT put your RS232 device onto your local IP network (LAN). > If you need to access your serial device via an IP address, or want to connect it to an Ethernet switch, a passive cable will fail (and may burn your board if plugged into PoE). True network access requires an active conversion architecture to encapsulate serial payloads into TCP/IP packets.
Hereโs a number that might surprise you: RS232 is still used in 30โ40% of industrial equipment โPLCs, scales, CNC machines, medical devices, and test equipment. Itโs been around since 1969, and itโs not going away anytime soon.
But hereโs the frustrating part: 25โ30% of communication failures in serial networks come from simple wiring errors. Another 15โ20% come from grounding mistakes. If youโve ever connected everything โcorrectlyโ and gotten nothing but garbage data or dead silence, youโre not alone. This guide covers not just what connects where, but why it works that way, andโmost importantlyโwhat to check when it doesnโt.
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:
| Signal | Purpose |
|---|---|
| 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.

โ ๏ธ Stuck on RX/TX Swap? Check your Frame with our Modbus CRC Calculator
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:
| Pin | Signal |
|---|---|
| 2 | RX |
| 3 | TX |
| 5 | GND |
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

RJ45 Pinout (T568B Standard)
Ethernet cable uses 8 wires with standard colors. The T568B wiring is most common:
| Pin | Color | Typical Ethernet Use |
|---|---|---|
| 1 | White/Orange | TX+ |
| 2 | Orange | TX- |
| 3 | White/Green | RX+ |
| 4 | Blue | Unused |
| 5 | White/Blue | Unused |
| 6 | Green | RX- |
| 7 | White/Brown | Unused |
| 8 | Brown | Unused |
For RS232, we only need a few of these wires. You can assign colors yourselfโjust write down what you used.

๐ Skip the confusing tables! Use our interactive pinout generator below to instantly map your DB9 to RJ45 connectionsโand verify if your DIY setup is physically safe:
RS232 (DB9) to RJ45 Pinout Visualizer
Select an industrial preset or configure custom mapping to generate your wiring diagram.
*Standard EIA-561 mapping. Handshake pins omitted for 3-wire operational clarity.
CRITICAL BURN HAZARD
This is a passive pinout. NEVER plug this RJ45 end into an active PoE switch. 48V PoE power will instantly bypass the DB9 shell and fry your PLC/device motherboard.
15-Meter Distance Limit
Passive cables longer than 50ft will suffer severe packet drop and ground loop interference.

๐ ๏ธ RS232/RS485 Field Cheat Sheet (PDF)
The complete physical layer reference guide. Formatted for high-res A3 printing. Download it directly for your toolboxโno email required.
Download High-Res PDFFeel free to print it out and pin it on your server rack.
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 Pin | DB9 Pin | Signal |
|---|---|---|
| 1 | 2 | RX |
| 2 | 3 | TX |
| 3 | 5 | GND |
| 4-8 | – | Not connected |
This wiring follows the standard DTE (Data Terminal Equipment) configuration, which is the case for almost all modern computers.

If your device is DCE (Modems or specific converters):
| RJ45 Pin | DB9 Pin | Signal |
|---|---|---|
| 1 | 3 | TX |
| 2 | 2 | RX |
| 3 | 5 | GND |
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:
| Terminal | Connect To |
|---|---|
| TX | Device’s RX |
| RX | Device’s TX |
| GND | Device’s GND |

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.
๐ก Pro Tip for Distances Over 15m: Extending RS232 passively over long Cat5e runs introduces severe voltage drops and electromagnetic interference (EMI). In these scenarios, standard practice shifts from physical wiring extension to network encapsulation. By moving the RS232 signal onto the LAN at the edge, distance-based voltage drop is completely eliminated.
If both ends are DTE (computer to computer, or computer to most equipment):
| RJ45 End A | RJ45 End B | Signal |
|---|---|---|
| 1 | 2 | TX โ RX |
| 2 | 1 | RX โ TX |
| 3 | 3 | GND โ GND |
| All others | Not connected | – |
This is a null modem crossover cable. TX on one end goes to RX on the other.

If one end is DTE and the other is DCE (rare):
| RJ45 End A | RJ45 End B | Signal |
|---|---|---|
| 1 | 1 | TX โ TX |
| 2 | 2 | RX โ RX |
| 3 | 3 | GND โ GND |
Professional Tip: To maximize the anti-interference benefits of Cat5/6 cable, never put TX and RX on the same twisted pair. Instead, pair TX with a Ground wire and RX with another Ground wire. This gives the signal better protection and it is more stable when it has to travel a long way which is really important in noisy industrial environments.
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:
| Signal | RJ45 Pin | DB9 Pin |
|---|---|---|
| RTS | 4 | 7 |
| CTS | 5 | 8 |
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.
A $5,000 Lesson: A factory once put in a long RS232 cable that was connected to the ground at both ends. Every time a nearby machine started, the computer screen would flicker and crash. They lost over five thousand dollars in downtime while trying to find the error. When they removed the ground from one end of the RS232 cable the problem with the RS232 cable went away away.

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.
- Disconnect the cable at the device end.
- Jumper TX to RX: Use a small wire to connect the Transmit pin to the Receive pin on the connector.
- 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

- Step 1: Verify Continuity Use a multimeter to confirm that TX on one end connects to RX on the other (not to itself), RX connects to TX, and GND connects to GND .
- Step 2: Check Power Confirm both the converter and the end device are powered. If they are not, nothing works.
- Step 3: Verify Serial Settings Baud rate, parity, data bits, and stop bits must match perfectly . A common mistake is a device at 9600 baud while the converter is at 19200.
- Step 4: Check Software & Addresses If using Modbus, is the device ID correct? Ensure your software points to the correct COM port or IP address.
- Step 5: Local Loopback Perform a loopback test directly on the device ports. If the device cannot read its own transmission, the problem lies within the device hardware, not the cable.
| Symptom | Likely Cause | Fix |
|---|---|---|
| No data | TX/RX swapped | Swap pins 1 and 2 |
| Garbled data | Wrong baud rate, or ground missing | Check settings, verify GND connected |
| Intermittent connection | Bad crimp or solder | Re-do the connector |
| Nothing works | Using Ethernet switch in between | You 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 true network encapsulation rather than physical wiring extensions, you will need to actively route your data. Read our step-by-step technical guide on how to convert RS232 to Ethernet using active gateways to learn about TCP/UDP modes and Virtual COM setups.
Looking for hardware? Review our isolated Serial-to-Ethernet server specs โ
Frequently Ask Questions
Will plugging my DIY RS232-to-RJ45 cable into a PoE switch damage my equipment?
โ ๏ธ Overvoltage Warning: If you plug your serial device into a live PoE port by mistake, the 48V surge will instantly bypass the transceiver and destroy the equipment’s motherboard. Always label your serial-over-Cat5 ports clearly.
Can I use a standard “Cisco Console Cable” (light blue) for any industrial RJ45 serial port?
How can I safely verify my custom RJ45 to DB9 cable works before connecting my PLC?
My cable passes the continuity test, but data becomes garbled when factory motors turn on. Why?
I extended RS232 over the network, but legacy CNC software only accepts COM1/COM2. How do I input an IP?
My physical wiring to the serial server is perfect, but my SCADA system still cannot read the sensor data.
๐ก๏ธ Why Valtoris Shares This Pinout 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.โ
๐ Related Industrial Connectivity Guides
If you are redesigning your serial network topology, these guides cover advanced methods to bypass physical cabling limitations:
- [Point-to-Point Wireless RS485: The Engineer’s Setup Guide] โ How to replace a 500-meter serial cable with a transparent RF link.
- [Remote HMI Programming: Siemens Smart 700 IE] โ Bypassing IT firewalls using N2N tunneling.
Still Getting Garbage Data?
Passive DIY cables are fine for 5-meter desk tests, but they fail on the factory floor due to voltage drops, ground loops, and EMI noise. Stop stripping wires and hoping for the best.
Bypass physical distance limits entirely by upgrading to an active Serial-to-Ethernet Converter. Isolate your PLC and tunnel RS232 safely over your existing IP network.

