Study on BMS software development method based on AUTOSAR
AUTOSAR is divided into two platforms : Classic Platform (CP) and Adaptive Platform (AP) .
CP AUTOSAR is a traditional, event-driven software architecture that is suitable for the development of embedded control units (ECUs) , such as engine controllers , motor controllers, vehicle controllers, BMS controllers, etc. These ECUs usually run on real-time operating systems. In contrast, AP AUTOSAR is a service-oriented architecture that is suitable for more complex application scenarios , such as autonomous driving and vehicle networking services.
AUTOSAR CP Architecture
To achieve the separation between application and hardware modules, the CP AUTOSAR architecture is abstracted into four layers:
Application Layer : Contains applications and software components.
Runtime Environment Layer : Mainly responsible for the communication mechanism between application components in the ECU, including client calls and receiving services.
Basic Software ( BSW ) : Provides some service interfaces, such as communication protocols, signal routing, and message structures, to enable communication between clients. It provides some security services, such as data encryption and decryption, to ensure the security of the automotive system.
Microcontroller Abstraction Layer : Allows AUTOSAR systems to run on different types of ECUs while maintaining code compatibility and reusability. It includes 2 sublayers, namely hardware abstraction and microcontroller driver interface, which normalizes hardware configuration and register mapping, thereby simplifying the interaction process between ECUs.
AUTOSAR CP architecture provides a modular approach to developing and implementing automotive software . This layered structure brings two benefits: On the one hand, OEMs can focus on developing specific, competitive application layer software (above RTE).
On the other hand, it standardizes the base software layer (below RTE) that OEMs care about, and the automotive business runs on different hardware, providing automakers with greater flexibility.
CP AUTOSAR development methodology and process
AUTOSAR defines a set of common technical methods for the automotive electronic software system development process, namely
the AUTOSAR methodology
, which covers the entire development process from system design to ECU executable code generation.
1. System configuration phase
In the system configuration phase, the task of the system designer or architect is to define the system configuration file, including the selection of hardware and software components, and the definition of the constraints of the entire system. The input of this phase is an XML type file, and the output is a system configuration description file. The main role of the system configuration is to map the requirements of the software components to the ECU.
2. ECU design and configuration stage
According to the system configuration description file, extract the information related to a single ECU resource and generate an ECU extraction file. Then configure the ECU, including the operating system task scheduling, necessary BSW modules and their configuration, the allocation of running entities to tasks, etc., and generate an ECU configuration description file. This description file contains all the information of a specific ECU.
3. Code generation phase
Based on the ECU configuration description file, generate RTE and basic software configuration code, complete the integration of basic software and software components, and finally generate the executable code of the ECU.
Specific steps of the development process:
-
Write system configuration input description files: In AUTOSAR, all description files are XML files. The system configuration input file contains software component description, ECU resource description and system constraint description.
-
System configuration: Based on the relationship between resources and timing, the software components are mapped to each ECU and a system configuration description file is generated.
-
Extract descriptions of specific ECUs: Extract system configuration description information related to each ECU from the system configuration description file and place this information in the extraction file of each ECU.
-
ECU configuration: Add necessary information and data to the ECU, such as task scheduling, BSW module configuration, running entities and task allocation, and save the results in the ECU configuration description file.
-
Generate executable files: Generate RTE and basic software configuration codes according to the configuration information in the ECU configuration description file, complete the integration of basic software and software components, and generate executable code for the ECU.
This process ensures the quality and reliability of the software.
Safety and reliability are at the core of CP AUTOSAR design. It follows safety standards such as ISO 26262 to ensure that the software can run safely under various conditions. CP AUTOSAR also provides error handling and diagnostic mechanisms to improve system reliability.
The CP AUTOSAR development methodology improves the efficiency and quality of automotive electronic software development through standardized development processes and tool chains, while promoting software reusability and portability. Through its modular, standardized and rigorous development processes, it provides strong support for the development of automotive electronic systems. As the automotive industry rapidly develops toward intelligence and networking, CP AUTOSAR will continue to promote the advancement of automotive software technology while ensuring safety and reliability.
AUTOSAR is used for BMS underlying software development
Provides a highly modular and standardized platform
With the rapid development of electric vehicles and hybrid vehicles, battery management system has become a key technology to ensure battery safety, extend battery life and improve energy efficiency. Mainly responsible for monitoring and managing the performance of the battery pack , it is an important bridge connecting the battery and other vehicle systems, and is crucial to improving the overall performance of electric vehicles.
The AUTOSAR architecture provides a scalable and interoperable development platform for BMS through standardized interfaces and modular design, making it easier to integrate BMS into different vehicle platforms and supporting the rapid development and deployment of new functions.
The development of BMS underlying software based on AUTOSAR provides an efficient, reliable and scalable solution for battery management of electric vehicles. As the electric vehicle industry continues to develop, AUTOSAR will continue to play an important role in BMS development.
This AUTOSAR-based low-level software development training camp is also conducted after we have completed the study of MBD-based application layer software development, and then verified by combining hardware and tool chain time application .
This training camp is based on an independent BMS development board and combines AUTOSAR tools to explain and demonstrate the key tasks of BMS bottom software development , including basic software development and debugging methods, complex network control design, accessory control design, driver software design, basic software design, and hardware diagnostic design.
Through this training camp, students will be able to deeply understand and master the underlying software development process under the AUTOSAR CP standard , including key technologies such as information collection, CAN, LIN, UDS diagnosis, flashing technology, accessory control logic, high-voltage sampling technology, real-time operating system principles, storage management, software component architecture, runtime environment design, and hardware fault diagnosis.
In addition, after completing the offline application practice of the development board, online live courses will be arranged , including in-depth explanations of AFE sampling, high-voltage sampling, insulation acquisition, storage management, network management, etc., to ensure that students can fully master the core skills of underlying software development.
Course Benefits
Understanding of system principles:
Deeply understand the principles of real-time operating systems and storage management to build high-performance embedded systems
Practical experience: Practice software development directly on the development board and master the debugging methods of tool software
Understanding of hardware interfaces: Deepen your understanding of hardware interfaces through practices such as ADC acquisition and current sampling
Communication protocol application: learn to design CAN and LIN communication systems to achieve network control and network management
Accessory and driver development: Learn to design the control logic of BMS system accessories, as well as driver software such as high-voltage sampling and insulation acquisition.
Software architecture design: Learn SWC architecture and RTE design to improve software modularity and reusability
Software integration testing: Learn the integration and testing methods of application layer and underlying software to ensure the functionality and performance of the software
AUTOSAR standard application: fully understand the application of AUTOSAR standard in low-level development
Professional tool application: Learn to use industry standard tools to improve development efficiency and software quality
class schedule
Offline course schedule
1. Information collection design
-
Software Installation
-
Basic software debugging methods
-
Demo Board Introduction
-
ADC Acquisition
-
Current sampling
2. Network Control Design
-
CAN communication
-
LIN Communication
-
UDS Diagnostics
-
Flash
3. Accessory control design
-
charging indicator
-
Electronic locks
-
Water pumps, fans, etc.
4. Driver software design
-
High Voltage Sampling
-
Insulation collection
-
RTC
-
SBC
5. Basic software design
-
operating system
-
storage
-
SWC Architecture
-
RTE Design
-
Power on/off
6. Hardware Diagnosis Design
-
Communication diagnostics
-
Storage Diagnostics
-
Circuit Diagnosis
Online course schedule
1. AFE Sampling
-
AFE Sampling
-
Balance control and acquisition
-
AFE Diagnostics
-
Calibration
2. Driver Software Design
-
High Voltage Sampling
-
Insulation monitoring
-
RTC
-
SBC
3. Basic Software Design
-
operating system
-
storage
-
RTE Design
-
Power on/off
4. Network Management
-
Network Management
-
Knowledge Stream
main lecturer
Mr. Hong, head of electronic control software at a new energy vehicle company
He has been involved in the development of BMS software for new energy vehicles since 2014, and has been responsible for the BMS software development of 6 mass-produced models . He is also responsible for the application software development, architecture design and underlying development of VCU, MCU and ADAS. He is proficient in AUTOSAR full-stack development and familiar with QNX and Linux operating system development.
Object-oriented
BMS-related engineers, including application layer, underlying software engineers, development engineers, system engineers, test engineers, etc.
Automotive electronic control software engineer, embedded software engineer, etc.
How to Apply
Registration discount : The first 15 applicants will receive the AUTOSAR Automotive Open System Architecture course as a prerequisite course
Training period: 2 days offline, 4 live broadcasts online
Training location: Intelligent Connected Vehicle Industry Talent Training Base, B1 Floor, No. 59 Qinglonggang Road, Suzhou High-speed Railway New Town
Registration contact: Ms. Ella
Consult teacher Ella to grab the first registration discount