The Development of NiMH BMS Application Layer Software of HEV Based on Simulink/Stateflow and Targetlink 2008-01-1568
Unlike conventional software development methods, the bottom layer software and the application layer software are developed separately based on the research background of battery management system (BMS) of hybrid car with integrated starter generator (ISG). The bottom layer software is made by handwork, while the application layer software is developed by Simulink, Stateflow and Targetlink. During the development process of the application layer software, the algorithm and control strategy are realized by Simulink & Stateflow model, and the automatic production C code is generated by Targetlink. Special requirements of model conversion from Simulink&Stateflow model to Targetlink model are considered sufficiently. The connection problem of the interface variables between the bottom layer and the application layer has been made a comprehensive analysis. Meanwhile, the scaling, offset and data type of variables are set up. In the entire development process, the model simulation in-the-loop (MIL), the software simulation in-the-loop (SIL) and the hardware simulation in-the-loop (HIL) have been conducted. The simulation results show that the code generated automatically can meet the requirement of the system functions and converge seamlessly with the bottom layer code. This method can greatly shorten the software development cycle, reduce the development cost and improve the efficiency of the software update.