Treffer: Facilitating the use of Physics-Based Simulations on Embedded Devices by running FMUs from MicroPython.
Weitere Informationen
Physics-based simulations (PBS) are increasingly valuable for real-time applications in embedded systems, yet integrating them on resource-constrained devices remains challenging. This paper presents ufmu, a lightweight framework that enables execution of source-code FMI 2.0-compliant Functional Mock-up Units (FMUs) within the MicroPython environment, targeting platforms such as the ESP32. The proposed approach integrates into the MicroPython firmware the FMU source code and the FMU model description translated into C structures, and exposes a minimal Python API for simulation control, enabling model-based computations on-device without cloud dependencies. We evaluate the framework using a standard FMU model, comparing performance across ESP32, Unix, and plain C environments in terms of memory usage, execution time, and firmware size. Despite the ESP32's hardware limitations, the results demonstrate that meaningful simulations can be achieved efficiently, with minimal memory overhead. All code, documentation, and experiment instructions are freely available under an MIT license, supporting reproducibility and adoption in education, prototyping, and embedded research. This work also lays the foundation for future integration with eFMI and the FMI 3.0 standard. [ABSTRACT FROM AUTHOR]
Copyright of Linköping Electronic Conference Proceedings is the property of Linkoping University Electronic Press and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)