Wasm-IO: Enabling Low-Level Device Interaction in WebAssembly for Industry Automation
Open Access
- 26 September 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 24 (5s) , 1-26
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 Input/Output (I/O) operations within WebAssembly (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.Keywords
Funding Information
- German Federal Ministry of Education and Research (16ME0454)
This publication has 35 references indexed in Scilit:
- WebAssembly in Avionics: Decoupling Software from Hardware2023
- How Far We’ve Come – A Characterization Study of Standalone WebAssembly Runtimes2022
- Two Mechanisations of WebAssembly 1.02021
- WebAssembly Modules as Lightweight Containers for Liquid IoT Applications2021
- WiProg: A WebAssembly-based Approach to Integrated IoT Programming2021
- Twine: An Embedded Trusted Runtime for WebAssembly2021
- Reducing TCB of Linux Kernel Using User-Space Device Driver2016
- Tailor‐made JVMs for statically configured embedded systemsConcurrency and Computation: Practice and Experience, 2011
- A Step to Support Real-Time in Virtual Machine2009
- The real-time specification for JavaComputer, 2000