Modbus RTU to TCP Gateway Guide (2026)
A Modbus RTU to TCP gateway (also called a serial server or serial device server) lets Modbus RTU devices on an RS485 bus appear as if they were Modbus TCP devices on your network. In one sentence: it translates between serial RTU frames and TCP packets, so your PC can reach serial field devices over Ethernet or Wi-Fi instead of being tethered by a USB cable.
When Do You Need a Gateway?
- Remote equipment: the PLC, sensor, or meter is in another building or on the plant floor, and running a USB cable (or RS485 cable back to your desk) is impractical.
- Ethernet modernization: you’re migrating a legacy serial installation to IP networking but the field devices are still Modbus RTU.
- Multiple consumers: several PCs or applications need to poll the same serial devices over the LAN, which a single USB adapter can’t share.
- Rack-mounted testing: you commission cabinets from a control room rather than standing at each cabinet with a laptop.
How a Gateway Works
The gateway has an RS485 port on the field side and an Ethernet (sometimes Wi-Fi) port on the network side. It continuously listens on the RS485 bus, wraps RTU request/response frames into TCP segments (Modbus TCP adds a 7-byte MBAP header), and routes them to the configured IP address and port — typically port 502. From QModMaster’s perspective, it’s just another Modbus TCP slave.
Recommended hardware: Need a gateway for your setup? See Modbus RTU to TCP gateways on Amazon — check current prices and make sure the listing supports Modbus gateway mode, not just serial passthrough.
What to Look For When Buying
True Modbus gateway mode vs raw passthrough
Two operating modes exist. Modbus gateway mode understands the Modbus protocol: it converts RTU to Modbus TCP frames, so QModMaster talks standard Modbus TCP. Raw serial passthrough just tunnels serial bytes over TCP, which requires the PC-side software to speak raw serial-over-TCP — QModMaster can’t use that. Always confirm Modbus gateway mode (sometimes labeled “Modbus TCP to RTU” or “Modbus protocol conversion”).
Baud rate and serial parameters
The gateway must support the baud rate and parity/stop-bit combination your devices use. Common rates (9600, 19200, 115200) are universal; if your devices run an odd rate, check the spec sheet. Most gateways are configured through a built-in web interface.
Power supply and mounting
Cabinet installations favor DIN-rail mounting with DC terminal power (often 9–36V). PoE (Power over Ethernet) models reduce wiring to a single cable but cost more — check whether your switch actually provides PoE before paying the premium. Desk/lab use can be a simple wall-powered box.
Example Products (As Starting Points)
Two widely available product families, offered as examples only — not endorsements, and we list no prices because they change constantly. Check the vendor’s site for current specs and pricing:
- PUSR USR-TCP232 series — a long-running family of serial-to-Ethernet modules from PUSR (also sold under the USR-IOT brand), including DIN-rail models with Modbus gateway firmware. Check the vendor site for the exact model and firmware version that supports Modbus gateway mode.
- Waveshare RS485-to-Ethernet modules — compact industrial modules from Waveshare with a web configuration interface and Modbus gateway support on recent firmware. Confirm the firmware revision on the vendor’s site before buying.
Connecting QModMaster Through a Gateway
Once the gateway is on the network and its RS485 port is wired to the bus, the QModMaster side is straightforward:
- In QModMaster, select Modbus TCP as the connection type (not RTU/serial).
- Enter the gateway’s IP address and port (commonly 502, but check the gateway’s web config — some default to 8899 or similar).
- Set the slave address to the address of the target device on the RTU bus behind the gateway.
- Use function codes and register addresses exactly as you would for a direct RTU connection — the gateway handles the RTU/TCP frame conversion transparently.
If reads time out, suspect the gateway’s serial parameters (baud/parity must match the bus), its gateway-mode setting (must be Modbus, not raw passthrough), and any firewall between your PC and the gateway’s IP. Our timeout troubleshooting guide covers the rest.
Frequently Asked Questions
What is a Modbus RTU to TCP gateway?
A hardware device that bridges an RS485/Modbus RTU serial bus to an Ethernet network. It converts RTU frames to Modbus TCP packets (and back), letting software like QModMaster reach serial field devices over IP instead of a directly attached USB adapter.
Does QModMaster work through a gateway?
Yes. Set QModMaster to Modbus TCP mode and point it at the gateway’s IP and port; use the field device’s slave address as usual. The gateway must run in Modbus gateway mode — raw serial passthrough will not work with QModMaster.
Gateway vs USB to RS485 adapter — which should I buy?
Buy a USB to RS485 adapter for bench testing and direct, single-PC access — it’s cheaper and simpler (see our adapter buying guide). Buy a gateway when devices are remote, must be shared over the LAN, or you’re modernizing a serial installation to Ethernet.
Why do my gateway reads time out?
Check three things in order: the gateway’s serial parameters match the bus (baud/parity/stop bits), the gateway is in Modbus gateway mode (not raw passthrough), and no firewall blocks the TCP port. Then work through the slave-side checks in our timeout fix guide.
