Font Size: a A A

Reaserch On Platform Of Battery Management System Based On Automated Code Generation

Posted on:2018-05-06Degree:MasterType:Thesis
Country:ChinaCandidate:S Y GongFull Text:PDF
GTID:2322330533466844Subject:Pattern Recognition and Intelligent Systems
Abstract/Summary:PDF Full Text Request
As one of the key technologies in research of electric vehicles,battery management system technology is of great significance to keep the electric car running safely and prolong the service life of the power system.Currently,most of the battery management system(BMS)is designed for a particular type of battery and structure,without versatility/ universalityThe traditional software development is relatively complex,and developers complete all the necessary code for the underlying drivers and the upper strategy by hand,with low efficiency.To these above problems,this paper presents the design idea of battery management system platform based on automatic code generation technology.First of all,this paper analyzed the functions of battery management system.Based on the versatility of platform and the convenience of algorithm development,the idea of this platform was determined.Considering the principle of versatility,host-slave structure is applied to the designe of hardware platform with the idea of modularization.High-performance DSP chip was used as the controller of the host module,and a reasonable number of common interfaces is designed.In slave module,analog front-end chip compatible with all types of battery is selected and extensible interface is designed.Secondly,automatic code generation technology was studied in this paper,which is based on MATLAB/RTW.On the one hand,a script and module were designed for the configuration of target system with M-language and S-function.And the generated code can be compiled with one click and download automatically.On the other hand,with S-function and the technology of TLC,underlying driver blocks which can be configured visually were designed for the hardware platform.Furthermore,the code of underlying drivers can be generated automatically.Then the bridge was built between the algorithm and the hardware interface.Thirdly,the key strategies of battery management system were studied in this paper,which have been verified in MATLAB.In addition,the library of algorithm blocks were established for commonly used strategies.And these blocks can be easily modified by users to meet their own requirements.Finally,the test platform was built,which has been used to verify the practicability and high-efficiency of BMS platform based on code generation.Taking the studied strategies for example,the author built the algorithm model including underlying drivers.In addition,the efficiency of generated code and feasibility of strategies was analyzed.According to the test result,based on this platform,embedded C code canbe generated from the algorithm model automatically,and users can download all the code with one click.The generated code can run properly in hardware platform with good practicality,achieving the expected results of control.Thus,there is no need for users to manually write any code in algorithm development process,which can improve the efficiency of algorithm development and reduce the development cycle.
Keywords/Search Tags:BMS, Platform, Automatic code generation, Control strategy, Underlying driver
PDF Full Text Request
Related items