Design of Automobile Battery Management System Based on DSP

Publisher:龙爱泉也Latest update time:2014-06-21 Source: 互联网Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  The fierce competition in the automotive market requires designers to shorten the product development cycle. In the design and development of traditional automotive electronic controllers, the overall design of the controller, the overall performance analysis, and the optimization of the control strategy usually require a lot of time, manpower, and material resources, with large investments and low efficiency. In addition, this development method is prone to errors, and real-time online testing is not performed until the final calibration. If errors are made during the initial design and are not discovered in time, most of the work must be redone, and the development cycle becomes longer. It can be seen that traditional R&D methods cannot meet the needs of the market, and a new design concept must be used to adapt to market needs.

 

  1 V-mode design method and automatic code generation

 

  1.1 V-mode design method

  As shown in Figure 1, compared with traditional design methods, the V-mode design method applies the principles of system engineering to the development of modern automotive electronic systems. It is a cyclical design model. Its characteristics are that no matter whether it is development, programming or testing, it is always working in the same environment, and each step of the development process can be verified [1]. It is based on powerful computing simulation tools. The entire design process is completed on the same platform, realizing seamless connection from the proposal of design concepts to rapid prototyping (Prototype) and then to ECU products. The most direct effect of adopting this method is to accelerate and simplify the development process, eliminate errors in a timely manner, and greatly reduce the workload of engineers.

 

  

 

  1.2 Automatic code generation using Simulink

  Automatic code generation is at the bottom of the V model and is the most critical step in the entire development process. Its purpose is to achieve rapid iteration during the development process to improve development efficiency. The quality of code generation directly affects the reliability and stability of the system.

  Figure 2 shows the DSP automatic code generation process based on MATLAB/Simulink [2]. Simulink is a platform for multi-domain simulation and model-based design of dynamic systems. It provides an interactive graphical environment and a rich module library. According to the functional requirements of the system, the system model is first built in the MATLAB/Simulink environment and simulation analysis is performed. The Simulink debugger is used to check the simulation results and locate and diagnose unexpected behaviors in the model. Once the results are verified, the C language project files for the TI compiler can be automatically generated through RTW (Real-time workshop), and further compilation, connection and download are completed, and finally run on the hardware platform.

 

  

 

  RTW is a tool used with MATLAB and Simulink. It can generate code directly from Simulink models and automatically build programs that can run in real time. By default, RTW generates highly optimized and fully annotated C code. In addition to MATLAB function modules and modules that call M-file S functions, any Simulink model can generate code, including linear, nonlinear, continuous, discrete, and hybrid models [3].

  From the whole process, engineers only need to build models in Simulink and verify the correctness of the models without writing any code to obtain reliable and accurate code.

 

  2 Embedded Target for TI C2000 Toolbox

 

  Target for TI C2000 integrates TI's eXpressDSP tool into Simulink, which is a connection tool between MATLAB and TI CCS, enabling MATLAB, MATLAB toolbox, TI Code Composer Studio integrated development environment (CCS IDE) and RTDX (Real-Time Data Exchange) to work together.

  The Target for TI C2000 toolbox consists of three parts [3]: common tools, chip peripheral module library, and optimization library. Common tools include real-time data exchange channel module, target controller basic parameter setting module, and CAN communication setting module. The toolbox supports DSPs of the C281x series, C280x series, and C2400 series. The optimization library includes a fixed-point operation library and a digital motor control library.

  Simulink can support four types of C280x DSP peripheral module libraries: memory read and write modules, interrupt management modules, control modules, and communication modules. Except for not supporting IIC communication modules, this module library provides good support for all modules on the C280x DSP board. When users call these modules of DSP, they only need to set and select the corresponding modules, and do not need to care about how the underlying layer is implemented. The entire model building process is as simple as stacking blocks.

 

  3 Application of Automatic Code Generation in Battery Management System

 

  3.1 Functional Description of Battery Management System

  BMS The lithium-ion battery management system (BMS) for fuel cell vehicles is an embedded real-time monitoring system that should have the following functions [4]: ​​battery status monitoring, including measurement and signal processing of battery operating voltage, operating current and operating temperature; calculation of maximum charge and discharge power under specific conditions; estimation of battery pack state of charge (SoC) and life state (SoH) under specific working conditions; high-voltage pre-charging, overcharge and over-discharge protection, insulation detection and leakage protection; battery balancing and thermal management; fault diagnosis and communication with the vehicle controller. Figure 3 is a block diagram of the BMS system.

 

  

 

  Since the BMS still needs to monitor the battery at regular intervals when the car is parked, the BMS cannot use up all the power stored in the battery when the car is parked for a long time, otherwise the car will not be able to start. Therefore, when the car is parked, the BMS must enter the low power mode. When the car starts, the ignition signal from KL15 wakes up the controller from the low power mode and enters the normal working mode.

  3.2 Controller Selection

  From the functions of BMS, it can be seen that the control function of the controller only accounts for a small part of BMS. In real-time parameter estimation and SoC estimation, the algorithm is complex and the amount of calculation is large. The controller needs to complete complex recursive calculations in a short time interval, which requires higher computing power and speed of the controller. The traditional battery management system uses a single-chip microcomputer as a controller. Since the single-chip microcomputer focuses on control and has limited real-time data computing capabilities, it cannot meet the requirements of BMS well. TI's TMS320C2000 series DSP combines the characteristics of microcontrollers and high-performance DSPs, has powerful control and signal processing capabilities, and can implement complex control algorithms. This series of DSPs integrates Flash memory, fast and high-precision A/D converters, two-way enhanced CAN modules, event managers, orthogonal encoding circuit interfaces, multi-channel buffered serial ports and other peripherals. The 32-bit fixed-point C2808 DSP can complete 32×32-bit multiplication and accumulation operations or two 16×16-bit multiplication and accumulation operations in one cycle. In addition, any memory address can be read, modified, and written within one cycle, achieving optimal efficiency and program code, fully meeting the requirements of real-time control [5].

  3.3 Battery Parameter Identification and SoC Estimation Algorithm

  Battery monitoring must first be modeled to detect the battery voltage, current and temperature in real time. The model parameters are identified based on these data, thereby indirectly estimating the internal conditions of the battery. Figure 4 shows a lithium-ion power battery model [6]. In the model, C0 is used to describe the battery capacity, R0 is used to describe the equivalent ohmic internal resistance of the battery, R1 and C1 with smaller time constants are used to describe the impedance of lithium ions when they are transmitted between electrodes, and R2 and C2 with larger time constants are used to describe the impedance of lithium ions when they diffuse in the electrode material. The parameters in this model can all be obtained through parameter identification methods.

 

  

 

  In order to achieve adaptive control and track parameters that change over time, a recursive least squares method is used in the identification process. The internal parameters of the battery are updated according to the sampled values ​​of the voltage and current signals each time. The basic idea is that the estimated value this time is equal to the estimated value of the previous time plus a correction term, and the size of the correction term depends on the difference between the model output and the actual output. This method requires that a recursive operation must be completed before the next sampling.

  When the vehicle is installed and running, the vehicle controller needs the BMS to provide a high-precision SoC, and the general estimated accuracy is less than 5%. The battery SoC cannot be obtained directly, but can only be indirectly estimated by measuring battery voltage, current, temperature, internal resistance and other parameters. Moreover, these parameters are related to the degree of battery aging, the non-uniformity of battery cells, etc. At present, common methods include open circuit voltage method, current integration method, etc.

  3.4 Calibration module based on CAN bus

  Due to the widespread use of network systems in automobiles, the calibration of control units based on network connections is very different from the traditional matching calibration method. The calibration of CAN-based electronic control units is an important part of the development of battery management system controllers. CCP (CAN Cali-bration Protocol) is a calibration protocol for the CAN bus, which has been widely used by automobile manufacturers. The protocol can be used to calibrate the controller quickly and effectively. In the battery management system, CCP can be used to achieve real-time online testing, sensor monitoring and calibration, adjustment of alarm or error thresholds, and program downloading via CAN.

  In the traditional controller design process of hand-written code, calibration based on CCP protocol requires a driver that supports CCP protocol. Since the ECU underlying program and the driver of CCP protocol are different, it takes a lot of time to integrate CCP driver into ECU. MATLAB 2007b adds a calibration module based on CAN bus. By putting this module into Simulink model and setting relevant parameters, the code that can realize CCP calibration can be automatically generated.

  3.5 Building a Model in Simulink

  At the beginning of modeling, the F2808 eZdsp module in the C2000 DSP chip support must be placed in the model. This module sets the basic information of the DSP, including chip selection, phase-locked loop clock frequency selection, memory address allocation, and some basic settings of peripheral devices.

  The sensor outputs analog signals and digital signals. The analog signal can be converted by the A/D conversion module, and the digital signal can be processed by the GPIO or CAP capture module. The analog sampling signal after hardware filtering is not ideal. In this model, the sampling signal can be fast Fourier transformed to analyze the frequency characteristics of the noise signal, and the corresponding digital filter can be designed to further filter the sampling signal. The actuator can be controlled by the GPIO or PWM module.

  Since SoC, SoH and control algorithms are relatively complex, they can be implemented using S-function modules. S-function is a computer language description of a dynamic system and a powerful tool for expanding the Simulink module library. It uses a specific calling syntax to implement the interaction between functions and Simulink solvers. The battery management system model in Simulink is shown in Figure 5.

 

  

 

  3.6 Automatic code generation, compilation and execution

  After the simulation runs correctly in Simulink, the control algorithm code can be directly generated from the model. Simulink calls the real-time workshop build internally and automatically opens TI's integrated development environment CCS. The generated code is compiled and automatically generates an executable final control program. The program is burned into the target system through the USB interface simulator and the 14-pin standard JTAG debugging cable.

  C2808 DSP has two operation modes. One is to download the program to RAM through the emulator and run it. In this operation mode, you can set breakpoints, single-step operation, and view memory in CCS through the emulator to monitor and debug the program in real time. The other mode is to download the program to Flash and run it separately. This operation mode does not require the intervention of CCS. Generally, the RAM mode is used in the experimental debugging stage, and the Flash mode is used to run it separately after the debugging is successful.

  The designed controller is used for current and voltage sampling, with a voltage sampling accuracy of 1/1000 and a current sampling accuracy of less than 5/1000. The designed SoC algorithm can complete a one-step recursive operation on the DSP within 30ms, meeting the requirements of real-time operation of the battery management system. Running the automatically generated code and combining with Vector's CANape tool successfully implements the CCP protocol for online calibration of parameters in RAM and Flash memory. Figure 6 is a comparison of the measured voltage and the model output voltage. As can be seen from the figure, the measured voltage is quite consistent with the model output voltage, confirming the correctness of the code.

 

  

 

  Practice shows that the application of DSP to replace the traditional single-chip microcomputer as the controller of BMS, its powerful control ability and signal processing ability can better meet the requirements of battery management system. The automatic code generation of the controller is realized by using the embedded Target for TI C2000 under the Matlab/Smulink platform, which greatly accelerates the development process of the electric vehicle BMS system and shortens the development cycle. The operation test shows that the automatically generated code is efficient and reliable, the controller's control effect on the battery system is real-time and accurate, and the reliability is high. The parameter estimation of the battery model meets the accuracy requirements.

Keywords:DSP Reference address:Design of Automobile Battery Management System Based on DSP

Previous article:A DSP-based fuzzy PID control of inverter power supply
Next article:Design and implementation of digital phase shifter-voltage converter module based on DSP

Recommended ReadingLatest update time:2024-11-16 14:32

Design of a new INS/GPS integrated navigation system
Among many combined navigation systems, INS/GPS combined navigation system has developed rapidly, and has been widely used in both military and civilian fields, and has received more and more attention. As far as INS/GPS combined navigation system is concerned, in addition to completing a large amount of navigation sol
[Security Electronics]
Design of a new INS/GPS integrated navigation system
Temperature Control System Based on DSP and Digital Temperature Sensor
O Introduction Since the 1960s, digital signal processors ( DSP ) have developed rapidly along with computer and communication technology, and their application fields have become more and more extensive. In terms of temperature control, especially the temperature control of solid-state lasers
[Security Electronics]
Temperature Control System Based on DSP and Digital Temperature Sensor
Design of local meteorological monitoring device for power transmission lines based on DSP and CPLD
1 Overview The state of the transmission line directly determines the safe and stable operation of the entire power grid. Real-time monitoring of the micro-meteorological parameters of the transmission line can provide necessary on-site information for the normal dispatching of the power grid, as well a
[Embedded]
Detailed explanation of two technologies of wide dynamic camera
In recent years, with the improvement of people's living standards, security monitoring has received more and more attention, and more and more environments need to be equipped with monitoring equipment. The technology of cameras has also been constantly upgraded with each passing day, better meeting the needs of va
[Security Electronics]
Design of RTU Based on DSP and CAN Bus
Remote measurement and control terminal (RTU) was introduced to China in the 1980s as a product that embodies the idea of ​​"distributed measurement and control, centralized management" and has been widely used. The RTU used in substations mainly realizes the remote collection of on-site power parameters and the remot
[Analog Electronics]
Design of RTU Based on DSP and CAN Bus
Improving Energy Efficiency Using DSP Intelligent Motor Control
With motors now responsible for two-thirds of industrial electricity consumption and one-quarter of residential electricity consumption, motor efficiency continues to receive greater attention. While standard motor applications are perfectly capable of operating at higher energy efficiencies, most motors are ineffic
[Industrial Control]
Application and Implementation of DSP and FPGA in Image Transmission System
Video communication is a hot topic in the current computer and communication fields. Compared with wired communication, wireless spread spectrum has its inherent advantages, such as convenient networking and low cost. Therefore, the development of wireless spread spectrum real-time image transmission system has high pr
[Embedded]
Hardware design of accelerometer temperature control system based on DSP
1 Introduction   In recent years, digital signal processors (DSPs) have developed rapidly, and their cost performance has been continuously improved. They are widely used in various fields, such as communications, speech processing, image processing, pattern recognition, and industrial control, and are increasingly s
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号