+8618758069661 [email protected]
Product Search Guide: space = AND, | = OR, ! = NOT

Got any Questions? Call us Today!

+8618758069661

Or leave us a message

Online Message

How to Network an RS485 Serial Server: Bus Wiring, Network Modes, and Polling Acceptance

Views: 152 +1Original by FCTELEAuthor: FCTELE Technical Team
AT A GLANCE

What must remain coordinated when RS485 devices are accessed over Ethernet?

The local bus topology and electrical conditions, the network transport role and the application polling rules all remain relevant. Multiple TCP sessions do not automatically arbitrate requests on one half-duplex bus. Choose a supported transparent or conversion path, establish a known read-only result and expand carefully. Verify response identity, timing and recovery without assuming that connection success proves correct instrument data.

Three mechanisms and their verification boundariesFollow the signal, then verify the actual service

01Separate idle state and reflection

Separate idle state and reflectionBiasing and termination solve different electrical problems.ReceiverBiasIdle differential condition on the pairConceptual network; not a UART output pull-up

Biasing and termination solve different electrical problems.

02Coordinate the shared bus

Coordinate the shared busSeveral instruments share finite request and reply opportunities.Node 1Poll 1Node 2Poll 2Node 3Poll 3One shared polling timelineTimeouts and retries also consume scan time

Several instruments share finite request and reply opportunities.

03Verify the responding terminal

Verify the responding terminalConnection identity and instrument station identity are not the same field.RequestStation mapInstrumentNetwork context ≠ serial station addressVerify channel, address and returned known value

Connection identity and instrument station identity are not the same field.

Swipe to compare the three diagrams →

Conceptual teaching illustrations—not measured waveforms, installation wiring or the internal architecture of a specific product.
  • Separate idle state and reflection

    Check built-in functions before adding components.

  • Coordinate the shared bus

    Use one coordinated polling entry or verified gateway scheduling.

  • Verify the responding terminal

    Compare a known register with the intended physical state.

Selection and verification checklistExpand the checks and related guides
Checks for this service and its actual operating conditions
CheckWhat to confirmHow to verify
Separate idle state and reflectionBiasing and termination solve different electrical problems.Check built-in functions before adding components.
Coordinate the shared busSeveral instruments share finite request and reply opportunities.Use one coordinated polling entry or verified gateway scheduling.
Verify the responding terminalConnection identity and instrument station identity are not the same field.Compare a known register with the intended physical state.

An RS485 serial server sends serial bytes to an Ethernet application, but it does not necessarily understand what those bytes mean. Networking must handle three layers at the same time: whether the RS485 electrical bus is reliable, whether the network connection is correct, and whether the host computer’s application protocol matches. A transparent serial server and a Modbus protocol gateway are not the same thing, and they cannot be swapped just because both have RS485 and an Ethernet port.

First, clarify who is responsible for what

The meter’s RS485 port is responsible for converting bits into a voltage difference between two wires; the serial server receives bytes and carries them over TCP or UDP; the host computer interprets addresses, functions, and values according to the meter protocol. A successful TCP connection only means the network connection has been established; it does not prove that the meter is responding correctly. When selecting equipment, first write down the device protocol, serial parameters, number of devices, and software access method. TTL serial, RS232, and RS485 have different electrical standards and cannot be directly mixed.

A bus is not a network cable that can be branched at will

Common two-wire half-duplex RS485 uses one main trunk passing through each node in sequence, with branch lines as short as possible. Termination at both ends is used to reduce signal reflection and should be configured according to the cable and device manuals; do not add a resistor at every node. Idle biasing and termination solve different problems: the former stabilizes the logic state when no one is transmitting, while the latter handles transmission line reflection. If built-in biasing or termination already exists, check first before adding more. A/B naming may vary by manufacturer; verify the positive and negative definitions, and do not wire only by the letters.

Diagram of the main trunk, short branches, and termination at both ends; termination parameters are subject to the actual cable and device manuals.
Diagram of the main trunk, short branches, and termination at both ends; termination parameters are subject to the actual cable and device manuals.

How to choose among TCP Server, Client, and virtual serial port

In TCP Server mode, the host computer actively connects to the serial server; in TCP Client mode, the serial server actively connects to a specified service. The choice depends on the software and network reachability, and does not mean one mode is faster. A virtual serial port driver lets old software continue to access a COM port, but you still need to check driver compatibility, reconnection after disconnection, and serial port occupation. Transparent transmission does not automatically turn Modbus RTU into Modbus TCP; if the software requires an MBAP header, a gateway with the corresponding protocol conversion capability is needed.

Why there must be a clear poller

On the same half-duplex bus, multiple devices share the transmission opportunity. Taking common Modbus RTU master-slave polling as an example, the host computer asks different addresses one by one, and the devices respond in turn. If two network clients send requests to a transparent server at the same time, serial requests may interleave; TCP multi-connection support cannot be equated with serial multi-master coordination. A single polling entry point should be agreed upon, or a gateway that can queue and match transactions should be used. The timeout must cover request transmission, device processing, return transmission, and network buffering, and cannot be blindly reduced to a very small value.

Serial bytes and network connections belong to different layers: transparent transport is not the same as application protocol conversion.
Serial bytes and network connections belong to different layers: transparent transport is not the same as application protocol conversion.

Start acceptance testing with one device and proceed step by step

First use a short cable to connect one device, unify baud rate, data bits, parity, and stop bits, read one known register, and verify the value. Then add nodes and formal cabling, and observe timeouts, checksum errors, and response times. Record device addresses, wire order, termination positions, software mode, and reconnection strategy; test whether recovery occurs after unplugging the network cable and after power-off and power-on. For lines crossing buildings or with obvious ground potential differences, evaluate isolation, surge protection, and grounding; the shield layer cannot replace all protection.

Example: connecting three meters to a local area network

Assume three meters use the same Modbus RTU baud rate, but their addresses are 1, 2, and 3. First connect one meter to the serial server with a short cable, and use host software that supports RTU bytes or a virtual serial port to read a known energy value. Then add the remaining meters along the main trunk and poll in address order. If the software only supports Modbus TCP, use a compatible gateway instead, and do not treat RTU frames directly as TCP application messages. The polling interval includes the processing time of slow devices; check response ownership, and do not let three software programs each grab one meter while ignoring bus sharing. Direct connection to a computer is suitable for establishing a baseline; after connecting to a switch, check addresses, access permissions, and reconnection after disconnection.

Principle reference:Official technical materials. The structural diagrams in this article do not represent specific product specifications; when selecting equipment, check the model manual.

Translated from the Chinese technical article. Source first published: 2019-11-22. Source last revised: 2026-10-13T22:21:36+08:00. Read the Chinese source

Common practical questions

Can adding another bias network substitute for correcting bus reflections?

No. Bias sets an idle condition while termination addresses transmission-line behavior. Follow the actual segment and device requirements rather than adding components indiscriminately.

Does support for several TCP clients make transparent RS485 access multi-master safe?

Not by itself. Requests can compete or interleave on the shared bus. Use coordinated ownership or documented arbitration and verify response association under concurrent access.

What should a valid TCP connection leave to verify during three-meter acceptance?

Distinct device addressing, correct response association and known returned values, followed by load and recovery behavior. A network socket does not identify which physical meter produced the data.

Sources and applicable boundaries

These additions explain general mechanisms. Supported features, connection details and acceptance limits must be verified for the actual equipment, software and operating conditions; the diagrams are not measurements or certification evidence.

Share this article