Hardware-in-the-Loop Testing in CI/CD for IoT Firmware Development

Read full text Summarise with VIRAT
Authors: Joud Mamelli
Cited by: 0

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

In modern Internet of Things (IoT) development, ensuring firmware reliability is critical yet challenging: traditional embedded-system testing is labor-intensive and error-prone, while purely software-based simulators exhibit a "simulator gap" that fails to capture real-hardware timing, electrical behavior, or peripheral interactions. Continuous Integration/Continuous Deployment (CI/CD) pipelines accelerate feedback loops by automating multi-platform builds and test suites with each commit, but typically remain confined to virtual environments. Hardware-in-the-Loop (HIL) platforms improve realism by integrating physical devices into simulations, yet incur high instrumentation costs and limited scalability. This thesis introduces a CI-Hardware Connector, a Python-based module that seamlessly embeds real-device testing into cloud-hosted CI/CD workflows. First, firmware is validated in a fast, cloud-based simulator; upon success, the connector automatically flashes the binary onto physical IoT hardware (e.g., ESP32, Arduino UNO), orchestrates on-device test execution via serial-monitor scripting, and captures pass/fail results. Concurrently , it logs real-time power consumption from a UM25C power meter over Blue-tooth, producing quantitative energy profiles alongside functional verification. Packaged as a Shell GitLab Runner, our solution combines the automation and scalability of CI/CD with the accuracy of HIL testing. A prototype implementation demonstrates seamless integration with GitLab CI, cross-platform support, and reliable detection of hardware-specific edge cases, thereby closing the feedback loop between code commits and validated firmware on real devices.

Fields of Study & Subjects

Real-time simulation and control systems Embedded Systems and FPGA Design Embedded Systems Design Techniques

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
30 March 2026
Language
EN