Summary of the invention
Technical problem to be solved by this invention be to provide a kind of battery management method based on electric motor car andSystem.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of battery management based on electric motor carMethod, described method comprises:
Step S1, initialization system clock, input IO, output IO, SPI communicate by letter, Uart communicates by letter,AD interface;
Step S2, is configured analog acquisition front-end A FE by serial peripheral equipment interface SPI;
Step S3, read each battery pack power on estimation voltage, power on estimation electric current, estimated temperature powers onWith the estimation electric weight that powers on;
Step S4, the estimation voltage that powers on described in judgement, described in power on estimation electric current, described in the estimation temperature that powers onDegree and described in power on estimation electric weight whether in default threshold range;
Step S5, if in described default threshold range, timing acquiring power brick data, according toDescribed power brick data are carried out equilibrium control, battery protection control and are calculated battery dump energy;
Step S6, if in described default threshold range, according to the electricity of described power brick dataPond malfunction sends corresponding control signal to metal-oxide-semiconductor.
The invention has the beneficial effects as follows: by judgement power on estimation voltage, power on estimation electric current, power on and estimateCalculate temperature and power on estimation electric weight whether in default threshold range, if, timing acquiring batteryBag data, carry out equilibrium control, battery protection control and calculate battery dump energy according to power brick data,If do not existed, send corresponding control signal according to the battery fault condition of power brick data to metal-oxide-semiconductor,Thereby detect in real time power brick data, also battery pack is carried out to heat management, balanced management, insulation tube simultaneouslyReason, and estimating remaining capacity of battery, and by malfunction self-inspection management of charging and discharging, failure warning information,In real time and Full Vehicle System communication interaction real-time status.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described power brick data comprise electric current and each Battery pack voltage, and described step S5 comprises:
Described electric current is carried out to filtering and obtains the electric current of filtering;
The electric current that the judges described filtering estimation electric weight that powers on described in being whether;
The estimation electric weight if the electric current of described filtering powers on described in being, will described in the estimation electric weight conduct that powers onCurrent battery dump energy;
The estimation electric weight if the electric current of described filtering powers on described in not being, carries out the electric current of described filteringCurrent integration obtains the first battery dump energy;
From described each Battery pack voltage, choose minimum single Battery pack voltage;
The corresponding simulation of single described minimum Battery pack voltage OCV model is obtained to the second battery dump energy;
Described the first battery dump energy and described the second battery dump energy are obtained by Kalman filteringTo described current battery dump energy.
Further, described step S5 also comprises:
Judge that whether described power brick data are in charged state;
If described power brick data are in charged state, from each Battery pack electricity of described power brick dataIn pressure, obtain maximum single Battery pack voltage and minimum single Battery pack voltage;
Judge whether the single Battery pack voltage of described maximum reaches equalizing voltage;
If the single Battery pack voltage of described maximum reaches described equalizing voltage, travel through described each Battery pack electricityPress, and described each Battery pack voltage is compared with the single Battery pack voltage of described minimum respectively;
From described each Battery pack voltage, choose with the voltage difference minimum of the single Battery pack voltage of described minimumCell voltage, and the equilibrium of opening this Battery pack voltage.
Further, described step S6 comprises:
Judge that whether described power brick data are in described battery fault condition;
If described power brick data are in described battery fault condition, according to described battery fault conditionSend to described metal-oxide-semiconductor the control signal that described battery fault condition is corresponding.
Further, described battery fault condition comprise the state of overcharging, cross put state, charging over-current state,Electric discharge over-current state, charging over-temperature condition, electric discharge over-temperature condition, charging low-temperature condition, discharge low-temperature shapeState, battery pack open-circuit condition and battery pack short-circuit condition.
Another technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of battery based on electric motor carManagement system, comprising:
Analog acquisition front-end A FE unit, for gathering each Battery pack voltage;
Temperature collecting cell, for collecting temperature;
Total voltage unit, for gathering total voltage;
Current acquisition unit, for gathering electric current;
Main control unit, for according to described each Battery pack voltage, described electric current, described total voltage and instituteState temperature and carry out equilibrium control, battery protection control and calculate battery dump energy, and send out to metal-oxide-semiconductorSend corresponding control signal;
Metal-oxide-semiconductor, for carrying out corresponding operation according to corresponding control signal.
Further, described main control unit comprises:
Described electric current is carried out to filtering and obtains the electric current of filtering;
The electric current that the judges described filtering estimation electric weight that powers on described in being whether;
The estimation electric weight if the electric current of described filtering powers on described in being, will described in the estimation electric weight conduct that powers onCurrent battery dump energy;
The estimation electric weight if the electric current of described filtering powers on described in not being, carries out the electric current of described filteringCurrent integration obtains the first battery dump energy;
From described each Battery pack voltage, choose minimum single Battery pack voltage;
The corresponding simulation of single described minimum Battery pack voltage OCV model is obtained to the second battery dump energy;
Described the first battery dump energy and described the second battery dump energy are obtained by Kalman filteringTo described current battery dump energy.
Further, described main control unit also comprises:
Judge that whether described power brick data are in charged state;
If described power brick data are in charged state, from each Battery pack electricity of described power brick dataIn pressure, obtain maximum single Battery pack voltage and minimum single Battery pack voltage;
Judge whether the single Battery pack voltage of described maximum reaches equalizing voltage;
If the single Battery pack voltage of described maximum reaches described equalizing voltage, travel through described each Battery pack electricityPress, and described each Battery pack voltage is compared with the single Battery pack voltage of described minimum respectively;
From described each Battery pack voltage, choose with the voltage difference minimum of the single Battery pack voltage of described minimumCell voltage, and the equilibrium of opening this Battery pack voltage.
Further, described main control unit also comprises:
Judge that whether described power brick data are in described battery fault condition;
If described power brick data are in described battery fault condition, according to described battery fault conditionSend to described metal-oxide-semiconductor the control signal that described battery fault condition is corresponding.
Further, described battery fault condition comprise the state of overcharging, cross put state, charging over-current state,Electric discharge over-current state, charging over-temperature condition, electric discharge over-temperature condition, charging low-temperature condition, discharge low-temperature shapeState, battery pack open-circuit condition and battery pack short-circuit condition.
Detailed description of the invention
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example is only for explaining thisInvention, is not intended to limit scope of the present invention.
A kind of battery management method flow chart based on electric motor car that Fig. 1 provides for the embodiment of the present invention.
With reference to Fig. 1, step S1, initialization system clock, input IO, output IO, SPI communication, UartCommunication, AD interface.
Step S2 is right by Serial Peripheral Interface (SPI) (SerialPeripheralInterface, SPI)Analog acquisition front-end A FE is configured.
Here, analog acquisition front end, gathers every Battery pack voltage and monitoring battery and overcharges/cross and put, equilibriumSwitch.
Step S3, read each battery pack power on estimation voltage, power on estimation electric current, estimated temperature powers onWith the estimation electric weight that powers on.
Step S4, the estimation voltage that powers on described in judgement, described in power on estimation electric current, described in the estimation temperature that powers onDegree and described in power on estimation electric weight whether in default threshold range, if at described default threshold value modelIn enclosing, perform step S5; If not in default threshold range, perform step S6.
Step S5, timing acquiring power brick data, carry out equilibrium control, electricity according to described power brick dataBattery dump energy is controlled and is calculated in pond protection.
Here, can also judge according to power brick data overcharge, cross put, overcurrent, temperature.
Step S6, sends corresponding control according to the battery fault condition of described power brick data to metal-oxide-semiconductorSignal.
Step S7, battery management system carries out data interaction by power brick data by 485 interfaces and the external worldReal-time status feed back to car load master control system.
As the refinement to implementation shown in Fig. 1, another embodiment of the present invention also provides a kind of meterCalculate battery dump energy method. Wherein, power brick data comprise electric current and each Battery pack voltage, concrete,As shown in Figure 2, the method comprises:
Step S21, the electric current that described electric current is carried out to filtering and obtains filtering.
Step S22, judges whether the electric current of filtering is the estimation electric weight that powers on, if the electric current of filtering is upperElectricity estimation electric weight, performs step S23; The estimation electric weight if the electric current of described filtering powers on described in not being,Perform step S24.
Step S23, the estimation electric weight that will power on is as current battery dump energy.
Step S24, carries out current integration by the electric current of filtering and obtains the first battery dump energy.
Step S25 chooses minimum single Battery pack voltage from described each Battery pack voltage.
Step S26, obtains the second battery by the corresponding simulation of single described minimum Battery pack voltage OCV model surplusRemaining electric weight.
Here, simulation OCV model is the curve of the corresponding electric weight of voltage, and namely each voltage is corresponding respectivelyDifferent electric weight, thus form curve.
Step S27, passes through Ka Er by described the first battery dump energy and described the second battery dump energyGraceful filtering obtains described current battery dump energy.
As the refinement to implementation shown in Fig. 1, it is a kind of equal that another embodiment of the present invention also providesWeighing apparatus control method flow chart. Concrete, as shown in Figure 3, the method comprises:
Step S31, judges that whether described power brick data are in charged state, if described power brick numberAccording in charged state, perform step S32;
Step S32 obtains maximum single Battery pack voltage from each Battery pack voltage of described power brick dataWith minimum list Battery pack voltage.
Step S33, judges whether the single Battery pack voltage of described maximum reaches equalizing voltage, if describedLarge single Battery pack voltage reaches described equalizing voltage, performs step S34; If maximum single Battery pack electricityPress and do not reach equalizing voltage, close equilibrium.
Step S34, travels through described each Battery pack voltage, and by described each Battery pack voltage respectively with describedMinimum single Battery pack voltage compares.
Step S35 chooses the voltage with the single Battery pack voltage of described minimum from described each Battery pack voltagePoor minimum cell voltage, and the equilibrium of opening this Battery pack voltage.
As the refinement to implementation shown in Fig. 1, another embodiment of the present invention also provides a kind of MOSPipe is carried out corresponding operating method flow chart, and concrete, as shown in Figure 4, the method comprises:
Step S41, judges that whether described power brick data are in described battery fault condition; If described inPower brick data, in described battery fault condition, perform step S42.
Step S42, sends described battery fault condition according to described battery fault condition to described metal-oxide-semiconductorCorresponding control signal.
In the present embodiment, described battery fault condition comprises that the state of overcharging, mistake are put state, overcurrent shape chargesState, the over-current state that discharges, the over-temperature condition of charging, the over-temperature condition of discharging, the low-temperature condition that charges, discharge lowTemperature state, battery pack open-circuit condition and battery pack short-circuit condition.
A kind of battery management system schematic diagram based on electric motor car that Fig. 5 provides for the embodiment of the present inventionFigure.
With reference to Fig. 5, battery management system has following functions:
Charging and discharging is with a mouthful I/O, and what while guaranteeing to be recovered at any time brake, motor brought is reverseElectric current is also simplified large current interface, and charge/discharge is controlled and made when discharge prevention (charge protection) separatelyThe integrality of (electric discharge) guarantee system of can also charging.
Single group/total battery voltage detection, power brick total voltage, single group voltage detect in real time, accuracy of detection≤0.5%
Power brick charging and discharging currents detects, and detects in real time charge/discharge state and the electric current of power brick, electricityStream precision≤1%.
Over-charging of battery protection, every Battery pack voltage in Real-Time Monitoring battery charging process, bonding Battery packCharging voltage is no more than the overcharged voltage value of setting.
Battery Cross prevention, every Battery pack voltage in Real-Time Monitoring battery discharge procedure, bonding Battery packDischarge voltage is no more than the overdischarge pressure value of setting.
Charging overcurrent protection, restriction, to the maximum current of power brick charging, prevents that charging from exceeding battery core and absorbingAbility causes thermal runaway generation security incident.
Electric discharge overcurrent protection, the maximum current of restriction power brick electric discharge, prevents that electric discharge from exceeding the load of battery coreAbility, affects service life of power brick.
Short-circuit protection, in the time of power brick generation external short circuit, cut-off current output in time, prevents thing in timeTherefore generation
Battery balanced, in charging process, adjust single battery charging current mode by certain algorithm,In guarantee system the battery terminal voltage of all batteries each time be carved with good uniformity.
Temperature protection, detects power brick internal temperature in real time, ensures that power brick is operated in the safe work of settingMake temperature range, and participate in battery dump energy calculating.
Precharging circuit and control, precharging circuit is the controllable sub-loop that is connected in parallel on discharge control loop,Be mainly used in preventing connector electric arc when first connection has large capacitive load.
Battery dump energy calculates by being based upon V-SOC, the capacity under different discharge-rate different temperaturesModels coupling electric quantity integration Kalman estimates the current state-of-charge of acquisition, old and feeble situation, cycle-index; LogicalCross current charging current and SOC and estimate that expectation is full of the electricity time.
Burn out detection, the connection of detection battery pack and battery management system, if there is certain Battery pack lineBecome flexible or come off, forbidding that power brick continues charge/discharge, and provide fault message.
485 interfaces, by 485 interfaces and Full Vehicle System real-time Communication for Power, car load control centre is understood in real timeThe state of battery ensures the safe and reliable work of car load; By 485 interface capable of regulating BMS inner parameters and moreNew firmware.
Park mode, enters park mode without communication, static condition or guard mode, communicates by letter, fills/putElectricity and regularly exit dormancy.
Particularly, this system comprises analog acquisition front-end A FE unit 10, temperature collecting cell 20, totalVoltage cell 30, current acquisition unit 40, main control unit 50, metal-oxide-semiconductor 60 and 485 interfaces 70.
Analog acquisition front-end A FE unit 10, for gathering each Battery pack voltage;
Temperature collecting cell 20, for collecting temperature;
Total voltage unit 30, for gathering total voltage;
Current acquisition unit 40, for gathering electric current;
Main control unit 50, for according to described each Battery pack voltage, described electric current, described total voltage andDescribed temperature is carried out equilibrium control, battery protection control and is calculated battery dump energy, and to metal-oxide-semiconductorSend corresponding control signal;
Metal-oxide-semiconductor 60, for carrying out corresponding operation according to corresponding control signal.
Here, 485 interfaces 70 can be in real time and Full Vehicle System communicate alternately. Charger accesses/putsElectricity/communications triggered signal is also connected with main control unit 50.
In the present embodiment, described main control unit 50 comprises:
Described electric current is carried out to filtering and obtains the electric current of filtering;
The electric current that the judges described filtering estimation electric weight that powers on described in being whether;
The estimation electric weight if the electric current of described filtering powers on described in being, will described in the estimation electric weight conduct that powers onCurrent battery dump energy;
The estimation electric weight if the electric current of described filtering powers on described in not being, carries out the electric current of described filteringCurrent integration obtains the first battery dump energy;
From described each Battery pack voltage, choose minimum single Battery pack voltage;
The corresponding simulation of single described minimum Battery pack voltage OCV model is obtained to the second battery dump energy;
Described the first battery dump energy and described the second battery dump energy are obtained by Kalman filteringTo described current battery dump energy.
In the present embodiment, described main control unit 50 also comprises:
Judge that whether described power brick data are in charged state;
If described power brick data are in charged state, from each Battery pack electricity of described power brick dataIn pressure, obtain maximum single Battery pack voltage and minimum single Battery pack voltage;
Judge whether the single Battery pack voltage of described maximum reaches equalizing voltage;
If the single Battery pack voltage of described maximum reaches described equalizing voltage, travel through described each Battery pack electricityPress, and described each Battery pack voltage is compared with the single Battery pack voltage of described minimum respectively;
From described each Battery pack voltage, choose with the voltage difference minimum of the single Battery pack voltage of described minimumCell voltage, and the equilibrium of opening this Battery pack voltage.
In the present embodiment, described main control unit 50 also comprises:
Judge that whether described power brick data are in described battery fault condition;
If described power brick data are in described battery fault condition, according to described battery fault conditionSend to described metal-oxide-semiconductor the control signal that described battery fault condition is corresponding.
In the present embodiment, described battery fault condition comprises that the state of overcharging, mistake are put state, overcurrent shape chargesState, the over-current state that discharges, the over-temperature condition of charging, the over-temperature condition of discharging, the low-temperature condition that charges, discharge lowTemperature state, battery pack open-circuit condition and battery pack short-circuit condition.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, not all in the present inventionSpirit and principle within, any amendment of doing, be equal to replacement, improvement etc., all should be included in thisWithin bright protection domain.