Powering EULYNX Hardware-in-the-Loop Testing with Platform21

How Platform21 acted as the interlocking side of an automated hardware-in-the-loop testbed for a Siemens ACM 300 axle counter at the HPI Rail Lab

Powering EULYNX Hardware-in-the-Loop Testing with Platform21

As the railway industry accelerates its digital transformation, standardisation initiatives like EULYNX play a pivotal role in improving interoperability and long-term efficiency. Systems Lab 21 GmbH supports this transformation with Platform21, our modular simulation and testing environment built to streamline EULYNX conformity testing.

One of the most powerful use cases for Platform21 is its ability to act as a simulation backbone in hardware-in-the-loop (HiL) setups, bridging the gap between abstract simulation and physical hardware validation.

Today, there are a number of EULYNX-capable signalling systems on the market, but implementations do not just conform to one baseline and release. Since EULYNX BL2, a number of variants and supplier- or national-specific interpretations have emerged, leading to a fragmented landscape. This is where Platform21 shines, as it can be configured to support multiple EULYNX baselines and variants.

A compelling demonstration of this is the end-to-end EULYNX train detection system (TDS) testbed built at the Rail Lab of the Hasso Plattner Institute in Potsdam, Germany.

How Platform21 Enhances HiL Simulations

Platform21 serves as a flexible digital twin engine for EULYNX-conformant systems. In the HiL setup with HPI, it plays several key roles:

  1. Multi-Baseline EULYNX-Compliant Simulation Environment

Platform21 provides a fully featured EULYNX simulation core, enabling components like the interlocking's field-element specific interfaces or additional object controllers to be replaced by simulated instances. This is crucial when one component is under test and others need to act predictably. Our implementation follows the EULYNX Reference Architecture. It should be noted, however, that EULYNX's modelling practices do not guarantee unambiguous or complete system behaviour, which makes it necessary for implementations to be slightly opinionated.

  1. Failure Scenarios and Irregularities

The simulation environment allows for the injection of failure scenarios and irregularities, such as system failures or protocol errors. This is essential for testing the robustness of EULYNX systems under adverse conditions. Platform21's scripting capabilities via gRPC interfaces enable precise control over these scenarios.

  1. Large-scale Setups

Platform21 easily supports simulation groups with many hundreds of simulated components, making it suitable for large-scale railway systems and simulating entire railway lines at once. This scalability is crucial for testing complex EULYNX systems and bringing realistic network and load behaviour to the system under consideration.

  1. Remote control, local execution

Whilst the web interface allows for easy remote control of the simulation and distributed work, the actual execution is done locally to provide control over network setup and effects without utilising internet connectivity. This is particularly useful during system integration with production-grade WAN or when testing communication including cryptographic and other IT-security components.

The system under test: an axle counter, not a simulator

The device under test was a Siemens ACM 300 axle counting system — real signalling hardware, wired up on a bench rather than modelled in software. That choice is what makes the setup interesting. A EULYNX conformity statement is about a product, and a product includes its wheel detectors, its evaluation logic and its timing behaviour, none of which a pure protocol test can reach.

Everything on the other side of the SCI-TDS interface, however, is exactly what a simulator is good for. The axle counter expects an interlocking to open a RaSTA connection, exchange EULYNX telegrams according to the train detection system's state machine, and react to occupancy and disturbance reports. Platform21 provided that side of the interface, so a single physical device could be tested without a physical interlocking anywhere near it.

Closing the loop

The testbed connects four pieces:

  • Platform21 takes the role of the interlocking. It establishes the RaSTA connection to the ACM 300 and drives the EULYNX telegram exchange over SCI-TDS, including the commands a test case needs — for example resetting a track vacancy proving section.
  • A microcontroller board stimulates the wheel detector coils at the frequencies the axle counter expects, so that the device sees what it would see when an axle passes. The board came out of an earlier Digital Rail Summer School project and turns a written axle sequence into physical input.
  • An OPC UA connection to the axle counter reads internal states that never appear on the EULYNX interface. Several test cases depend on a precondition — a specific counting state, a specific disturbance — that cannot be confirmed from telegrams alone.
  • A Python test runner coordinates the three. It reads a machine-readable test case, sets up the precondition, sends the axle sequence to the board, compares the telegrams Platform21 observed against the expected ones, checks the postcondition over OPC UA, and writes the result.

The test cases themselves are expressed as structured data rather than prose: a parameter table for timers and message values, a set of preconditions, an ordered list of steps with the action and the expected confirmation for each, and the postconditions that must hold at the end. That structure mirrors how EULYNX writes its test cases, which is what makes the translation from specification to executable test tractable. The proof of concept deliberately narrowed scope to the functional package for axle-counter-based train detection rather than attempting the full catalogue.

What we learned

  • The interlocking side is the easy side to automate. Once Platform21 held the SCI-TDS interface, adding a test case cost a few lines of test data rather than a new integration. The effort concentrated on the physical stimulation and on reading back internal state.
  • Preconditions are where hardware testing gets expensive. Bringing a real axle counter into a defined starting state reliably, run after run, is harder than executing the steps that follow. Any serious test campaign has to budget for this rather than treat it as setup.
  • Some evidence is only visible off-interface. Without the OPC UA channel, a number of test cases could be executed but not honestly evaluated. A conformity lab needs an agreed way to observe internal state, or a documented argument for why observing it is unnecessary.
  • Commodity hardware is enough for the stimulation side. The coil stimulation ran on a microcontroller board, not on specialised test equipment. The cost of a EULYNX TDS test bench is dominated by the device under test and by engineering time, not by test hardware.

Where this goes next

The proof of concept showed that a EULYNX conformance laboratory for axle counters is feasible with commercially available electronics, open-source components and a simulator on the interlocking side. Turning it into something a supplier or an infrastructure manager could rely on means converting the remaining test cases into the machine-readable format, making precondition transitions dependable, understanding how the topology of a track vacancy proving section affects results, and agreeing on a reporting format before the approach is extended to other train detection technologies.

Conclusions

Hardware-in-the-loop testing is where EULYNX conformity stops being a document exercise. The interface is specified, the test cases are published, and the protocol side can be simulated — so the remaining questions are practical ones about stimulation, observability and repeatability.

Platform21 is designed for exactly that division of labour: it holds the specified side of the interface, in the baseline and variant the device expects, so that the engineering effort goes into the hardware under test rather than into rebuilding an interlocking for every test campaign.

References

(1) End-to-end EULYNX TDS testing, Operating Systems and Middleware Group, Hasso Plattner Institute