Table of Contents
Fetching ...

Enhancing AUTOSAR-Based Firmware Over-the-Air Updates in the Automotive Industry with a Practical Implementation on a Steering System

Mostafa A. Mostafa, Mohamed K. Mohamed, Radwa W. Ezzat

TL;DR

This work addresses the challenge of secure, efficient firmware updates in modern vehicles by designing an AUTOSAR-compliant FOTA framework that employs delta updating to minimize data transfer and flashing time. The system integrates UDS 0x27 for authentication, CAN for ECU-to-ECU communication, and SPI for rapid data transfer between the ESP8266 module and the master ECU, with a robust boot architecture (bootloader, boot manager, bootloader updater) to ensure reliability. Demonstrations using a blinking LED and a Lane Keeping Assist (LKA) system validate the approach, showing tangible improvements in update efficiency and real-time steering control. By combining standardized memory management, secure access, and delta-based updates within an AUTOSAR context and FreeRTOS task scheduling, the solution offers a scalable, industry-aligned path to secure, low-downtime automotive firmware management.

Abstract

The automotive industry is increasingly reliant on software to manage complex vehicle functionalities, making efficient and secure firmware updates essential. Traditional firmware update methods, requiring physical connections through On-Board Diagnostics (OBD) ports, are inconvenient, costly, and time-consuming. Firmware Over-the-Air (FOTA) technology offers a revolutionary solution by enabling wireless updates, reducing operational costs, and enhancing the user experience. This project aims to design and implement an advanced FOTA system tailored for modern vehicles, incorporating the AUTOSAR architecture for scalability and standardization, and utilizing delta updating to minimize firmware update sizes, thereby improving bandwidth efficiency and reducing flashing times. To ensure security, the system integrates the UDS 0x27 protocol for authentication and data integrity during the update process. Communication between Electronic Control Units (ECUs) is achieved using the CAN protocol, while the ESP8266 module and the master ECU communicate via SPI for data transfer. The system's architecture includes key components such as a bootloader, boot manager, and bootloader updater to facilitate seamless firmware updates. The functionality of the system is demonstrated through two applications: a blinking LED and a Lane Keeping Assist (LKA) system, showcasing its versatility in handling critical automotive features. This project represents a significant step forward in automotive technology, offering a user-centric, efficient, and secure solution for automotive firmware management.

Enhancing AUTOSAR-Based Firmware Over-the-Air Updates in the Automotive Industry with a Practical Implementation on a Steering System

TL;DR

This work addresses the challenge of secure, efficient firmware updates in modern vehicles by designing an AUTOSAR-compliant FOTA framework that employs delta updating to minimize data transfer and flashing time. The system integrates UDS 0x27 for authentication, CAN for ECU-to-ECU communication, and SPI for rapid data transfer between the ESP8266 module and the master ECU, with a robust boot architecture (bootloader, boot manager, bootloader updater) to ensure reliability. Demonstrations using a blinking LED and a Lane Keeping Assist (LKA) system validate the approach, showing tangible improvements in update efficiency and real-time steering control. By combining standardized memory management, secure access, and delta-based updates within an AUTOSAR context and FreeRTOS task scheduling, the solution offers a scalable, industry-aligned path to secure, low-downtime automotive firmware management.

Abstract

The automotive industry is increasingly reliant on software to manage complex vehicle functionalities, making efficient and secure firmware updates essential. Traditional firmware update methods, requiring physical connections through On-Board Diagnostics (OBD) ports, are inconvenient, costly, and time-consuming. Firmware Over-the-Air (FOTA) technology offers a revolutionary solution by enabling wireless updates, reducing operational costs, and enhancing the user experience. This project aims to design and implement an advanced FOTA system tailored for modern vehicles, incorporating the AUTOSAR architecture for scalability and standardization, and utilizing delta updating to minimize firmware update sizes, thereby improving bandwidth efficiency and reducing flashing times. To ensure security, the system integrates the UDS 0x27 protocol for authentication and data integrity during the update process. Communication between Electronic Control Units (ECUs) is achieved using the CAN protocol, while the ESP8266 module and the master ECU communicate via SPI for data transfer. The system's architecture includes key components such as a bootloader, boot manager, and bootloader updater to facilitate seamless firmware updates. The functionality of the system is demonstrated through two applications: a blinking LED and a Lane Keeping Assist (LKA) system, showcasing its versatility in handling critical automotive features. This project represents a significant step forward in automotive technology, offering a user-centric, efficient, and secure solution for automotive firmware management.

Paper Structure

This paper contains 104 sections, 17 figures, 3 tables.

Figures (17)

  • Figure 1: Flash Memory Interface Connection Inside System Architecture, STM32F4_Reference_Manual
  • Figure 2: Flash Module Organization, STM32F4_Reference_Manual
  • Figure 3: Memory Layout
  • Figure 4: Generic MCU Bootloader Structure, Bootloader_Microcontroller
  • Figure 5: Design Flow
  • ...and 12 more figures