Skip to main content

Cyber-Physical WebAssembly: Interfacing with USB and I2C Hardware

K.4.601 | Day 2 | 10:30 - 10:55 | Speakers: Merlijn Sebrechts, Michiel Van Kenhove

Cyber-Physical WebAssembly: Interfacing with USB and I2C Hardware
A picture of a devroom at FOSDEM 2024
Open in browser
Get involved in the conversation!Join the chat

Notes

Abstract

Did you know you can use WebAssembly on IoT devices and microcontrollers? In this talk, we explain why anyone would do such a thing, and how to connect WebAssembly applications to hardware using USB and I2C interfaces.

WebAssembly allows embedded developers to use modern toolchains, diverse programming languages and sandboxing technology on truly tiny devices like ESP32 microcontrollers. Support for these use-cases is improving with the newly formed Embedded SIG and new interfaces for connecting WebAssembly applications to underlying hardware via USB and I2C.

We will cover the WASI-USB and WASI-I2C proposals and explains how to embed a device driver in WebAssembly. The session also takes a look at the overhead of these interfaces and embedded WebAssembly in general. The session closes with a demo of a USB device driver running inside of WebAssembly.

Attachments

Speakers

Merlijn Sebrechts
Michiel Van Kenhove

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.