CN102564636A - Method utilizing general IO port of baseband chip to measure temperature of cell phone battery - Google Patents

Method utilizing general IO port of baseband chip to measure temperature of cell phone battery Download PDF

Info

Publication number
CN102564636A
CN102564636A CN2010106098077A CN201010609807A CN102564636A CN 102564636 A CN102564636 A CN 102564636A CN 2010106098077 A CN2010106098077 A CN 2010106098077A CN 201010609807 A CN201010609807 A CN 201010609807A CN 102564636 A CN102564636 A CN 102564636A
Authority
CN
China
Prior art keywords
port
universal
resistance
charging
baseband chip
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.)
Pending
Application number
CN2010106098077A
Other languages
Chinese (zh)
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.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom 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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN2010106098077A priority Critical patent/CN102564636A/en
Publication of CN102564636A publication Critical patent/CN102564636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Secondary Cells (AREA)

Abstract

The invention relates to a method utilizing a general IO port of a baseband chip to measure temperature of a cell phone battery, which comprises the following steps of 1 discharging a capacitor through a discharging resistor R3; 2 after finishing discharging the capacitor, charging the capacitor through a thermistor R1, when level becomes high, stopping charging, and collecting the charging time T1; 3 discharging the capacitor through the discharging resistor R3; 4 after finishing discharging the capacitor, charging the capacitor through a standard resistor R2, when detecting the level becomes high, stopping charging, and collecting the charging time T2; and enabling a cell phone processor to process the collected charging time to obtain the temperature of the cell phone battery. Compared with a prior art, the method utilizing the general IO port of the baseband chip to measure the temperature of the cell phone battery has the advantages of being simple, capable of saving hardware resources of the baseband chip.

Description

A kind of universal I/O port of baseband chip that utilizes is measured the battery of mobile phone method of temperature
Technical field
The present invention relates to a kind of measurement battery of mobile phone method of temperature, especially relate to a kind of universal I/O port (General Purpose Input Output, GPIO) measurement battery of mobile phone method of temperature of utilizing baseband chip.
Background technology
In order to guarantee the safety of charging, mobile phone all will be measured the temperature of cell panel in charging.The common practice of measuring the cell panel temperature at present is to utilize thermistor, is converted into change in voltage to the variation of thermistor resistance through peripheral circuit then, then through the built-in ADC of baseband chip (analog to digital converter) measuring voltage.The method has taken part mobile phone A DC resource, when mobile phone A DC is relatively more nervous, is not suitable for adopting the method to measure the cell panel temperature.Therefore find a kind of mobile phone A DC that can not take with regard to energy measurement cell panel temperature, and measuring method simple in structure is a problem demanding prompt solution.
Summary of the invention
The object of the invention is exactly to provide a kind of method simple for the defective that overcomes above-mentioned prior art existence, and has saved the universal I/O port measurement battery of mobile phone method of temperature of utilizing baseband chip of the hardware resource of baseband chip.
The object of the invention can be realized through following technical scheme: a kind of universal I/O port of baseband chip that utilizes is measured the battery of mobile phone method of temperature; It is characterized in that; This method may further comprise the steps: 1) handset processes device first universal I/O port and second universal I/O port are set to high-impedance state; The 3rd universal I/O port is set to export low, gives capacitor discharge through discharge resistance R3; 2) after capacitor discharge was accomplished, it is high that handset processes device first universal I/O port is set to output, and second universal I/O port is set to high-impedance state; The 3rd universal I/O port is set to the input port; R1 charges to electric capacity through thermistor, and the 3rd universal I/O port can detect level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T1; 3) handset processes device first universal I/O port and second universal I/O port are set to high-impedance state, and the 3rd universal I/O port is set to export low, give capacitor discharge through discharge resistance R3; 4) after capacitor discharge was accomplished, it is high that handset processes device second universal I/O port is set to output, and first universal I/O port is set to high-impedance state; The 3rd universal I/O port is set to the input port; R2 charges to electric capacity through measuring resistance, and the 3rd universal I/O port detects level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T2; 5) the handset processes device is handled the duration of charging of being gathered according to T1/T2=R1/R2, draws the temperature of battery of mobile phone.
The resistance of described measuring resistance R2 is decided according to the thermistor Standard resistance range.
The resistance of described discharge resistance R3 is 80~120 ohm.
Preferred 100 ohm of the resistance of described discharge resistance R3.
Compared with prior art, the present invention need not be converted into voltage to the thermistor resistance, need not utilize the ADC module yet; But utilized the general universal I/O port of mobile phone base band chip; To the electric capacity charging, be converted into time value to resistance value, and then obtain the cell panel temperature; When can be applied in mobile phone A DC resource anxiety, saved the hardware resource of baseband chip.
Description of drawings
Fig. 1 is a circuit connection structure synoptic diagram of the present invention;
Fig. 2 is a process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is elaborated.
Embodiment
Like Fig. 1, shown in Figure 2, a kind of universal I/O port of baseband chip that utilizes is measured the battery of mobile phone method of temperature, and this method may further comprise the steps:
Step 21) the handset processes device is set to high-impedance state with first universal I/O port 1 and second universal I/O port 2, and the 3rd universal I/O port 3 is set to export low, gives electric capacity 4 discharges through discharge resistance R3, and in order to guarantee discharge fully, this state can postpone some times more;
Step 22) after electric capacity 4 discharges were accomplished, it is high that the handset processes device is set to output with first universal I/O port 1, and second universal I/O port 2 is set to high-impedance state; The 3rd universal I/O port 3 is set to the input port; R1 charges to electric capacity through thermistor, and the 3rd universal I/O port 3 can detect level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T1;
Step 23) the handset processes device is set to high-impedance state with first universal I/O port 1 and second universal I/O port 2, and the 3rd universal I/O port 3 is set to export low, gives electric capacity 4 discharges through discharge resistance R3, and in order to guarantee discharge fully, this state can postpone some times more;
Step 24) after electric capacity 4 discharges were accomplished, it is high that the handset processes device is set to output with second universal I/O port 2, and first universal I/O port 1 is set to high-impedance state; The 3rd universal I/O port 3 is set to the input port; Give electric capacity 4 chargings through measuring resistance R2, the 3rd universal I/O port 3 detects level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T2;
Step 25) the handset processes device is handled the duration of charging of being gathered according to T1/T2=R1/R2, draws the temperature of battery of mobile phone.When the RC circuit was charged, if electric capacity, charging voltage immobilized, and RC charging constant is when big, and then resistance ratio just equals the duration of charging ratio, that is: T1/T2=R1/R2, and T1, T2 is easy to obtain through software.R2 is the known measuring resistance of resistance; Its resistance is decided R2 according to the thermistor Standard resistance range; Present embodiment is selected 10 kilohms; Through be easy to obtain the resistance R1 of thermistor with co-relation, the resistance of thermistor and temperature are corresponding one by one, and we can be easy to obtain temperature through software according to the resistance of thermistor.Desirable 100 ohm of the resistance of discharge resistance R3.

Claims (4)

1. one kind is utilized the universal I/O port of baseband chip to measure the battery of mobile phone method of temperature, it is characterized in that this method may further comprise the steps:
1) handset processes device first universal I/O port and second universal I/O port are set to high-impedance state, and the 3rd universal I/O port is set to export low, give capacitor discharge through discharge resistance R3;
2) after capacitor discharge was accomplished, it is high that handset processes device first universal I/O port is set to output, and second universal I/O port is set to high-impedance state; The 3rd universal I/O port is set to the input port; R1 charges to electric capacity through thermistor, and the 3rd universal I/O port can detect level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T1;
3) handset processes device first universal I/O port and second universal I/O port are set to high-impedance state, and the 3rd universal I/O port is set to export low, give capacitor discharge through discharge resistance R3;
4) after capacitor discharge was accomplished, it is high that handset processes device second universal I/O port is set to output, and first universal I/O port is set to high-impedance state; The 3rd universal I/O port is set to the input port; R2 charges to electric capacity through measuring resistance, and the 3rd universal I/O port detects level to be changed, when detecting level and uprise; Stop charging, and gather duration of charging T2;
5) the handset processes device is handled the duration of charging of being gathered according to T1/T2=R1/R2, draws the temperature of battery of mobile phone.
2. a kind of universal I/O port of baseband chip that utilizes according to claim 1 is measured the battery of mobile phone method of temperature, it is characterized in that the resistance of described measuring resistance R2 is decided according to the thermistor Standard resistance range.
3. a kind of universal I/O port of baseband chip that utilizes according to claim 1 is measured the battery of mobile phone method of temperature, it is characterized in that the resistance of described discharge resistance R3 is 80~120 ohm.
4. a kind of universal I/O port of baseband chip that utilizes according to claim 3 is measured the battery of mobile phone method of temperature, it is characterized in that preferred 100 ohm of the resistance of described discharge resistance R3.
CN2010106098077A 2010-12-24 2010-12-24 Method utilizing general IO port of baseband chip to measure temperature of cell phone battery Pending CN102564636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106098077A CN102564636A (en) 2010-12-24 2010-12-24 Method utilizing general IO port of baseband chip to measure temperature of cell phone battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106098077A CN102564636A (en) 2010-12-24 2010-12-24 Method utilizing general IO port of baseband chip to measure temperature of cell phone battery

Publications (1)

Publication Number Publication Date
CN102564636A true CN102564636A (en) 2012-07-11

Family

ID=46410660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106098077A Pending CN102564636A (en) 2010-12-24 2010-12-24 Method utilizing general IO port of baseband chip to measure temperature of cell phone battery

Country Status (1)

Country Link
CN (1) CN102564636A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104180918A (en) * 2014-09-26 2014-12-03 国网河南省电力公司南阳供电公司 Electronic-element temperature measurement method
CN104390718A (en) * 2014-10-10 2015-03-04 记忆科技(深圳)有限公司 Temperature detection method
CN104501991A (en) * 2014-12-10 2015-04-08 广东美的制冷设备有限公司 Remote controller, temperature sampling device and temperature sampling control method
CN105547514A (en) * 2016-01-25 2016-05-04 四川长虹电器股份有限公司 Temperature measurement circuit and method
CN105698957A (en) * 2016-03-21 2016-06-22 四川长虹电器股份有限公司 Temperature measuring circuit and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104180918A (en) * 2014-09-26 2014-12-03 国网河南省电力公司南阳供电公司 Electronic-element temperature measurement method
CN104390718A (en) * 2014-10-10 2015-03-04 记忆科技(深圳)有限公司 Temperature detection method
CN104501991A (en) * 2014-12-10 2015-04-08 广东美的制冷设备有限公司 Remote controller, temperature sampling device and temperature sampling control method
CN104501991B (en) * 2014-12-10 2018-05-29 广东美的制冷设备有限公司 Remote controler, temperature sampling device and temperature sampling control method
CN105547514A (en) * 2016-01-25 2016-05-04 四川长虹电器股份有限公司 Temperature measurement circuit and method
CN105698957A (en) * 2016-03-21 2016-06-22 四川长虹电器股份有限公司 Temperature measuring circuit and method

Similar Documents

Publication Publication Date Title
CN102564636A (en) Method utilizing general IO port of baseband chip to measure temperature of cell phone battery
CN104076184B (en) Voltage check device
CN102183315A (en) Circuit and method for detecting identity (ID) and temperature of battery by using common detection pin
CN110506215A (en) A kind of method and device of determining battery internal short-circuit
CN103901352B (en) Show the method and device of battery of mobile terminal remaining capacity
CN105676145A (en) Method and device for detecting temperature and ID of battery
CN103901345B (en) A kind of accumulator electric quantity detection apparatus and method
CN103605093A (en) Calibration method of display electricity value and system thereof
CN105337374A (en) Method for prolonging power supply time
CN104410116A (en) Quick charging device and quick charging method
CN106840442A (en) A kind of battery temperature measuring system and method
CN201682531U (en) Mobile phone capable of detecting environmental noise
CN103633705B (en) Accurately obtained terminal and the method for cell voltage by discharge mode when charging
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN101949982B (en) Super capacitor detection and control circuit system
CN211348397U (en) Portable open-circuit voltage and short-circuit current detection device
WO2011069369A1 (en) Voltage indicating circuit of cellular phone battery
CN104215812A (en) MCU (micro controller unit) chip power voltage detection circuit
CN106680728A (en) Electricity quantity detecting method and device
CN201726171U (en) Identification circuit of charging power supply
CN207007937U (en) A kind of detection circuit of multi-section serial battery voltage
CN202145221U (en) Device utilizing one-chip microcomputer for measuring resistance value
CN210037692U (en) High-precision miniature air-blowing type alcohol gas detector and detection system thereof
CN205301535U (en) Battery status monitoring system and method
CN102680901B (en) Electronic energy detection system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120711