Transparent serial device servers versus protocol-aware Modbus gateways
Within industrial deployments spanning Protocol Gateways, Serial Device Servers & CAN Adapters, two visually similar boxes operate very differently. A transparent serial device server encapsulates raw bytes received on an RS-485 pair into an unparsed TCP socket, commonly called RTU over TCP. The upstream SCADA host or client library must build complete Modbus RTU frames with CRC 16 checksums and manage serial line timing over an IP network whose jitter can break strict RTU framing.
By contrast, a protocol-aware unit from the Modbus Gateways family terminates both protocols independently. It accepts Modbus TCP requests carrying a seven-byte MBAP header over Ethernet, strips that header, computes the CRC 16, and executes half-duplex RS-485 transactions on the field side. Built-in request queuing prevents electrical bus collisions and shields IP clients from serial timing constraints.
Slave ID mapping and multi-master arbitration across RS-485 buses
Every field instrument on an RS-485 trunk carries a Modbus slave address between 1 and 247. When a Modbus TCP client polls a gateway, the MBAP Unit Identifier field determines which serial slave receives the frame. On a single bus with distinct addresses, a direct one-to-one mapping suffices, whereas multi-port gateways or meters sharing factory addresses require virtual ID translation tables.
Virtual routing maps each incoming TCP Unit ID to a specific serial port and rewrites the RTU slave address on the fly. When multiple PLCs, a local HMI, and an edge collector read the same RS-485 registers concurrently, the gateway arbitrates access to the half-duplex line. It serializes requests sequentially, matches each RTU reply to the original TCP transaction identifier, and returns an exception code if a slave times out.
Eliminating baud rate, parity, and stop-bit mismatches on RTU trunks
Mismatched serial framing parameters remain one of the most frequent commissioning faults on Modbus RTU installations. Every node wired to the same RS-485 segment must share the exact same bit rate, commonly 9,600, 19,200, or 38,400 bps. Gateways such as the Sollae Systems SMG-5420 and Sollae Systems SMG-5620 support baud rates from 1,200 bps to 230,400 bps, accommodating both legacy meters and high-speed drives.
The Modbus RTU specification defines an 11-bit character frame using 8 data bits with even parity and one stop bit (8E1), or two stop bits with no parity (8N2). However, many field sensors ship configured for 10-bit 8N1 framing. A parity or stop-bit discrepancy causes silent UART framing errors so devices never reply. Engineers must also preserve the 3.5 character silent interval delimiting each RTU frame.
Physical RS-485 daisy-chain wiring, 120 ohm termination, and fail-safe biasing
Reliable Modbus RTU communication depends on sound RS-485 physical-layer wiring before any register polling begins. Field devices should be wired in a strict daisy-chain topology using shielded twisted-pair cable with a 120 ohm characteristic impedance, avoiding star junctions or long stubs that generate signal reflections. Exactly two 120 ohm termination resistors belong on the trunk, installed only at the two physical endpoints of the cable run.
Leaving intermediate terminations enabled or omitting end resistors on longer runs rounds off signal edges and corrupts CRC checks. Installers should also check fail-safe biasing resistors that pull the differential pair beyond a 200 mV threshold whenever no transmitter is driving the line, preventing idle noise from triggering false start bits. Connecting the signal reference conductor further prevents common-mode voltage saturation across receivers.
Polling timeout tuning and bridging RS-485 data toward MQTT brokers
Proper timeout tuning prevents cascading retries on half-duplex RS-485 links. A single Modbus RTU transaction budget equals request transmission duration, slave internal turnaround time, line driver switching, and response transmission. At 9,600 bps, a twenty-byte exchange requires roughly 21 ms of wire time, while slower field meters often add 20 to 100 ms of processing latency before driving the bus.
Setting a gateway response timeout below that total causes premature retries while the slave is still replying, resulting in bus collisions and dropped polls. Configuring timeouts between 300 and 1,000 ms alongside adequate inter-frame delays keeps polling deterministic. When forwarding field data to an MQTT broker, a local M2M gateway polls RS-485 slaves cyclically and publishes payloads on change or fixed intervals, decoupling cloud traffic from serial timing.
Selecting a Modbus or M2M gateway from the Atlas Electronics catalogue
Hardware selection depends on field interfaces, ambient temperature, and the target industrial network. Within the Sollae Systems range, the SMG-5420 bridges RS422/RS485 devices to Modbus TCP Ethernet at 1,200 bps to 230,400 bps with 145 mA typical consumption and a minimum operating temperature of -40 °C or lower. For mixed RS-232/422/485 cabinets, the Sollae Systems SMG-5620 draws typically 2 W at DC 12 V or 1.6 W at DC 5 V.
Where Ethernet cabling is impractical, the Sollae Systems SMG-5400 links RS-232 and RS-485 over Wi-Fi (802.11 a/b/g) down to -20 °C at 210 mA typical draw. Under Modbus, PROFINET & OPC UA Gateways, the Ebyte PN1-D11PM provides Din-Rail Mounting with RS485+RJ45 interfaces and DC 8-28 V input. For architectures requiring OPC UA, 2 Ethernet ports, 4 G LTE, and RS-485, the Contec CPS-MG341G5-ADSC1-931 serves M2M backhaul. All units are supplied on quotation after checking their datasheets.
Frequently asked questions
What is the difference between a transparent serial server and a Modbus gateway?
A transparent serial server forwards raw RS-485 bytes inside a TCP stream, requiring the host software to generate RTU frames and CRC checksums. A protocol-aware Modbus gateway translates between Modbus TCP MBAP headers and Modbus RTU frames while queuing concurrent requests to avoid half-duplex bus collisions.
Why does mixing 8N1 and 8E1 devices on the same RS-485 bus fail?
Modbus RTU specifies 11-bit characters using 8E1 or 8N2 framing, whereas many instruments default to 10-bit 8N1. Mixing formats causes UART parity and stop-bit framing errors, established slave devices to silently discard incoming requests.
Where should 120 ohm termination resistors be installed on an RS-485 bus?
Install one 120 ohm termination resistor at each of the two physical ends of the daisy-chained RS-485 trunk only. Avoid enabling termination on intermediate drops or at the gateway if it sits in the middle of the line, as extra resistors overload drivers and reduce differential signal levels.
How do you bridge RS-485 Modbus RTU devices to MQTT or OPC UA reliably?
Deploy a local M2M gateway such as the Contec CPS-MG341G5-ADSC1-931 to poll the RS-485 bus sequentially with a 300 to 1,000 ms response timeout, decoupling deterministic serial polling from IP publish intervals or change-of-value reporting.
Products mentioned
CPS-MG341G5-ADSC1-931
Protocol Gateways, Serial Device Servers & CAN Adapters
Integrated M2M Gateway with OPC UA, 4G LTE and CNC · Ref. : CPS-MG341G5-ADSC1-931
Price on request
PN1-D11PM
Protocol Gateways, Serial Device Servers & CAN Adapters
Profinet to Modbus RTU gateway with DIN-rail mounting · Ref. : PN1-D11PM
- RS485+RJ45
- Din-Rail Mounting
- DC 8-28V
Price on request
SMG-5400
Protocol Gateways, Serial Device Servers & CAN Adapters
Wireless LAN Modbus gateway, IEEE 802.11b/g · Ref. : SMG-5400
- 1,200bps ~ 230,400bps
- Datasheet
- 9 pin D-sub male
Price on request
SMG-5620
Protocol Gateways, Serial Device Servers & CAN Adapters
Industrial RS232/422/485 to Modbus TCP gateway · Ref. : SMG-5620
- 1,200bps ~ 230,400bps
- Datasheet
- 9 pin D-sub male
Price on request
SMG-5420
Protocol Gateways, Serial Device Servers & CAN Adapters
RS422/RS485 to Modbus TCP Ethernet Gateway · Ref. : SMG-5420
- 1,200bps ~ 230,400bps
- Datasheet
- 145mA typical
Price on request
A project? Our engineers build the solution with you.
Send your requirements: Atlas proposes the architecture, the bill of materials and a quotation, then follows the supply.
Request a quotation






