Case Study – Custom High-Speed Data Logger for ECU Validation

data logger ecu

The Problem

The client is a leading Tier 1 automotive company that needed a reliable way to test its ECU for ultrasound sensors. They required a data logger that would log data from the ECU at a very high speed and provide an output to check data validity.


Time Synchronization

For the system to work properly, there had to be synchronization between the ECU and the data logger, as well as between the data logger and the PC. This was achieved by using Precision Time Protocol (PTP), an automotive-grade time synchronization protocol used to synchronize clocks throughout a computer network. Our team needed to choose the right hardware and software that would be able to support PTP.


One of the greatest challenges was to enable low latency through the system. This required careful planning and optimization of hardware and software components to transfer data packets from the logger to the PC in the shortest possible amount of time.

The Solution

The project required full-circle product development including system design, hardware development, software development, integration, and production. As a result, our team developed a highly programmable and configurable platform that can be used to monitor and validate any kind of data from a device with a high throughput (camera, radar, lidar, and other types of sensors). While this solution was optimized to log raw data to a host device, it can also be customized to perform data analysis and preprocessing or to log raw data internally.

ecu data logger block diagram

How it works

The packets are sent to a PC, and a CRC (cyclic redundancy check) is performed to verify that the data is received correctly. There is a fully customizable, multi-port Ethernet switch with up to 6 outputs that enables switching between ETH PHY 100BASE-TX and BroadR-Reach 100BASE-T1. It is paramount for the data to be transferred from the data logger to the PC as quickly as possible. Our team managed to optimize both hardware and software and to have a time synchronization jitter at the scale of 10 nanoseconds. Once the data packets are stored on the PC, the user can perform further data analysis and processing, such as plotting the collected data to check for anomalies.

A custom-developed web server is used to configure the data logger and provide various statistics related to the data transfer and protocols (i.e. packet loss, packet arrived at a wrong destination). The web server has a custom PTP-oriented network adapter.

The logger can be remotely updated over an Ethernet/USB interface via Trivial File Transfer Protocol (TFTP). This allows for automatic updates and easy addition of new functionalities to the platform without any action required on the user’s side.

This solution was developed to be highly customizable for different setups and use cases. The data logger supports a variety of interfaces (CAN, CAN FD, SPI, I2C, LIN, etc.) and can be ported to any RTOS. Since the logger can stream data from any type of sensor, it can be used as part of a sensor fusion system. The data collected from a sensor can also be used for sensor emulation. This is particularly useful for HIL (hardware-in-the-loop) testing where the collected data can be sent to the tested device in order to observe its behavior.

The logger can be further customized for multiple purposes:


High throughput data event logging

High throughput data event logging

low latency data streaming logger

Low-latency data streaming

Time sync jitter

Time sync jitter ~10ns