CN106648616A - Development method and development device of battery fault diagnostic program - Google Patents

Development method and development device of battery fault diagnostic program Download PDF

Info

Publication number
CN106648616A
CN106648616A CN201611010879.3A CN201611010879A CN106648616A CN 106648616 A CN106648616 A CN 106648616A CN 201611010879 A CN201611010879 A CN 201611010879A CN 106648616 A CN106648616 A CN 106648616A
Authority
CN
China
Prior art keywords
temperature
condition
battery
state
low
Prior art date
Application number
CN201611010879.3A
Other languages
Chinese (zh)
Inventor
吉祥
曾国建
蔡华娟
余铿
范晓东
朱建
许海丽
Original Assignee
安徽锐能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 安徽锐能科技有限公司 filed Critical 安徽锐能科技有限公司
Priority to CN201611010879.3A priority Critical patent/CN106648616A/en
Publication of CN106648616A publication Critical patent/CN106648616A/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The invention relates to the technical field of battery management, and discloses a development method and development device of a battery fault diagnostic program. The development method comprises the steps of detecting battery parameters, and determining a battery state of each battery parameter; determining a transition condition of battery state transition of each battery parameter; adopting the determined all battery states and transition conditions as state modules of a Stateflow model of a limited state machine and state transition conditions among all state modules respectively to establish the Stateflow model used for battery fault diagnosis, and configuring a battery protected code module for each state module of the Stateflow model. According to the development method and development device of the battery fault diagnostic program, a graphical development method based on Stateflow and modularized development thought are adopted, the program logic is brief and clear, the obtained Stateflow model is easy to transplant and upgrade, a test on the Stateflow model is conducted before BMS integral software and hardware finishes, and the BMS software development cycle is shortened.

Description

A kind of development approach and development device of battery failures diagnostic program
Technical field
The present invention relates to technical field of battery management, in particular it relates to a kind of development approach of battery failures diagnostic program And development device.
Background technology
Battery failures diagnosis is a critical function of battery management, and battery failures diagnostic program can make battery pack in mistake Fill, cross and put, protected under the malfunction such as excess temperature, excessively stream.At present the program of lithium battery fault diagnosis is typically with battery management The program of system (Battery Management System, BMS) together, (is led using the development mode of " vertical comprehensive " If the development mode of stratification after first modularization).
But, there is following Railway Project in the development mode of this " vertical comprehensive ":
1) portability of battery failures diagnostic program is poor, and the operating system with bottom, hardware drive program etc. are close Correlation, increased the complexity and diversity of battery parameter so that system application developer needs to be provided simultaneously with stronger soft Part and hardware knowledge background are very high to developing personnel requirement.
2) test of battery failures diagnostic program is needed when software whole development is completed, and hardware make also complete with Just can carry out afterwards, so as to affect the test opportunity of battery failures diagnostic program.
3) battery failures diagnostic program Jing often need to be modified for different types of battery parameter, and in this exploitation mould Under formula, the stiffness of coupling between battery failures diagnostic program and BMS other program modules is high, cause parameter renewal, system maintenance, Function upgrading and the difficulty of secondary development.
In sum, at present for the development approach of battery failures diagnostic program cannot solve battery parameter complexity, Parameter that diversity etc. is brought updates and the problems such as system maintenance, increased the development cost of battery failures diagnostic program And risk, affect the development efficiency and development quality of battery failures diagnostic program.
The content of the invention
It is an object of the invention to provide the development approach and development device of a kind of battery failures diagnostic program, for solve because Parameter in the battery failures diagnostic program that complexity, diversity of battery parameter etc. are brought updates many with system maintenance etc. Problem.
To achieve these goals, the present invention provides a kind of development approach of battery failures diagnostic program, the development approach Including:Detection battery parameter, and determine the battery status that each battery parameter has;Determine that each battery parameter occurs battery The transition condition of state transition;And using determined by all battery status and transition condition as finite state machine State transition condition between the block of state of Stateflow models and each block of state come set up for battery failures diagnosis Stateflow models, and each block of state for the Stateflow models configures battery protection code module.
Alternatively, the detection battery parameter, and determine that the battery status that each battery parameter has includes:Detection electricity The electric current in pond, voltage and/or temperature;Wherein, the battery status that current parameters have at least is including electric discharge over-current state, electric current just Normal state and charging over-current state;Wherein, the battery status that voltage parameter has at least includes low-pressure state, the normal shape of voltage State, high pressure conditions and overvoltage condition;Wherein, the battery status that temperature parameter has at least included low-temperature condition, low-temperature condition, Temperature normal condition, the condition of high temperature and the mistake condition of high temperature.
Alternatively, wherein, for current parameters, the transition condition of battery status migration occurs to be included:When discharge current it is big In the first discharging current threshold and the duration be more than the first Preset Time when, battery status is migrated from the electric current normal condition To the electric discharge over-current state, and the discharge current under the electric discharge over-current state is in is less than the second discharging current threshold When, battery status migrates back the electric current normal condition from the electric discharge over-current state;And when charging current is filled more than first When electric current threshold and duration are more than the second Preset Time, battery status is migrated to described from the electric current normal condition and filled Electric over-current state, and when the charging current under in the charging over-current state is less than the second charging current threshold value, battery shape State migrates back the electric current normal condition from the charging over-current state.
Alternatively, wherein, for voltage parameter, the transition condition of battery status migration occurs to be included:When cell voltage it is little In the first low pressure threshold and the duration be more than three Preset Times when, battery status is migrated to institute from the voltage normal condition State low-pressure state, and when the cell voltage under in the low-pressure state is more than the second low pressure threshold and the duration is more than the During four Preset Times, battery status returns the voltage normal condition from the Low-pressure transfer;When cell voltage is more than the first high pressure When threshold value and duration are more than five Preset Times, battery status is migrated to the high pressure shape from the voltage normal condition State, and the cell voltage under the high pressure conditions are in is less than the second HVT high voltage threshold and the duration is more than the 6th Preset Time When, battery status migrates back the voltage normal condition from the high pressure;And the battery electricity under the high pressure conditions are in When pressure is more than seven Preset Times more than the first overvoltage threshold and duration, battery status is migrated to institute from the high pressure conditions Overvoltage condition is stated, and the cell voltage under the overvoltage condition is in is less than the second overvoltage threshold and the duration is more than the 8th During Preset Time, battery status migrates back the high pressure conditions from the overvoltage condition.
Alternatively, wherein, for temperature parameter, the transition condition of battery status migration occurs to be included:When battery pole column temperature When degree is more than nine Preset Times less than the first low temperature threshold and duration, battery status is migrated from the temperature normal condition To the low-temperature condition, and when the battery electrode column temperature under in the low-temperature condition is more than the second low temperature threshold and when lasting Between more than ten Preset Times when, battery status migrates back the temperature normal condition from the low temperature;When in the low temperature When battery electrode column temperature under state spends low temperature threshold and duration and is more than 11 Preset Time less than first, battery status Migrate to described from the low-temperature condition and cross low-temperature condition, and be more than when the battery electrode column temperature crossed under low-temperature condition is in Second spends low temperature threshold and duration when being more than 12 Preset Time, and battery status migrates go back to institute from the low-temperature condition of crossing State low-temperature condition;When battery electrode column temperature is more than the first high temperature threshold value and the duration is more than 13 Preset Time, battery State is migrated to the condition of high temperature from the temperature normal condition, and the battery electrode column temperature under the condition of high temperature is in Less than the second high temperature threshold value and the duration be more than 14 Preset Time when, battery status migrates go back to institute from the condition of high temperature State temperature normal condition;And the battery electrode column temperature under the condition of high temperature is in is crossed high temperature threshold value more than first and is continued When time is more than 15 Preset Time, battery status is migrated to the condition of high temperature excessively from the condition of high temperature, and ought be in The battery electrode column temperature crossed under the condition of high temperature crosses high temperature threshold value less than second and the duration is more than the 16th Preset Time When, battery status migrates back the condition of high temperature from the condition of high temperature of crossing.
Present invention also offers a kind of development device of battery failures diagnostic program, the development device includes:Battery status Detection module, for detecting battery parameter, and determines the battery status that each battery parameter has;State transition judges mould Block, for determining that each battery parameter occurs the transition condition of battery status migration;And Stateflow model building modules, For all battery status using determined by and transition condition as the Stateflow models of finite state machine state mould State transition condition between block and each block of state come set up for battery failures diagnosis Stateflow models, and for this Each block of state configuration battery protection code module of Stateflow models.
Alternatively, the battery parameter includes electric current, voltage and/or the temperature of battery;Wherein, the electricity that current parameters have Pond state at least includes electric discharge over-current state, electric current normal condition and charging over-current state;Wherein, the battery that voltage parameter has State at least includes low-pressure state, voltage normal condition, high pressure conditions and overvoltage condition;Wherein, the battery that temperature parameter has State at least included low-temperature condition, low-temperature condition, temperature normal condition, the condition of high temperature and crossed the condition of high temperature.
Alternatively, wherein, for current parameters, there is battery status migration in what the state transition determination module determined Transition condition includes:When discharge current is more than the first discharging current threshold and the duration is more than the first Preset Time, battery State is migrated to the electric discharge over-current state from the electric current normal condition, and the electric discharge under the electric discharge over-current state is in When electric current is less than the second discharging current threshold, battery status migrates back the electric current normal condition from the electric discharge over-current state; And when charging current is more than the second Preset Time more than the first charging current threshold value and duration, battery status is from described Electric current normal condition is migrated to the charging over-current state, and the charging current under the charging over-current state is in is less than the During two charging current threshold values, battery status migrates back the electric current normal condition from the charging over-current state.
Alternatively, for voltage parameter, the migration that battery status migration occurs that the state transition determination module determines Condition includes:When cell voltage is less than the first low pressure threshold and the duration is more than three Preset Times, battery status is from institute State voltage normal condition to migrate to the low-pressure state, and the cell voltage under the low-pressure state is in is more than the second low pressure During threshold value and when the duration is more than four Preset Times, battery status returns the voltage normal condition from the Low-pressure transfer; When cell voltage is more than the first HVT high voltage threshold and the duration is more than five Preset Times, battery status is normal from the voltage State transition is to the high pressure conditions, and the cell voltage under the high pressure conditions are in is less than the second HVT high voltage threshold and continues When time is more than six Preset Times, battery status migrates back the voltage normal condition from the high pressure;And when in institute Cell voltage under high pressure conditions is stated more than the first overvoltage threshold and when the duration is more than seven Preset Times, battery status from The high pressure conditions are migrated to the overvoltage condition, and the cell voltage under the overvoltage condition is in is less than the second over-pressed threshold Value and the duration be more than eight Preset Times when, battery status migrates back the high pressure conditions from the overvoltage condition.
Alternatively, wherein, for temperature parameter, there is battery status migration in what the state transition determination module determined Transition condition includes:When battery electrode column temperature is less than the first low temperature threshold and the duration is more than nine Preset Times, battery State is migrated to the low-temperature condition from the temperature normal condition, and the battery electrode column temperature under the low-temperature condition is in More than during the second low temperature threshold and when the duration is more than ten Preset Times, battery status migrates back the temperature from the low temperature Degree normal condition;Battery electrode column temperature under in the low-temperature condition crosses low temperature threshold less than first and the duration is more than During 11 Preset Time, battery status is migrated to described from the low-temperature condition and crosses low-temperature condition, and when in described too low When battery electrode column temperature under temperature state spends low temperature threshold and duration and is more than 12 Preset Time more than second, battery shape State migrates back the low-temperature condition from the low-temperature condition of crossing;When battery electrode column temperature is more than the first high temperature threshold value and duration During more than 13 Preset Time, battery status is migrated to the condition of high temperature from the temperature normal condition, and when in institute Battery electrode column temperature under the condition of high temperature is stated less than the second high temperature threshold value and when the duration is more than 14 Preset Time, battery State migrates back the temperature normal condition from the condition of high temperature;And the battery pole column temperature under the condition of high temperature is in When degree spends high temperature threshold value and duration and is more than 15 Preset Time more than first, battery status is migrated from the condition of high temperature The condition of high temperature is crossed to described, and high temperature threshold value is crossed less than second and is held when the battery electrode column temperature crossed under the condition of high temperature is in When the continuous time is more than 16 Preset Time, battery status migrates back the condition of high temperature from the condition of high temperature of crossing.
By above-mentioned technical proposal, the invention has the beneficial effects as follows:The exploitation side of the battery failures diagnostic program of the present invention Method and development device are using the graphical development method and Development of Modular thought based on Stateflow, and programmed logic is succinctly clear Clear, the Stateflow models of acquisition are easy to transplant and upgrade, and can carry out Stateflow before BMS entirety software and hardwares are completed The test of model, shortens BMS software development cycles.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Description of the drawings
Accompanying drawing is, for providing a further understanding of the present invention, and to constitute the part of specification, with following tool Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the development approach of the battery failures diagnostic program of the embodiment of the present invention;
Fig. 2 is the structural representation of the Stateflow models in the embodiment of the present invention for current parameters;
Fig. 3 is the structural representation of the Stateflow models in the embodiment of the present invention for voltage parameter;
Fig. 4 is the structural representation of the Stateflow models in the embodiment of the present invention for temperature parameter;
Fig. 5 is the structural representation of the development device of the battery failures diagnostic program of the embodiment of the present invention.
Description of reference numerals
The state transition determination module of 51 battery status detection module 52
53 Stateflow model building modules
Specific embodiment
The specific embodiment of the present invention is described in detail below in conjunction with accompanying drawing.It should be appreciated that this place is retouched The specific embodiment stated is merely to illustrate and explains the present invention, is not limited to the present invention.
" first, second, third ... " being previously mentioned in embodiments of the present invention is only used for describing purpose, and is not understood that To indicate or implying relative importance or the implicit quantity for indicating indicated technical characteristic.
Stateflow models are the graphical tools of finite state machine (finite state machine), and it is by state mould Block and state transition condition are constituted, and can be used for solving complicated logical problem, and user can be realized by graphical tools Conversion between different conditions.And the main purpose of battery failures diagnostic program is migrations of the BMS according to battery parameter state, carry For the migration of existence and state in different battery protection strategies, i.e. battery failures diagnostic program.
Accordingly, a kind of development approach of battery failures diagnostic program is embodiments provided, it applies Stateflow Model is realizing the exploitation of battery failures diagnostic program.As shown in figure 1, the development approach of the embodiment of the present invention is mainly including following Step:
Step S11, detects battery parameter, and determines the battery status that each battery parameter has.
Specifically, the battery parameter that the present embodiment is detected can include electric current, voltage and/or the temperature of battery.
Further, by taking electric current, voltage and temperature as an example, the electricity that each battery parameter determined by the present embodiment has Pond state can be as follows:
1) battery status that current parameters have can at least include electric discharge over-current state, electric current normal condition and charge Stream mode.
Wherein, the current value of the current value of separate detection battery charging phase and discharge regime, to judge that electric current is electric discharge Excessively stream or charging excessively stream.
2) battery status that voltage parameter has at least can include low-pressure state, voltage normal condition, high pressure conditions and Overvoltage condition.
Wherein, range of voltage values corresponding under low-pressure state, voltage normal condition, high pressure conditions and overvoltage condition is successively Increase.
3) battery status that temperature parameter has at least can include low-temperature condition, low-temperature condition, temperature normal condition, The condition of high temperature and the excessively condition of high temperature.
Wherein, low-temperature condition, low-temperature condition, temperature normal condition, the condition of high temperature are crossed and crosses corresponding under the condition of high temperature Temperature values increase successively.
It should be noted that, the scope of current value, magnitude of voltage and temperature value under different battery status can according to battery size, Battery detecting result etc. is set in advance, after detecting real-time current value, magnitude of voltage and temperature value, then judges that these are real-time The residing scope of value, to determine present battery status, is such as determined under the corresponding electric current normal condition of certain battery by battery detecting Current value range be charging current 0-100A, discharge current 0-500A, if in cell operations, detecting and fill in real time Electric current is 50A, then the real time charging electric current is in electric current normal condition.
In addition, for ease of description, hereafter electric current normal condition, voltage normal condition and temperature normal condition are interpreted as just Normal battery status, and remaining battery status is interpreted as into abnormal battery status.
Step S12, determines that each battery parameter occurs the transition condition of battery status migration.
Different for different battery parameters, the transition condition that it occurs battery status migration, the present embodiment is with electric current, electricity As a example by pressure and temperature, battery status is enumerated as follows.
First, there is the transition condition of battery status migration in current parameters
1) when discharge current is more than the first discharging current threshold and the duration is more than the first Preset Time, battery status Migrate to the electric discharge over-current state from the electric current normal condition, and the discharge current under the electric discharge over-current state is in During less than the second discharging current threshold, battery status migrates back the electric current normal condition from the electric discharge over-current state.
Wherein, the second discharging current threshold is less than the first discharging current threshold.
2) when charging current is more than the first charging current threshold value and the duration is more than the second Preset Time, battery status Migrate to the charging over-current state from the electric current normal condition, and the charging current under the charging over-current state is in During less than the second charging current threshold value, battery status migrates back the electric current normal condition from the charging over-current state.
Wherein, the second charging current threshold value is less than the second discharging current threshold.
2nd, there is the transition condition of battery status migration in voltage parameter
1) when cell voltage is less than the first low pressure threshold and the duration is more than three Preset Times, battery status is from institute State voltage normal condition to migrate to the low-pressure state, and the cell voltage under the low-pressure state is in is more than the second low pressure During threshold value and when the duration is more than four Preset Times, battery status returns the voltage normal condition from the Low-pressure transfer.
Wherein, the second low pressure threshold is more than the first low pressure threshold.
2) when cell voltage is more than the first HVT high voltage threshold and the duration is more than five Preset Times, battery status is from institute State voltage normal condition to migrate to the high pressure conditions, and the cell voltage under the high pressure conditions are in is less than the second high pressure When threshold value and duration are more than six Preset Times, battery status migrates back the voltage normal condition from the high pressure.
Wherein, the second HVT high voltage threshold is less than the first HVT high voltage threshold.
3) cell voltage under in the high pressure conditions is more than the first overvoltage threshold and the duration is pre- more than the 7th If during the time, battery status is migrated to the overvoltage condition from the high pressure conditions, and the electricity under the overvoltage condition is in When cell voltage is more than eight Preset Times less than the second overvoltage threshold and duration, battery status is migrated from the overvoltage condition Return the high pressure conditions.
Wherein, the second overvoltage threshold is less than the first overvoltage threshold.
3rd, there is the transition condition of battery status migration in temperature parameter
1) when battery electrode column temperature is less than the first low temperature threshold and the duration is more than nine Preset Times, battery status Migrate to the low-temperature condition from the temperature normal condition, and the battery electrode column temperature under the low-temperature condition is in is more than During the second low temperature threshold and when the duration is more than ten Preset Times, battery status is migrating back the temperature just from the low temperature Normal state.
Wherein, the second low temperature threshold is more than the first low temperature threshold.
2) the battery electrode column temperature under in the low-temperature condition crosses low temperature threshold less than first and the duration is more than During 11 Preset Time, battery status is migrated to described from the low-temperature condition and crosses low-temperature condition, and when in described too low When battery electrode column temperature under temperature state spends low temperature threshold and duration and is more than 12 Preset Time more than second, battery shape State migrates back the low-temperature condition from the low-temperature condition of crossing.
Wherein, the second low temperature threshold excessively crosses low temperature threshold more than first.
3) when battery electrode column temperature is more than the first high temperature threshold value and the duration is more than 13 Preset Time, battery shape State is migrated to the condition of high temperature from the temperature normal condition, and the battery electrode column temperature under the condition of high temperature is in is little In the second high temperature threshold value and when the duration is more than 14 Preset Time, described in battery status migrate back from the condition of high temperature Temperature normal condition.
Wherein, the second high temperature threshold value is less than the first high temperature threshold value.
4) the battery electrode column temperature under in the condition of high temperature crosses high temperature threshold value more than first and the duration is more than During 15 Preset Time, battery status is migrated to described from the condition of high temperature and crosses the condition of high temperature, and when in described too high When battery electrode column temperature under temperature state spends high temperature threshold value and duration and is more than 16 Preset Time less than second, battery shape State migrates back the condition of high temperature from the condition of high temperature of crossing.
Wherein, the second high temperature threshold value excessively crosses high temperature threshold value less than first.
Wherein, testing result that the first to the 16th Preset Time can be detected according to battery capacity and to battery etc. come Specifically set, such as detected by the charging stage to battery and discharge regime, it is known that initially entered charging excessively stream State easily damages battery compared to electric discharge over-current state is initially entered, and so as to set the first threshold time as 2s, and sets The Second Threshold time is determined for 10s.
Step S13, the Stateflow of all battery status and transition condition as finite state machine using determined by State transition condition between the block of state of model and each block of state come set up for battery failures diagnosis Stateflow Model, and each block of state for the Stateflow models configures battery protection code module.
Wherein, the Main Function of battery protection code module is to carry out battery protection, so that the electricity under abnormality Normal condition is returned in pond state transition.Battery protection code module corresponding to the different conditions module of the Stateflow models Function it is different, such as charging over-current state, in corresponding battery protection code module charging overcurrent protection is related generally to Code, and for electric discharge over-current state, then relate generally to the overcurrent protection code that discharges.Here, it is right with regard to each block of state institute The battery protection code answered, refers to prior art and is worked out, and is not going to repeat.
The application of the development approach of the present embodiment is illustrated below by specific application example.
Application example one
Fig. 2 illustrates the Stateflow models for current parameters that the application example one is set up.
As shown in Fig. 2 the battery status that battery pack is set in the application example is made up of three states, i.e. CUR_DCHG_ The electric discharge over-current state of the corresponding battery pack that OC, CUR_NORMAL and CUR_CHG_OC are represented respectively, electric current normal condition and fill Electric over-current state.
When BMS just goes up electricity, initialized first, and into electric current normal condition (CUR_NORMAL), when migration bar Part S21 (e.g., discharge currents>100A and duration>When 2s) occurring, battery pack is from electric current normal condition (CUR_NORMAL) Under move under charging over-current state (CUR_CHG_OC), now (such as held according to the battery protection code module of charging excessively stream Row charge closing loop) battery pack is protected.When transition condition S22 (when e.g., charging current < 80A occurs) occurs, Battery pack is wired back under stream normal condition (CUR_NORMAL) by the over-current state that charges (CUR_CHG_OC) migration.
The conditional transfer of (CUR_DCHG_OC) and moving for charging over-current state (CUR_CHG_OC) under electric discharge over-current state Move similar, wherein transition condition S23 can be discharge current>500A and duration>10s, transition condition S24 can be electric discharge Electric current<450A, corresponding battery protection code module can perform closing discharge loop.
Application example two
Fig. 3 illustrates the Stateflow models for voltage parameter that the application example two is set up.
As shown in figure 3, the battery status that battery pack is set in the application example is made up of four states, i.e. VOLT_LV, The low-pressure state of the corresponding battery pack that VOLT_NORMAL, VOLT_HV and VOLT_OCV are represented respectively, voltage normal condition, high pressure State and overvoltage condition.
When BMS just goes up electricity, initialized first, and into voltage normal condition (VOLT_NORMAL), when migration bar Part S31 (e.g., cell ceiling voltages<2.90V, and duration>When 60s) occurring, battery pack is from voltage normal condition (VOLT_NORMAL) under low-pressure state (VOLT_LV) is moved under, now according to the battery protection code module of low-pressure state (such as starting lithium battery low voltage protection circuit) is protected to battery pack.When transition condition S32 (e.g., cell highests Voltage>3.10V and the duration>During 10s) occur when, battery pack by low-pressure state (VOLT_LV) migration wire back pressure normal condition (VOLT_NORMAL) under.
Conditional transfer under high pressure conditions (VOLT_HV) is similar with the migration of low-pressure state (VOLT_LV), wherein migrating Condition S33 can be cell ceiling voltage>3.60V and the duration>30s, transition condition S34 can be for cells most High voltage<3.40V and the duration>30s, corresponding battery protection code module can be electric to start lithium battery high voltage protection Road.
Conditional transfer under overvoltage condition (VOLT_OCV) is similar with the migration of high pressure conditions (VOLT_HV), wherein moving Shifting condition S35 can be cell ceiling voltage>3.90V and the duration>2s, transition condition S36 can be cell Ceiling voltage<3.50V and the duration>1s, corresponding battery protection code module can be startup lithium battery overvoltage protection Circuit.
Application example three
Fig. 4 illustrates the Stateflow models for temperature parameter that the application example three is set up.
As shown in figure 4, the battery status that battery pack is set in the application example is made up of four states, i.e. TEMP_OLT, Low-temperature condition, the low temperature shape excessively of the corresponding battery pack that TEMP_LT, TEMP_NORMAL, TEMP_HT and TEMP_OHT are represented respectively State, temperature normal condition, the condition of high temperature and the mistake condition of high temperature.
When BMS just goes up electricity, initialized first, and into temperature normal condition (TEMP_NORMAL), when migration bar Part S41 (e.g., pole mean temperatures<0 DEG C, and the duration>When 3s) occurring, battery pack is from temperature normal condition (TEMP_ NORMAL under low-temperature condition (TEMP_LT) is moved under), now (such as opened according to the battery protection code module of low-temperature condition Dynamic battery low-temperature protection mechanism) battery pack is protected.When transition condition S42 (e.g., pole mean temperatures>10 DEG C, and hold The continuous time>When 3s) occurring, battery pack is by under low-temperature condition (TEMP_LT) migration degree of rising again normal condition (TEMP_NORMAL).
In the bar for crossing low-temperature condition (TEMP_OLT), the condition of high temperature (TEMP_HT) and cross under the condition of high temperature (TEMP_OHT) Part migration is similar with the migration of low-temperature condition (TEMP_LT).
Wherein, transition condition S43 can be pole mean temperature<- 20 DEG C and duration>3s, transition condition S44 can be with For pole mean temperature<- 10 DEG C and duration>3s, corresponding battery protection code module can cross low temperature to start battery Protection mechanism, low-temperature condition (TEMP_LT) is migrated back with realization from low-temperature condition (TEMP_OLT) is crossed.
Wherein, transition condition S45 can be pole maximum temperature>35 DEG C and duration>3s, transition condition S46 can be with For pole mean temperature<30 DEG C and duration>3s, corresponding battery protection code module can be protected to start battery high-temperature Mechanism, to realize from the condition of high temperature (TEMP_HT) migration degree of rising again normal condition (TEMP_NORMAL).
Wherein, transition condition S47 can be pole maximum temperature>60 DEG C and duration>1s, transition condition S48 can be with For pole mean temperature<30 DEG C and duration>3s, corresponding battery protection code module can be protected to start battery high-temperature Mechanism, the condition of high temperature (TEMP_HT) is migrated back with realization from the condition of high temperature (TEMP_OHT) is crossed.
Further, because the battery under high temperature is more easy to be damaged relative to low temperature, so as to set to height in the application example The judgement of temperature state has precedence over the judgement to low-temperature condition.
Comprehensive three application examples, can further build the use for both any or three in electric current, voltage and temperature In the Stateflow models of the exploitation for realizing battery failures diagnostic program.
In addition, the Stateflow models of above-mentioned structure can be directly embedded into into Simulink simulation models, and imitative Genuine starting stage, Simulink can be converted into C language the logic figure of Stateflow models by compiler, so as to In the program of grafting to BMS.
In sum, the development approach of the battery failures diagnostic program of the present embodiment is using the figure based on Stateflow Forwarding method and Development of Modular thought are melted, programmed logic simple and clear, the Stateflow models of acquisition are easy to transplant and rise Level, and the test of Stateflow models can be carried out before BMS entirety software and hardwares are completed, shorten BMS software development cycles.
Based on the development approach identical invention thinking with above-mentioned battery failures diagnostic program, another embodiment of the present invention is also There is provided a kind of development device of battery failures diagnostic program, as shown in figure 5, the development device can include:Battery status is examined Module 51 is surveyed, for detecting battery parameter, and the battery status that each battery parameter has is determined;State transition determination module 52, for determining that each battery parameter occurs the transition condition of battery status migration;And Stateflow model building modules 53, for all battery status using determined by and transition condition as the Stateflow models of finite state machine shape State transition condition between morphotype block and each block of state and is setting up the Stateflow models for battery failures diagnosis Each block of state configuration battery protection code module of the Stateflow models.
The development device of the present embodiment is identical with the specific implementation details of the development approach of above-mentioned battery failures diagnostic program Or it is similar, and same beneficial effect can be obtained, therefore will not be described here.
Here, it will be appreciated that each square frame in each square frame of flow chart and/or block diagram and flow chart and/or block diagram Combination, can be realized by computer-readable program instructions.These computer-readable program instructions can be supplied to general-purpose computations A kind of processor of machine, special-purpose computer or other programmable data processing units, so as to produce machine so that these instructions In the computing device by computer or other programmable data processing units, flowchart and/or block diagram are generated In one or more square frames specified in function/action device.Can also be these computer-readable program instructions storages In a computer-readable storage medium, these instruct and cause computer, programmable data processing unit and/or other equipment with spy Determine mode to work, so as to the computer-readable medium of the instruction that is stored with then includes a manufacture, and it includes flowchart And/or the instruction of the various aspects of function/action specified in one or more square frames in block diagram.Can also can computer Reader instruction be loaded on computer, other programmable data processing units or miscellaneous equipment so that computer, other Series of operation steps is performed on programmable data processing unit or miscellaneous equipment, to produce computer implemented process, so as to So that the instruction flowchart performed on computer, other programmable data processing units or miscellaneous equipment and/or block diagram In one or more square frames specified in function/action.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the present invention, various letters can be carried out to technical scheme Monotropic type, these simple variants belong to protection scope of the present invention.
It is further to note that each particular technique feature described in above-mentioned specific embodiment, in not lance In the case of shield, can be combined by any suitable means.In order to avoid unnecessary repetition, the present invention to it is various can The combination of energy is no longer separately illustrated.
Additionally, can also be combined between a variety of embodiments of the present invention, as long as it is without prejudice to this The thought of invention, it should equally be considered as content disclosed in this invention.

Claims (10)

1. a kind of development approach of battery failures diagnostic program, it is characterised in that the development approach includes:
Detection battery parameter, and determine the battery status that each battery parameter has;
Determine that each battery parameter occurs the transition condition of battery status migration;And
The state mould of all battery status and transition condition as the Stateflow models of finite state machine using determined by State transition condition between block and each block of state come set up for battery failures diagnosis Stateflow models, and for this Each block of state configuration battery protection code module of Stateflow models.
2. development approach according to claim 1, it is characterised in that the detection battery parameter, and determine each battery The battery status that parameter has includes:
Detect electric current, voltage and/or the temperature of battery;
Wherein, the battery status that current parameters have at least includes electric discharge over-current state, electric current normal condition and charging excessively stream shape State;
Wherein, the battery status that voltage parameter has at least includes low-pressure state, voltage normal condition, high pressure conditions and over-pressed shape State;
Wherein, the battery status that temperature parameter has at least included low-temperature condition, low-temperature condition, temperature normal condition, high temperature State and the excessively condition of high temperature.
3., for current parameters, battery status there is and moves in development approach according to claim 2, it is characterised in that wherein The transition condition of shifting includes:
When discharge current is more than the first Preset Time more than the first discharging current threshold and duration, battery status is from described Electric current normal condition is migrated to the electric discharge over-current state, and the discharge current under the electric discharge over-current state is in is less than the During two discharging current thresholds, battery status migrates back the electric current normal condition from the electric discharge over-current state;And
When charging current is more than the second Preset Time more than the first charging current threshold value and duration, battery status is from described Electric current normal condition is migrated to the charging over-current state, and the charging current under the charging over-current state is in is less than the During two charging current threshold values, battery status migrates back the electric current normal condition from the charging over-current state.
4., for voltage parameter, battery status there is and moves in development approach according to claim 2, it is characterised in that wherein The transition condition of shifting includes:
When cell voltage is less than the first low pressure threshold and the duration is more than three Preset Times, battery status is from the voltage Normal condition is migrated to the low-pressure state, and when the cell voltage under in the low-pressure state is more than the second low pressure threshold And the duration be more than four Preset Times when, battery status from the Low-pressure transfer return the voltage normal condition;
When cell voltage is more than the first HVT high voltage threshold and the duration is more than five Preset Times, battery status is from the voltage Normal condition is migrated to the high pressure conditions, and the cell voltage under the high pressure conditions are in less than the second HVT high voltage threshold and When duration is more than six Preset Times, battery status migrates back the voltage normal condition from the high pressure;And
Cell voltage under in the high pressure conditions is more than the first overvoltage threshold and the duration is more than the 7th Preset Time When, battery status is migrated to the overvoltage condition from the high pressure conditions, and the cell voltage under the overvoltage condition is in Less than the second overvoltage threshold and when the duration is more than eight Preset Times, described in battery status migrate back from the overvoltage condition High pressure conditions.
5., for temperature parameter, battery status there is and moves in development approach according to claim 2, it is characterised in that wherein The transition condition of shifting includes:
When battery electrode column temperature is more than nine Preset Times less than the first low temperature threshold and duration, battery status is from described Temperature normal condition is migrated to the low-temperature condition, and the battery electrode column temperature under the low-temperature condition is in is low more than second During warm threshold value and when the duration is more than ten Preset Times, battery status migrates back the normal shape of the temperature from the low temperature State;
Battery electrode column temperature under in the low-temperature condition crosses low temperature threshold less than first and the duration is more than the 11st During Preset Time, battery status is migrated to the low-temperature condition excessively from the low-temperature condition, and when in the low-temperature condition excessively Under battery electrode column temperature when spending low temperature threshold and duration more than second and being more than 12 Preset Time, battery status is from institute State low-temperature condition and migrate back the low-temperature condition;
When battery electrode column temperature is more than the first high temperature threshold value and the duration is more than 13 Preset Time, battery status is from institute State temperature normal condition to migrate to the condition of high temperature, and the battery electrode column temperature under the condition of high temperature is in is less than second When high temperature threshold value and duration are more than 14 Preset Time, battery status is migrating back the temperature just from the condition of high temperature Normal state;And
Battery electrode column temperature under in the condition of high temperature crosses high temperature threshold value more than first and the duration is more than the 15th During Preset Time, battery status is migrated to the condition of high temperature excessively from the condition of high temperature, and when in the condition of high temperature excessively Under battery electrode column temperature when spending high temperature threshold value and duration less than second and being more than 16 Preset Time, battery status is from institute State the condition of high temperature and migrate back the condition of high temperature.
6. a kind of development device of battery failures diagnostic program, it is characterised in that the development device includes:
Battery status detection module, for detecting battery parameter, and determines the battery status that each battery parameter has;
State transition determination module, for determining that each battery parameter occurs the transition condition of battery status migration;And
Stateflow model building modules, for all battery status using determined by and transition condition as limited shape State transition condition between the block of state and each block of state of the Stateflow models of state machine is setting up for battery failures The Stateflow models of diagnosis, and each block of state for the Stateflow models configures battery protection code module.
7. development device according to claim 6, it is characterised in that the battery parameter includes electric current, the voltage of battery And/or temperature;
Wherein, the battery status that current parameters have at least includes electric discharge over-current state, electric current normal condition and charging excessively stream shape State;
Wherein, the battery status that voltage parameter has at least includes low-pressure state, voltage normal condition, high pressure conditions and over-pressed shape State;
Wherein, the battery status that temperature parameter has at least included low-temperature condition, low-temperature condition, temperature normal condition, high temperature State and the excessively condition of high temperature.
8. development device according to claim 7, it is characterised in that wherein, for current parameters, the state transition is sentenced The transition condition of the generation battery status migration that cover half block determines includes:
When discharge current is more than the first Preset Time more than the first discharging current threshold and duration, battery status is from described Electric current normal condition is migrated to the electric discharge over-current state, and the discharge current under the electric discharge over-current state is in is less than the During two discharging current thresholds, battery status migrates back the electric current normal condition from the electric discharge over-current state;And
When charging current is more than the second Preset Time more than the first charging current threshold value and duration, battery status is from described Electric current normal condition is migrated to the charging over-current state, and the charging current under the charging over-current state is in is less than the During two charging current threshold values, battery status migrates back the electric current normal condition from the charging over-current state.
9. development device according to claim 7, it is characterised in that wherein, for voltage parameter, the state transition is sentenced The transition condition of the generation battery status migration that cover half block determines includes:
When cell voltage is less than the first low pressure threshold and the duration is more than three Preset Times, battery status is from the voltage Normal condition is migrated to the low-pressure state, and when the cell voltage under in the low-pressure state is more than the second low pressure threshold And the duration be more than four Preset Times when, battery status from the Low-pressure transfer return the voltage normal condition;And
When cell voltage is more than the first HVT high voltage threshold and the duration is more than five Preset Times, battery status is from the voltage Normal condition is migrated to the high pressure conditions, and the cell voltage under the high pressure conditions are in less than the second HVT high voltage threshold and When duration is more than six Preset Times, battery status migrates back the voltage normal condition from the high pressure;
Cell voltage under in the high pressure conditions is more than the first overvoltage threshold and the duration is more than the 7th Preset Time When, battery status is migrated to the overvoltage condition from the high pressure conditions, and the cell voltage under the overvoltage condition is in Less than the second overvoltage threshold and when the duration is more than eight Preset Times, described in battery status migrate back from the overvoltage condition High pressure conditions.
10. development device according to claim 7, it is characterised in that wherein, for temperature parameter, the state transition The transition condition of the generation battery status migration that determination module determines includes:
When battery electrode column temperature is more than nine Preset Times less than the first low temperature threshold and duration, battery status is from described Temperature normal condition is migrated to the low-temperature condition, and the battery electrode column temperature under the low-temperature condition is in is low more than second During warm threshold value and when the duration is more than ten Preset Times, battery status migrates back the normal shape of the temperature from the low temperature State;
Battery electrode column temperature under in the low-temperature condition crosses low temperature threshold less than first and the duration is more than the 11st During Preset Time, battery status is migrated to the low-temperature condition excessively from the low-temperature condition, and when in the low-temperature condition excessively Under battery electrode column temperature when spending low temperature threshold and duration more than second and being more than 12 Preset Time, battery status is from institute State low-temperature condition and migrate back the low-temperature condition;
When battery electrode column temperature is more than the first high temperature threshold value and the duration is more than 13 Preset Time, battery status is from institute State temperature normal condition to migrate to the condition of high temperature, and the battery electrode column temperature under the condition of high temperature is in is less than second When high temperature threshold value and duration are more than 14 Preset Time, battery status is migrating back the temperature just from the condition of high temperature Normal state;And
Battery electrode column temperature under in the condition of high temperature crosses high temperature threshold value more than first and the duration is more than the 15th During Preset Time, battery status is migrated to the condition of high temperature excessively from the condition of high temperature, and when in the condition of high temperature excessively Under battery electrode column temperature when spending high temperature threshold value and duration less than second and being more than 16 Preset Time, battery status is from institute State the condition of high temperature and migrate back the condition of high temperature.
CN201611010879.3A 2016-11-16 2016-11-16 Development method and development device of battery fault diagnostic program CN106648616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611010879.3A CN106648616A (en) 2016-11-16 2016-11-16 Development method and development device of battery fault diagnostic program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611010879.3A CN106648616A (en) 2016-11-16 2016-11-16 Development method and development device of battery fault diagnostic program

Publications (1)

Publication Number Publication Date
CN106648616A true CN106648616A (en) 2017-05-10

Family

ID=58807203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611010879.3A CN106648616A (en) 2016-11-16 2016-11-16 Development method and development device of battery fault diagnostic program

Country Status (1)

Country Link
CN (1) CN106648616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108896928A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery core, battery and the aircraft of remaining battery time
CN109738720A (en) * 2018-12-20 2019-05-10 国网北京市电力公司 The method for determining running state and device of charging pile

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166261A (en) * 2011-12-14 2013-06-19 杭州市电力局 Control method and device for achieving equalizing charge of battery pack and battery box
CN104297691A (en) * 2014-09-29 2015-01-21 上海吉能电源系统有限公司 Battery pack health status diagnostic system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166261A (en) * 2011-12-14 2013-06-19 杭州市电力局 Control method and device for achieving equalizing charge of battery pack and battery box
CN104297691A (en) * 2014-09-29 2015-01-21 上海吉能电源系统有限公司 Battery pack health status diagnostic system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李海波: ""混合动力客车动力总成故障诊断与容错研究"", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108896928A (en) * 2018-07-20 2018-11-27 深圳市道通智能航空技术有限公司 Evaluation method, device, battery core, battery and the aircraft of remaining battery time
CN108896928B (en) * 2018-07-20 2020-12-08 深圳市道通智能航空技术有限公司 Estimation method and device of battery remaining time, battery cell, battery and aircraft
CN109738720A (en) * 2018-12-20 2019-05-10 国网北京市电力公司 The method for determining running state and device of charging pile

Similar Documents

Publication Publication Date Title
Fernández et al. Capacity fade and aging models for electric batteries and optimal charging strategy for electric vehicles
US10680447B2 (en) Charge equalization apparatus for a battery string
US9685807B2 (en) Battery control device
JP5739788B2 (en) Charging / discharging planning system and charging / discharging planning method
CN104142477B (en) The battery condition estimator of solid-state concentration models coupling experience equivalent-circuit model
CN101312293B (en) Power lithium battery intelligent management system
CN101687465B (en) Vehicle power supply device and method for estimating charge state of accumulator in on-vehicle power supply device
CN102473878B (en) Battery system
Weigert et al. State-of-charge prediction of batteries and battery–supercapacitor hybrids using artificial neural networks
KR101925491B1 (en) Construction machinery and battery pack therefor
KR101293635B1 (en) Apparatus and method for managing battery pack based on retrogression degree of secondary electric cell and battery pack using it
CN105449740B (en) A kind of energy-storage lithium battery active equalization control system and control method
US8106632B2 (en) Method for managing a bank of rechargeable batteries using the coup de fouet effect on charging
Singh et al. Design and implementation of a fuzzy logic-based state-of-charge meter for Li-ion batteries used in portable defibrillators
CN102289535B (en) Spacecraft power system energy analysis simulation platform
CN105866695B (en) Detection method, battery management system and the battery system of rechargeable battery analysis lithium
Castano et al. Dynamical modeling procedure of a Li-ion battery pack suitable for real-time applications
JP6430555B2 (en) Maintenance method for battery packs for electric vehicles
JP5743857B2 (en) Method and apparatus for simulating a battery in real time
Lujano-Rojas et al. Operating conditions of lead-acid batteries in the optimization of hybrid energy systems and microgrids
CN103023111B (en) A kind of method and system for balancing battery group
De et al. Model-based simultaneous optimization of multiple design parameters for lithium-ion batteries for maximization of energy density
JP4038788B2 (en) Battery remaining capacity determination method and apparatus
CN102169167B (en) Device and method for detecting calculation accuracy of state of charge (SOC) of battery pack
CN103675707A (en) Method for evaluating lithium ion battery peak power online

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication