As automotive electronics software development is becoming increasingly complex and difficult, the world's vehicle manufacturers, component suppliers, electronics, semiconductor and software corporations jointly launched the automotive open system architecture standard AUTOSAR. Its purpose is to provide open and standardized software architecture for automotive electronics software development.In this paper, we investigated cases of AUTOSAR-based software development of automotive electronics abroad. Based on the laboratory research in AUTOSAR and respecting the AUTOSAR standard, we designed the gasoline engine ECU (Electronic Control Unit) software, and achieved the basic control functions. Simulation test and bench test results show that the ECU software performed well in the control of important parameters such as injector pulse width and ignition advance angle, making the engine perform smoothly.The main work of this paper can be summarized into the following aspects:1) Investigated AUTOSAR development process and existing applications to prepare for the design of gasoline engine ECU software according to AUTOSAR.2) Designed software architecture of the gasoline engine ECU software with injection and ignition function using Simulink. Designed and implemented all software components with implementation and description matching AUTOSAR R3.0 standard.3) Designed IO hardware abstraction layer components and the complex driver layer components according to the application layer software interface requirements, and applied microcontroller abstraction layer SmartBSP in the implementation.4) Configured run-time environment and operating systems, applied SmartOSEK Operating System V2.0 as basic software, generated the target file of the ECU software, and performed test on hardware emulation platform and engine test stand. |