Industrial connectivity

When RS-485 Drops Out Intermittently, How to Tell Which Device or Which Cable Section

An occasional dropout that returns after a restart cannot be concluded by restarting again and again. First tell whether it is the whole line, a single point, or triggered by interference, then use a minimal link and sectional tests to narrow the scope, and keep a frame record.

A complete loss of communication is relatively easy to find. What is harder to handle is an occasional dropout that returns after a restart. In field implementation, Tongwei Smart has seen that this kind of problem cannot be closed by restarting again and again. Classify the symptom first, then use a minimal link and sectional tests to bring the variables down. The gateway and the platform can record online status, communication exceptions, and alarms. What they see is the result. Narrowing an intermittent fault to one device or one section still needs field evidence.

First split dropouts into three types

If all devices drop out at the same time, look first at the master serial port, the gateway process, the power supply, and whether the bus is occupied. If only one device, or a few addresses, keep timing out, check that node’s power, address, wiring, and interface first. If the exception appears at the same time as equipment startup, variable-frequency drive operation, or relay action, put interference, cable spacing, shielding, and isolation into the same judgment. Also note whether it appears at power-up, after running for a period, or more readily when it is humid, raining, or at night. The direction of investigation differs for these symptoms.

First bring it back to one minimal link

Keep one master, one slave, and a short length of cable already confirmed to work, and use a fixed baud rate, parity method, and device address. If this shortest link is stable, the basic parameters of the master and the slave are broadly usable, and the fault is more likely in the field topology, the cable, the power supply, a particular node, or the electromagnetic environment.

Add devices back one by one, and section the bus when there are many

Do not reconnect the whole bus at once. Each time you add one device, watch for a period, and record whether CRC errors, response timeouts, or a slowdown of the whole bus appear. Whichever device, once connected, is followed by the exception becomes the focus. The fault point is not necessarily the device being accessed. It may also be a damaged interface, a termination switch turned on by mistake, excessive supply ripple, or that device holding the bus at an abnormal level for a long time.

When there are many devices, open the bus in the middle, split it into a front section and a rear section, and see which section reproduces the fault. Then keep splitting the faulty section in half. This narrows the scope more readily than changing devices from the first through to the last.

Use the trigger conditions to trace interference and power

  • Dropout when high-power equipment starts: check whether the RS-485 cable runs parallel to power cables over a long distance, and whether it passes variable-frequency drives, motors, contactors, or relays; check whether shielding, grounding, isolation, and surge protection are handled as the plan specifies.
  • More likely when humid, raining, or at night: check outdoor joints, water ingress, condensation, and power fluctuation.
  • Dropout only after running for a fairly long time: check temperature rise, and the thermal stability of the power adapter and the interface.

Use frame statistics, not only online or offline

Listen to the raw frames, and count requests, responses, CRC errors, timeouts, and recovery time. If every device has no response at the same moment, look first at the master, the gateway, the power supply, and bus occupancy. If only one address keeps failing, check that node first. If frames are already damaged on the bus, focus on the cable, the topology, termination, interference, and interface levels.

After power is removed and safety is confirmed, you can check whether A and B are shorted and whether termination is enabled more than once. After power is restored, look again at whether the supply is stable, and check whether slave addresses on that bus are duplicated. When addresses are duplicated, two devices may respond at the same time, the frames are superimposed, and the result appears as random errors.

Change only one variable at a time

Change only the cable, disconnect only one device, change only one parameter, or move only one cable run. If the gateway, the cable, and the baud rate are replaced at the same time, communication may recover and the real cause is still unclear.

Common questions

It recovered after a restart. Can we watch it for now?
You can record the recovery time, but a restart is not a location of the fault. An intermittent fault needs the trigger conditions, the minimal-link result, and the raw frames left on record. Otherwise it will keep appearing in the same place the next time.
The platform already shows offline. Why still go to the site and section the bus?
What the platform sees is the communication result. To judge whether it is one device, one cable section, or interference, you still need a minimal link, sectional tests, and frame statistics.