A kind of charge protection method and device
Technical field
The present embodiments relate to a kind of intelligent terminal technology more particularly to a kind of charge protection methods and device.
Background technique
With terminal device enters the intelligent epoch, at necessity for people's lives after, people continue a journey for terminal device
Requirement it is higher and higher.Unfortunately, lithium battery technology has been in bottleneck stage at present, is difficult to have in the section time big
Breakthrough, in daily life, user be unable to do without terminal device all the time, wishes terminal after terminal device electricity exhausts
Electricity can be full of by equipment as early as possible, therefore fast charge technology occur.Fast charge is to promote the technology of charging rate, it
Principle is very simple, is supported by chipset, the voltage and current input value of terminal device is adjusted, so as to shorten the charging time.
With the development of fast charge technology, the charging current of terminal device is increasing, and charging secure context is increasingly important.It is existing
Have in technology and generally only the temperature of battery or mainboard detected, and then whether controlling terminal equipment continues to charge,
And the temperature at USB connector is never investigated, and in daily life, terminal device event is caused since USB connector temperature is excessively high
The case where barrier, is commonplace.
Summary of the invention
The embodiment of the present invention provides a kind of charge protection method and device and prevents some danger to protect terminal device
The accident of evil user's personal safety.
In a first aspect, the embodiment of the invention provides a kind of charge protection methods, comprising:
When detecting terminal device charging, the current detection temperature at USB connector is read;
The control signal of the matching detection temperature is formed according to the current detection temperature, the terminal device
Energy-storage units store electric energy under the action of the control signal.
Further, the control signal of the matching detection temperature, the terminal are formed according to current detection temperature
The energy-storage units of equipment store electric energy under the action of the control signal
In the state of current first predetermined threshold range of detection Temperature Matching, the energy-storage units are in described
Electric energy is stored under rated current state under one kind control signal function;
In the state of current second predetermined threshold range of detection Temperature Matching, the current detection temperature is judged
Whether degree is less than upper detection temperature;
The first kind, which is formed, in the state that the current detection temperature is greater than upper detection temperature controls signal, it is described
Energy-storage units control in the first kind and store electric energy under rated current state under signal function;
Signal, institute are controlled no more than the second class is formed in the state of upper detection temperature in the current detection temperature
Energy-storage units are stated to control under signal function in second class in half rated current state storage electric energy;
In the state of the current detection Temperature Matching third predetermined threshold range, the energy-storage units are in described
Two classes control and store electric energy in half rated current state under signal function;
In the state of current the 4th predetermined threshold range of detection Temperature Matching, the current detection temperature is judged
Whether degree is less than upper detection temperature;
The second class control signal is formed in the state that the current detection temperature is greater than upper detection temperature, it is described
Energy-storage units control in second class and store electric energy under half rated current state under signal function;
Signal, institute are controlled no more than formation third class in the state of upper detection temperature in the current detection temperature
It states energy-storage units and is controlled in the third class and stop storage electric energy under signal function;
In the state of current the 5th predetermined threshold range of detection Temperature Matching, the energy-storage units are in described
Three classes, which control, stops storage electric energy under signal function;
In the state of current the 6th predetermined threshold range of detection Temperature Matching, the terminal device is in described
It shuts down under four classes control signal function;
Further, in the position close to USB connector, preset resistance is placed, further includes:
The temperature of the preset resistance is determined according to the voltage of the preset resistance, wherein the temperature of the preset resistance
Match the temperature at USB connector.
Further, it is primary and/or continuous every 100ms acquisition for reading the frequency of the detection temperature at USB connector
Acquisition 10 times.
Further, first predetermined threshold range is temperature less than 43 °.
Further, second predetermined threshold range is temperature between 43 °~45 °.
Further, the third predetermined threshold range is temperature between 45 °~48 °.
Further, the 4th predetermined threshold range is temperature between 48 °~50 °.
Further, the 5th predetermined threshold range is temperature between 50 °~60 °.
Further, the 6th predetermined threshold range is that temperature is greater than 60 °.
Second aspect, the embodiment of the invention also provides a kind of charge protection device, which includes:
Read module, for reading the current detection temperature at USB connector when detecting terminal device charging;
Power storage module, for forming the control letter of the matching detection temperature according to the current detection temperature
Number, the energy-storage units of the terminal device store electric energy under the action of the control signal.
Further, the power storage module includes:
First electric energy energy-storage units, in the state of current first predetermined threshold range of detection Temperature Matching
Under, the energy-storage units control in the first kind and store electric energy under rated current state under signal function;
First judging unit, for sentencing in the state of current second predetermined threshold range of detection Temperature Matching
Whether the current detection temperature of breaking is less than a detection temperature;
Second electric energy energy-storage units, for the shape in the state that the current detection temperature is greater than upper detection temperature
Signal is controlled at the first kind, the energy-storage units are controlled in the first kind and stored under rated current state under signal function
Electric energy;
Third electric energy energy-storage units, in the state that the current detection temperature is not more than upper detection temperature
The second class control signal is formed, the energy-storage units are controlled in second class and deposited under signal function in half rated current state
Storage energy;
4th electric energy energy-storage units, in the state of the current detection Temperature Matching third predetermined threshold range
Under, the energy-storage units control in second class and store electric energy in half rated current state under signal function;
Second judgment unit, for sentencing in the state of current the 4th predetermined threshold range of detection Temperature Matching
Whether the current detection temperature of breaking is less than a detection temperature;
5th electric energy energy-storage units, for the shape in the state that the current detection temperature is greater than upper detection temperature
Signal is controlled at the second class, the energy-storage units are controlled in second class and deposited under half rated current state under signal function
Storage energy;
6th electric energy energy-storage units, in the state that the current detection temperature is not more than upper detection temperature
It forms third class and controls signal, the energy-storage units are controlled in the third class stops storage electric energy under signal function;
7th electric energy energy-storage units, in the state of current the 5th predetermined threshold range of detection Temperature Matching
Under, the energy-storage units are controlled in the third class stops storage electric energy under signal function;
8th electric energy energy-storage units, in the state of current the 6th predetermined threshold range of detection Temperature Matching
Under, the terminal device is controlled in the 4th class and is shut down under signal function;
Further, in the position close to USB connector, preset resistance is placed, further includes:
Temperature determination module, for determining the temperature of the preset resistance according to the voltage of the preset resistance, wherein institute
State the temperature at the Temperature Matching USB connector of preset resistance.
Further, it is primary and/or continuous every 100ms acquisition for reading the frequency of the detection temperature at USB connector
Acquisition 10 times.
Further, first predetermined threshold range is temperature less than 43 °.
Further, second predetermined threshold range is temperature between 43 °~45 °.
Further, the third predetermined threshold range is temperature between 45 °~48 °.
Further, the 4th predetermined threshold range is temperature between 48 °~50 °.
Further, the 5th predetermined threshold range is temperature between 50 °~60 °.
Further, the 6th predetermined threshold range is that temperature is greater than 60 °.
The present invention by detect terminal device charging when, read USB connector at current detection temperature, according to
The current detection temperature forms the control signal of the matching detection temperature, and the energy-storage units of the terminal device are in institute
It states and stores electric energy under the action of controlling signal.It solves because terminal device fever itself is serious, if continuing to charge, terminal is caused to set
Standby temperature steeply rises, and then causes terminal device damage, in some instances it may even be possible to therefore the problem of generation personal safety accident, it realizes
Charging current is controlled according to the temperature of terminal device, to protect terminal device, prevents some to endanger user's personal safety thing
Therefore effect.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present invention one charge protection method;
Fig. 2 is the structural schematic diagram of one of the embodiment of the present invention two charge protection device;
Fig. 3 is the schematic diagram of one of embodiment of the present invention one preset resistance position.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for charge protection method that the embodiment of the present invention one provides, and the present embodiment is applicable to end
The case where end equipment charge protection, this method can be executed by charge protection device provided in an embodiment of the present invention, the device
The mode that software and/or hardware can be used realizes that the device can be integrated in the terminal device of any required charge protection, such as
Typically subscriber terminal equipment can be computer, be also possible to terminal device (such as mobile phone, tablet computer etc.), such as Fig. 1 institute
Show, this method specifically comprises the following steps:
S110 reads the current detection temperature at USB connector when detecting terminal device charging.
Wherein, terminal device can be the equipment of the needs such as mobile phone, tablet computer and smart camera charging.
Wherein, detect that the mode of terminal device charging can be for perceive direct current logical from the opposite direction of discharging
It crosses, then illustrates that terminal device is charging.
Specifically, terminal device can be charged by socket, terminal device can also be inserted on computer and be filled
Electricity can also be charged etc. by equipment such as mobile power sources, and the present embodiment is not limited this.
Specifically, reading the current temperature at USB connector when detecting that terminal device is in charged state.
In a specific example, by the mounting temperature sensor near USB connector, examined by temperature sensor
Survey the temperature at USB connector.
In another specific example, according to NTC (Negative Temperature Coefficient, negative temperature
Coefficient) (NTC themistor is one kind using transition metal oxide as main raw material(s) to resistance, using electronic ceramic process system
At thermal sensitive ceramics component) resistance value reduced with the raising of temperature, NTC resistance is mounted on the mainboard of terminal device and is leaned on
The position of nearly USB connector, connects with the resistance in mainboard, the current electricity of NTC resistance is determined according to the voltage that NTC resistance is got
Resistance value, and then determine according to the resistance value of NTC resistance the temperature of NTC resistance, since NTC resistance is in close to USB connector
Position, therefore the temperature of NTC resistance is exactly the temperature of USB connector, and then obtains the temperature of USB connector.
Optionally, in the position close to USB connector, preset resistance is placed, further includes:
The temperature of the preset resistance is determined according to the voltage of the preset resistance, wherein the temperature of the preset resistance
Match the temperature at USB connector.
Wherein, the preset resistance is the resistance that the variation of temperature can be obtained by the variation of resistance value, such as can be with
It is NTC resistance.
In a specific example, in the position close to USB connector, preset resistance is placed, as shown in figure 3, default
Resistance 2 is connected with the resistance 1 in mainboard, is mounted in mainboard close to the position of USB connector.
Specifically, can determine the resistance value of preset resistance according to the voltage of preset resistance, according to the resistance value of preset resistance with
The relationship of temperature determines the temperature of preset resistance, pre- since the position of preset resistance placement is close to the position of USB connector
It can be approximately the temperature at USB connector by the temperature of preset resistance if the temperature of resistance and the temperature of USB connector are also close
Degree.
Optionally, the frequency for reading the detection temperature at USB connector is once and/or continuously to adopt every 100ms acquisition
Collection 10 times.
Specifically, when the data of temperature collection, in order to guarantee that data accurately reduce invalid detection as far as possible, because
This is primary every 100ms acquisition, and continuous acquisition 10 times, after removal obtains minimum temperature value and maximum temperature values in data, meter
The average of residuals temperatures value is calculated as final temperature numerical value.
S120 forms the control signal of the matching detection temperature, the terminal according to the current detection temperature
The energy-storage units of equipment store electric energy under the action of the control signal.
Optionally, the control signal of the matching detection temperature is formed according to current detection temperature, the terminal is set
Standby energy-storage units store electric energy under the action of the control signal
Step A, in the state of first predetermined threshold range of detection Temperature Matching of Yu Dangqian, the energy-storage units in
Electric energy is stored under rated current state under the first kind control signal function;
Wherein, first predetermined threshold range is related with terminal device, such as can be, if the terminal device is hand
Machine, then the first predetermined threshold range of mobile phone is less than the first predetermined threshold range that terminal device is computer.
Wherein, the first kind control signal is the signal that terminal device can be allowed to charge with normal current.
Optionally, first predetermined threshold range is temperature less than 43 °.
Specifically, can be charged normal when the detection temperature at USB connector is less than 43 °.
Step B, in the state of second predetermined threshold range of detection Temperature Matching of Yu Dangqian, judge current described
Whether detection temperature is less than a detection temperature;
The first kind, which is formed, in the state that the current detection temperature is greater than upper detection temperature controls signal, it is described
Energy-storage units control in the first kind and store electric energy under rated current state under signal function;
Signal, institute are controlled no more than the second class is formed in the state of upper detection temperature in the current detection temperature
Energy-storage units are stated to control under signal function in second class in half rated current storage electric energy;
Wherein, second predetermined threshold range is related with terminal device, can be set not for different terminal devices
The second same predetermined threshold range.
Wherein, the second class control signal is the signal for the form charging that terminal device can be allowed to halve with electric current.
Optionally, second predetermined threshold range is temperature between 43 °~45 °.
Specifically, if the current detection temperature between 43 °~45 °, if current detection temperature is greater than upper one
A detection temperature then illustrates that temperature is increasing, if temperature increases, illustrates it is the case where charging normal.If current detection temperature
Degree is not more than upper detection temperature, then illustrates that temperature is reducing, if temperature reduces, illustrates that charging current halves.
Step C, in the state of the detection Temperature Matching third predetermined threshold range of Yu Dangqian, the energy-storage units in
Electric energy is stored in half rated current under the second class control signal function;
Wherein, the third predetermined threshold range is related with terminal device, can be set not for different terminal devices
Same third predetermined threshold range.
Optionally, the third predetermined threshold range is temperature between 45 °~48 °.
Specifically, charging current halves if current detection temperature is between 45 °~48 °.
Step D, in the state of the 4th predetermined threshold range of detection Temperature Matching of Yu Dangqian, judge current described
Whether detection temperature is less than a detection temperature;
The second class control signal is formed in the state that the current detection temperature is greater than upper detection temperature, it is described
Energy-storage units control in the first kind and store electric energy under half rated current state under signal function;
Signal, institute are controlled no more than formation third class in the state of upper detection temperature in the current detection temperature
It states energy-storage units and is controlled in the third class and stop storage electric energy under signal function;
Wherein, the 4th predetermined threshold range is related with terminal device, can be set not for different terminal devices
The 4th same predetermined threshold range.
Optionally, the 4th predetermined threshold range is temperature between 48 °~50 °.
Wherein, the third class control signal is the signal that terminal device can be allowed to stop charging.
Specifically, if the current detection temperature between 48 °~50 °, if current detection temperature is greater than upper one
A detection temperature then illustrates that temperature is increasing, if temperature increases, illustrates to be the case where charging halves.If current detection temperature
Degree is not more than upper detection temperature, then illustrates that temperature is reducing, if temperature reduces, illustrates the case where being off charging.
Step E, in the state of the 5th predetermined threshold range of detection Temperature Matching of Yu Dangqian, the energy-storage units in
Stop storage electric energy under the third class control signal function;
Wherein, the 5th predetermined threshold range is related with terminal device, can be set not for different terminal devices
The 5th same predetermined threshold range.
Optionally, the 5th predetermined threshold range is temperature between 50 °~60 °.
Specifically, if current detection temperature stops charging between 50 °~60 °.
Step F, in the state of the 6th predetermined threshold range of detection Temperature Matching of Yu Dangqian, the terminal device in
It shuts down under the 4th class control signal function.
Wherein, the 6th predetermined threshold range is related with terminal device, can be set not for different terminal devices
The 6th same predetermined threshold range.
Optionally, the 6th predetermined threshold range is that temperature is greater than 60 °.
Wherein, the 4th class control signal is the signal that terminal device can be allowed to shut down.
Specifically, shutting down if current detection temperature is being greater than 60 °.
Optionally, before carrying out charging current and halving, stop the operation such as charging or shutdown, it can first play frame prompt and use
The temperature of family current USB connectors is excessively high, so that user knows.
In a specific example, in the position close to USB connector, a NTC resistance, hand-set host chip are placed
ADC tests the voltage of NTC resistance and is converted into temperature all the way, and the temperature of NTC resistance is equivalent to the temperature at USB connector, only
Ability have the data of start-up temperature collection mechanism temperature collection when having detected the insertion of circumscribed USB line, in order to the greatest extent
Possible guarantee data accurately reduce test can not, it is primary every 100ms acquisition, continuous acquisition 10 times, remove minimum therein
Average is calculated after value and maximum value as final numerical value temperature.When temperature value is greater than 45 DEG C, charging current halves, and plays frame
Prompt the certain end the usb temperature of user excessively high;The restoring current size when temperature is lower than 43 DEG C.When temperature value is greater than 50 DEG C, stop
It only charges, and it is excessively high to play the frame prompt certain end the usb temperature of user;When temperature is lower than 48 DEG C, charging current halves.Work as temperature value
Greater than 60 DEG C, plays frame and remind user's Current Temperatures serious excessively high and shut down.
If excessively high will lead to of the terminal devices temperature such as mobile phone or computer burns out the terminal devices such as mobile phone or computer
The devices such as mainboard or battery, or even since terminal device heat is excessively high so that terminal device initiation fire on fire or exploding
Etc. accidents.
The technical solution of the present embodiment, it is current at USB connector by reading when detecting terminal device charging
Temperature is detected, forms the control signal of the matching detection temperature, the terminal device according to the current detection temperature
Energy-storage units store electric energy under the action of the control signal.It solves because terminal device fever itself is serious, if continuing
Charging, causes terminal device temperature to steeply rise, and then causes terminal device damage, in some instances it may even be possible to therefore personal safety thing occurs
Therefore problem, realize and charging current is controlled according to the temperature of terminal device to protect terminal device prevent some harm
The effect of user's personal safety accident.
Embodiment two
Fig. 2 is a kind of structural schematic diagram of charge protection device of the embodiment of the present invention two.The present embodiment is applicable to end
The case where end equipment charge protection, the mode which can be used software and/or hardware realize that the device can be integrated in any mention
For in the equipment of charging protection function, such as typically subscriber terminal equipment, it can be computer, be also possible to terminal device
(such as mobile phone, tablet computer etc.), as shown in Fig. 2, the device of the charge protection specifically includes: read module 210 and electric energy
Memory module 220.
Wherein, read module 210, for reading the current inspection at USB connector when detecting terminal device charging
Testing temperature;
Power storage module 220, for forming the control of the matching detection temperature according to the current detection temperature
The energy-storage units of signal processed, the terminal device store electric energy under the action of the control signal.
Optionally, the power storage module 220 includes:
First electric energy energy-storage units, in the state of current first predetermined threshold range of detection Temperature Matching
Under, the energy-storage units control in the first kind and store electric energy under rated current state under signal function;
First judging unit, for sentencing in the state of current second predetermined threshold range of detection Temperature Matching
Whether the current detection temperature of breaking is less than a detection temperature;
Second electric energy energy-storage units, for the shape in the state that the current detection temperature is greater than upper detection temperature
Signal is controlled at the first kind, the energy-storage units are controlled in the first kind and stored under rated current state under signal function
Electric energy;
Third electric energy energy-storage units, in the state that the current detection temperature is not more than upper detection temperature
The second class control signal is formed, the energy-storage units control under signal function in second class in half rated current storage electricity
Energy;
4th electric energy energy-storage units, in the state of the current detection Temperature Matching third predetermined threshold range
Under, the energy-storage units control in second class and store electric energy in half rated current under signal function;
Second judgment unit, for sentencing in the state of current the 4th predetermined threshold range of detection Temperature Matching
Whether the current detection temperature of breaking is less than a detection temperature;
5th electric energy energy-storage units, for the shape in the state that the current detection temperature is greater than upper detection temperature
Signal is controlled at the second class, the energy-storage units are controlled in the first kind and deposited under half rated current state under signal function
Storage energy;
6th electric energy energy-storage units, in the state that the current detection temperature is not more than upper detection temperature
It forms third class and controls signal, the energy-storage units are controlled in the third class stops storage electric energy under signal function;
7th electric energy energy-storage units, in the state of current the 5th predetermined threshold range of detection Temperature Matching
Under, the energy-storage units are controlled in the third class stops storage electric energy under signal function;
8th electric energy energy-storage units, in the state of current the 6th predetermined threshold range of detection Temperature Matching
Under, the terminal device is controlled in the 4th class and is shut down under signal function.
Optionally, in the position close to USB connector, preset resistance is placed, further includes:
Temperature determination module, for determining the temperature of the preset resistance according to the voltage of the preset resistance, wherein institute
State the temperature at the Temperature Matching USB connector of preset resistance.
Optionally, the frequency for reading the detection temperature at USB connector is once and/or continuously to adopt every 100ms acquisition
Collection 10 times.
Optionally, first predetermined threshold range is temperature less than 43 °.
Optionally, second predetermined threshold range is temperature between 43 °~45 °.
Optionally, the third predetermined threshold range is temperature between 45 °~48 °.
Optionally, the 4th predetermined threshold range is temperature between 48 °~50 °.
Optionally, the 5th predetermined threshold range is temperature between 50 °~60 °.
Optionally, the 6th predetermined threshold range is that temperature is greater than 60 °.
The technical solution of the present embodiment, it is current at USB connector by reading when detecting terminal device charging
Temperature is detected, forms the control signal of the matching detection temperature, the terminal device according to the current detection temperature
Energy-storage units store electric energy under the action of the control signal.It solves because terminal device fever itself is serious, if continuing
Charging, causes terminal device temperature to steeply rise, and then causes terminal device damage, in some instances it may even be possible to therefore personal safety thing occurs
Therefore problem, realize and charging current is controlled according to the temperature of terminal device to protect terminal device prevent some harm
The effect of user's personal safety accident.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method
And beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.