Tiza Group

Home / Guides / Testing, commissioning and faults

Panel communication lost after a restart: causes

Why meters and relays in a panel stop communicating after a restart: sessions, addresses, switch or serial settings, and how to test. Remote setup.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When a panel's communication does not come back after a power, switch or device restart, the cause is almost always in what changes at startup: a stale TCP session the device does not release, a different or duplicate IP address, a switch that takes time to forward frames, or a serial configuration that went back to its factory value. Separate them by observing which device comes back, in what order and how long it takes, before touching wiring or settings.

Symptom

The panel was measuring and communicating normally. After an auxiliary supply outage and return, switch maintenance or the restart of a single device, the supervisory system stops receiving data from one or several meters and relays. Sometimes they come back on their own after a few minutes; sometimes only after restarting the supervisory system or the gateway; sometimes never, until someone unplugs and replugs a cable.

The parent guide explains how metering and communications are added to an existing panel: adding a meter and communications to an existing panel. This guide deals only with what changes at startup and how to find out which of those changes breaks communication. The key to the whole diagnosis is to observe what comes back, in what order and how long it takes.

Probable causes, from most to least likely

CauseHow to recognize it
The supervisory system or gateway keeps a session the device has already lostThe device answers a test made from another machine on the same network, but not the supervisory system, until it restarts the channel
The device limits simultaneous connections and the old ones use up the quotaAfter several supervisory restarts, devices stop accepting new connections; they free up after a while or when the device is restarted
Different or duplicate IP address after startupTwo devices with the same address, or a device that took another address through automatic assignment; the switch’s or supervisory system’s address table shows it
The switch takes time to forward frames (spanning tree, port negotiation)Links are up but pass no frames for a fixed time; afterwards everything works
The switch loses its VLAN or port configuration on restartAfter the restart, the device’s port is left in the default VLAN; it only recovers when the configuration is reloaded
Power-up order: the device starts faster or slower than the switch or supervisory systemThe problem appears only when everything is energized at once; restarting one device while the rest are running works
Serial parameters that return to factory values, or an RS-485 bus without termination or biasOnly one device or one segment fails; with a serial analyzer you see frames with parity or framing errors, or none
Loose wiring or connectors that loosen with heat or vibrationThe failure coincides with the heating after the restart, or improves when the cable is moved

How to diagnose it

  1. Separate what was restarted. The whole panel, the switch, a single meter, the gateway or the supervisory system? Reproduce the case by restarting one thing at a time, with operating authorization. The result already rules out half the causes: if restarting a single meter always recovers it, the problem is not the switch.
  2. Measure the time. Note at which second each link, each port and each data point comes back. A fixed, repeatable value, for example always the same wait, points to a timer: spanning tree, device boot or the supervisory system’s timeout. A random time points to addresses, sessions or wiring.
  3. Test from another point on the same network. With a service laptop connected to the same switch, query a register on the device. If it answers, the device and the segment are fine and the problem is in the supervisory system or gateway, or in the path between them.
  4. Check the addresses. Compare the address each device has after startup with the addressing plan. A device with automatic assignment must have a fixed reservation; a duplicate address produces intermittent failures that are mistaken for wiring.
  5. Observe the switch. Check the state of the links and ports and whether the redundancy protocol blocks any port during startup; see the guide on rings and rapid spanning tree. Check that the active VLAN and port configuration is the saved one, not a different startup configuration.
  6. Check the TCP connections. On the device or on the supervisory system, look at how many connections are open to that device and from which address. Several open connections from the same supervisory system, or sessions with no activity, indicate old sessions that were not closed. The difference between the serial and TCP Modbus protocols is in the guide on Modbus serial versus Modbus over Ethernet.
  7. If it is serial, measure the bus. Verify baud rate, parity, stop bits and address against the master’s settings, the presence of termination resistors at both ends and bias at a single point. In serial Modbus, frames are separated by a silent interval of at least 3.5 character times: a device that is slow at startup or a converter with delays can break that silence.
  8. Test startup in the real order. Remove power from everything and energize as happens in an outage. Repeat several times: a fault that does not always appear indicates a race between startups.

Illustrative example

A supervisory system polls a meter every 2 s with a 1 s timeout and 3 retries, and declares the device down and stops polling for 10 minutes before trying again. After an outage, the switch restarts with classic spanning tree and takes about 40 s to forward frames; the meter takes 25 s to boot.

  • The supervisory system tries for 3 × 1 s = 3 s at the start, and receiving nothing, declares the device down.
  • 40 s pass until the switch forwards and 25 s until the meter boots; both are well before the end of the 10 minutes, but the supervisory system does not retry until then.
  • Communication “drops” for 10 minutes even though the network is ready at 40 s.

The fix is on the supervisory side: retry every few seconds while the device is down, a timeout longer than the switch startup, and a communication alarm only after that margin. There is nothing to change in the wiring.

What to do

  • Old sessions or connection quota. Set the supervisory system to close the session when communication is lost and open a new one; enable keep-alive or dead-connection detection at both ends if the device supports it. If the device limits connections, leave only one per supervisory system.
  • Addresses. Assign fixed addresses or reservations and document them in the plan; fix duplicates.
  • Switch. Save the configuration to non-volatile memory, declare end-device ports as edge ports and set the appropriate redundancy protocol; the supervisory system must tolerate whatever convergence time remains.
  • Startup order. Delay the start of the supervisory system or gateway, or give enough timeout; it should not depend on restarting anything by hand.
  • Serial. Save the device parameters, install termination and bias as the manufacturer indicates and check the bus reference ground.
  • What needs a specialist. Changes to VLANs, to the redundancy topology or to the wiring in an energized panel.

Field checklist

  • The restart is reproduced and it is noted which link, port and data point comes back and at which second.
  • The device answers a query from another computer on the same network.
  • Addresses compared with the plan; no duplicates.
  • Switch configuration saved and end-device ports declared as edge ports.
  • Open connections to the device counted.
  • Serial parameters equal on master and slaves; termination and bias present.
  • Supervisory timeouts and retries longer than the switch and device startup.
  • Full startup repeated several times with the same result.

What not to do

  • Do not energize or disconnect devices with the panel open without qualified personnel and operating permission: there are live parts.
  • Do not change several settings at once. If you change addresses, timeouts and the switch together, you will not know what fixed it.
  • Do not raise the timeouts until the problem “disappears” without understanding the cause: it hides real communication faults.
  • Do not leave the switch configuration only in volatile memory.
  • Do not isolate the problem with a temporary jumper that stays in service undocumented.

When to call us

If the panel does not recover its communication and the problem is in addressing, the network or the supervisory system, we adjust and verify the configuration of devices, gateway and supervisory system. We configure it remotely. Write to us.

References

  • Modbus Organization, Modbus Application Protocol Specification, Modbus Messaging on TCP/IP Implementation Guide and Modbus over Serial Line Specification and Implementation Guide.
  • IEEE 802.1D, Media Access Control Bridges (includes the rapid spanning tree protocol, formerly IEEE 802.1w).
  • IEEE 802.1Q, Bridges and Bridged Networks (virtual LANs).
  • TIA/EIA-485-A, Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems.

Frequently asked questions

Why does the panel communicate fine, but after a power cut the supervisory system has to be restarted?

Because the supervisory system holds a connection that the panel device has already lost, or because the panel device limits the number of connections and the old ones use up the quota. The supervisory system must detect the drop, close the session and open a new one with retries; if the software does not do this, adjust the timeouts or restart only that channel.

How long does a switch take to forward frames again after restarting?

It depends on the redundancy protocol and the configuration. With classic spanning tree, a port can go from blocking to forwarding in the order of 30 to 50 seconds; with the rapid version it is usually less, but it depends on the topology and on whether the port is declared as an edge port. The supervisory system must wait longer than that before declaring the device down.

Can a serial device be left without communication after a restart?

Yes, if on startup it takes a baud rate, parity or address different from the master's, for example because the setting was not saved to non-volatile memory. It can also happen from a missing termination or bias resistor on the bus, which leaves the line in an undefined state while the devices start up.

WhatsApp