Relay Apparatus for ECU Firmware Update Buffer Management
Solution Overview
Problem
The high cost and prolonged time required for updating firmware in electronic control units (ECUs) due to the need for two buffers, which increases the overall vehicle cost and extends the time for firmware to become executable after an update failure.
Innovation Solution
A relay apparatus that transmits current firmware data and new firmware data between a provision apparatus and an ECU, allowing the ECU to update or restore the current data without the need for separate buffers, thereby reducing costs and shortening the update time.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If two buffers are included in the ECU to store current and new firmware versions, then firmware update reliability is improved, but device cost increases
Solution Approach 1:
A relay apparatus is introduced as an intermediary between the provision apparatus and the ECU. The relay apparatus stores both the current firmware data and the new firmware data in its own storage unit, and manages the data transmission to the ECU. This externalizes the buffering function from the ECU to a separate device, allowing the ECU to operate with a single buffer while maintaining update reliability through coordinated data management.
2Reliability
If two buffers are included in each ECU for firmware updates, then update safety is improved, but the overall vehicle cost increases
Solution Approach 1:
The storage resources of multiple ECUs are virtually merged through the relay apparatus. Instead of each ECU maintaining separate buffer copies of firmware data, the relay apparatus consolidates the storage of current and new firmware versions in a centralized location, serving multiple ECUs from a single shared buffer pool. This reduces the total amount of memory required across the vehicle while maintaining update safety.
3Reliability
If the ECU downloads new firmware from a server after an update failure, then firmware integrity is ensured, but the time required for firmware to become executable increases
Solution Approach 1:
The relay apparatus performs preliminary actions by pre-fetching and storing the new firmware data in its storage unit before the ECU actually needs it for execution. When an update failure occurs, the relay apparatus can immediately provide the stored firmware data to the ECU without requiring a time-consuming download from the external server, thus reducing the latency while maintaining data integrity through prior validation.
4Adaptability or versatility
If the ECU includes two buffers for firmware storage, then update capability is improved, but ease of manufacture deteriorates due to higher component costs
Solution Approach 1:
The complex dual-buffer firmware update capability is extracted from the ECU and relocated to the relay apparatus. The ECU's role is simplified to receiving and executing firmware instructions, while the relay apparatus handles the complex storage management, data validation, and transmission control. This extraction reduces the manufacturing complexity of the ECU while preserving the advanced update capability at the system level.
Data Source
AI summary
A relay apparatus according to an embodiment includes a request transmitting unit, a response receiving unit, and a data transmitting unit. The request transmitting unit transmits an acquisition request to a provision apparatus. The response receiving unit receives the second data from the provision apparatus in response to the acquisition request. The data transmitting unit transmits, to the electronic control unit, the second data received from the provision apparatus, thereby causing the electronic control unit to update the first data firstly stored therein with the second data. When the updating has failed, the data transmitting transmits the first data to the electronic control unit, thereby causing the electronic control unit to restore the first data.



