AM2432: DLR Backup Manager Communication Loss

Part Number: AM2432

DLR Backup Manager Communication Loss — Problem Analysis Report


1. Summary

This report analyzes two independent defects, both observed sporadically only during the DLR stress test of repeatedly power-cycling ordinary ring nodes:

No. Defect Ownership Status
Issue 1 The DLR Backup Manager spuriously takes over as Active Supervisor on a single-port link down, causing ring role/state churn TI DLR host driver (SDK 2026.00.00.06) Fixed locally and verified
Issue 2 PRU firmware host TX queue (Q3/LwIP) deadlock: busy_m and the collision slot are never released, permanently breaking all IP communication (including EIP I/O over UDP) on that device TI ethernetip_adapter PRU firmware Host-side recovery validated; TI root fix pending

Issue 2 directly matches the field symptom: the Manager reports the DLR ring as healthy, yet the Backup Manager cannot be pinged and its EIP I/O connection drops and cannot reconnect.

2. Test Topology

M.port1 ——— N1 —— N2 —— N3 —— N4 ——— B.port1
M.port2 —————————— direct cable —————————— B.port2
  • M: Manager (Active Ring Supervisor, precedence 1)

  • B: Backup Manager (Backup Ring Supervisor, precedence 0)

  • N1..N4: ordinary ring nodes (non-TI devices, ring-node functionality only)

  • Normally M blocks M.port2; data flows M.port1 — node chain — B.port1; the M.port2↔B.port2 direct cable carries only Beacon/DLR frames.

3. Symptoms

  1. Occurs sporadically after repeatedly power-cycling the ordinary nodes (the Manager and Backup Manager stay powered).

  2. The Manager reports the DLR ring as normal, but the Backup Manager is unreachable.

  3. The Backup Manager times out pinging any device (Manager, nodes); the Manager also times out pinging the Backup Manager.

  4. The Backup Manager's EIP I/O communication fails at the same time (I/O data is sent via UDP/LwIP, sharing the host TX queue with ARP/ICMP).

  5. Breaking and then restoring the ring restores communication, without rebooting the device.

Reproduction: two TI managers configured as Active / Backup Ring Supervisor (both blocking port 2), four ordinary nodes chained in the ring. Keep both managers powered and repeatedly power-cycle the nodes (a few seconds per round). Issue 1 hit 2 times in 12 link-down events; Issue 2 appeared multiple times in the same stress run (always after link recovery).

4. Issue 1: DLR Backup Manager Spurious Takeover on Single-Port Link Down

4.1 Relevant mechanisms in the stock code

(1) Link-down handling

The P0/P1 link-break handlers in icss_dlr.c (EIP_DLR_port0ProcessLinkBrk() / EIP_DLR_port1ProcessLinkBrk()) set the node state to NODE_FAULT, stop that port's IEP watchdog, flush the learning table, and report a ring fault. This path itself is correct.

(2) Beacon-timeout ISR unconditionally re-arms the watchdog

At the entry of EIP_DLR_beaconTimeoutISR_P0/P1 (icss_dlr.c:873 for P0, icss_dlr.c:1022 for P1):

/*Clear the interrupt*/
HW_WR_REG32(intStatusOffset, PORT0_WD_ISR_MASK);
...
/*Need to restart the Watchdog because it's not an auto load timer*/
EIP_DLR_disableIEPWatchdog(dlrHandle, PORT0_WATCH_DOG_ID);
EIP_DLR_enableIEPWatchdog(dlrHandle, PORT0_WATCH_DOG_ID);   /* no link check */

The IEP watchdog is not an auto-reload timer, so it must be re-armed after expiry — hence the unconditional disable + enable. The problem is that this happens before any state/link check: if a port is already down (and will never see a Beacon again), one timeout interrupt that was already pending at link-down (or arrives right after) still enters the ISR and re-enables the watchdog; from then on that port keeps generating timeout interrupts every beaconTimeout (currently 4000 µs) with no way to stop itself.

(3) Backup takeover decision ignores the other port

In EIP_DLR_beaconTimeoutSupProcessing() (icss_dlr_sup.c:880 onwards), the "backup supervisor in FAULT state" branch uses only isSwitchOverPeriodActive to distinguish "first timeout" from "continuous timeout":

if(isSwitchOverPeriodActive == DLR_TRUE)
{
   /* Second and subsequent timeouts: declare the active manager lost */
   EIP_DLR_disableIEPWatchdog(dlrHandle, portNum - 1);
   EIP_DLR_resetStateMachine(dlrHandle);
   EIP_DLR_configSupervisor(dlrHandle);        /* set ACTIVE, send Beacons */
   isSwitchOverPeriodActive = DLR_FALSE;
}
else
{
   /* First timeout: enter the switchover window, stop both watchdogs, enable only P0 */
   EIP_DLR_disableIEPWatchdog(dlrHandle, PORT0_WATCH_DOG_ID);
   EIP_DLR_disableIEPWatchdog(dlrHandle, PORT1_WATCH_DOG_ID);
   EIP_DLR_enableIEPWatchdog(dlrHandle, PORT0_WATCH_DOG_ID);
   isSwitchOverPeriodActive = DLR_TRUE;
}

Nothing in this decision checks whether the other port is still receiving Beacons (nor whether this port's own link is still valid).

4.2 Defect walk-through

With the two code paths above, a single-port link down is enough to trigger takeover:

  1. The node-side port (P1/PHY1) goes down → state machine enters NODE_FAULT, P1 watchdog is stopped;

  2. But the Beacon-timeout interrupt that was already pending at link-down (or arrives right after) still enters the ISR, which re-enables the P1 watchdog unconditionally at entry;

  3. P1 is down, so no Beacon arrives and timeouts recur every 4 ms, re-entering the FAULT branch;

  4. The first timeout arms the switchover window (isSwitchOverPeriodActive = TRUE); the second executes resetStateMachine + configSupervisor and takes over as Active Supervisor;

  5. Meanwhile the Manager's Beacons on P2 never stopped. Per DLR semantics, the backup may take over only when neither port receives Beacons;

  6. The firmware then clears the ACTIVE bit by precedence (backup 0 < manager 1), and the host runs transitionToBackupSupervisor() on the idle→fault event, demoting back to Backup within about 1 ms.

4.3 Field event trace

[55347868] P1 LINK DOWN drvLS=01
[55347868] DLR_P1_BRK link=0 node=NORMAL en:status=0x00230000
[55347868] FDB FLUSH port1 entries=33
[55347868] DLR -> FAULT node=FAULT ring=2
[55347868] BCN_TO_P1 node=FAULT sm=0x0201
[55347872] BCN_TO_P1 node=FAULT sm=0x0201
[55347872] DLR RESET SM (previous node=FAULT)
[55347872] DLR RESET SM (previous node=IDLE)
[55347872] SUP -> ACTIVE   EN=0x27       <-- spurious takeover
[55347873] ISR_P2 evts=0x0108 ... [RING_FAULT_TRANS STOP_BOTH_TMR ...]
[55347873] SUP -> BACKUP   EN=0x23       <-- demoted about 1 ms later
  • Within the same observation window: P1 LINK DOWN 12 times, BCN_TO_P1 7 times, 2 spurious takeovers (about 1 in 6; sporadic).

  • During the same period the Manager side shows no role change, so the churn happens only on the backup side.

4.4 Impact

  • Each hit produces a brief "dual supervisor / role flap" on the ring, and the Backup Manager sends its own Beacons;

  • The takeover path calls EIP_DLR_dRAMInit(), which clears the ActiveSup MAC/IP in SMEM; the demotion path does not restore them; updateSupervisorDetails() may write addr.supMACAddress and the learning exception table as 00:00:00:00:00:00;

  • CIP status, the participant table, and ring-fault counters are repeatedly reset, degrading long-term DLR network stability.

4.5 Fix (local)

Location (stock file) Change
icss_dlr.c beacon-timeout ISR (P0/P1) Check this port's live link (MDIO) first; on link down → stop the watchdog, clear TIMER_RUNNING/START_TIMER, set isrAck, and return without re-arming
icss_dlr.c beacon-timeout ISR (P0/P1) Record genuine timeouts in lastBcnTimeoutTick[port] for the backup decision
icss_dlr.c NORMAL branch + EIP_DLR_switchToNormal() Clear isSwitchOverPeriodActive so a previous fault's switchover window does not persist
icss_dlr_sup.c backup/FAULT branch Add a peer-port criterion before takeover: other port link up + its watchdog running + no new timeout within an observation window → conclude "the other port still has Beacons", do not arm, do not take over
icss_dlr_sup.c switchover arm branch Change from "stop both watchdogs, enable only P0" to "keep both watchdogs running" so the peer-port criterion is meaningful when evaluated
icss_dlr.h Add lastBcnTimeoutTick[2] and two link/watchdog query declarations

Genuine manager-loss scenarios are unaffected: when both ports go silent, the other port times out too, the criterion fails, and takeover still happens; worst-case takeover time increases from about 2× to 3× beaconTimeout.

4.6 Verification

With the new firmware under the same stress test (repeated node power cycling), the event trace no longer shows SUP -> ACTIVE; on P1 link down it shows BCN_TO P1 ignored (link down); legitimate takeovers occur only when the Manager side is truly silent.

5. Issue 2: PRU Firmware Host TX Queue (Q3) Deadlock

5.1 Stock queue protocol and driver TX path

(1) Queue descriptor (PRU1 DRAM, shared by host and firmware)

Offset Field Written by Meaning
+0 rd_ptr PRU firmware read pointer
+2 wr_ptr host host write pointer
+4 busy_s host host ownership flag
+5 status firmware bit0 busy_m (firmware busy), bit1 collision
+6/+7 max_fill / overflow — statistics

In addition, each port has a collision slot at colStatusAddr+1/+2: when the target queue is busy the host moves the frame into the collision queue and writes (queue<<1)|1; the firmware clears it after consuming the collision queue.

(2) Driver TX path (MCU+ SDK icss_emac.c, ICSS_EMAC_txPacketEnqueue(), switch mode)

/* 1. Read status.busy_m */
collision_queue_selected = (temp & 0x00000100U);      /* Check the "busy_m" bit */
if(collision_queue_selected != 0U)
{
   hostStatPtr->txNumCollision++;
   /* 2. Check whether this port's collision slot is already occupied */
   col_queue_already_occupied = HW_RD_REG8(colStatusAddr + port);
   if(col_queue_already_occupied != 0)
  {
       hostStatPtr->txDroppedPackets++;
       hostStatPtr->txCollisionDroppedPackets++;
       return ICSS_EMAC_ERR_COLLISION_FAIL;           /* No space in collision queue */
  }
}
...
/* 3. If free, put the frame into the collision queue and set the port's collision slot */
collision_status = (queuePriority << 1) | 0x0001U;
HW_WR_REG8(colStatusAddr + port, collision_status);

So: once the firmware leaves a queue's busy_m set indefinitely, every transmission takes the collision path; the host sets the collision slot on the first attempt, the firmware never clears it, and every subsequent transmission is dropped at step 2 with ERR_COLLISION_FAIL, while txDroppedPackets/txCollisionDroppedPackets keep increasing.

5.2 Field evidence

(1) TX counter deltas around a ping (Backup Manager port1; driver statistics plus TX return-code counts)

Counter Before ping After ping Delta
txBC (driver statistic) 32 32 0
txNumCollision (driver statistic) 21818 22368 +550
txCollisionDroppedPackets (driver statistic) 21814 22364 +550
ERR_TX_NO_LINK return count 666073 666073 0
other drops (queue full, etc.) return count 10318 10318 0

That is: the link is up (no NO_LINK drops) and queues are not full, yet every transmission fails on the collision path — an exact match for the code path in 5.1. Over the same period port2 shows txBC +534 (all broadcasts leave via port 2, which faces the Manager's blocked port).

(2) Raw queue descriptor values in the fault state (read from PRU1 DRAM)

P1 Q0 wr=1088 rd=1088 used=0 busy=0 busym=0 ovf=0
P1 Q1 wr=11a4 rd=11a4 used=0 busy=0 busym=0 ovf=0
P1 Q2 wr=1328 rd=1328 used=0 busy=0 busym=0 ovf=0
P1 Q3 wr=15a4 rd=15a4 used=0 busy=0 busym=1 ovf=0
P1 colStatus=7   (= (3<<1)|1, Q3 collision slot asserted)
  • The deadlocked queue is P1 Q3 (ICSS_EMAC_QUEUE4, the LwIP transmit queue);

  • The queue itself is empty (wr==rd, used=0) — no data backlog; the stuck part is the handshake bits;

  • status.busy_m=1 and colStatus=7 are held together while all other queues are normal.

(3) Formation time

[1918964] P1 LINK UP drvLS=101
[1919003] DLR -> NORMAL node=NORMAL ring=1
[1919919] *** TXQ P1 STUCK colStatus=7 busy_m=1 ***

The deadlock forms after link restore, DLR returning to NORMAL, and the host resuming enqueues to Q3 — i.e., the firmware fails to complete or properly abort an in-flight TX transaction across the link/ring state transition.

5.3 Ownership conclusion

State Set by Cleared by Notes
Queue status.busy_m PRU firmware PRU firmware The stock driver only reads this bit (as a TX-path condition); no code writes busy_m
Collision slot colStatusAddr+1/+2 Host (TX path, step 3 in 5.1) PRU firmware (after consuming the collision queue) The stock driver only writes non-zero values, never 0; +0/+3 are host acknowledgements to the firmware
Queue wr/rd Host writes wr, firmware writes rd — In the field wr==rd: data is empty

Therefore the indefinitely held busy_m=1 and collision-slot assertion are a firmware state machine that failed to converge, not a driver logic error; link events, port control registers, and DLR state transitions never make the firmware release these two states.

5.4 Impact

  • Q3 is the LwIP transmit queue; in this product EIP I/O data is sent over UDP/LwIP, sharing Q3 with ARP/ICMP → I/O and ping fail together (the PLC-side connection drops and data stops updating);

  • DLR/Beacon (firmware-internal path) and L2 forwarding are unaffected, which is why the Manager still sees the ring as healthy;

  • The receive direction is fine: the learning table still learns the peer MAC and the DLR state machine works.

5.5 Recovery validation and host-side workaround

  • Experiment: in the busy_m=1 && wr==rd state, having only the host clear the busy_m bit in status, clear the colStatus collision slot, and set wr = rd restores transmission immediately (collision counters stop, ping and EIP I/O recover);

  • This also proves the PHY, driver TX path, and LwIP are all fine; the only unreleased states are the two handshake states owned by the firmware;

  • A host-side workaround can therefore periodically check queue descriptors and, after several consecutive samples (about 600 ms) of busy_m=1 && wr==rd, perform the same clear; the outage per event is shortened from "permanent" to under 1 s;

  • Limits of the workaround: all Q3 transmissions still fail during the 600 ms window; if the PLC connection timeout is shorter than that, the connection still drops and reconnects; repeated deadlocks on the same port within a short interval require throttling the recovery action (to avoid repeatedly clearing firmware state).

Risk note: this clears firmware-owned handshake bits and is used only in the verified "busy_m=1 && used=0" case; rebooting the device recovers from any anomaly.

5.6 Recommended TI fix

The PRU firmware should complete or roll back in-flight host TX transactions on link down/up, port reset, and DLR state transitions, releasing the queue busy_m and the corresponding collision-slot assertion; at minimum it must not leave a "queue empty but busy_m=1" state after link recovery. Attach the field data and descriptor records from sections 5.1–5.3.

6. Excluded Hypotheses

Hypothesis Evidence Conclusion
Learning table points the peer MAC to the blocked port 2 Learning-table query shows the peer MAC on PORT1; after clearing, it re-learns on PORT1 and ping still fails Excluded
Port linkStatus cache stuck Driver cache matches live PHY state; link state is correct after a real link down/up experiment Excluded
ARP/L3 configuration ARP table shows the correct Manager entry; local IP/mask correct Excluded
Manager-side anomaly Manager side: no role change, no Rapid Fault, no abnormal Announce Suppression Excluded
Whole-host TX stall Only Q3 is stuck; Q0–Q2 idle and the EIP real-time path healthy Narrowed to Q3

7. Requests to Texas Instruments

  1. Confirm Issue 1 and provide a driver fix: on a single-port link down, the backup supervisor's beacon-timeout ISR must not re-enable the watchdog of the down port, and the takeover decision must verify that neither port is receiving Beacons. Please confirm the change direction in icss_dlr.c / icss_dlr_sup.c and provide an SDK release containing the fix.

  2. Fix Issue 2 in the PRU firmware: on link down/up, port reset, and DLR state transitions, complete or roll back any in-flight host TX transaction and release the queue status.busy_m plus the corresponding collision-slot assertion. Please confirm whether "queue empty (wr==rd) while busy_m=1 and colStatus remains asserted" is a known firmware defect.

  3. Confirm interface semantics: is the colStatusAddr+1/+2 collision slot guaranteed to be cleared by the firmware after it consumes the collision queue? Is status.busy_m only cleared by the firmware's internal transmit-complete event?

 
  • Hi  

    Regarding the point 2 - we have added the logic to flush the Tx queues in case of a link down to ensure that stale packets are cleared. This would be a part of the upcoming Industrial Comms SDK release.

    On the points 1 and 3 - we're currently investigating these and will come back with an update.

    Thanks and Regards,
    Archit

  • Hi Archit,

    Thanks for your update. May I know the ETA for the new Industrial Comms SDK? Could we get a pre-release build for validation in advance? Looking forward to your update on points 1 & 3.

    Thanks & Regards, Hongzhi

  • Hi Archit,

    One more thing. We found a new issue during testing, details are as follows. Could you help check and confirm whether the proposed fix is reasonable?

    DLR Ring Supervisor Overwrites the Last Active Node with Its Own Address

    SDK: ind_comms_sdk_am243x_2026_00_00_06 (also present in 2025_00_00_08) File: source/industrial_comms/ethernetip_adapter/icss_fwhal/icss_dlr_sup.c

    Symptom

    After a cable break between two ring nodes, one of the DLR Object attributes 6/7 (Last Active Node Port 1/2) contains the supervisor's own IP/MAC instead of the node adjacent to the fault. Issuing the CIP Verify_Fault_Location (0x53) service once and reading the attributes again returns the correct values.

    Root cause

    Runtime trace on the supervisor (1 ms resolution):

    [57534] LSTAT RX P1 ... ACTNODE P1 <- 192.168.1.5  (link_status)     <- correct
    [57534] DLR -> FAULT
    [57534] LSTAT RX P2 ... ACTNODE P2 <- 192.168.3.88 (link_status)     <- correct
    [57536] BCN_TO_P2 ... ACTNODE P2 <- 192.168.1.4   (bcn_timeout_self) <- overwritten 2 ms later

    Three code locations in the driver (SDK 2026 line numbers):

    1. icss_dlr_sup.c:2202/2222: the Link_Status source is correctly recorded into activeNode[portNum].

    2. icss_dlr_sup.c:2238: the transition to FAULT disables only the PORT0 beacon watchdog, regardless of which port received the frame.

    3. icss_dlr_sup.c:955/971: the FAULT-state beacon-timeout handler unconditionally writes the local address into activeNode[that port].

    The ring is open, so the supervisor's own beacons never return on either port; the watchdog that was left armed expires about 2 ms later and overwrites the node just recorded with the supervisor's own address. If the Link_Status is received on Port 2 the overwrite is deterministic (only PORT0 is disabled); if the Link_Status arrives after the timeout, the attribute looks correct, which is why the problem appears intermittent.

    Proposed fix (2 changes)

    1. When entering FAULT after a Link_Status, disable the watchdogs of both ports and clear DLR_TIMER_RUNNING | DLR_START_TIMER on both ports.

     nodeState = NODE_FAULT;
    EIP_DLR_disableIEPWatchdog(dlrHandle, PORT0_WATCH_DOG_ID);
    +EIP_DLR_disableIEPWatchdog(dlrHandle, PORT1_WATCH_DOG_ID);
    +/* clear DLR_TIMER_RUNNING_MASK | DLR_START_TIMER_MASK on both ports */
    1. On a FAULT-state beacon timeout, write the local node only when the port link is down; when the link is up, send a Neighbor_Check_Request and start the neighbor timeout instead (if the neighbor does not answer, the existing neighbor-timeout handler writes the local node, which matches the DLR definition of "no Neighbor_Check_Response").

    -if ( ... ) { activeNode[port] = deviceIP; }
    +if (EIP_DLR_isPortLinkUp(dlrHandle, port) == DLR_FALSE) {
    +    activeNode[port] = deviceIP;      /* no link: the supervisor really is the end of this segment */
    +} else {
    +    EIP_DLR_sendNeighborCheckReq(dlrHandle, port);   /* ring open beyond this port: verify the neighbor */
    +}

    Verification

    • Both fault-detection paths (Link_Status-triggered and beacon-timeout-only) no longer produce bcn_timeout_self; attributes 6/7 keep the real nodes on both sides.

    • After the ring is restored the watchdogs are re-armed (IEP WD ctrl=0x00010001, enP0=1 enP1=1), and a subsequent fault is still detected and located correctly.

    Questions for TI

    1. Are these two changes consistent with the DLR specification and the intended design of the ICSS DLR driver?

    2. For a FAULT-state beacon timeout on a port whose link is up, we no longer write the local node but send a Neighbor_Check instead. Is this acceptable, or would you recommend simply keeping the beacon watchdogs disabled in FAULT state?

    3. Can this be fixed in a future SDK release?

    Thanks & Regards,

    Hongzhi

  • Hi Wang

    May I know the ETA for the new Industrial Comms SDK?

    I am checking on this internally. I'll share an update by tomorrow on this.

    Looking forward to your update on points 1 & 3.

    For the issue 1, from the preliminary analysis it looks like we may not require re-arming the IEP Watchdog in case of beacon timeout. We are still testing the changes. 

    Also, thanks for reporting the new issue with the detailed findings - I'll keep working on it and keep you posted.

    Regards,
    Archit

  • HI  Archit

    Since you come back from holiday, here I would like to sync with you about this issue.

    Wang will update more details about the test case.

    Since we are releasing new SDK in next few days, need your help to justify if this issue is related to any known one that new SDK fix.

    Thanks

    Zekun

  • Hi Zekun, Wang

    I'd like to share the updated status of all the issues that were raised.

    • Issue 1: The beacon timeout ISR re-enabling the watchdog indiscriminately
      • Current Status:
        • Identified as a valid issue.
        • Fix is to not-rearm the ICSS watchdog timers and clear the timer running flag.
        • Fixed and tested on TI side.

    • Issue 2: PRU Firmware Host TX Queue (Q3) Deadlock
      • Current Status:
        • Identified as a valid issue.
        • Fixed on the Driver side - queues are flushed in case of a link down.

        • PRU Firmware side investigation in progress for "queue empty (wr==rd) while busy_m=1 and colStatus remains asserted"
    • Issue 3: Confirm interface semantics: is the colStatusAddr+1/+2 collision slot guaranteed to be cleared by the firmware after it consumes the collision queue? Is status.busy_m only cleared by the firmware's internal transmit-complete event?
      • Current Status:
        • From preliminary analysis - the colStatusAddr+1/+2 collision gets cleared by the PRU firmware in the collision task success path.
        • Also, the busy_m is typically set by the PRU firmware when it's receiving a packet and owns the queue. The PRU firmware clears it after the entire packet is received. The host never touches the busy_m bit - it only reads it.

    • Issue 4: DLR Ring Supervisor Overwrites the Last Active Node with Its Own Address
      • Current Status:
        • Identified as a valid issue.
        • Investigation and fix in progress.

    I will keep you posted with the findings.

    Regards,
    Archit

  • Hi Archit,

    Thanks for the update. Could you share the overall latest progress of all these issues and the planned release timeline for the fixed version?

    Best regards,

    Wang

  • Hi Wang

    Apologies for the delayed response here. I have shared the updated files with Zekun and he should be able to share it with you for you testing.

    Please update the ICSS_EMAC, ICSS DLR and the PRU firmware with the files from the archive and rebuild the libs and the app .

    Coming to the issue status, they're attached below:

    • Issue 1: The beacon timeout ISR re-enabling the watchdog indiscriminately
      • Current Status:
        • Fixed in the ICSS DLR Driver
        • It was identified as not needed and the DLR driver now does not re-arm the ICSS IEP WDTs after every beacon timeout
    • Issue 2: PRU Firmware Host TX Queue (Q3) Deadlock
      • Current Status:
        • Identified as a valid issue.
        • Fixed on the ICSS EMAC side - queues are flushed in case of a link down.
        • An edge condition was also identified in the PRU firmware which could contribute to it and relevant countermeasures have been added to prevent it. 
    • Issue 3: Confirm interface semantics: is the colStatusAddr+1/+2 collision slot guaranteed to be cleared by the firmware after it consumes the collision queue? Is status.busy_m only cleared by the firmware's internal transmit-complete event?
      • Current Status:
        • With the latest fixes in the PRU firmware - we believe this issue should be resolved.
    • Issue 4: DLR Ring Supervisor Overwrites the Last Active Node with Its Own Address
      • Current Status:
        • Identified as a valid issue.
        • Fixed in the beacon timeout handling path as well as the Link Status/Neighbor Status reception frame from a node.
        • Regarding the question: "Are these two changes consistent with the DLR specification and the intended design of the ICSS DLR driver?"
          • I was unable to get the explicit handling in the EIP spec in the state event matrix for DLR Supervisor. 
          • However I have confirmed that the behavior after the fix on TI Driver is the same as that being done by a Certified EIP PLC which can act as a DLR Supervisor.

    I'd like to highlight that there have been no interface changes in any of the modified files from the EIP Driver/Firmware point of view.

    Please run your tests and provide the feedback.

    Regards,
    Archit

  • Hi Archit,

    We ran long-term reliability tests with the same ring node power-cycle test procedure on this release, and a new issue was reproduced. The observations are summarized below (PLC_1: DLR Supervisor priority 0; PLC_2: DLR Supervisor priority 1. Expected behavior: PLC_1 is the backup supervisor and PLC_2 is the active supervisor):

    1. Both PLCs have the DLR Supervisor function enabled. PLC_1 priority = 0, PLC_2 priority = 1. The expected role is PLC_2 as active supervisor and PLC_1 as backup supervisor.
    2. After long-run operation, PLC_1 (backup supervisor) exhibits intermittent port communication: it alternates between successful connection and disconnection/reconnection with the slaves.
    3. Ring status check shows both PLCs report the active supervisor state and both report the ring as Normal. Fault count: PLC_2 (active supervisor) has over one thousand faults (as expected), while PLC_1 (backup supervisor) reaches more than three thousand faults.
    4. After manually disabling the DLR Supervisor function on PLC_1, communication between PLC_1 and the slaves becomes stable without intermittent drops.
    5. When re-enabling DLR Supervisor on PLC_1, communication is interrupted immediately and PLC_1 transitions to the active supervisor state.
    6. A few seconds later, PLC_1 switches back to backup supervisor and communication recovers. We then cleared the fault count on both devices manually.
    7. After further runtime, the fault count was checked again: PLC_1 (backup supervisor) increased to over three hundred, while PLC_2 (active supervisor) only had 3 faults (as expected).
    8. With the ring broken and continuous ring node power-cycle testing: PLC_2 (active supervisor) keeps its fault count unchanged and behaves correctly. PLC_1 (backup supervisor) increments its fault count by 1 on every power-down and switches to active supervisor, and only reverts to backup supervisor after the ring node is powered up.
    9. After restoring the ring and continuing the test: the fault count of PLC_2 (active supervisor) increases normally with ring events. This phenomenon also exists during normal steady-state operation: the fault count of PLC_1 (backup supervisor) keeps rising in sync with the active supervisor, incrementing by 1 each time a ring node is powered down.

    At this moment, we cannot provide additional debug information such as Wireshark captures or internal runtime status.

    Please help investigate this abnormal behavior.

    Regards,
    Wang

  • Hi Wang

    Has this issue been seen before, or is this a regression with the latest version?

    At this moment, we cannot provide additional debug information such as Wireshark captures or internal runtime status.

    I can perhaps try to reproduce on my side. Can you please share the following details:

    1. Beacon Interval and Timeout
    2. Number of nodes in the network
    3. Configured RPI for EIP communication

    Also, please share any additonal steps for test procedure used to reproduce the issue.

    Regards,
    Archit

  • Hi Archit,

    This is the first time we have encountered this issue. It appeared after more than 1300 power-cycle tests. The previous version had a TX queue blocking bug, which caused the firmware to hang after around 300 cycles, so we could not verify whether this same fault existed back then.

    Configuration details:

    • Beacon Interval: 400 us, Beacon Timeout: 4000 us
    • Total DLR ring nodes: 32
    • EIP RPI: 50 ms, with 256 connections

    The reproduction procedure remains the same as previously described: keep the two supervisor PLCs running steadily, and repeatedly power cycle other ring nodes.

    Regards, Wang

  • Hi  ,

    I could not get the full setup running, but I was trying to simulate your scenario on our side:

    • 2 Rockwell devices acting as an active supervisor and a node
    • 1 DLR Certified TI solution acting as a node
    • AM243x (DUT) acting as a backup supervisor

    I was toggling the power of the nodes but I could not reproduce similar behavior. I will try to keep the setup running over the weekend, to see if I can reproduce it.

    However I have a theory that because the backup supervisor is transitioning to an active supervisor on your side, and getting spurious ring normal to fault transitions, it could cause the device to go into a rapid fault/restore cycle for some time - which could explain why some nodes' communication fails. When the device returns back to backup supervisor, the fault clears and communication restores.

    In order to prove this theory, would it be possible for you to check if the DUT has ever gotten into a Rapid Fault / Restore cycle (when it transitions from backup to active)?

    Also, can you provide the relative position of the PLC0 and PLC1 on your side? I'm interested to know what nodes are between them - to understand if the positioning could give a hint about the potential issue.

    Finally, can you also let me know what are the TI AM243x devices in the network? Are both PLC0 and PLC1 TI AM243x devices?

    Regards,
    Archit