@inproceedings{cd331ac683c741bcb9dcc85c95be23d4,
title = "Libpanda: A High Performance Library for Vehicle Data Collection",
abstract = "Cyber-Physical Systems (CPS) generally involve time-critical components due to physical dynamics, therefore necessitating high-performance subsystems. This is also true in data collection scenarios to infer physical phenomena. This paper covers Libpanda as an example of a component that has been designed to address performance issues in CPS implementations. Libpanda is a C++ library that interfaces software with a Comma.ai Panda device. Pandas are used for installation in modern vehicles to read the vehicle CAN bus, providing rich sensor data and limited vehicle control through message injection. The motivation to design lib-panda stems from the lack of performance in Python-based code that runs on inexpensive hardware like a Raspberry Pi. In such situations, Python code would result in utilizing 92% CPU while also dropping around 40% of the CAN packet due to bottlenecks. Without using different tools, inconsistent data collection means a loss of time-based vehicle state interpretation. Libpanda addresses these issues through implementation in a different language and implementation of different design paradigms involving asynchronous calls and multithreading. The Panda also features a GPS module that allows multiple instances to synchronize clocks for large-scale data collection scenarios. Libpanda has been designed with time-synchronization in mind to aid in the measurement of inter-vehicle dynamics. The performance improvements of libpanda have resulted in it becoming an important component in automotive dynamics research that requires a higher technical performance in large-scale experiments.",
keywords = "Cyber-Physical Systems, Data Collection, Software Libraries",
author = "Matthew Bunting and Rahul Bhadani and Jonathan Sprinkle",
note = "Funding Information: This work is supported by the National Science Foundation under awards CNS-1544395. This material is based upon work supported by the U.S. Department of Energy{\textquoteright}s Office of Energy Efficiency and Renewable Energy (EERE) under the Vehicle Technologies Office award number CIDDE-EE0008872. The views expressed herein do not necessarily represent the views of the U.S. Department of Energy or the United States Government. Publisher Copyright: {\textcopyright} 2021 ACM.; 1st ACM Workshop on Data-Driven and Intelligent Cyber-Physical Systems, DICPS 2021 - Part of CPS-IoT Week 2021 ; Conference date: 18-05-2021",
year = "2021",
month = may,
day = "18",
doi = "10.1145/3459609.3460529",
language = "English (US)",
series = "DICPS 2021 - Proceedings of the ACM 1st Workshop on Data-Driven and Intelligent Cyber-Physical Systems, Part of CPS-IoT Week 2021",
publisher = "Association for Computing Machinery, Inc",
pages = "32--40",
booktitle = "DICPS 2021 - Proceedings of the ACM 1st Workshop on Data-Driven and Intelligent Cyber-Physical Systems, Part of CPS-IoT Week 2021",
}