CN103217650B - Battery type detection method and the mobile terminal adopting the method to design - Google Patents

Battery type detection method and the mobile terminal adopting the method to design Download PDF

Info

Publication number
CN103217650B
CN103217650B CN201310120724.5A CN201310120724A CN103217650B CN 103217650 B CN103217650 B CN 103217650B CN 201310120724 A CN201310120724 A CN 201310120724A CN 103217650 B CN103217650 B CN 103217650B
Authority
CN
China
Prior art keywords
battery
pin
capacitor device
voltage
type
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.)
Active
Application number
CN201310120724.5A
Other languages
Chinese (zh)
Other versions
CN103217650A (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

Landscapes

  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The mobile terminal that the invention discloses a kind of battery type detection method and adopt the method to design, the capacitor element of the built-in different capacitance of difference in the battery of two types, the positive pole of capacitor element is connected one of them pin of battery, and described pin is connected reference power source by the current-limiting resistance being placed on battery; Utilize reference power source to charge for capacitor element, when the duration of charging arrives To, voltage detecting is carried out to the described pin of battery; If the magnitude of voltage of described pin continues to raise, be then judged to be a class battery of the capacitor element being built-in with bulky capacitor value; Otherwise, be judged to be the battery of another kind of type.The present invention adopts low-down cost to achieve accurate identification to two type batteries, and highly versatile, is applicable to being applied on various types of mobile-terminal platform.In addition, by capacitor element being connected in parallel on the two ends of inside battery thermistor, a pin that can realize CB common battery completes the double check task to battery types and battery temperature.

Description

Battery type detection method and mobile terminal designed by same
Technical Field
The invention belongs to the technical field of battery detection, and particularly relates to a detection method for identifying a battery type and a mobile terminal designed by adopting the battery type detection method.
Background
With the increasing popularization of smart phones, the demand of users for battery capacity is higher and higher. However, the light and thin appearance is the main development trend of the current smart phone, so the conventional design method for increasing the battery size to increase the battery capacity is no longer applicable, and a solution capable of effectively increasing the battery capacity while keeping the structural size of the battery unchanged is needed.
The traditional lithium battery is a common battery with the highest power supply/charging voltage of 4.2V, and the capacity of the conventional lithium battery is difficult to increase. In order to solve the problem, a high-voltage lithium battery appears on the market at present, namely, the highest power supply/charging voltage of the lithium battery is increased to about 4.35V on the basis of the traditional 4.2V lithium battery, and the whole capacity of the lithium battery can be increased by about 10% under the condition that the structural size is not changed.
The battery capacity can be obviously improved by using the 4.35V high-voltage lithium battery in the smart phone, so that the method is the most economic solution for effectively improving the battery capacity of the current smart phone. However, the problems associated with this are: if the user uses the standard battery, no problem exists; however, if a third-party battery is purchased, if the third-party battery happens to be a conventional 4.2V ordinary battery, a mobile phone user may cause a large charging safety hazard when charging the 4.35V ordinary battery with a charging standard of 4.2V, and the normal operation of the third-party battery may be adversely affected.
In order to solve this problem, a common method at present is to integrate a dedicated IC chip inside the high-voltage lithium battery. After the high-voltage lithium battery is inserted into the mobile phone, the mobile phone can read the information in the IC, and then judges that the battery is the high-voltage lithium battery, and the battery is charged according to the 4.35V standard. If the traditional 4.2V lithium battery is inserted into the mobile phone, the mobile phone cannot read information in the IC, and then the battery is judged to be a common battery and charged according to the 4.2V standard.
By adopting the battery type detection scheme, the following four defects mainly exist:
first, it is necessary to build an IC chip in the high-voltage lithium battery, resulting in an increase in battery cost.
Secondly, special interfaces are required to be added in the battery and the mobile phone to realize the access of the mobile phone platform to the IC inside the battery. Due to the difference of chip platforms in mobile phones, the difficulty level of supporting the special interface is also different. For example: if the single bus access mode is adopted, a single bus interface on the mobile phone platform is required to be connected with the battery for data communication. However, for the single bus interface, some mobile phone platforms are relatively easy to implement, but some mobile phone platforms are difficult to implement.
Thirdly, the battery can generate higher temperature rise in the charging process of the mobile phone, and the situation that the working temperature of the IC exceeds the allowed environmental temperature of the IC possibly occurs when the IC is integrated in the battery, so that the IC chip is damaged due to overheating, and the working reliability of the high-voltage lithium battery is influenced.
Fourthly, the integrated chip IC is a static sensitive device, the battery is taken as a part for frequently taking out the mobile phone, and the IC chip integrated in the integrated chip IC is easily damaged by static carried by a human body to cause failure, so that the working reliability of the battery is influenced.
Disclosure of Invention
The invention aims to provide a brand-new battery type detection method, which abandons the traditional design scheme of internally arranging an integrated chip in a battery and realizes accurate detection of the battery type by internally arranging a capacitor device in the battery, thereby effectively controlling the cost.
In order to solve the technical problems, the invention adopts the following technical scheme:
a battery type detection method, comprising the processes of:
respectively internally arranging a capacitor device with different capacitance values in the two types of batteries, connecting the positive electrode of the capacitor device with one pin of the batteries, and connecting the pin with a reference power supply through a current-limiting resistor externally arranged on the batteries;
charging the capacitor device by using a reference power supply, and detecting the voltage of the pin of the battery when the charging time reaches To;
if the voltage value of the pin is continuously increased, determining that the battery is a battery with a capacitor device with a large capacitance value; otherwise, determining to be another type of battery;
wherein To is the charging time required by the capacitor device with a small capacitance value from 0V To full charge in the two capacitor devices.
Preferably, the capacitance values of two capacitor devices built in the two types of batteries are preferably different by more than 3 times, so that the time constants of the two RC circuits are pulled as far as possible, potential influences on the capacitance values of the capacitors caused by environmental changes, batch production changes of the capacitors and the like are eliminated, and misjudgment is avoided.
In order to avoid the problem of complex hardware design caused by adding a dedicated pin on the battery to complete the detection of the battery type, it is preferable to use a temperature detection pin on the battery as a detection pin of the battery type to connect the capacitor device, that is, the capacitor device is connected in parallel to two ends of a thermistor inside the battery for sensing the battery temperature, and the temperature detection pin on the battery is shared to complete the dual detection of the battery type and the battery temperature.
Furthermore, the battery type detection method is only executed once when the electronic equipment is started, and after the detection is finished and a charger is inserted, a corresponding battery charging process is started according to the detected battery type; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
Besides the above battery type detection method, the present invention also provides another detection scheme capable of accurately identifying the battery type, including the following processes:
respectively internally arranging a capacitor device with different capacitance values in the two types of batteries, connecting the positive electrode of the capacitor device with one pin of the batteries, and connecting the pin with a reference power supply through a current-limiting resistor externally arranged on the batteries to form an RC circuit;
charging a capacitor device by using a reference power supply, and periodically collecting a voltage value Vadc of the pin;
when the charging time reaches Tm, determining a time constant T of the RC circuit according to the recorded voltage values Vadc of a plurality of time points; the Tm is more than or equal to the charging time required by a capacitor device with a large capacitance value in the two capacitor devices from 0V to full charge;
calculating the capacitance value of the capacitor device according to the time constant T and the resistance value of the current-limiting resistor;
the type of the battery is determined based on the calculated capacitance value.
In order to avoid the problem of complex hardware design caused by adding a special pin on the battery to complete the detection of the battery type, preferably, a temperature detection pin on the battery is used as a detection pin of the battery type to be connected with the capacitor device, that is, the capacitor device is connected in parallel with two ends of a thermistor used for sensing the battery temperature in the battery, and the temperature detection pin on the battery is shared to complete the dual detection of the battery type and the battery temperature; the thermistor is connected between the temperature detection pin and the ground;
when the charging time reaches Tm, detecting a voltage value Vadc of the temperature detection pin, and using a formula:
R2=Vadc*R1/(VREF–Vadc)
calculating the resistance R2 of the thermistor; in the formula, R1 is the resistance of the current-limiting resistor; VREF is the voltage value of the reference power supply;
after determining the time constant T of the RC circuit, calculating a capacitance value C1 of the capacitor device by using the formula T = (R1| | R2) × C1; the (R1| | R2) represents the parallel resistance of the current-limiting resistor and the thermistor;
the type of the battery is determined based on the calculated capacitance value C1.
Furthermore, the battery type detection method is only executed once when the electronic equipment is started, and after the detection is finished and a charger is inserted, a corresponding battery charging process is started according to the detected battery type; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
Based on the two battery type detection methods, the invention also provides a mobile terminal, wherein a battery is inserted into the mobile terminal, the battery is one of the two types of batteries, the two types of batteries are respectively internally provided with a capacitor device with different capacitance values, the positive electrode of the capacitor device is connected with one pin of the battery, and the pin is connected with a current-limiting resistor arranged on a circuit board in the mobile terminal after the battery is inserted into the mobile terminal and is connected with a reference power supply through the current-limiting resistor; and a processing chip inside the mobile terminal is connected with the pin of the battery and reads the voltage value of the pin.
As a specific design scheme, the capacitor device is connected in parallel at two ends of a thermistor used for sensing the temperature of the battery in the two types of batteries;
when the mobile terminal is started, the processing chip controls the reference power supply To be turned on To charge the capacitor device, and when the charging time reaches To, voltage detection is carried out on the temperature detection pin of the battery; if the detected voltage value continuously rises, determining that the battery is a battery with a built-in capacitor device with a large capacitance value; otherwise, determining to be another type of battery; wherein To is the charging time required by the capacitor devices with small capacitance values from 0V To full charge in the two capacitor devices;
after the detection of the battery type is finished, the processing chip detects whether a charger is inserted, and starts a corresponding battery charging process according to the detected battery type when the charger is inserted; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
As another specific design scheme, the capacitor device is connected in parallel at two ends of a thermistor used for sensing the temperature of the battery in the two types of batteries;
when the mobile terminal is started, the processing chip controls the reference power supply to be turned on, charges the capacitor device and periodically collects the voltage value Vadc of the temperature detection pin of the battery;
when the charging time reaches Tm, determining a time constant T of an RC circuit consisting of the current limiting resistor, the thermistor and the capacitor device according to recorded voltage values Vadc at a plurality of time points; the Tm is more than or equal to the charging time required by a capacitor device with a large capacitance value in the two capacitor devices from 0V to full charge;
calculating the capacitance value of the capacitor device according to the time constant T and the resistance values of the current-limiting resistor and the thermistor; and determining the type of the battery according to the calculated capacitance value;
after the detection of the battery type is finished, the processing chip detects whether a charger is inserted, and starts a corresponding battery charging process according to the detected battery type when the charger is inserted; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
Compared with the prior art, the invention has the advantages and positive effects that: the battery type detection method adopts the capacitor device to replace an integrated chip to be integrated in the battery, utilizes a mode of combining software and hardware, realizes accurate identification of two types of batteries through very low cost, has strong universality and is suitable for being applied to various types of mobile terminal platforms. In addition, the capacitor device is connected in parallel to two ends of the thermistor in the battery, so that one temperature detection pin of the shared battery can be compatible to complete double detection tasks of the battery type and the battery temperature. Because a special interface is not required to be additionally arranged on the battery, the structural design of the battery and a mobile terminal hardware platform is simplified, and the research and development period is shortened.
Other features and advantages of the present invention will become more apparent from the detailed description of the embodiments of the present invention when taken in conjunction with the accompanying drawings.
Drawings
Fig. 1 is a circuit schematic diagram of an embodiment of a hardware circuit on which the battery type detection method proposed by the present invention is based;
FIG. 2 is a process flow diagram of one embodiment of a battery type detection method in accordance with the present invention;
fig. 3 is a process flow diagram of another embodiment of the battery type detection method according to the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
The high-voltage battery is a trend of the development of the built-in battery of the follow-up mobile phone, but considering that the charging voltage of the high-voltage battery is different from that of a common battery, if a user randomly replaces the battery in the using process, a large potential safety hazard exists. Therefore, the present embodiment provides a low-cost and simple-to-implement battery type detection method, so as to accurately identify whether a battery inserted into a mobile phone is a normal battery or a high-voltage battery, and further automatically start a corresponding charging process, so as to ensure the safety of the battery charging process, thereby clearing obstacles for batch adoption of the high-voltage battery in the mobile phone.
Taking a mobile phone as an example, the following describes specific processing flows of two battery type detection methods through two specific embodiments.
In a first embodiment, the battery type detection method of this embodiment implements detection and identification of two types of batteries by combining software and hardware.
First, a detailed structural design of a hardware platform on which the battery type detection method proposed in this embodiment is based will be described in detail with reference to fig. 1.
For clarity of description, the present embodiment specifically describes two different types of batteries as an example of a 4.2V common lithium battery (hereinafter referred to as a common battery) and a 4.35V high-voltage lithium battery (hereinafter referred to as a high-voltage battery).
In order to detect the battery type, in this embodiment, first, a capacitor device is respectively built in each of the two types of batteries, and capacitance values of the capacitor devices built in the common battery and the high-voltage battery are different, capacitance values of the two types of capacitor devices should be separated by a certain difference, preferably, the capacitance value difference is more than 3 times, for example: a470 nF capacitor device is built in a common battery, and a 2.2uF capacitor device is built in a high-voltage battery, so that the time constant of a subsequent RC circuit is pulled open, and the potential influence on the capacitance value of the capacitor caused by environmental change, capacitance batch production change and the like is eliminated, so that the occurrence of misjudgment is avoided.
The capacitor device will be specifically described by taking the capacitor device as an example of its arrangement in a high voltage battery, as shown in fig. 1. The capacitor C1 can be welded on the protection board inside the high-voltage battery, the cathode is grounded, and the anode is connected with one pin of the high-voltage battery. The pins can be other existing pins except the positive power supply and the negative power supply on the battery, and also can be pins specially added for battery type detection. Then, a current limiting resistor R1 and a reference power source VREF are added on an internal circuit board of the mobile phone, and after the high-voltage battery is installed in the mobile phone, the current limiting resistor R1 is just connected with the pin of the capacitor C1 connected to the battery, so that the capacitor C1 is connected with the current limiting resistor R1 and the reference power source VREF in series.
The pin of the high-voltage battery is connected with a processing chip in the mobile phone, specifically, a baseband chip in the mobile phone can be selected to read the voltage value of the pin, and then the battery type is identified by combining a detection processing program running in the processing chip.
Considering that for a lithium battery currently applied to a mobile phone, after some batteries are packaged, three pins are formed, namely a power supply positive pin 1, a power supply negative pin 3 and a temperature detection pin 2, as shown in fig. 1; some batteries are packaged to form four pins, namely, an additional power supply pin or an IC communication pin or other functional pins are added besides a power supply positive pin, a power supply negative pin and a temperature detection pin. In order to simplify the hardware design of the battery and the interface circuit design of the mobile phone, the existing pin on the battery is preferably selected to connect with the positive electrode of the capacitor C1, so as to complete the detection of the battery type. In view of the problem of universality of the battery type detection method, the temperature detection pin 2 of the three-pin battery and the four-pin battery is preferably adopted to be connected with the anode of the capacitor device C1, so that the same pin of the common battery is used for completing double detection tasks of the battery temperature and the battery type.
As shown in fig. 1, a capacitor device C1 is connected in parallel across a thermistor R2 for detecting the battery temperature in the high voltage battery. The thermistor R2 is preferably a negative temperature coefficient semiconductor resistor element, one end of which is grounded and the other end of which is connected to the temperature detection pin 2 of the battery. The temperature detection pin 2 of the battery is connected to a processing chip of the mobile phone, for example, one of the analog-to-digital conversion interfaces ADC of the baseband chip of the mobile phone, so as to collect the analog voltage output by the temperature detection pin 2 of the battery, convert the analog voltage into a digital signal, and substitute the digital signal into different processing flows, thereby completing the detection and judgment of the battery type or the battery temperature.
The software processing flow of the battery type detection method proposed in this embodiment is described in detail below with reference to fig. 2.
S201, selecting one type of battery (common battery or high-voltage battery) to be inserted into a battery jar of the mobile phone, and starting the mobile phone.
S202, in the process of starting the mobile phone, the baseband chip is electrified and operated, after the baseband chip operates stably, the reference power source VREF is controlled to be turned on, and the capacitor C1 in the battery is charged through the current limiting resistor R1, so that the voltage at two ends of the capacitor C1 is gradually increased.
In this embodiment, the reference power source VREF needs to be controlled to be turned on or turned off by the baseband chip, and one design scheme is to directly use the baseband chip to provide the reference power source VREF, as shown in fig. 1; the other design scheme is that a power panel in the mobile phone is used for providing a reference power source VREF, but a switching element is required to be additionally arranged on a line connecting the reference power source VREF with the current limiting resistor R1, and the switching element is controlled to be switched on or off by a baseband chip so as to realize the switching on or off of the reference power source VREF. In view of simplifying the design of the internal circuit of the mobile phone, the first design scheme is preferably adopted in the present embodiment.
And S203, when the charging time reaches To, detecting the voltage of the temperature detection pin 2 of the battery.
In this embodiment, To is a charging time required from 0V To full charge of the capacitor device with the smaller capacitance value of the two capacitor devices.
S204, if the voltage value Vadc of the temperature detection pin 2 continuously rises, determining that the battery is a battery with a capacitor device with a large capacitance value, such as a high-voltage battery; if it is detected that the voltage value Vadc of the temperature detection pin 2 tends to be stable, it is determined that the battery is a type of battery having a capacitor device with a small capacitance value built therein, such as a general battery.
Because the capacitor device with small capacity is fully charged when the charging time reaches To, the voltage at two ends of the capacitor does not rise any more, but tends To be stable; however, in this case, the capacitor device with large capacity is still not fully charged and is still in the process of continuing to charge, so that the voltage across the capacitor device will increase significantly. In the embodiment, after a small-capacity capacitor device is fully charged, the analog-to-digital conversion interface ADC of the baseband chip continues to read the voltage value Vadc of the battery temperature detection pin 2, and then whether the capacitor device built in the battery has a large capacity value or a small capacity value can be determined according to the variation trend of the voltage value Vadc, so that the type of the battery inserted into the mobile phone can be accurately determined.
Taking two capacitor devices with capacitance values of 470nF and 2.2uF as an example, the formula T = (R1| R2) × C1 is calculated according to the time constant of the RC circuit, and assuming that the resistance value of the current limiting resistor R1 is the same as the resistance value of the thermistor R2 and is 47K Ω, the resistance value after the current limiting resistor R1 and the thermistor R2 are connected in parallel (R1| R2) =23.5K Ω.
For a 2.2uF capacitor device, the time constant T =23.5K Ω × 2.2uF =51ms of its corresponding RC circuit.
For a 470nF capacitor device, the time constant T =23.5K Ω 470nF =11ms of its corresponding RC circuit.
Therefore, in the high voltage battery having the capacitor C1 of 2.2uF built therein, the time constant is 51ms, so that the voltage Vadc read through the ADC interface of the baseband chip continues to rise after 11ms, and becomes stable until 50ms later. For a common battery with a built-in 470nF capacitor device, the time constant is 11ms, so the voltage value Vadc read through the ADC interface of the baseband chip after 11ms has risen a little and tends to be stable. Therefore, it is possible to determine which type of battery is by reading the value of the ADC interface of the baseband chip to see if the voltage value Vadc collected after 11ms changes significantly. If the voltage still obviously rises, judging the high-voltage battery; and if the battery tends to be stable, determining that the battery is a normal battery.
Here, it should be noted that: although the capacitance value of the capacitor device can change along with the change of the temperature of the battery, the capacitance of the capacitor devices of 470nF and 2.2uF generally has a change amount of more than 5%, so that the accuracy is sufficient for meeting the design requirement, and no misjudgment occurs.
And S205, after the detection of the battery type is finished, the baseband chip sets a variable to record the type information of the battery used by the current mobile phone.
In this embodiment, the battery type detection process is executed only once when the mobile phone is powered on, and after the detection result is generated, the battery type is written into a variable in a processing program run by the baseband chip, so as to be called and used in a subsequent charging process.
S206, detecting whether a charger is inserted into the mobile phone or not, and if so, executing the subsequent steps; otherwise, repeating the detection process of the step.
And S207, starting a corresponding charging process according to the identified battery type.
In this embodiment, when the baseband chip detects that a charger is inserted into the mobile phone, the baseband chip first calls the variable to determine what type of battery is used in the mobile phone. If the battery used in the mobile phone is a high-voltage battery, starting a 4.35V battery charging process, wherein the voltage of the fully charged battery is about 4.35V; if the battery used in the mobile phone is a common battery, a 4.2V battery charging process is started, and at the moment, the voltage after the battery is fully charged is about 4.2V. Therefore, the 4.35V high-voltage battery can be charged to the nominal capacity, and the standby time of the mobile phone is prolonged; and meanwhile, the charging safety performance of a 4.2V common battery is ensured.
In the charging process, a baseband chip of the mobile phone reads the voltage value Vadc of the temperature detection pin 2 of the battery in real time, and then determines the corresponding battery temperature value by means of table lookup and the like. If the corresponding temperature value is within the temperature range allowed to charge the battery, for example, between-5 ℃ and 55 ℃, the charger is allowed to continue to charge the battery; otherwise, if the corresponding temperature value exceeds the temperature range allowed to be charged by the battery, the charger is stopped to charge the battery for the charging safety of the battery, and prompt information that the temperature of the battery exceeds the use range is displayed for the user on the mobile phone interface so as to remind the user of paying attention.
And S208, ending.
In the second embodiment, the battery type detection method of the present embodiment also implements detection and identification of the common battery and the high-voltage battery by combining software and hardware.
The specific structural design of the hardware platform on which the battery type detection method provided in this embodiment is based is the same as that in the first embodiment, and the difference is only in the software processing flow, as shown in fig. 3.
Similarly, the example of sharing the temperature detection pin 2 of the battery to realize dual detection of the battery temperature and the battery type is described, which specifically includes the following steps:
s301, selecting one type of battery (common battery or high-voltage battery) to be inserted into a battery groove of the mobile phone, and starting the mobile phone.
And S302, in the process of starting the mobile phone, electrifying the baseband chip to operate, controlling a reference power source VREF to be turned on after the baseband chip operates stably, charging a capacitor C1 in the battery through a current-limiting resistor R1, and gradually increasing the voltage at two ends of the capacitor C1 by combining the structure shown in figure 1.
And S303, in the process of charging the capacitor C1 by using the reference power source VREF, periodically collecting the voltage value Vadc of the temperature detection pin 2 of the battery, and storing the time value and the voltage value corresponding to each sampling point in real time.
In this embodiment, it is preferable to acquire the voltage value Vadc of the temperature detection pin 2 of the battery by using the ADC interface of the baseband chip of the mobile phone, where the shorter the sampling period is, the better the sampling period is, for example, the sampling period may be set to 1ms, and the data acquired and converted by the ADC interface is stored in real time.
S304, after a long period of charging time, for example, when the charging time reaches Tm, the capacitor C1 is fully charged, and the voltage Vadc at the temperature detection pin 2 of the battery is read for calculating the resistance of the thermistor R2.
In this embodiment, Tm is a charging time required for a capacitor device having a large capacitance value of two or more capacitor devices to be fully charged from 0V, for example, a charging time of 1 second is set; after the reference power source VREF charges the capacitor device C1 for 1 second, the capacitor device C1 is fully charged, at the moment, the voltage value Vadc of the temperature detection pin 2 of the battery is read by using the ADC interface of the baseband chip, and the voltage value Vadc is substituted into the following calculation formula to reversely deduce the resistance value of the thermistor R2, namely
R2=Vadc*R1/(VREF–Vadc)
In the formula, R1 represents the resistance value of the current-limiting resistor; VREF represents the voltage value of the reference power supply.
S305, determining a time constant T of the RC circuit by using the voltage values Vadc at a plurality of time points recorded by the baseband chip.
In the present embodiment, since the ADC interface of the baseband chip periodically collects the voltage Vadc at the temperature detection pin 2 of the battery during the period from when the control reference power source VREF is turned on until the charging time reaches Tm, the voltage Vadc at each sampling point is recorded. Taking a sampling period of 1ms and Tm =1 s as an example, 1000 sampling points, i.e., 1000 voltage values Vadc, are recorded.
Comparing the 1000 voltage values Vadc, finding a turning point where the voltage value gradually rises to be stable, further obtaining a sampling time corresponding to the turning point, and taking the sampling time as a time constant T of an RC circuit consisting of the current limiting resistor R1, the thermistor R2 and the capacitor device C1.
And S306, calculating the capacitance value of the capacitor device C1 according to the time constant T, the resistance values of the current limiting resistor R1 and the thermistor R2.
In this embodiment, the capacitance value of the capacitor device C1 may be inversely derived by using the formula T = (R1| R2) × C1. Here, (R1| | R2) represents the parallel resistance of the current limiting resistor and the thermistor.
For the structural design mode that the capacitor device C1 is not connected with the thermistor R2 in parallel, but forms an RC circuit with the current limiting resistor R1 alone, the calculation formula of the time constant becomes: t = R1 × C1, from which the capacitance value of the capacitor device C1 can be deduced inversely.
S307, according to the calculated capacitance value of the capacitor device C1, the battery type inserted into the mobile phone is judged.
After the capacitance value of the capacitor device C1 is obtained, it can be determined which type of battery is based on the capacitance value. Such as: if C1=470nF, corresponding to a common battery; if C1=2.2uF, the battery is a high-voltage battery.
In this embodiment, the capacitance value of the capacitor device C1 calculated by the formula may be different from the actual capacitance value, and it can be determined exactly what type of battery is as long as the error is within the predetermined reasonable error range.
And S308, after the battery type detection is finished, the baseband chip sets a variable to record the type information of the battery used by the current mobile phone.
In this embodiment, the battery type detection process is executed only once when the mobile phone is powered on, and after the detection result is generated, the battery type is written into a variable in a processing program run by the baseband chip, so as to be called and used in a subsequent charging process.
S309, detecting whether a charger is inserted into the mobile phone in real time, and if so, executing the subsequent steps; otherwise, repeating the detection process of the step.
And S310, starting a corresponding charging process according to the identified battery type.
In this embodiment, when the baseband chip detects that a charger is inserted into the mobile phone, the baseband chip first calls the variable to determine what type of battery is used in the mobile phone. If the battery used in the mobile phone is a high-voltage battery, starting a 4.35V battery charging process, wherein the voltage of the fully charged battery is about 4.35V; if the battery used in the mobile phone is a common battery, a 4.2V battery charging process is started, and at this time, the voltage after the battery is fully charged is about 4.2V. Therefore, the high-voltage battery with the voltage of 4.35V can be charged to the nominal capacity, and the charging safety performance of the ordinary battery with the voltage of 4.2V is guaranteed.
In the charging process, a baseband chip of the mobile phone reads the voltage value Vadc of the battery temperature detection pin 2 in real time, and then determines a temperature value corresponding to the battery by using a table look-up mode. If the corresponding temperature value is within the temperature range allowed to charge the battery, for example, between-5 ℃ and 55 ℃, the charger is allowed to continue to charge the battery; otherwise, if the corresponding temperature value exceeds the temperature range allowed to be charged by the battery, the charger is stopped to charge the battery for the charging safety of the battery, and the temperature of the battery of the user is prompted to exceed the use range on the mobile phone interface so as to remind the user of paying attention.
And S311, ending.
The two battery type detection methods provided by the invention have the advantages of low cost and simple and easy design, and are suitable for being widely popularized and applied in mobile terminal products such as mobile phones, tablet computers and the like.
It is understood that the above description is only one preferred embodiment of the present invention, and that several modifications and improvements can be made by those skilled in the art without departing from the principle of the present invention, and these modifications and improvements should be construed as the protection scope of the present invention.

Claims (4)

1. A battery type detection method, characterized by:
respectively internally arranging a capacitor device with different capacitance values in the two types of batteries, connecting the positive electrode of the capacitor device with one pin of the batteries, and connecting the pin with a reference power supply through a current-limiting resistor externally arranged on the batteries to form an RC circuit;
charging a capacitor device by using a reference power supply, and periodically collecting a voltage value Vadc of the pin;
when the charging time reaches Tm, determining a time constant T of the RC circuit according to the recorded voltage values Vadc of a plurality of time points; the Tm is more than or equal to the charging time required by a capacitor device with a large capacitance value in the two capacitor devices from 0V to full charge;
calculating the capacitance value of the capacitor device according to the time constant T and the resistance value of the current-limiting resistor; wherein,
the capacitor device is connected in parallel with two ends of a thermistor used for sensing the temperature of the battery in the battery, the negative electrode of the capacitor device is grounded, the pin is a temperature detection pin of the battery, and the thermistor is connected between the temperature detection pin and the ground;
when the charging time reaches Tm, detecting a voltage value Vadc of the temperature detection pin, and using a formula:
R2=Vadc*R1/(VREF–Vadc)
calculating the resistance R2 of the thermistor; in the formula, R1 is the resistance of the current-limiting resistor; VREF is the voltage value of the reference power supply;
after determining the time constant T of the RC circuit, calculating a capacitance value C1 of the capacitor device by using the formula T = (R1| | R2) × C1;
the type of the battery is determined based on the calculated capacitance value C1.
2. The battery type detection method according to claim 1, characterized in that: the battery type detection method is only executed once when the electronic equipment with the built-in battery is started, and after the detection is finished and a charger is inserted, a corresponding battery charging process is started according to the detected battery type; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
3. A mobile terminal, characterized by: the mobile terminal is inserted with a battery, the battery is one of two types of batteries, capacitor devices with different capacitance values are respectively arranged in the two types of batteries, the positive electrode of the capacitor device is connected with one pin of the battery, and the pin is connected with a current limiting resistor arranged on a circuit board in the mobile terminal after the battery is inserted into the mobile terminal and is connected with a reference power supply through the current limiting resistor; a processing chip inside the mobile terminal is connected with the pin of the battery and reads the voltage value of the pin; wherein,
the capacitor device is connected in parallel with two ends of a thermistor used for sensing the temperature of the battery in the battery, and the negative electrode of the capacitor device is grounded;
when the mobile terminal is started, the processing chip controls the reference power supply to be turned on, charges the capacitor device and periodically collects the voltage value Vadc of the temperature detection pin of the battery;
when the charging time reaches Tm, determining a time constant T of an RC circuit consisting of the current limiting resistor, the thermistor and the capacitor device according to recorded voltage values Vadc at a plurality of time points; the Tm is more than or equal to the charging time required by a capacitor device with a large capacitance value in the two capacitor devices from 0V to full charge;
calculating the capacitance value of the capacitor device according to the time constant T and the resistance values of the current-limiting resistor and the thermistor; and determines the type of the battery based on the calculated capacitance value.
4. A mobile terminal according to claim 3, characterized in that: after the detection of the battery type is finished, the processing chip detects whether a charger is inserted, and starts a corresponding battery charging process according to the detected battery type when the charger is inserted; in the charging process, the voltage value of the battery temperature detection pin is detected, and the temperature value of the battery is converted.
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 CN103217650A (en) 2013-07-24
CN103217650B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104638313B (en) * 2013-11-15 2017-02-08 维沃移动通信有限公司 Battery recognition method for mobile handheld device
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
CN107271917A (en) * 2017-07-19 2017-10-20 上海鼎为电子科技(集团)有限公司 Battery detection circuit and mobile terminal
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

Citations (4)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8823321B2 (en) * 2010-12-30 2014-09-02 The Gillette Company—South Boston Single wire battery pack temperature and identification method

Patent Citations (4)

* 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

Also Published As

Publication number Publication date
CN103217650A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103217650B (en) Battery type detection method and the mobile terminal adopting the method to design
US11652359B2 (en) Charging device
CN104734281B (en) Wearable mobile power source and its method for controlling power supply
EP2651005B1 (en) Battery charging method and mobile terminal
CN109490789B (en) Battery on-site detection circuit and method and intelligent wearable equipment
EP2383861A2 (en) Battery charger for portable electronic equipment
CN110506215A (en) A kind of method and device of determining battery internal short-circuit
CN102984368B (en) A kind of mobile terminal for automatically identifying genuine battery and recognition methods thereof
CN205485902U (en) Automatic start circuit and electronic equipment
CN105337374A (en) Method for prolonging power supply time
CN203242716U (en) Battery, battery type detection circuit and mobile terminal
CN109085508A (en) Determine method, apparatus, chip, battery and the aircraft of the charged state of battery
CN105353317B (en) A kind of battery type detection method and mobile terminal
TW201823923A (en) Electronic device and method for controlling the electronic device to charge and discharge
KR20190063266A (en) Battery back
CN107294157A (en) A kind of mobile terminal, self-charging method and storage device
CN103970039A (en) Automatic working equipment and control module thereof
KR20190063269A (en) Battery back
KR20190063268A (en) Battery back
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN203502565U (en) Storage battery detector
CN109148986B (en) Charging method and device
US9368993B2 (en) Method and apparatus for a multiplexed contact between electrical devices
CN110875610A (en) Electronic equipment power supply method and device, electronic equipment and storage medium
CN102882496A (en) Circuit with switch detection and microcontroller reset functions

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
CP03 Change of name, title or address

Address after: Shandong City, Qingdao Province, Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Country or region after: China

Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address