Automated CI/CD Pipeline
Automating IO-Link tests: Our IO-Link testers no longer need a mouse. The Master Tester, Device Tester, COD, Diagnosis Tool, and IO-Link Spy will run on Linux as of SPS 2026. With just a single command, tests can be started automatically, and the build server then reads the result.
Until now, the protocol test was the exception: the firmware was built and tested with every commit, but for the IO-Link test, someone had to go to the lab and run the test manually. As a result, errors often went unnoticed for weeks. Now the test runs with every commit or every night, and you only need Windows to view the results.
IO-Link Tests in the Pipeline: Why It Failed Until Now
A build server doesn’t click. It launches a program, waits until it finishes, and evaluates the return value. Test software with a graphical interface usually won’t even start there, or gets stuck at the first dialog.
A tool for the test chain must therefore run without prompting, report its result as a return value, and write a report that the server can read. Usually, that is JUnit XML.
Test Specification V1.1.6 and the CRA: Why Evidence Matters Now
Five IO-Link Test Tools with Command Line
| Tool | Purpose | Interface | Result |
|---|---|---|---|
| Master Tester | tests the protocol of masters | Command mta | JUnit, PDF, JSON, project file |
| Device Tester | tests the protocol and the firmware update of devices | Command with plugin | JUnit, PDF, project file |
| COD | emulates any device, generates errors and load | REST-API | JSON |
| Diagnosis Tool and IO-Link Spy | record the line | Command with HTTP-API | Recording |
Master Tester
# Aufbau prüfen: Master, Master Tester Unit, Kabel
mta check --mtu-port /dev/ttyUSB0 --eut-port 2 --stcs-host 192.168.1.20
# Nur die Gruppe Data Storage, mit JUnit-Bericht
mta run ci/master.mtproj --select DS --save results/master.mtproj --report results/master.xml
# Dauerlauf: 100 Wiederholungen
mta-repeater --run "ci/master.mtproj --mtu-port /dev/ttyUSB0" --iterations 100 --stop-on failed Return values of mta
| Value | Meaning |
|---|---|
| 0 | All passed |
| 1 | At least one test failed |
| 2 | Operating error |
| 3 | Setup disrupted: license, Master Tester Unit, or STCS missing |
| 130 | Aborted, the partial result is retained |
The difference between 1 and 3 is important, because this way a loose cable doesn’t end up with the developer as a firmware error.
Device Tester
The Device Tester also starts without a graphical interface as soon as it receives parameters. IODD and test script are mandatory; everything else is stored in an options file in the repository. This also makes it possible to test the device’s firmware update.
# dt_ci.txt #
-port /dev/ttyACM0
-iodd "iodd/MyDevice-IODD1.1.xml"
-testScript "scripts/Protocol_test_cases.xml"
-otherconfig 30 true false true 0
-junitReport "results/device.xml" Device_Tester_application -options ci/dt_ci.txt Return values of the Device Tester
| Value | Meaning |
|---|---|
| 0 / 1 | All passed / at least one test failed |
| 2 / 3 / 4 | IODD, test script, or option invalid |
| 8 | No connection to the Device Tester |
| 10 | Mandatory parameters missing |
| 11 / 13 | Plugin missing or outdated |
| 14 | The test hardware requires a firmware update |
COD
The COD emulates any device that has an IODD. Via the REST API, the test can make it respond too late, falsify checksums, or report errors in Data Storage. On the side, it also counts how often the master restarts or the cycle time is exceeded.
curl http://localhost:49851/device/communication/stats Diagnosis Tool and IO-Link Spy
Both share a command that runs permanently on the test bench, including on ARM machines. The test chain starts and stops the recording via HTTP and stores it alongside the report.
TEConcept.IOLinkLineDataCLI --mode Api --port /dev/serial/by-id/usb-... --http-port 8735 Separating the build server and the Linux test bench
Builds run on standard build machines, while testing is done on a Linux machine with the test hardware connected via USB. This machine is registered as its own runner and only accepts jobs from internal repositories.
Example setups for device and master manufacturers
At the master manufacturer, the Master Tester Unit tests the protocol, and CODs on the remaining ports put the master under load. Their counters then show whether it held the cycle time.
This is what the job looks like in GitLab CI:
master-protocol:
stage: iolink
tags: [iolink-bench]
script:
- ./ci/flash.sh build/master.hex
- mta check --mtu-port /dev/ttyUSB0 --eut-port 2 --stcs-host 192.168.1.20
- mta run ci/master.mtproj --select DS --report results/master.xml
artifacts:
when: always
paths: [results/]
reports:
junit: results/master.xml Trade fair demo: test automation on the Raspberry Pi
For the SPS, we built a test bench on a Raspberry Pi 5 that tests our 1-Port USB-C Master. The Master Tester Unit plays the device, while the Spy records along.
The entire test logic fits in five lines:
PROTOCOL_TESTS = ["SDCI_TC_0184", "SDCI_TC_0210", "SDCI_TC_0168"]
@pytest.mark.parametrize("tc", PROTOCOL_TESTS)
def test_master_protocol(tc, spy_capture, run_dir):
result = mta.run(tc, save=run_dir / f"{tc}.mtproj")
assert result.passed, result.failure_summary() Three tests from the official script turn green, a fourth deliberately turns red: the script copy expects VendorID 65001, but the device reports 65000. The run takes just under 30 seconds, and the entire script with 141 test cases takes about 14 minutes.
The demo’s web interface. An AI agent can also start the tests, via an MCP server.
Exit codes: who needs to act when the test turns red?
Test plan: on every commit, nightly, before the release
What Automated IO-Link Tests Deliver
A protocol error is spotted on the day of the change, and the commit, failed test, and recording are all in one place. Setting it up takes time at the start, but after that every test runs the same way.
It does not replace the conformance test for the declaration of conformity. However, it leaves hardly any surprises, because the test chain uses the same testers that work in our accredited Test Center.
FAQ: IO-Link-Tests in CI/CD-Pipelines
Does the test chain replace the conformance test?
No. However, the Master Tester and Device Tester can also generate the PDF test report for this via command.
Do I still need a Windows PC?
Only for viewing reports, project files, and recordings; the tests themselves run on Linux.
Which specification is used for testing?
Currently according to V1.1.5, from December 2026 according to V1.1.6.
What does it cost?
We provide pricing and licensing information upon request. You can also rent the COD and Diagnosis Tool for three or six months.