Wasm-IO: Enabling Low-Level Device Interaction in WebAssembly for Industry Automation

Seidler M, Krause A, Ulbrich P (2025)


Publication Type: Journal article, Original article

Publication year: 2025

Journal

Book Volume: 24

Pages Range: 1-26

Article Number: 146

Journal Issue: 5s

DOI: 10.1145/3760387

Abstract

Certification on a component level is highly beneficial in industrial automation because it allows for independent verification and updates without compromising the reliability of the overall system. Containerization technologies naturally address this demand by providing isolation between software modules. In particular, WebAssembly-based (Wasm) containerization is gaining popularity in industrial automation due to its inherent advantages, including cross-platform interoperability and secure execution of untrusted third-party code. However, Wasm’s strict sandboxing poses a significant limitation as it severely limits interaction with hardware devices, making it difficult to interface with sensors and actuators. This is a substantial barrier to adoption in industrial automation, where real-time and low-level hardware interactions are critical. To address this challenge, we present Wasm-IO, a framework designed to facilitate peripheral I/O operations within Wasm containers. Wasm-IO allows the development of isolated device drivers in Wasm, explicitly moving hardware interaction to the container level. Our architectural approach facilitates containers with hardware interaction to be independently certified, updated, and maintained without adversely affecting each other. This article elucidates foundational methodologies and practical implementations supporting synchronous and asynchronous I/O operations and methods for embedding platform-independent peripheral configurations within Wasm binaries. Additionally, we present an extended priority model enabling interrupt handling in Wasm while maintaining temporal isolation. Our evaluation demonstrates that Wasm-IO significantly reduces latency and overhead compared to existing methods and traditional user-level driver implementations, effectively addressing certification and functional requirements critical to industrial automation systems.

Authors with CRIS profile

Involved external institutions

How to cite

APA:

Seidler, M., Krause, A., & Ulbrich, P. (2025). Wasm-IO: Enabling Low-Level Device Interaction in WebAssembly for Industry Automation. ACM Transactions on Embedded Computing Systems, 24(5s), 1-26. https://doi.org/10.1145/3760387

MLA:

Seidler, Maximilian, Alexander Krause, and Peter Ulbrich. "Wasm-IO: Enabling Low-Level Device Interaction in WebAssembly for Industry Automation." ACM Transactions on Embedded Computing Systems 24.5s (2025): 1-26.

BibTeX: Download