A kind of battery temperature detection control method and system thereof
Technical field
The present invention relates to field of batteries, particularly relate to a kind of battery temperature detection control method and system thereof.
Background technology
Battery temperature is an amount highly paid close attention to, in the prior art, all use as shown in Figure 1 circuit to obtain battery temperature.First voltage V is confessed by power management chipREF, then by reading RS1With RS2The voltage V of junctionTHM, just can calculate the thermo-sensitive resistor R of inside batteryTHMResistance, thus according to RTHMResistance draws battery temperature with the corresponding relation of temperature.Wherein, RTHMComputing formula as follows:
When using above method to obtain battery temperature, there is a defect: need to keep VREFAlways on, like this, have electric current through RS1、RS2、RTHMCause the waste of energy.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, it is provided that a kind of battery temperature detection control method and system thereof, it is intended to solves to carry out in prior art needing output voltage always during battery temperature detection, causes the defect of waste of energy.
It is as follows that the present invention solves the technical scheme that technical problem used:
A kind of battery temperature detection control method, wherein, including:
A, it is provided for judging the first temperature range that whether battery Current Temperatures needs to be used for quickly detecting the most on mobile terminals and whether needs the second temperature range slowly detected, and first interval time corresponding with temperature value in described first temperature range and second interval time corresponding with temperature value in described second temperature range are set;
B, when battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage;
C, in described current battery temperature is in described first temperature range, then after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again.
Described battery temperature detection control method, wherein, described first temperature range is-22 DEG C ~-18 DEG C ,-2 DEG C ~ 2 DEG C, 48 DEG C ~ 52 DEG C and 58 DEG C ~ 62 DEG C, and described second temperature range is the supplementary set of described first temperature range.
Described battery temperature detection control method, wherein, described first interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described first temperature range;Described second interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described second temperature range;Described first interval time is less than described second interval time.
Described battery temperature detection control method, wherein, described first interval time is 30 seconds, and described second interval time is 100 seconds.
Described battery temperature detection control method, wherein, described step C specifically includes:
C1, in described current battery temperature is in described first temperature range, within described first interval time, battery stops exporting described reference voltage, and after terminating described first interval time, battery exports described reference voltage again, and returns execution step B;
C2, in described current battery temperature is in described second temperature range, within described second interval time, battery stops exporting described reference voltage, and after terminating described second interval time, battery exports described reference voltage again, and returns execution step B.
A kind of battery temperature detecting and controlling system, wherein, including:
Module is set, for being provided for judging the first temperature range that whether battery Current Temperatures needs to be used for quickly detecting the most on mobile terminals and whether needing the second temperature range slowly detected, and first interval time corresponding with temperature value in described first temperature range and second interval time corresponding with temperature value in described second temperature range are set;
Obtain judge module, for when battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage;
Control module, in described current battery temperature is in described first temperature range, then, after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again.
Described battery temperature detecting and controlling system, wherein, described first temperature range is-22 DEG C ~-18 DEG C ,-2 DEG C ~ 2 DEG C, 48 DEG C ~ 52 DEG C and 58 DEG C ~ 62 DEG C, and described second temperature range is the supplementary set of described first temperature range.
Described battery temperature detecting and controlling system, wherein, described first interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described first temperature range;Described second interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described second temperature range;Described first interval time is less than described second interval time.
Described battery temperature detecting and controlling system, wherein, described first interval time is 30 seconds, and described second interval time is 100 seconds.
Described battery temperature detecting and controlling system, wherein, described control module specifically includes:
First control unit, in being in described first temperature range when described current battery temperature, within described first interval time, battery stops exporting described reference voltage, and after terminating described first interval time, battery exports described reference voltage again, and starts described acquisition judge module;
Second control unit, in being in described second temperature range when described current battery temperature, within described second interval time, battery stops exporting described reference voltage, and after terminating described second interval time, battery exports described reference voltage again, and starts described acquisition judge module.
The invention discloses a kind of battery temperature detection control method and system thereof, pre-set the first temperature range, the second temperature range, the first interval time and the second interval time;When battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage;In described current battery temperature is in described first temperature range, then, after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again.In the present invention, battery is with the cycle output reference voltage set, and obtains current battery temperature according to it, it is not necessary to export in real time described reference voltage, it is to avoid the waste of battery power, thus effectively extends service time of battery.
Accompanying drawing explanation
Fig. 1 is the circuit diagram that in prior art, battery temperature obtains circuit.
Fig. 2 is the flow chart of the preferred embodiment of battery temperature of the present invention detection control method.
Fig. 3 is to control, in battery temperature of the present invention detection control method, the particular flow sheet that reference voltage exports again.
Fig. 4 is the structured flowchart of the preferred embodiment of battery temperature detecting and controlling system of the present invention.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to the flow chart that Fig. 2, Fig. 2 are battery temperature of the present invention detection control method preferred embodiments.As in figure 2 it is shown, described battery temperature detection control method, comprise the following steps:
Step S100, it is provided for judging the first temperature range that whether battery Current Temperatures needs to be used for quickly detecting the most on mobile terminals and whether needs the second temperature range slowly detected, and first interval time corresponding with temperature value in described first temperature range and second interval time corresponding with temperature value in described second temperature range are set.
In the present embodiment, pre-set in the terminal and be provided for the most on mobile terminals judging whether battery Current Temperatures needs the first temperature range M being used for quickly detecting, and be provided for judging whether battery Current Temperatures needs the second temperature range N slowly detected simultaneously.Complete said temperature interval arrange after, also need to arrange when judging that current battery temperature is in the first temperature range M, battery stopping output reference voltage first interval time section T1;And when judging that current battery temperature is in the second temperature range N, battery stop output reference voltage first interval time section T2;Wherein, T1And T2The setting that before dispatching from the factory for mobile terminal, manufacturer is carried out.
Wherein, described first interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described first temperature range;Described second interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described second temperature range;Described first interval time is less than described second interval time.
Step S200, when battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage.
In the present embodiment, obtain battery temperature, when battery inputs a reference voltage V when using circuit as shown in Figure 1REFTime, it is used for obtaining resistance RS1And RS2Between the voltage V of nodeTHM, and the critesistor R of inside battery is calculated according to formula (1)THMResistance:
(1)
By the critesistor R obtaining inside battery of formula (1)THMResistance after, current battery temperature can be obtained according to the corresponding relation of critesistor resistance Yu temperature.After obtaining described current battery temperature, it is judged that described current battery temperature is in described second temperature range N in being in described first temperature range M, and stops exporting described reference voltage VREF.Due to when obtaining after battery Current Temperatures without continuing to put out reference voltage VREF, and it is off output reference voltage VREF, and again export V after waiting the time of a settingREF.Battery temperature as shown in Figure 1 obtain circuit and be not the moment all in power consumption, therefore the most less waste of battery power, effectively extend service time of battery.
Step S300, in described current battery temperature is in described first temperature range, then after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again.
I.e. when judging that described current battery temperature is in described first temperature range M, then described first interval time T1After end, battery exports described reference voltage V againREF;In described current battery temperature is in described second temperature range N, then described second interval time T2After end, battery exports described reference voltage V againREF。
Further carrying out example, in described step S100, set described first temperature range as-22 DEG C ~-18 DEG C ,-2 DEG C ~ 2 DEG C, 48 DEG C ~ 52 DEG C and 58 DEG C ~ 62 DEG C, described second temperature range is the supplementary set of described first temperature range.
There are four key point temperature in the terminal, it is respectively-20 DEG C, 0 DEG C, 50 DEG C, 60 DEG C, the most corresponding low temperature shutoff temperature of above-mentioned 4 temperature, low temperature stop charging temperature, high temperature stops charging temperature and high temperature shutoff temperature, therefore when arranging the first temperature range, centered by above-mentioned 4 temperature the most respectively float 2 DEG C as the first temperature range M, i.e. M ∈ [-22,-18] ∪ [-2,2] ∪ [48,52] ∪ [58,62];When being in M by battery temperature acquisition circuit current battery temperature as shown in Figure 1, then need to improve the detection frequency of temperature, it is to avoid omit the detection to key point temperature, such as-20 DEG C, 0 DEG C, 50 DEG C and 60 DEG C.When being embodied as, when detecting that current battery temperature is in the first temperature range, correspondence sends prompting too high or too low for temperature.
When setting after described first temperature range M, then it is the second temperature range N with the supplementary set of M.When being in N by battery temperature acquisition circuit current battery temperature as shown in Figure 1, then without improving the detection frequency of temperature, keep original detection frequency detecting set.
When being embodied as, can arrange described first interval time is 30 seconds, and described second interval time is 100 seconds.Due to when current battery temperature is near low temperature shutoff temperature, low temperature stopping charging temperature, high temperature stopping charging temperature and high temperature shutoff temperature, the detection frequency of temperature need to be improved, therefore set first interval time of 30 seconds, can effectively prevent from omitting the detection to key point temperature;The optimal spacing time that wherein simply many experiments obtained in 30 seconds, it is arranged between tens seconds to tens seconds described first interval time and can meet actual requirement.Equally, the optimal spacing time being also many experiments and obtaining for 100 seconds of described second interval time is set.When setting described first interval time and described second interval time, also need to ensure that described first interval time is less than described second interval time.
Further carry out example, as it is shown on figure 3, the idiographic flow that in described step S300, control reference voltage exports again includes:
Step S301, in described current battery temperature is in described first temperature range, within described first interval time, battery stops exporting described reference voltage, and after terminating described first interval time, battery exports described reference voltage again, and returns execution step S200;
Step S302, in described current battery temperature is in described second temperature range, within described second interval time, battery stops exporting described reference voltage, and after terminating described second interval time, battery exports described reference voltage again, and returns execution step S200.
In step S301 with step S302, reference voltage VREFBeing all the output of discontinuity, the most above-mentioned periodic interruptions exports so that the resistance R in circuit as shown in Figure 1S1And RS2It is not the moment all to consume electric energy.
Visible, in the present invention, battery is with the cycle output reference voltage set, and obtains current battery temperature according to it, it is not necessary to export in real time described reference voltage, it is to avoid the waste of battery power, thus effectively extends service time of battery.
Based on above-described embodiment, as shown in Figure 4, present invention also offers a kind of battery temperature detecting and controlling system, including:
Module 100 is set, for being provided for judging the first temperature range that whether battery Current Temperatures needs to be used for quickly detecting the most on mobile terminals and whether needing the second temperature range slowly detected, and first interval time corresponding with temperature value in described first temperature range and second interval time corresponding with temperature value in described second temperature range are set;As detailed above.
Obtain judge module 200, for when battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage;As detailed above.
Control module 300, in described current battery temperature is in described first temperature range, then, after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again;As detailed above.
Further carrying out example, in described battery temperature detecting and controlling system, described first temperature range is-22 DEG C ~-18 DEG C ,-2 DEG C ~ 2 DEG C, 48 DEG C ~ 52 DEG C and 58 DEG C ~ 62 DEG C, and described second temperature range is the supplementary set of described first temperature range;As detailed above.
Further carrying out example, in described battery temperature detecting and controlling system, described first interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described first temperature range;Described second interval time is that battery exports the time interval of described reference voltage again after judging that described current battery temperature is in described second temperature range;Described first interval time is less than described second interval time;As detailed above.
Further carrying out example, in described battery temperature detecting and controlling system, described first interval time is 30 seconds, and described second interval time is 100 seconds;As detailed above.
Further carrying out example, described control module 300 specifically includes:
First control unit, in being in described first temperature range when described current battery temperature, within described first interval time, battery stops exporting described reference voltage, and after terminating described first interval time, battery exports described reference voltage again, and starts described acquisition judge module;As detailed above.
Second control unit, in being in described second temperature range when described current battery temperature, within described second interval time, battery stops exporting described reference voltage, and after terminating described second interval time, battery exports described reference voltage again, and starts described acquisition judge module;As detailed above.
In sum, the invention discloses a kind of battery temperature detection control method and system thereof, pre-set the first temperature range, the second temperature range, the first interval time and the second interval time;When battery exports a reference voltage, obtain current battery temperature, it is judged that described current battery temperature is in described second temperature range in being in described first temperature range, and stops exporting described reference voltage;In described current battery temperature is in described first temperature range, then, after terminating described first interval time, battery exports described reference voltage again;In described current battery temperature is in described second temperature range, then, after terminating described second interval time, battery exports described reference voltage again.In the present invention, battery is with the cycle output reference voltage set, and obtains current battery temperature according to it, it is not necessary to export in real time described reference voltage, it is to avoid the waste of battery power, thus effectively extends service time of battery.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, all these modifications and variations all should belong to the protection domain of claims of the present invention.