中文
English
Español
Pусский
한국어
日本語

Modbus Over 4G Works Intermittently: How to Troubleshoot

2026-10-21

Direct serial connection to the PLC works fine. After switching to 4G wireless, data arrives intermittently. This is not a Modbus protocol problem—it is a conflict between the jitter characteristics of the wireless link and Modbus's strict timing requirements. Follow the sequence below; the root cause is usually identified within 30 minutes.

Step 1: Check Signal Strength—But Not Just "Whether There Is Signal"

When 4G signal strength (RSRP) drops below -100 dBm, link retransmission rates rise significantly. MovingComm DTU commissioning guidance recommends an installation location with RSRP > -100 dBm. But good RSRP does not mean a stable link—signal strength reflects received power only, not jitter and packet loss.

Action: Check RSRP and SINR in the DTU/gateway web interface or cloud platform. RSRP within -85 dBm and SINR > 10 dB is preferable. If RSRP is normal but communication still drops, proceed to Step 2.

Step 2: Measure Latency Jitter—Are the Timeout Parameters Set Correctly?

This is the most common root cause of intermittent behaviour. 4G round-trip latency (RTT) may sit at 30–50 ms normally but jump to 300 ms or higher during peak hours. If the Modbus master timeout is set too tight—for example, carrying over the 200 ms used for direct serial connection—the master declares a timeout and retransmits before a normal response arrives. The retransmission causes the slave to receive duplicate requests; some PLCs return exception code 06 (device busy), creating a vicious cycle.

Parameter reference table (based on MovingComm field experience):

ParameterDirect serial4G/5G wireless recommended
Request timeout100–300 ms500–2000 ms
Retry count1–22–3
Polling interval50 ms≥200 ms

Action: First measure maximum wireless latency with ping (ping -c 100 target-IP, check the max value), then set the timeout to 2–3 times the maximum latency. If ping shows a max above 500 ms, set the timeout to at least 1500 ms.

Step 3: Confirm the Working Mode—Transparent or Protocol Conversion?

MovingComm industrial routers/DTUs typically support two modes, and choosing the wrong one causes frames to be "quietly altered":

  • Transparent mode: forwards frames unchanged—suitable when both ends use Modbus RTU and 4G serves as the bridge.

  • Protocol conversion mode: automatically performs RTU↔TCP conversion (strips CRC, adds MBAP header)—suitable when one end is a PLC (RTU) and the other is a cloud platform (TCP).

Typical failure: The PLC sends RTU, the router is set to protocol conversion, converts to TCP and sends to the cloud; the cloud parses as RTU → CRC check fails. Or the cloud sends TCP, the router converts to RTU but loses the Unit-ID, and the PLC rejects it.

Action: Confirm the format each end expects. When uncertain, prefer transparent mode and implement conversion logic yourself—it offers the highest controllability. Capture packets on both the serial and Ethernet sides and compare byte by byte.

Step 4: Verify Serial Parameters Match Exactly

Baud rate, data bits, parity and stop bits—if any one does not match, communication becomes intermittent. Modbus RTU most commonly uses 8N1, but power meters often use 8E1 and some legacy devices use 7E1. Occasional successful reception occurs because interference makes the parity bit "happen to" match, but it is unreliable.

Action: Confirm serial parameters against the PLC manual and verify each item in the DTU/gateway configuration. For RS485, check A/B polarity (A to A, B to B—do not cross).

Step 5: Rule Out On-Site Electromagnetic Interference

If the CRC error counter is rising while RTT is stable and low, the problem lies on the serial side, not the 4G side. Common interference sources: VFDs, servos, welding machines.

Action:

  • Add termination resistors (120 Ω) to the RS485 bus; consider isolated transceivers for long buses;

  • Check shield grounding and avoid grounding both ends, which creates a ground loop;

  • The DTU/gateway metal enclosure provides shielding, but the antenna should be positioned away from VFD cabinets.

Quick Troubleshooting Checklist

SymptomCheck first
Occasional timeouts, ping latency fluctuatesIncrease timeout (500–2000 ms)
CRC errors keep growing, RTT stableSerial interference/wiring
Data completely garbledWrong transparent/protocol-conversion mode
Intermittent communication, serial parameters suspectVerify baud rate/parity/stop bits
Weak signal (RSRP < -100 dBm)Reposition antenna or add external antenna

If the problem persists after these five steps, submit the specific device model and field logs through the MovingComm website for targeted technical support.