A Location-Aware WebAssembly-Based Software Update Framework for IoT End Devices

Ivan Zyrianoff, Federico Montori, Angelo Trotta, Luca Sciullo, Lorenzo Gigli, Carlos Kamienski, Marco Di Felice · 2025

The increasing computational capabilities of IoT end devices push the deployment of application logic tasks directly on the extreme edge rather than the cloud or edge nodes. However, there are still unresolved issues on the Over-The-Air (OTA) software update operations for IoT end devices: (i) the hardware heterogeneity in IoT settings requires custom code for each different device type; (ii) the growing complexity of microcontroller code couples the development of high-level processing tasks with low-level operations; (iii) efficient methods for updating target IoT devices in a specific geographical area are absent. To address these issues, we propose an OTA firmware update framework that utilizes WebAssembly (WASM) and incorporates location-aware features. We split the application logic in WASM from the rest of the firmware written in native code, in order to create a greater separation of concerns. WASM's platform independence creates an abstraction layer for the underlying hardware, allowing the same application logic to be deployed virtually to any IoT device. We integrate a location-aware extension of the MQTT protocol in our framework to enable software updates targeting devices in specific geographical areas. Finally, our experiments demonstrate that location awareness does not add significant overhead to the system and that the performance of WASM in a microcontroller is comparable to native code and superior to Micropython.

Read the paper · More papers on PaperTik