CANModule: a lightweight, vendor-neutral CAN bus abstraction library for simplified integration and diagnostics

WEPD039
24 Sept 2025, 16:30
1h 30m
Palmer House Hilton Chicago

Palmer House Hilton Chicago

17 East Monroe Street Chicago, IL 60603, United States of America
Poster Presentation MC10: Software Architecture & Technology Evolution WEPD Posters

Speaker

Luis Miguens Fernandez (European Organization for Nuclear Research)

Description

This paper presents CANModule, an open‑source, cross‑platform library that provides a unified abstraction layer for vendor‑specific Controller Area Network (CAN) bus implementations. It supports ethernet‑CAN gateways from Analytica and Linux’s SocketCAN out of the box, and offers an open architecture for adding further gateways. Requiring only standard C++17, CANModule is lightweight and framework‑independent, unlike Qt CAN support, which introduces extra dependencies. The library standardises CAN communication via a generic API in C++ and Python, reducing the effort of integrating multiple vendor APIs. Built‑in diagnostic tools mirror SocketCAN’s canutils but work transparently with many vendors and OS, easing development for heterogeneous CAN environments. CANModule is integrated into CERN’s Quasar Framework, enabling numerous OPC UA servers that control large‑scale experiments and infrastructure. It has proven reliable in settings such as ATLAS detector control and power‑supply control. Beyond CERN, the library suits industrial applications—including automotive and robotics—by providing a scalable, extensible foundation for CAN‑based systems and abstracting vendor‑specific complexities. CANModule streamlines CAN bus integration, providing a flexible, dependable, and efficient foundation for both research and industrial use cases.

Author

Luis Miguens Fernandez (European Organization for Nuclear Research)

Co-authors

Ben Farnham (European Organization for Nuclear Research) Geraldine Thomas (European Organization for Nuclear Research) Paris Moschovakos (European Organization for Nuclear Research) Michael Ludwig (European Organization for Nuclear Research)

Presentation materials

There are no materials yet.