Troubleshooting
Why an industrial gateway locks up when used as a network hub
Short answer
The lockup comes from topology, not tags: the gateway was wired inline, so every frame between plant devices had to cross its 10/100 Mb ports. Put it on one dedicated switch port as an endpoint, keep camera and PC traffic off its link, and prove the residual cause with managed-switch counters and a mirrored capture - three polled tags are about 13 kbps against the port's line rate.
On this page
You wired a remote-access gateway into the middle of a working network and made it forward traffic it was never built to switch. The Ewon Flexy 205 carries four RJ45 ports documented at 10/100 Mb, and its documented architecture separates a WAN side from a LAN side — it is an endpoint that polls a controller and serves OPC UA over its own uplink, not a plant switch. Installed inline, it stopped all communications after 4 hours, then after 8 hours when one cable was moved, and only pulling the PLC's cable brought traffic back. The fix is topology: one dedicated central-switch port for the gateway, every other device on its own port. The proof is managed-switch counters and a mirrored capture, because the three tags it polls are a few kbps against the port.
What the four ports are documented to do #
The manufacturer's data for the Flexy 205 lists four RJ45 Ethernet ports at 10/100 Mb, configurable as LAN or WAN, with port 1 always LAN. The base-unit documentation adds that the ports auto-sense, accepting straight-through or crossed Category 5 cables. Those features exist so local devices can hang off an edge device; none of them is switch silicon rated to bridge hours of mixed plant traffic between other devices. The vendor's setup guidance for the WAN/LAN split shows the LAN port at 192.168.1.80/255.255.255.0 as the working example — the product is designed to sit at a boundary, with local devices on one side and an uplink on the other.
When you insert that boundary device between the central hub and the PC, every frame from the two vision cameras, the laser, the industrial terminal and the controller to the PC — and every reply — is bridged by the gateway's internal forwarding path. Whether an embedded processor keeps up with that indefinitely depends on the workload, not on the port nameplate, the principle behind how embedded processor performance depends on workload rather than clock speed.
What the failure pattern tells you #
Four facts from the installation:
- Inline behind the hub, all communications stopped after about 4 hours.
- With one cable moved from the central switch straight to the gateway, the interval stretched to about 8 hours — and the lockup still came.
- Each time, communications returned only when the controller's network cable was pulled.
- With the gateway removed from the path, the lockup did not return.
The only variable that reproduces and eliminates the fault is the gateway's presence in the forwarding path. A longer interval after one cable was moved tells you the failure is time- or load-dependent, not that the topology was fixed, because traffic still crossed the gateway both times. The detail that pulling the controller's cable restores traffic points at the gateway's PLC-side link, where it polls a small controller over DF1, as the conversation that dies first. None of this convicts bandwidth yet; the next section settles the tag workload with arithmetic.
The tag arithmetic that rules out saturation #
The gateway polls three tags: two DWord counters and one Boolean, and the PC's OPC server reads the same three. Process data per poll is 4 + 4 + 1 = 9 bytes. IEEE 802.3 sets a minimum frame of 64 bytes; add the 8 bytes of preamble and start-of-frame delimiter and the 12-byte inter-frame gap, and each frame occupies 84 bytes, or 672 bits, on the wire. One read is a request frame plus a response frame: 2 × 672 = 1344 bits per poll.
Now the rate, as an illustrative example because the polling rate is not documented in this case: at one poll per second the tag traffic is 1344 bit/s, about 1.3 kbps. At an aggressive ten polls per second it is 13,440 bit/s, about 13 kbps, which against a 100 Mb port (100,000,000 bit/s) is 0.013%. Add the PC reading the same tags at the same rate and you are near 27 kbps — still more than a thousand times below the port. No polling configuration of three tags saturates that link; whatever stops this network rides on the path, not in the tags. Tag count is a weak proxy for wire load in general, the same lesson that appears when sizing one Ignition gateway for 100,000 OPC UA tags.
Where the path actually fills #
Two vision cameras are the plausible load, in an illustrative case: if each streams 6 MB/s of images to the PC, that is 6 × 8 = 48 Mbit/s each, or 96 Mbit/s combined — 96% of one port before the controller, the terminal or any polling counts for anything. That is the kind of aggregate that turns an inline 10/100 Mb waypoint into the bottleneck. And because every device in this installation negotiates at that same rate, a gigabit switch placed in front of the gateway raises nothing on the gateway itself. Its one real benefit is segmentation: put the switch where the traffic is, so camera-to-PC frames stay on the switch and never cross the gateway's link at all.
Rewire it as an endpoint #
Schedule this in a stop window: the failure history shows this network only recovers by pulling the controller's cable, and you do not want to learn that during production.
- Land the controller, the OPC-server PC, both cameras, the laser and the terminal each on their own port of the central switch.
- Run one cable from a spare central-switch port to the gateway and treat it exactly like the PC: a consumer at the end of one port.
- Keep port 1 as the LAN port, address the gateway inside the controller's segment, and leave the WAN role on one of the other configurable ports for the uplink.
- Acceptance test: power the gateway off and confirm the PC still reads the controller and the cameras still reach the PC. If any conversation between other devices depends on this gateway being alive, the topology is still wrong.
- Let the gateway poll its three tags and serve OPC UA over its own uplink. Nothing about its data job changes; only its position does.
In that position the gateway does the job it was built for — carrying controller data across a long haul to a remote system, the trade-offs covered in choosing PLC to SCADA communication over long distances.
Prove the cause while it runs #
- On a managed switch, record per-port utilization, received and transmitted octets, discarded frames, error counters and link-state transitions for the gateway port, the controller port and the PC port, sampled across a full shift and across a failure.
- Mirror the gateway and controller ports to a capture host and record before, during and after a lockup; run longer than the 8-hour worst case already observed.
- Read the pattern: utilization near line rate with rising discards is congestion; requests leaving with no replies is a controller-side or protocol-path stop; link-state flaps are physical-layer.
- If the fault survives the new topology, disconnect one logical consumer at a time — the PC first, then the cameras — and keep every capture, so each state has its own evidence.
The decision point: if the counters stay low and the lockup still recurs with the gateway as a true endpoint, the forwarding path is exonerated and the case moves to the gateway itself.
Firmware and the escalation package #
Record the firmware string exactly as installed. In this history, v14.8s0 was the version first referenced and 14.9s0PR the version later reported; the available material does not document what the PR suffix means, so capture it verbatim rather than paraphrasing it. Update through the vendor's official channel, and if the lockup survives the endpoint rewiring, open a support case with the topology, the switch counters, the mirrored-port capture and the failure timestamps. That package is what turns "it works again" into a root cause.
Questions asked
Can I keep using the gateway as a hub if the traffic is light?
No. The documented ports are not rated for this role, and the product's architecture is a WAN side plus a LAN side, not plant switching. This installation locked up after 4 hours and again after 8 with the same devices and three polled tags, and recovered only when the PLC cable came out. Use it as an endpoint on one dedicated switch port regardless of how light you believe the traffic is.
How do I measure the data rate through the gateway?
Read the managed-switch counters on the gateway's port: utilization, octets in and out, discards, errors and link-state changes, sampled across a full shift and across a failure. Then mirror that port together with the PLC port and capture during a lockup. That combination gives you a number in bits per second and the packet-level story behind it; the tag count alone gives neither.
Will a gigabit switch in front of the gateway stop the lockup?
Not by itself. Every device in this network negotiates at the same rate the gateway's ports support, so nothing on the gateway itself changes. A gigabit switch helps only as segmentation: camera and PC traffic stays on the switch and never crosses the gateway's link. If the gateway remains inline, its port is still the bottleneck and the forwarding workload is still on it.
Could the three polled tags overload the port?
No. Two DWord counters and one Boolean are 9 bytes of process data per poll. A request plus a response frame occupies 1344 bits on the wire, so even ten polls per second is about 13 kbps, or 0.013 percent of the port's line rate. Doubling that for the PC reading the same tags still leaves you more than a thousand times below capacity.
What should I do about the firmware?
Record the exact string as installed: v14.8s0 was the version first referenced and 14.9s0PR the version later reported, and the PR suffix is not explained in the available material, so keep it verbatim. Then follow the update and escalation path described below: update through the vendor's official channel and, if the lockup survives the endpoint rewiring, open a case with the evidence package.