In order to deal with energy shortages and environmental pollution,new energy vehicles need to be developed,Range extended electric vehicle has received widespread attention for its advantages such as high efficiency and long cruising range.The vehicle control unit is the core component of the vehicle control level.In the current mainstream V-mode development process,the hardware and software platform use tools to integrate application layer strategies and basic software to generate product-level code,and to provide guarantee for subsequent test work,the hardware and software platform is of great significance to the development of vehicle control unit.The paper develops a hardware and software platform of vehicle control unit,which has a layered software architecture and standardized interfaces,and has strong portability.Based on the in-depth analysis of the working principle and architecture of the range extended electric vehicle control system,the paper analyzes the principle of the extended-range power system and completes the analysis of the functional requirements of the complete vehicle control unit,and designs a hardware and software platform program of vehicle control unit for the range extended electric vehicle which includes general hardware and basic software.According to the analysis of hardware requirements,the thesis is based on NXP’s SPC5744 B series 32-bit processor to complete the design and drawing of the hardware circuit schematic diagram of the general version of the vehicle control unit,Including the smallest system module,input signal processing module,output signal processing module and communication module,comprehensively considering factors such as electromagnetic compatibility and anti-jamming,the vehicle control unit PCB circuit board is designed and manufactured.The paper refers to the AUTOSAR layered software architecture and standardized interface ideas,builds the basic software based on the functional requirements of the vehicle control unit.The microcontroller abstraction layer mainly encapsulates the register operations of each drive module,the ECU abstraction layer provides a standard access interface for the upper software to achieve access to the controller communication and input and output,the service layer provides standard service interfaces for the application layer software,including system task scheduling services and CAN communication services,finally,the paper also builds the application layer and the basic software integration platform,designs the Makefile file to realize the automatic compilation of the integrated project,and uses Python to realize the automatic replacement of the variable address of the A2 L file.Finally,the paper takes the range extender control strategy in the vehicle control algorithm as an example,designs the power point switching test process,integrates and tests the designed hardware and software platform and application layer case algorithm based on the hardware-in-the-loop test platform,the basic input and output functions and related services of the platform are verified.Analysis of the test results shows that functions such as signal acquisition and output,system task scheduling service 1ms and10 ms,CAN communication services in the hardware and software platform can all work normally,can provide guarantee for subsequent strategy development. |