CN103217650A - Battery type detection method and mobile terminal designed by same - Google Patents

Battery type detection method and mobile terminal designed by same Download PDF

Info

Publication number
CN103217650A
CN103217650A CN2013101207245A CN201310120724A CN103217650A CN 103217650 A CN103217650 A CN 103217650A CN 2013101207245 A CN2013101207245 A CN 2013101207245A CN 201310120724 A CN201310120724 A CN 201310120724A CN 103217650 A CN103217650 A CN 103217650A
Authority
CN
China
Prior art keywords
battery
capacitor element
pin
types
charging
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2013101207245A
Other languages
Chinese (zh)
Other versions
CN103217650B (en
Inventor
王�琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201310120724.5A priority Critical patent/CN103217650B/en
Publication of CN103217650A publication Critical patent/CN103217650A/en
Application granted granted Critical
Publication of CN103217650B publication Critical patent/CN103217650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a battery type detection method and a mobile terminal designed by the same. Two types of batteries are respectively embedded with a capacitor device, wherein the capacitor devices are provided with different capacitances, the positive pole of one capacitor device is connected with one of pins of the corresponding battery, and the pin is connected to a reference power source through a current-limiting resistor outside the battery; the capacitor device is charged by the reference power source, and when the charge time reaches To, the voltage of the pin of the battery is detected; if the voltage value of the pin constantly rises, the battery is judged to be embedded with the capacitor device with large capacitance; and if the voltage value of the pin does not rise constantly, the battery is judged as the other type of battery. The two types of batteries are accurately recognized at lower cost, the universality is high, and the method is applied to various mobile terminal platforms. In addition, the capacitor devices are connected in parallel to two ends of a thermistor inside the corresponding battery, and one pin of the battery is shared to detect the type and the temperature of the battery.

Description

Battery types detection method and the portable terminal that adopts this method to design
Technical field
The invention belongs to the battery detecting technical field, specifically, relate to a kind of portable terminal that is used to discern the detection method of battery types and adopts described battery types detection method design.
Background technology
Universal day by day along with smart mobile phone, the user is more and more higher to the demand of battery capacity.But, lightening outward appearance is again the main development trend of present smart mobile phone, therefore, adopt the increase battery size to realize that the conventional design method that battery capacity promotes just becomes no longer suitable, what need is a kind ofly can effectively promote the solution of battery capacity under the situation that keeps the battery structure size constancy.
Traditional lithium battery is that maximum supply power/charging voltage is the common batteries of 4.2V, and the lifting of its capacity is difficulty comparatively.For addressing this problem, occurred the high pressure lithium battery at present on the market, promptly on the basis of traditional 4.2V lithium battery, the maximum supply power/charging voltage that promotes lithium battery is to about the 4.35V, under the constant situation of physical dimension, its whole volume can promote about 10%.
In smart mobile phone, use the high pressure lithium battery of 4.35V comparatively significantly to promote battery capacity, can be described as a kind of most economical settling mode that present smart mobile phone effectively promotes battery capacity.But the problem of bringing with it is: if the user uses the standard configuration battery, and certain no problem; But if bought third party's battery, when by chance third party's battery is traditional 4.2V common batteries, then can cause the cellphone subscriber when the charging standard of using 4.35V is charged as the common batteries of 4.2V, cause bigger charging potential safety hazard, and also can produce very adverse influence the operate as normal of third party's battery.
In order to address this problem, method commonly used at present is the integrated chip IC in the integrated special use in the inside of high pressure lithium battery.After the high pressure lithium battery was inserted into mobile phone, mobile phone can read the information among the IC, and then to judge this battery be the high pressure lithium battery, according to the 4.35V standard charging.If traditional 4.2V lithium battery is inserted in the mobile phone, then mobile phone can't read information among the IC, and then to judge this battery be common batteries, according to the 4.2V standard charging.
Adopt above-mentioned battery types detection scheme, cubic planar defect below main the existence:
The one,, need be in the high pressure lithium battery built-in integrated chip IC, cause the rising of battery cost.
The 2nd,, need in battery and mobile phone, set up special purpose interface, to realize the visit of cell phone platform to inside battery IC.Because the difference of mobile phone inside chip platform, the complexity that special purpose interface is supported is also different.For example: if adopt the unibus access mode, then need to use the single bus interface on the cell phone platform to connect battery, carry out data communication.But for single bus interface, the cell phone platform that has implements relatively easily, but that some cell phone platform implements is just very difficult.
The 3rd,, battery higher temperature rise can occur in the cell-phone charging process, the working temperature that IC is integrated in the very possible IC of generation in the battery exceeds the situation of its environment temperature that allows, thereby causes the mistake cause thermal damage of IC chip, influences the reliability of high pressure lithium battery work.
The 4th,, integrated chip IC is originally as electrostatic sensitivity device, and battery is as the portion's product that often take out mobile phone, and its inner integrated IC chip is caused inefficacy than being easier to by the electrostatic damage that human body carries, and then influences battery operated reliability.
Summary of the invention
The object of the present invention is to provide a kind of brand-new battery types detection method, abandon the traditional design scheme of built-in integrated chip in battery, realize accurate detection by built-in capacitance device in battery, thereby effectively controlled cost battery types.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of battery types detection method comprises following process:
The respectively capacitor element of built-in different capacitances in two types battery connects one of them pin of battery with the positive pole of capacitor element, and described pin is connected reference power source by the current-limiting resistance that is placed on battery;
Utilize reference power source to charge, when the duration of charging arrives To, the described pin of battery is carried out voltage detecting for capacitor element;
If the magnitude of voltage of described pin continues to raise, then be judged to be a class battery of the capacitor element that is built-in with big capacitance; Otherwise, be judged to be the battery of another kind of type;
Wherein, described To be the capacitor element of two kinds of medium and small capacitances of capacitor element from 0V to being full of required duration of charging of electricity.
Preferably, the capacitance that is built in two capacitor elements in two types of batteries preferably differs more than 3 times, with the big as far as possible time constant of drawing back two kinds of RC circuit, remove environment variation, electric capacity batch property production variation etc. side by side to the potential impact that capacitor's capacity causes, avoid erroneous judgement.
Finish the hardware design complicated problems that detection caused for fear of on battery, setting up dedicated pin to battery types, temperature detection pin on the preferred use battery connects described capacitor element as the detection pin of battery types, promptly, described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature, and the temperature detection pin on the CB common battery is finished the double check to battery types and battery temperature.
Further, described battery types detection method is only carried out once when electronic equipment is started shooting, and after the end to be detected, and when having charger to insert, starts the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
Except above-mentioned battery types detection method, the invention allows for another and can realize equally detection scheme that battery types is accurately discerned comprising following process:
The respectively capacitor element of built-in different capacitances in two types battery connects one of them pin of battery with the positive pole of capacitor element, and described pin is connected reference power source by the current-limiting resistance that is placed on battery, forms the RC circuit;
Utilize reference power source to charge, and periodically gather the magnitude of voltage Vadc of described pin for capacitor element;
When the duration of charging arrives Tm, determine the time constant T of RC circuit according to the magnitude of voltage Vadc of a plurality of time points of noting; Described Tm more than or equal to the capacitor element of big capacitance in two kinds of capacitor elements from 0V to being full of the required duration of charging of electricity;
Calculate the capacitance of capacitor element according to the resistance of time constant T and current-limiting resistance;
Judge cell types according to the capacitance that calculates.
Finish the hardware design complicated problems that detection caused for fear of on battery, setting up dedicated pin to battery types, temperature detection pin on the preferred use battery connects described capacitor element as the detection pin of battery types, promptly, described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature, and the temperature detection pin on the CB common battery is finished the double check to battery types and battery temperature; Described thermistor is connected between described temperature detection pin and the ground;
When the duration of charging arrives Tm, detect the magnitude of voltage Vadc of described temperature detection pin, utilize formula:
R2=Vadc*R1/(VREF–Vadc)
Calculate the resistance R2 of thermistor; In the formula, R1 is the resistance of current-limiting resistance; VREF is the magnitude of voltage of reference power source;
Behind the time constant T that determines the RC circuit, utilize formula T=(R1||R2) * C1, calculate the capacitance C1 of described capacitor element; The resistance in parallel of described (R1||R2) expression current-limiting resistance and thermistor;
Judge cell types according to the capacitance C1 that calculates.
Further, described battery types detection method is only carried out once when electronic equipment is started shooting, and after the end to be detected, and when having charger to insert, starts the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
Based on above-mentioned two kinds of battery types detection methods, the invention allows for a kind of portable terminal, in described portable terminal, be fitted with battery, described battery is wherein a kind of in two types of batteries, in described two types of batteries, be built-in with the capacitor element of different capacitances respectively, the positive pole of described capacitor element connects one of them pin of battery, described pin is after battery is inserted to portable terminal, be connected with a current-limiting resistance of laying on the portable terminal internal circuit board, and connect reference power source by described current-limiting resistance; The process chip of portable terminal inside connects the described pin of battery, reads the magnitude of voltage of described pin.
As a kind of concrete design proposal wherein, described capacitor element is connected in parallel on the two ends that two types of inside batteries are used for the thermistor of perception battery temperature;
When mobile terminal-opening, process chip control reference power source is opened, and is the capacitor element charging, when the duration of charging arrives To, the temperature detection pin of battery is carried out voltage detecting; If detected magnitude of voltage continues to raise, then be judged to be a class battery of the capacitor element that is built-in with big capacitance; Otherwise, be judged to be the battery of another kind of type; Wherein, described To be the capacitor element of two kinds of medium and small capacitances of capacitor element from 0V to being full of required duration of charging of electricity;
After battery types detected and finishes, whether process chip was to having the charger insertion to detect, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
As another specific design scheme, described capacitor element is connected in parallel on the two ends that two types of inside batteries are used for the thermistor of perception battery temperature;
When mobile terminal-opening, process chip control reference power source is opened, and is the capacitor element charging, and periodically gathers the magnitude of voltage Vadc of the temperature detection pin of battery;
When the duration of charging arrives Tm, determine the time constant T of the RC circuit formed by described current-limiting resistance, thermistor and capacitor element according to the magnitude of voltage Vadc of a plurality of time points of noting; Described Tm more than or equal to the capacitor element of big capacitance in two kinds of capacitor elements from 0V to being full of the required duration of charging of electricity;
Resistance according to time constant T and current-limiting resistance, thermistor calculates the capacitance of capacitor element; And according to the capacitance judgement cell types that calculates;
After battery types detected and finishes, whether process chip was to having the charger insertion to detect, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
Compared with prior art, advantage of the present invention and good effect are: battery types detection method of the present invention adopts capacitor element to replace integrated chip to be integrated in the battery, the mode of utilizing software and hardware to combine, realized accurate identification by low-down cost to two types of batteries, highly versatile is fit to be applied on various types of mobile-terminal platforms.In addition, by capacitor element being connected in parallel on the two ends of the thermistor of inside battery, a temperature detection pin compatibility can realizing CB common battery is thus finished the double check task to battery types and battery temperature.Owing to need not on battery, to set up special purpose interface, thereby simplified the structural design of battery and portable terminal hardware platform, shortened the R﹠D cycle.
After reading the detailed description of embodiment of the present invention in conjunction with the accompanying drawings, other characteristics of the present invention and advantage will become clearer.
Description of drawings
Fig. 1 be battery types detection method proposed by the invention based on the circuit theory diagrams of a kind of embodiment of hardware circuit;
Fig. 2 is the processing flow chart of a kind of embodiment of battery types detection method proposed by the invention;
Fig. 3 is the processing flow chart of another embodiment of battery types detection method proposed by the invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
High-tension battery is the trend of follow-up embedded in mobile phone battery development, but considers that the charging voltage of high-tension battery is different with common batteries, can have bigger potential safety hazard if the user in use arbitrarily changes battery.Therefore, present embodiment has proposed a kind of with low cost, simple battery types detection method of realization, to identify the battery that is inserted in the mobile phone exactly is common batteries or high-tension battery, and then enable corresponding charging flow automatically, guarantee the security of battery charging process, just cleared away obstacle thus for the batch of high-tension battery in mobile phone adopts.
Be example below with the mobile phone, set forth the concrete treatment scheme of two kinds of battery types detection methods by two specific embodiments respectively.
Embodiment one, and the mode that the battery types detection method of present embodiment adopts software and hardware to combine realizes the detection identification to two types of batteries.
Below in conjunction with Fig. 1 at first to battery types detection method that present embodiment proposed based on the concrete structure design of hardware platform be described in detail.
For describe clear for the purpose of, present embodiment is example with the common lithium battery (hereinafter to be referred as common batteries) of 4.2V and the high pressure lithium battery (hereinafter to be referred as high-tension battery) of 4.35V as described two kinds of dissimilar batteries, is specifically described.
In order to realize detection to battery types, an at first built-in capacitor element respectively in two types battery of present embodiment, and the capacitance that is built in the capacitor element in common batteries and the high-tension battery is different, the capacitance of two kinds of capacitor elements will draw back a certain distance, preferably capacitance differs more than 3 times, for example: the capacitor element of built-in 470nF in common batteries, the capacitor element of built-in 2.2uF in high-tension battery, so that draw back the follow-up time constant of forming the RC circuit, removing environment side by side changes, the potential impact that electric capacity batch property production variation etc. cause capacitor's capacity is with the generation of avoiding judging by accident.
Be made as example with capacitor element cloth in high-tension battery and be specifically described, referring to shown in Figure 1.Capacitor element C1 can be welded on the fender of high-tension battery inside minus earth, anodal one of them pin that connects high-tension battery.Described pin can be on the battery except that power supply just with power-other existing pin, also can be to detect the pin set up specially for battery types.Then, on the internal circuit board of mobile phone, increase current-limiting resistance R1 and reference power source VREF, described current-limiting resistance R1 is after high-tension battery is installed in the mobile phone, just with battery on be connected capacitor element C1 described pin be connected, and then realize connecting of capacitor element C1 and current-limiting resistance R1 and reference power source VREF.
The described pin of high-tension battery is connected process chip in the mobile phone, specifically can select the baseband chip in the mobile phone for use, reading the magnitude of voltage of this pin, and then, finish identification battery types in conjunction with the detection handling procedure that moves in the process chip.
Consider for the lithium battery that is applied at present in the mobile phone, form three pins after the cell package that has, i.e. the positive pin 1 of power supply, power-pin 3 and temperature detection pin 2, as shown in Figure 1; Form four pins after the cell package that has, promptly except the positive pin of power supply, power-pin and temperature detection pin, also increased an extra power pins or IC communication pin or other function pins.For the hardware design of simplifying battery and the interface circuit design of mobile phone, preferably select existing pin on the battery to connect the positive pole of capacitor element C1, to finish detection to battery types.Consider the versatility problem of described battery types detection method, the preferred positive pole that adopts the temperature detection pin 2 that all possesses in tripod battery and the four pin batteries to be connected described capacitor element C1 is finished double check task to battery temperature and battery types with the same pin of realization CB common battery.
As shown in Figure 1, capacitor element C1 is connected in parallel on the two ends of the thermistor R2 that is used to detect battery temperature in the high-tension battery.Described thermistor R2 preferably adopts the semiconductor resistor of negative temperature coefficient, an end ground connection, and the other end connects the temperature detection pin 2 of battery.The process chip that the temperature detection pin 2 of battery is connected mobile phone, wherein one tunnel analog to digital conversion interface ADC of mobile phone base band chip for example, to gather the aanalogvoltage that battery temperature detects pin 2 outputs, and after converting digital signal to, the treatment scheme that substitution is different is finished detection and judgement to battery types or battery temperature.
Below in conjunction with Fig. 2 the software processes flow process of the battery types detection method that present embodiment proposed is at length set forth.
S201, select one type battery (common batteries or high-tension battery) to be inserted in the battery case of mobile phone, and open described mobile phone.
S202, mobile phone in start process, the baseband chip operation that powers on, treat baseband chip stable operation after, control reference power source VREF opens, and is capacitor element C1 charging in the battery by current-limiting resistance R1, and the voltage at capacitor element C1 two ends is raise gradually.
In the present embodiment, described reference power source VREF need control it by baseband chip and open or close, and a kind of design proposal is directly to utilize baseband chip that described reference power source VREF is provided, as shown in Figure 1; Another kind of design proposal is to adopt the power panel in the mobile phone that reference power source VREF is provided, but need on the circuit of reference power source VREF connection current-limiting resistance R1, set up on-off element, control described on-off element conducting or disconnection by baseband chip, to realize opening or closing to reference power source VREF.For the consideration of simplifying the mobile phone internal circuit design, present embodiment preferably adopts first kind of design proposal.
S203, when the duration of charging arrives To, the temperature detection pin 2 of battery is carried out voltage detecting.
In the present embodiment, described To be in two kinds of capacitor elements the less capacitor element of capacitance from 0V to being full of the required duration of charging of electricity.
S204, if the magnitude of voltage Vadc of temperature detection pin 2 continues to raise, then be judged to be class battery, for example a high-tension battery of the capacitor element that is built-in with big capacitance; Tend towards stability if detect the magnitude of voltage Vadc of temperature detection pin 2, then be judged to be class battery, for example a common batteries of the capacitor element that is built-in with little capacitance.
Because when the duration of charging arrived To, the capacitor element of low capacity had been full of electricity,, but tend towards stability so the voltage at electric capacity two ends no longer raises; But this moment, still the underfill electricity also was in the process that continues charging for jumbo capacitor element, so the voltage at its two ends can obviously raise.Present embodiment utilizes the analog to digital conversion interface ADC of baseband chip after the capacitor element of low capacity is full of electricity, continue to read the magnitude of voltage Vadc that battery temperature detects pin 2, and then according to the variation tendency of magnitude of voltage Vadc can judge capacitor element built-in in the battery be the Da Rong value or low-capacitance, just can judge the battery which kind of type the battery that is inserted in the mobile phone is exactly thus.
Two capacitor elements that are respectively 470nF and 2.2uF with capacitance are that example describes, time constant computing formula T=(R1||R2) * C1 according to the RC circuit, the resistance of supposing current-limiting resistance R1 is identical with the resistance of thermistor R2, and be 47K Ω, then current-limiting resistance R1 and resistance (R1||R2)=23.5K Ω after thermistor R2 is in parallel.
For the capacitor element of 2.2uF, the time constant T=23.5 K Ω * 2.2uF=51ms of the RC circuit that it is corresponding.
For the capacitor element of 470nF, the time constant T=23.5 K Ω * 470nF=11ms of the RC circuit that it is corresponding.
Therefore, high-tension battery for the capacitor element C1 that is built-in with 2.2uF, because its time constant is 51ms, also can continue to rise so crossed behind the 11ms magnitude of voltage Vadc that the ADC interface by baseband chip reads, until 50ms just can tend towards stability afterwards.And, because its time constant is 11ms, risen very for a short time so crossed behind the 11ms magnitude of voltage Vadc that the ADC interface by baseband chip reads for the common batteries of the capacitor element that is built-in with 470nF, tend towards stability.Therefore, the numerical value of ADC interface that can be by reading baseband chip has seen the magnitude of voltage Vadc that it collects behind the 11ms whether significant change still takes place, and judges it is the battery of any type thus.If still obviously rise, then be judged to be high-tension battery; If tend towards stability, then be judged to be common batteries.
Here it should be noted that: though the appearance value of capacitor element can change to some extent along with the change of battery temperature, but capacitor element for 470nF and 2.2uF, in general, the changes in capacitance amount is generally beyond 5%, therefore its precision is enough to satisfy the design needs, the erroneous judgement situation can not take place.
S205, battery types detect and finish, and baseband chip is provided with the employed cell types information of variable record current phone.
In the present embodiment, described battery types testing process is only carried out when mobile phone power-on once, after generating testing result, battery types is write a variable in the handling procedure that baseband chip moves, so that transfer use in follow-up charging flow.
Whether S206, detection have charger to be inserted on the mobile phone, if having, then carry out subsequent step; Otherwise, repeat the testing process of this step.
The battery types that S207, basis identify starts corresponding charging flow.
In the present embodiment, described baseband chip is at first transferred described variable when having detected charger and be inserted on the mobile phone, judges which kind of type employed battery is in the mobile phone.When if employed battery is high-tension battery in the mobile phone, then start the battery charge flow process of 4.35V, at this moment, battery is full of voltage behind the electricity about 4.35V; If employed battery is a common batteries in the mobile phone, then start the battery charge flow process of 4.2V, at this moment, battery is full of voltage behind the electricity about 4.2V.So both guaranteed that the high-tension battery of 4.35V can be charged to the capacity of nominal, prolonged the stand-by time of mobile phone; Also guaranteed simultaneously the security performance of 4.2V common batteries charging.
In charging process, the baseband chip of mobile phone reads the magnitude of voltage Vadc of the temperature detection pin 2 of battery in real time, then, adopts mode such as table look-up to determine pairing battery temperature value.If the temperature value that correspondence goes out for example between-5 ℃ to 55 ℃, then allows charger to continue to charge the battery in the temperature range that battery allows to charge; Otherwise, allow the temperature range of charging if the corresponding temperature value that goes out has exceeded battery, then, stop charger to battery charge for the charging safety of battery, and on mobile phone interface, exceed the information of usable range for the user shows battery temperature, with call user's attention.
S208, end.
Embodiment two, and the mode that the battery types detection method of present embodiment adopts software and hardware to combine equally realizes the detection identification to common batteries and high-tension battery.
The battery types detection method that present embodiment proposed based on hardware platform, the design of its concrete structure is described with embodiment one, difference only is on the software processes flow process, as shown in Figure 3.
With the temperature detection pin 2 of CB common battery, realize that the double check of battery temperature and battery types is that example describes equally, specifically comprise following process:
S301, select one type battery (common batteries or high-tension battery) to be inserted in the battery case of mobile phone, and open described mobile phone.
S302, mobile phone in start process, the baseband chip operation that powers on, treat baseband chip stable operation after, control reference power source VREF opens, by current-limiting resistance R1 is capacitor element C1 charging in the battery, in conjunction with shown in Figure 1, the voltage at capacitor element C1 two ends is raise gradually.
S303, in the process of utilizing reference power source VREF for capacitor element C1 charging, periodically gather the magnitude of voltage Vadc of the temperature detection pin 2 of battery, and pairing time value of each sampled point and magnitude of voltage preserved in real time.
In the present embodiment, preferably utilize the ADC interface of mobile phone base band chip to gather the magnitude of voltage Vadc of the temperature detection pin 2 of battery, its sampling period is short more good more, for example the sampling period can be set at 1ms, and preserves the data after the ADC interface is gathered and changed in real time.
S304, after through one period long duration of charging, for example when the duration of charging arrived Tm, capacitor element C1 was full of electricity, reads the magnitude of voltage Vadc of the temperature detection pin 2 of battery, to be used for the calculating of thermistor R2 resistance.
In the present embodiment, described Tm for more than or equal to the capacitor element of big capacitance in two kinds of capacitor elements from 0V to being full of the required duration of charging of electricity, for example set the duration of charging in 1 second; After reference power source VREF arrived for 1 second for capacitor element C1 charging, capacitor element C1 is full of, utilize this moment the ADC interface of baseband chip to read the magnitude of voltage Vadc of the temperature detection pin 2 of battery, the counter resistance of releasing thermistor R2 of the following computing formula of substitution, promptly
R2=Vadc*R1/(VREF–Vadc)
In the formula, R1 represents the resistance of current-limiting resistance; VREF represents the magnitude of voltage of reference power source.
S305, utilize the magnitude of voltage Vadc of a plurality of time points that baseband chip notes, determine the time constant T of RC circuit.
In the present embodiment, because baseband chip is opened until the duration of charging arrives this section of Tm in the period from control reference power source VREF, therefore its ADC interface can note the magnitude of voltage Vadc of each sampled point always at the magnitude of voltage Vadc of the temperature detection pin 2 of periodically gathering battery.With the sampling period be 1 millisecond, Tm=1 second is an example, then can note 1000 sampled points, i.e. 1000 magnitude of voltage Vadc.
Compare these 1000 magnitude of voltage Vadc, find magnitude of voltage from rising to the turning point that tends towards stability gradually, and then obtain the pairing sampling time of this turning point, and the time constant T of described sampling time as the RC circuit of being made up of current-limiting resistance R1, thermistor R2 and capacitor element C1 got final product.
S306, calculate the capacitance of capacitor element C1 according to the resistance of time constant T and current-limiting resistance R1, thermistor R2.
In the present embodiment, can utilize formula T=(R1||R2) * C1, the counter capacitance of releasing described capacitor element C1.Here, the resistance in parallel of (R1||R2) representing current-limiting resistance and thermistor.
In parallel with thermistor R2 for capacitor element C1, but form the structural design mode of RC circuit separately with current-limiting resistance R1, then the computing formula of time constant does not become: T=R1*C1, can instead release the capacitance of capacitor element C1 thus.
The capacitance of the capacitor element C1 that S307, basis calculate determines the battery types that is inserted in the mobile phone.
Behind the capacitance that has obtained capacitor element C1, just can determine according to this capacitance has been the battery of which kind of type.Such as: if C1=470nF, then corresponding common batteries; If C1=2.2uF, then corresponding high-tension battery.
In the present embodiment, the capacitance of the capacitor element C1 that calculates by formula might there are differences with actual capacitance value, is the battery of which kind of type as long as error can be judged in pre-determined reasonable error scope exactly.
After S308, battery types detected and finish, baseband chip was provided with the employed cell types information of variable record current phone.
In the present embodiment, described battery types testing process is only carried out when mobile phone power-on once, after generating testing result, battery types is write a variable in the handling procedure that baseband chip moves, so that transfer use in follow-up charging flow.
Whether S309, detection in real time have charger to be inserted on the mobile phone, if having, then carry out subsequent step; Otherwise, repeat the testing process of this step.
The battery types that S310, basis identify starts corresponding charging flow.
In the present embodiment, described baseband chip is at first transferred described variable when having detected charger and be inserted on the mobile phone, judges which kind of type employed battery is in the mobile phone.When if employed battery is high-tension battery in the mobile phone, then start the battery charge flow process of 4.35V, at this moment, battery is full of voltage behind the electricity about 4.35V; When if employed battery is common batteries in the mobile phone, then start the battery charge flow process of 4.2V, at this moment, battery is full of voltage behind the electricity about 4.2V.So both guaranteed that the high-tension battery of 4.35V can be charged to the capacity of nominal, also guaranteed the security performance of the common batteries charging of 4.2V simultaneously.
In charging process, the baseband chip of mobile phone reads the magnitude of voltage Vadc that battery temperature detects pin 2 in real time, then, adopts the mode of tabling look-up to determine the pairing temperature value of battery.If the temperature value that correspondence goes out for example between-5 ℃ to 55 ℃, then allows charger to continue to charge the battery in the temperature range that battery allows to charge; Otherwise, if having exceeded battery, the corresponding temperature value that goes out allows the temperature range of charging, then for the charging safety of battery, stopping charger is battery charge, and points out user's battery temperature to exceed usable range on mobile phone interface, with call user's attention.
S311, end.
Two kinds of battery types detection method costs proposed by the invention are low, and simplicity of design is easily gone, and are adapted at large-scale popularization application in the portable terminal products such as mobile phone, panel computer.
Certainly; the above only is a kind of preferred implementation of the present invention, for those skilled in the art, and under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. battery types detection method is characterized in that:
The respectively capacitor element of built-in different capacitances in two types battery connects one of them pin of battery with the positive pole of capacitor element, and described pin is connected reference power source by the current-limiting resistance that is placed on battery;
Utilize reference power source to charge, when the duration of charging arrives To, the described pin of battery is carried out voltage detecting for capacitor element;
If the magnitude of voltage of described pin continues to raise, then be judged to be a class battery of the capacitor element that is built-in with big capacitance; Otherwise, be judged to be the battery of another kind of type;
Wherein, described To be the capacitor element of two kinds of medium and small capacitances of capacitor element from 0V to being full of required duration of charging of electricity.
2. battery types detection method according to claim 1 is characterized in that: the capacitance that is built in two capacitor elements in two types of batteries differs more than 3 times.
3. battery types detection method according to claim 1 and 2 is characterized in that: described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature, and described pin is the temperature detection pin of battery.
4. battery types detection method according to claim 3, it is characterized in that: described battery types detection method is only carried out once when electronic equipment is started shooting, after the end to be detected, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
5. battery types detection method is characterized in that:
The respectively capacitor element of built-in different capacitances in two types battery connects one of them pin of battery with the positive pole of capacitor element, and described pin is connected reference power source by the current-limiting resistance that is placed on battery, forms the RC circuit;
Utilize reference power source to charge, and periodically gather the magnitude of voltage Vadc of described pin for capacitor element;
When the duration of charging arrives Tm, determine the time constant T of RC circuit according to the magnitude of voltage Vadc of a plurality of time points of noting; Described Tm more than or equal to the capacitor element of big capacitance in two kinds of capacitor elements from 0V to being full of the required duration of charging of electricity;
Calculate the capacitance of capacitor element according to the resistance of time constant T and current-limiting resistance;
Judge cell types according to the capacitance that calculates.
6. battery types detection method according to claim 5, it is characterized in that: described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature, described pin is the temperature detection pin of battery, and described thermistor is connected between described temperature detection pin and the ground;
When the duration of charging arrives Tm, detect the magnitude of voltage Vadc of described temperature detection pin, utilize formula:
R2=Vadc*R1/(VREF–Vadc)
Calculate the resistance R2 of thermistor; In the formula, R1 is the resistance of current-limiting resistance; VREF is the magnitude of voltage of reference power source;
Behind the time constant T that determines the RC circuit, utilize formula T=(R1||R2) * C1, calculate the capacitance C1 of described capacitor element;
Judge cell types according to the capacitance C1 that calculates.
7. battery types detection method according to claim 6, it is characterized in that: described battery types detection method is only carried out once when electronic equipment is started shooting, after the end to be detected, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
8. portable terminal, it is characterized in that: in described portable terminal, be fitted with battery, described battery is wherein a kind of in two types of batteries, in described two types of batteries, be built-in with the capacitor element of different capacitances respectively, the positive pole of described capacitor element connects one of them pin of battery, described pin is connected with a current-limiting resistance of laying on the portable terminal internal circuit board after battery is inserted to portable terminal, and connects reference power source by described current-limiting resistance; The process chip of portable terminal inside connects the described pin of battery, reads the magnitude of voltage of described pin.
9. portable terminal according to claim 8 is characterized in that: described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature;
When mobile terminal-opening, process chip control reference power source is opened, and is the capacitor element charging, when the duration of charging arrives To, the temperature detection pin of battery is carried out voltage detecting; If detected magnitude of voltage continues to raise, then be judged to be a class battery of the capacitor element that is built-in with big capacitance; Otherwise, be judged to be the battery of another kind of type; Wherein, described To be the capacitor element of two kinds of medium and small capacitances of capacitor element from 0V to being full of required duration of charging of electricity;
After battery types detected and finishes, whether process chip was to having the charger insertion to detect, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
10. portable terminal according to claim 8 is characterized in that: described capacitor element is connected in parallel on the two ends that inside battery is used for the thermistor of perception battery temperature;
When mobile terminal-opening, process chip control reference power source is opened, and is the capacitor element charging, and periodically gathers the magnitude of voltage Vadc of the temperature detection pin of battery;
When the duration of charging arrives Tm, determine the time constant T of the RC circuit formed by described current-limiting resistance, thermistor and capacitor element according to the magnitude of voltage Vadc of a plurality of time points of noting; Described Tm more than or equal to the capacitor element of big capacitance in two kinds of capacitor elements from 0V to being full of the required duration of charging of electricity;
Resistance according to time constant T and current-limiting resistance, thermistor calculates the capacitance of capacitor element; And according to the capacitance judgement cell types that calculates;
After battery types detected and finishes, whether process chip was to having the charger insertion to detect, and when having charger to insert, start the corresponding battery charging flow according to detected battery types; In charging process, detect the magnitude of voltage that battery temperature detects pin, converse the temperature value of battery.
CN201310120724.5A 2013-04-09 2013-04-09 Battery type detection method and the mobile terminal adopting the method to design Active CN103217650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310120724.5A CN103217650B (en) 2013-04-09 2013-04-09 Battery type detection method and the mobile terminal adopting the method to design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310120724.5A CN103217650B (en) 2013-04-09 2013-04-09 Battery type detection method and the mobile terminal adopting the method to design

Publications (2)

Publication Number Publication Date
CN103217650A true CN103217650A (en) 2013-07-24
CN103217650B CN103217650B (en) 2015-10-21

Family

ID=48815609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310120724.5A Active CN103217650B (en) 2013-04-09 2013-04-09 Battery type detection method and the mobile terminal adopting the method to design

Country Status (1)

Country Link
CN (1) CN103217650B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103884383A (en) * 2014-03-28 2014-06-25 深圳市中兴移动通信有限公司 Temperature measurement and identification circuit of built-in battery, battery, detecting device and detecting method
CN104638313A (en) * 2013-11-15 2015-05-20 艾酷电子科技有限公司 Battery recognition method for mobile handheld device
CN105676145A (en) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 Method and device for detecting temperature and ID of battery
CN110346732A (en) * 2019-07-23 2019-10-18 广东以诺通讯有限公司 A kind of battery detection method and device based on characteristic value identification
EP3940916A1 (en) * 2020-07-14 2022-01-19 Illinois Tool Works, Inc. Battery pack and battery charger with battery type identifying device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5945803A (en) * 1998-06-09 1999-08-31 Black & Decker Inc. Apparatus for determining battery pack temperature and identity
CN1602445A (en) * 2002-03-05 2005-03-30 索尼公司 Electronic device and control method
CN101488589A (en) * 2008-01-15 2009-07-22 宏达国际电子股份有限公司 Battery assembly and charging state measurement method
CN201298578Y (en) * 2007-06-14 2009-08-26 布莱克和戴克公司 Battery charger and electric tool system
US20120169271A1 (en) * 2010-12-30 2012-07-05 The Gillette Company Single Wire Battery Pack Temperature and Identification Method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5945803A (en) * 1998-06-09 1999-08-31 Black & Decker Inc. Apparatus for determining battery pack temperature and identity
CN1602445A (en) * 2002-03-05 2005-03-30 索尼公司 Electronic device and control method
CN201298578Y (en) * 2007-06-14 2009-08-26 布莱克和戴克公司 Battery charger and electric tool system
CN101488589A (en) * 2008-01-15 2009-07-22 宏达国际电子股份有限公司 Battery assembly and charging state measurement method
US20120169271A1 (en) * 2010-12-30 2012-07-05 The Gillette Company Single Wire Battery Pack Temperature and Identification Method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104638313A (en) * 2013-11-15 2015-05-20 艾酷电子科技有限公司 Battery recognition method for mobile handheld device
CN104638313B (en) * 2013-11-15 2017-02-08 维沃移动通信有限公司 Battery recognition method for mobile handheld device
CN103884383A (en) * 2014-03-28 2014-06-25 深圳市中兴移动通信有限公司 Temperature measurement and identification circuit of built-in battery, battery, detecting device and detecting method
CN103884383B (en) * 2014-03-28 2017-12-08 努比亚技术有限公司 The thermometric and identification circuit of a kind of internal battery, battery, detection means and detection method
CN105676145A (en) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 Method and device for detecting temperature and ID of battery
WO2017166573A1 (en) * 2016-04-01 2017-10-05 福建联迪商用设备有限公司 Method and apparatus for detecting battery temperature and id
CN110346732A (en) * 2019-07-23 2019-10-18 广东以诺通讯有限公司 A kind of battery detection method and device based on characteristic value identification
CN110346732B (en) * 2019-07-23 2021-09-14 广东以诺通讯有限公司 Battery detection method and device based on characteristic value identification
EP3940916A1 (en) * 2020-07-14 2022-01-19 Illinois Tool Works, Inc. Battery pack and battery charger with battery type identifying device

Also Published As

Publication number Publication date
CN103217650B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
CN103217650B (en) Battery type detection method and the mobile terminal adopting the method to design
CN103197258B (en) A kind of battery type detection method and mobile terminal
US20150236522A1 (en) Usb charging system with variable charging voltage, charger and smart terminal
CN104283284B (en) A kind of multi-functional data portable power source and charging method
CN103166289B (en) A kind of mobile terminal and detection method detecting cell voltage when charging
US9312576B2 (en) Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
CN203242716U (en) Battery, battery type detection circuit and mobile terminal
CN202395113U (en) Intelligent battery unit
CN105429217B (en) A kind of method for identifying the system of charger and its identifying charger
CN104714916A (en) Detection system for plugging or unplugging of external equipment on USB interface
CN203759164U (en) Circuit for detecting access state of USB load equipment
CN107643998A (en) OTG and the difunctional system that charges are realized based on intelligent object
CN102158571A (en) Charging anti-theft protection method for mobile terminal
CN103257699A (en) Notebook computer battery intelligent control circuit
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN204304476U (en) A kind of multi-functional data portable power source
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN203502565U (en) Storage battery detector
CN202025832U (en) Charging battery and charging system
CN103166062A (en) Electronic device and connector thereof
CN102467630A (en) Mobile terminal charging anti-theft protection method and system, and mobile terminal
WO2019174415A1 (en) Charging circuit and electronic cigarette
CN204407944U (en) The Function detection circuit of tool intelligence USB identification chip
CN205407314U (en) Can adjust charging current's power supply unit according to pull down resistor value of mobile device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant