DC-PTP: Drift Correction-Based Precision Time Protocol for CAN in Automotive Embedded Systems
Open Access
- 1 September 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
Abstract
The Controller Area Network (CAN) is widely used in safety-critical systems, such as powertrain and chassis control systems in automotive embedded systems. Because the functions in safety-critical systems are highly time-sensitive, any slight time deviation (i.e., offset) among the Electronic Control Units (ECUs) of these systems may cause functions to run abnormally. The offset is mainly caused by clock drift. The clock frequency of ECU driven by a crystal oscillator may have different deviations (known as clock drift) due to differences in hardware manufacturers’ engineering and process or external environmental factors such as temperature and vibration. The clock drift will affect clock accuracy and eventually be reflected in the timestamps of CAN controller when sending or receiving CAN frames, meaning that the generation of offset occurs in ECU. Reducing the offset using time synchronization techniques is of utmost importance. In order to further lower the offset, we propose a clock drift correction-based Precision Time Protocol (DC-PTP) for CAN to solve this problem. For clock drift correction, we first measure the clock drift of master ECU and slave ECU, and then calculate the relative clock drift between the master and slave on the basis of the measured clock drift. The relative clock drift is used to correct the acquired timestamps during Precision Time Protocol time synchronization to reduce the effect of clock drift. Furthermore, a synchronization convergence approach is presented to continuously converge the offset until the offset is within the given range. We implement DC-PTP on a prototype built with heterogeneous microcontrollers. Experimental results show that the offset using DC-PTP is within 1 μ s along with low memory overheads of 2% for the master. The memory overhead of the slave is slightly higher than that of the master, and the bus load of DC-PTP is only 17%.Keywords
This publication has 17 references indexed in Scilit:
- Evaluating and correcting short-term clock drift in data from temporary seismic deploymentsEarthquake Research Advances, 2023
- Software-Based AUTOSAR-Compliant Precision Clock Synchronization Over CANIEEE Transactions on Industrial Informatics, 2022
- Performance and Reliability Aspects of Clock Synchronization Techniques for Industrial AutomationProceedings of the IEEE, 2019
- Recent Advances and Trends in On-Board Embedded and Networked Automotive SystemsIEEE Transactions on Industrial Informatics, 2018
- A Security Analysis and Revised Security Extension for the Precision Time ProtocolIEEE Transactions on Dependable and Secure Computing, 2017
- Time synchronization for an emulated CAN device on a Multi-Processor System on ChipMicroprocessors and Microsystems, 2017
- Measuring of clock drift rates and static time offsets of ocean bottom stations by means of ambient noiseGeophysical Journal International, 2013
- Controller Area Network (CAN) schedulability analysis: Refuted, revisited and revisedReal-Time Systems, 2007
- On the jitter requirements of the sampling clock for analog-to-digital convertersIEEE Transactions on Circuits and Systems I: Regular Papers, 2002
- TTCAN: a new time-triggered controller area networkMicroprocessors and Microsystems, 2002