Key Takeaways
- RS232 is single-ended and point-to-point; RS485 is differential and multi-drop, so they suit different cable runs.
- Per TIA/EIA-232, an RS232 mark is negative and a space positive - the logic is inverted relative to logic-level ports.
- RS232 needs a shared ground reference, which is why links that leave the cabinet become unreliable.
- Per TIA/EIA-485, RS485 reads the A-to-B voltage difference and tolerates -7 V to +12 V of common-mode offset.
- DB9 cables are not interchangeable: DTE-to-DCE uses straight-through wiring, while two DTE ports need a null-modem cable.
1. What Is RS232?
RS232 is a single-ended serial interface standard that defines voltage levels, polarity and connector conventions for point-to-point links between two devices.
Core characteristics
- Single-ended signalling: each direction uses one conductor referenced to a shared ground return, so noise coupled onto that conductor reaches the receiver directly.
- Inverted logic with wide swings: per the TIA/EIA-232 specification, a mark (logic 1) sits between -3 V and -15 V and a space (logic 0) between +3 V and +15 V, giving a wide decision band.
- Point-to-point topology: one data terminal equipment (DTE) port talks to one data communication equipment (DCE) port. A third device needs a second port.
- Named handshake lines: RTS, CTS, DTR, DSR and DCD serve flow control and modem status, though many instruments use just a subset.
- Modest reach: runs of roughly 15 metres at low baud rates are typical, limited by cable capacitance and ground differences.
2. How Does an RS232 Link Work?
An RS232 link carries one character at a time by swinging a single conductor between two voltage rails relative to signal ground.
- Both ends rest in the mark state. With nothing to send, the driver holds a negative voltage, so a severed cable or an unpowered peer looks like a continuous mark.
- The transmitter swings positive for a space. RS232 logic is inverted: a logic 0 is a positive voltage and a logic 1 a negative voltage. A +9 V reading while the peer reports idle means an active frame.
- The receiver measures against its own ground. The decision window sits near the receiver's ground potential, so a difference between the two earth references shifts the signal and eats the noise margin.
- Two conductors carry the two directions. Transmit and receive data occupy separate pins, so the link is full duplex when both devices are present. Those two conductors plus the ground return form the minimum cable.
- Handshake lines manage the flow. RTS and CTS let one end pause the other; with a slow instrument as the peer, they keep the local buffer from overflowing.
- The layer above decides meaning. AT commands, a vendor frame format or plain ASCII lines run on top; the electrical layer guarantees that bits arrive with the correct polarity.
3. What Is RS485?
RS485 is the differential, half-duplex serial bus standard TIA/EIA-485, which defines the electrical layer for multi-drop networks. It does not define a data format, so the bytes still come from a UART, usually with Modbus RTU above it.
Core characteristics
- Differential pair: the receiver reads the difference between an A and a B conductor, so noise coupled equally onto both cancels - the property that carries the standard into industrial cabinets.
- Driver enable and tri-state: each transceiver has a driver enable pin; when it is de-asserted the driver goes to a high-impedance state so another node can take the pair.
- Multi-drop addressing: per the TIA/EIA-485 specification, one segment supports up to 32 standard unit loads. Addressing and arbitration belong to the protocol above.
- Termination and biasing: a 120 ohm resistor at each physical end of the trunk matches the cable impedance, and bias resistors hold the pair in a defined state when no driver is active.
- Common-mode range: the standard defines a -7 V to +12 V common-mode range, which lets the pair work where the two ends sit at different earth potentials.
4. RS232 vs RS485: What Is the Difference?
RS232 and RS485 differ in the physical layer, not in the bytes they carry.
| Dimension | RS232 | RS485 |
|---|---|---|
| Signalling and conductors | Single-ended; one conductor per direction plus a ground return | Differential; one twisted pair shared by every node |
| Typical voltage levels | Mark -3 V to -15 V, space +3 V to +15 V | A-to-B difference; -7 V to +12 V common-mode range |
| Topology and node count | Point-to-point DTE to DCE | Multi-drop, up to 32 unit loads per segment |
| Distance and baud trade-off | Roughly 15 m at low baud rates | Roughly 1200 m per segment at low baud rates; falls as baud rate rises |
| Wiring and connector convention | DB9 or DB25 pins, DTE and DCE wired differently | Screw terminals or A/B markings; no standard connector |
| Hardware flow control | RTS, CTS, DTR, DSR and DCD lines | None defined; a direction pin replaces handshaking |
The decision rule: choose RS232 when two devices sit close together and you need an existing DB9 port or the handshake lines; choose RS485 when the run is long, the environment is noisy, or more than two devices share the cable.
5. RS232 Configuration and Key Parameters
Each parameter below is given as a common value plus the symptom it produces when it is wrong.
- Baud rate and cable length: 9600 to 115200 bps covers most instruments. Exceeding what a given cable supports shows up as errors on long frames, not as silence.
- Receive threshold and noise margin: the mark and space windows leave a defined decision band. When cable capacitance eats that margin, the symptom is intermittent framing errors.
- Ground potential difference: an RS232 receiver references the incoming signal to its own ground, so different earth potentials shift the signal and break cross-building runs.
- Cable type and capacitance: low-capacitance screened cable preserves edge shape. High-capacitance cable rounds the edges, and the fault appears first at your highest baud rate.
- Termination and biasing on the RS485 side: 120 ohm at both physical ends of the trunk. Without bias, an idle pair floats and the receiver can report random start bits.
- Flow control with a slow peer: when a peer processes data slower than it receives it, a full local buffer drops bytes. RTS/CTS prevents that, enabled at both ends.
- Null-modem versus straight-through wiring: a straight-through cable connects a DTE to a DCE; two DTE-style ports need a null-modem cable that crosses transmit and receive and swaps the handshake pins.
- Isolation: with separate power systems, a galvanically isolated interface removes the ground loop that makes a link pass on the bench and fail once both cabinets are earthed.
6. When to Use RS232 and When Not To
Good fit for RS232
- Configuration, diagnostics and firmware ports on instruments and controllers with a DB9 or header interface.
- Bench setups where both devices sit on the same desk and the right cable is already available.
- Links that need modem-style handshake lines such as RTS/CTS and carrier detect.
Good fit for RS485
- Cable runs of tens to hundreds of metres, particularly near drives, contactors or welding equipment.
- Multi-drop networks where several meters or sensors share one twisted pair and are polled by address.
- Retrofits that reuse existing instrument wiring in a plant or building.
Poor fit for RS232
- Any run that leaves the cabinet or exceeds the standard's short cable limit.
- Noisy plant floors, where induced noise on one conductor is indistinguishable from a data edge.
- Situations where the two ends cannot share a solid ground reference.
Poor fit for RS485
- Star or stub-heavy wiring, which creates reflections that termination cannot repair.
- Links that need the classic handshake lines mapped end to end.
- Short board-level links, where a transceiver adds cost and a direction-control failure mode.
7. Real-World Applications
In industrial automation, energy monitoring and radio telemetry, RS232 appears where an instrument, PLC programming port or radio modem presents a DB9 interface, and RS485 takes over once the cable leaves the cabinet.
Ebyte's data radio and gateway families follow that split, and several models expose both interfaces. The E90-DTU(400SL42) is a high-power industrial radio modem using Semtech SX1268 LoRa from 410.125 to 493.125 MHz, with 15 W (42 dBm) output and long-range RS232/RS485 communication up to 30 km. The E90-DTU(900SL22) is an industrial LoRa radio in the 900 MHz band at 22 dBm and 5 km, with a serial rate of 0.3k to 62.5 kbps on RS232 and RS485.
Where the radio must join a network instead of a peer, the NB124S is an industrial-grade 2-channel serial server converting RS232, RS422 and RS485 to an RJ45 Ethernet port, acting as a Modbus RTU to TCP gateway with TCP/UDP/MQTT support, DC 8-28 V input and AT command configuration. The RD400D-TB evaluation kit pairs the RD400D digital transmission radio with a CH340X USB-to-UART converter and WS3232 RS232 converters, full IO pinouts and a 410-470 MHz, 30 dBm, 5.6 km link.
One physical detail is regularly underestimated: a defined ground reference, low-capacitance cable and the correct connector convention account for more field failures than the choice of module does.
8. FAQ: RS232 in Practice
Q1: What are RS232 voltage levels?
Per the TIA/EIA-232 specification, a mark (logic 1) is -3 V to -15 V and a space (logic 0) is +3 V to +15 V, so RS232 logic is inverted relative to logic-level ports. Levels between -3 V and +3 V are undefined, so a receiver must treat them as invalid rather than as a data bit.
Q2: How do I wire a DB9 null modem cable?
A null-modem cable crosses the two data pairs and swaps the handshake lines so two DTE-style ports can talk to each other. On a DB9, pin 2 at one end goes to pin 3 at the other, pin 3 goes to pin 2, pins 7 and 8 are swapped, and signal ground on pin 5 passes straight through.
Q3: Why does my RS232 link work on the bench but fail on site?
Ground potential difference between the two ends and cable capacitance are the usual causes, because the receiver compares a single-ended signal against its own ground. Check these points:
- corrupted characters on long cable -> shorten the run or lower the baud rate
- errors while a drive runs -> move to screened cable or a differential layer
- failure once the far cabinet is earthed -> look for a ground loop
Q4: Do I need hardware flow control?
Flow control matters when one end can receive data faster than it can process it. RS232 defines RTS and CTS for exactly that case, and a slow instrument that overruns its input buffer will silently drop bytes without them. If both ends keep up in testing, leave flow control off.
Q5: How many devices can share an RS232 port?
One, because RS232 is point-to-point. A DTE port expects a single DCE peer, and the standard defines no addressing or arbitration, so a second device on the line will corrupt frames. To reach several devices, convert to a multi-drop layer such as RS485, or use a serial server that presents one port per device.
9. Checklist Before You Wire an RS232 Link
- Read the connector convention first. Confirm whether each DB9 port is wired as DTE or DCE; a straight-through cable works DTE-to-DCE.
- Decide by cable length and node count. Keep RS232 for two devices on a short run; move to RS485 once the cable is long, noisy or shared.
- Plan the ground reference. A single-ended link needs a low-resistance ground return; a cross-building run needs an isolated interface.
- Check the levels before blaming firmware. A mark should sit negative and a space positive; a reading near 0 V means an invalid state.
- Enable flow control for the peers that need it. Turn on RTS/CTS for slow instruments and omit the handshake lines otherwise.