WO2017166573A1 - 一种检测电池温度和id的方法及装置 - Google Patents

一种检测电池温度和id的方法及装置 Download PDF

Info

Publication number
WO2017166573A1
WO2017166573A1 PCT/CN2016/094781 CN2016094781W WO2017166573A1 WO 2017166573 A1 WO2017166573 A1 WO 2017166573A1 CN 2016094781 W CN2016094781 W CN 2016094781W WO 2017166573 A1 WO2017166573 A1 WO 2017166573A1
Authority
WO
WIPO (PCT)
Prior art keywords
ntc
pin
battery
resistor
port
Prior art date
Application number
PCT/CN2016/094781
Other languages
English (en)
French (fr)
Inventor
张良钿
Original Assignee
福建联迪商用设备有限公司
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 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Publication of WO2017166573A1 publication Critical patent/WO2017166573A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
    • G01K7/16Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements
    • G01K7/22Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements the element being a non-linear resistance, e.g. thermistor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC

Definitions

  • the present invention relates to the field of electronic circuits and mobile terminals, and in particular, to a method and apparatus for detecting battery temperature and ID.
  • the traditional mobile terminal device When the traditional mobile terminal device is in use, it is generally required to detect the ID (identity, identification number) of the battery pack, detect whether the battery is in place, and determine the type, specification, and legality of the battery. In addition, the mobile terminal device also needs to detect the battery temperature to avoid charging the battery at too high or too low temperature.
  • ID identity, identification number
  • the mobile terminal device also needs to detect the battery temperature to avoid charging the battery at too high or too low temperature.
  • the first method a special detection chip is built in the battery. In addition to detecting the battery ID, the chip can also detect the battery temperature and notify the host through digital signal communication. This method requires adding a temperature sample and content.
  • the storage detection chip has high occupancy rate of the host resources, high power consumption, and high cost;
  • the second method add an ID pin for battery identification on the battery, generally adopt a fixed resistance resistor, connect the fixed value resistor to the host ADC through the ID pin to detect the battery ID;
  • the temperature also needs to add a pin to connect the NTC (negative temperature coefficient) resistor inside the battery to the ADC port of the host to detect the temperature.
  • This method is simple and low cost, but it needs to occupy two of the battery. Two ADC ports of the pin and the host;
  • the third method the ID recognition resistor and the temperature detecting resistor use the same NTC resistor, that is, the host detects that the resistance value in a reasonable temperature range is considered to be the same ID, which saves the battery pins and simplifies. Design, but the ID detection accuracy is very poor;
  • the present invention proposes a method and apparatus for detecting battery temperature and ID.
  • the object of the present invention is to provide a method and a device for detecting battery temperature and ID.
  • the circuit of the invention is simple and low in cost, and the invention only occupies one pin of the battery and an ADC of the host, and effectively improves the accuracy of ID detection.
  • the technical solution of the present invention is: a method for detecting a battery temperature and an ID, Including the following steps,
  • NTC/ID pin Inside the battery, the NTC/ID pin is connected in series with an NTC resistor to GND, and a capacitor Cid is connected in parallel across the NTC resistor to connect the externally extended NTC/ID pin to the ADC pin of the host controller. At the same time, the NTC/ID pin extending outside the battery is connected to the IO port of the host controller through the resistor R1;
  • S2 Detecting the battery temperature: setting the IO port to a high level, the first predetermined time interval, the ADC pin sampling the voltage value of the NTC/ID pin, according to the resistance value of the resistor R1 and the voltage value of the NTC/ID pin, ie The internal NTC resistance value of the battery can be calculated to obtain the internal temperature value of the battery;
  • S3 Detecting the battery ID: setting the IO port to a high level, the first predetermined time interval, the ADC pin sampling the voltage value of the NTC/ID pin, according to the resistance value of the resistor R1 and the voltage value of the NTC/ID pin, ie The internal NTC resistance value of the battery can be calculated; then the IO port is set to a low level, and the second predetermined time interval, the ADC pin samples the voltage value of the NTC/ID pin, according to the resistance of the resistor R1, NTC resistor and NTC The voltage value of the /ID pin can be used to calculate the capacitance Cid value, and the battery ID is obtained by comparing with the preset Cid value in the host controller;
  • step S2 is specifically implemented as follows:
  • the ADC pin sampling NTC / ID pin voltage value formula is as follows,
  • Vadc is the voltage value of the ADC pin sampling NTC/ID pin
  • R1 is the resistance of the resistor R1
  • Vio is the high-level voltage value of the IO port output
  • NTC is the internal NTC resistance value of the battery
  • the internal NTC resistance of the battery can be calculated, and the internal temperature of the battery can be obtained.
  • step S3 is specifically implemented as follows:
  • Vadc samples the voltage value of the NTC/ID pin of the ADC pin, and R1 is the resistance of the resistor R1.
  • Vio is the output voltage value of IO port
  • NTC is the internal NTC resistance value of the battery; according to Vadc, R1 and Vio, the internal NTC resistance value of the battery can be calculated;
  • the capacitance Cid value can be calculated to know the battery ID.
  • the first predetermined time should be greater than the charging time of the capacitor Cid, and the second predetermined time should be less than the discharging time of the capacitor Cid.
  • the resistor R1 is a constant value resistor.
  • the present invention also provides a device for detecting battery temperature and ID, comprising an NTC resistor, a capacitor Cid, an NTC resistor, and a capacitor Cid connected to the NTC/ID pin at one end and connected to the GND at the other end.
  • the utility model further includes a resistor R1 connected at one end to the NTC/ID pin extending outside the battery, and the other end of the resistor R1 is connected to the IO port of the host controller, and the NTC/ID pin extending outside the battery is also connected to the host The ADC pin of the controller.
  • the resistor R1 is a constant value resistor.
  • the present invention has the following beneficial effects:
  • the circuit of the invention is simple and low in cost
  • the invention only occupies one pin of the battery and one ADC of the host;
  • the invention effectively improves the accuracy of ID detection.
  • FIG. 1 is a structural block diagram of a circuit implementation of the present invention.
  • FIG. 3 is a waveform diagram of a capacitor Cid charging and discharging voltage according to the present invention.
  • a method for detecting battery temperature and ID of the present invention includes the following steps,
  • NTC/ID pin Inside the battery, the NTC/ID pin is connected in series with an NTC resistor to GND, and a capacitor Cid is connected in parallel across the NTC resistor to connect the externally extended NTC/ID pin to the ADC pin of the host controller. At the same time, the NTC/ID pin extending outside the battery is connected to the IO port of the host controller through a resistor R1 (fixed value resistor);
  • S2 Detecting the battery temperature: setting the IO port to a high level, the first predetermined time interval, the ADC pin sampling the voltage value of the NTC/ID pin, according to the resistance value of the resistor R1 and the voltage value of the NTC/ID pin, ie The internal NTC resistance value of the battery can be calculated to obtain the internal temperature value of the battery;
  • S3 Detecting the battery ID: setting the IO port to a high level, the first predetermined time interval, the ADC pin sampling the voltage value of the NTC/ID pin, according to the resistance value of the resistor R1 and the voltage value of the NTC/ID pin, ie The internal NTC resistance value of the battery can be calculated; then the IO port is set to a low level, and the second predetermined time interval, the ADC pin samples the voltage value of the NTC/ID pin, according to the resistance of the resistor R1, NTC resistor and NTC The voltage value of the /ID pin can be used to calculate the capacitance Cid value, and the battery ID is obtained by comparing with the preset Cid value in the host controller;
  • the step S2 is specifically implemented as follows:
  • the ADC pin sampling NTC / ID pin voltage value formula is as follows,
  • Vadc is the voltage value of the ADC pin sampling NTC/ID pin
  • R1 is the resistance of the resistor R1
  • Vio is the high-level voltage value of the IO port output
  • NTC is the internal NTC resistance value of the battery
  • the internal NTC resistance of the battery can be calculated, and the internal temperature of the battery can be obtained.
  • the step S3 is specifically implemented as follows:
  • Vadc is the voltage value of the ADC pin sampling NTC/ID pin
  • R1 is the resistance of the resistor R1
  • Vio is the output voltage value of the IO port
  • NTC is the internal NTC resistance value of the battery
  • the capacitance Cid value can be calculated to know the battery ID.
  • the first predetermined time should be greater than the charging time of the capacitor Cid, and the second predetermined time should be less than the discharging time of the capacitor Cid.
  • the present invention also provides a device for detecting battery temperature and ID, comprising an NTC resistor, a capacitor Cid, an NTC resistor, and a capacitor Cid connected to the NTC/ID pin at one end and connected to the GND at the other end.
  • the utility model further includes a resistor R1 connected at one end to the NTC/ID pin extending outside the battery, and the other end of the resistor R1 is connected to the IO port of the host controller, and the NTC/ID pin extending outside the battery is also connected to the host The ADC pin of the controller.
  • the present invention provides a method and apparatus for detecting battery temperature and ID.
  • the present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • the resistance R1 on the main unit is 10K ⁇ .
  • the resistance of the NTC battery inside the battery at normal temperature is also 10K ⁇ . At other temperatures, NTC exhibits different resistance values.
  • the host IO port has a high level of 3.3V and a low level of 0V.
  • There are two batteries, A and B, and their internal Cids are 0.1uF and 1uF respectively.
  • the working status is as follows:
  • the resistance value of NTC can be calculated, and then the temperature value can be calculated or checked.
  • the capacitance Cid value can be calculated to identify whether it is battery A or battery B.
  • a feasible lookup table 1 is structured as follows
  • the voltage is sampled at 2.1V, and in state 3, it is sampled to 1.8V.
  • the lookup table shows that the corresponding battery temperature is 10 ° C, the battery model is B, and so on.
  • state 3 Another embodiment of state 3 is to detect the charging process voltage from state 0 to state Cid in state 1, the specific method being similar, not detailed.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

一种检测电池温度和ID的方法及装置,该装置包括在电池内部,一端分别与NTC/ID管脚串联连接的NTC电阻、电容Cid,NTC电阻、电容Cid的另一端相连接至GND,还包括一端与电池外部伸出的NTC/ID管脚相连接的电阻R1,电阻R1的另一端连接至主机控制器的IO口,所述电池外部伸出的NTC/ID管脚还连接至主机控制器的ADC管脚。本装置电路简单,成本低,仅占用电池一个引脚及主机的一个ADC,且有效提高ID检测精度。

Description

一种检测电池温度和ID的方法及装置 技术领域
本发明涉及电子电路及移动终端技术领域,具体涉及一种检测电池温度和ID的方法及装置。
背景技术
传统移动终端设备在使用时,一般需要对电池组的ID(identity,身份标识号码)进行检测,检测电池是否在位,并判断电池的型号、规格、是否合法等。另外,移动终端设备还需要对电池温度进行检测,避免在过高或过低温度下对电池进行充电。
目前检测ID和温度一般有三种做法:
第一种做法:采用专门的检测芯片内置于电池上,该芯片除了能检测电池ID,还能检测电池温度,并通过数字信号通信的方法告知主机,此做法需要增加一颗具有温度采样和内容存储的检测芯片,对主机资源占用率高,功耗高,且成本很高;
第二种做法:在电池上增加一个用于电池识别的ID脚,一般采用一个固定阻值的电阻,通过ID脚将定值电阻接入到主机的ADC对电池ID进行检测;另外为检测电池温度还需要增加一个引脚,将在电池内部的NTC(negative temperature coefficient,负温度系数)电阻接入到主机的ADC端口对温度进行检测,此做法简单且成本低,但需要占用电池的两个引脚及主机的两路ADC口;
第三种做法:将ID识别电阻和温度检测电阻使用同一颗NTC电阻,即主机检测到一个合理温度范围内的阻值都认为是同一个ID,这种做法节约了电池的引脚,简化了设计,但ID检测精度很差;
为了克服已有方法的缺点,本发明提出了一种检测电池温度和ID的方法及装置。
发明内容
本发明的目的在于提供一种检测电池温度和ID的方法及装置,本发明电路简单,成本低,本发明仅占用电池一个引脚及主机的一个ADC,且有效提高ID检测精度。
为实现上述目的,本发明的技术方案是:一种检测电池温度和ID的方法, 包括如下步骤,
S1:在电池内部,NTC/ID管脚串联一NTC电阻至GND,并在该NTC电阻两端并联一电容Cid,将电池外部伸出的NTC/ID管脚与主机控制器的ADC管脚连接,同时将电池外部伸出的NTC/ID管脚通过电阻R1连接至主机控制器的IO口;
S2:检测电池温度:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值,从而得出电池内部温度值;
S3:检测电池ID:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值;而后将IO口置低电平,间隔第二预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1、NTC电阻的阻值及NTC/ID管脚的电压值,即可计算电容Cid值,通过与主机控制器中预设的Cid值比较,从而获知电池ID;
S4:检测结束,将IO口置低电平。
在本发明一实施例中,所述步骤S2具体实现如下:
将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000001
其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值,Vio为IO口输出的高电平电压值,NTC为所求电池内部NTC电阻阻值;
根据Vadc、R1及Vio,即可计算得出电池内部NTC电阻阻值,由此即可得出电池内部温度值。
在本发明一实施例中,所述步骤S3具体实现如下:
(1)将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000002
其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值, Vio为IO口输出电压值,NTC为所求电池内部NTC电阻阻值;根据Vadc、R1及Vio,即可计算得出电池内部NTC电阻阻值;
(2)将IO口置低电平0V,间隔第二预定时间t,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000003
其中,根据Vadc'、R1、NTC及Vio,即可计算得出电容Cid值,从而获知电池ID。
在本发明一实施例中,所述第一预定时间应大于电容Cid的充电时间,第二预定时间应小于电容Cid的放电时间。
在本发明一实施例中,所述电阻R1为定值电阻。
本发明还提供了一种检测电池温度和ID的装置,包括在电池内部,一端分别与NTC/ID管脚串联连接的NTC电阻、电容Cid,NTC电阻、电容Cid的另一端相连接至GND,还包括一端与电池外部伸出的NTC/ID管脚相连接的电阻R1,电阻R1的另一端连接至主机控制器的IO口,所述电池外部伸出的NTC/ID管脚还连接至主机控制器的ADC管脚。
在本发明一实施例中,所述电阻R1为定值电阻。
相较于现有技术,本发明具有以下有益效果:
1、本发明电路简单,成本低;
2、本发明仅占用电池一个引脚及主机的一个ADC;
3、本发明有效的提高了ID检测精度。
附图说明
图1为本发明电路实现结构框图。
图2为本发明所描述方法的状态切换图。
图3为本发明电容Cid充放电电压波形图。
具体实施方式
下面结合附图,对本发明的技术方案进行具体说明。
本发明的一种检测电池温度和ID的方法,包括如下步骤,
S1:在电池内部,NTC/ID管脚串联一NTC电阻至GND,并在该NTC电阻两端并联一电容Cid,将电池外部伸出的NTC/ID管脚与主机控制器的ADC管脚连接,同时将电池外部伸出的NTC/ID管脚通过电阻R1(定值电阻)连接至主机控制器的IO口;
S2:检测电池温度:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值,从而得出电池内部温度值;
S3:检测电池ID:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值;而后将IO口置低电平,间隔第二预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1、NTC电阻的阻值及NTC/ID管脚的电压值,即可计算电容Cid值,通过与主机控制器中预设的Cid值比较,从而获知电池ID;
S4:检测结束,将IO口置低电平。
所述步骤S2具体实现如下:
将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000004
其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值,Vio为IO口输出的高电平电压值,NTC为所求电池内部NTC电阻阻值;
根据Vadc、R1及Vio,即可计算得出电池内部NTC电阻阻值,由此即可得出电池内部温度值。
所述步骤S3具体实现如下:
(1)将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000005
其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值,Vio为IO口输出电压值,NTC为所求电池内部NTC电阻阻值;根据Vadc、R1 及Vio,即可计算得出电池内部NTC电阻阻值;
(2)将IO口置低电平0V,间隔第二预定时间t,ADC管脚采样NTC/ID管脚的电压值公式如下,
Figure PCTCN2016094781-appb-000006
其中,根据Vadc'、R1、NTC及Vio,即可计算得出电容Cid值,从而获知电池ID。
所述第一预定时间应大于电容Cid的充电时间,第二预定时间应小于电容Cid的放电时间。
本发明还提供了一种检测电池温度和ID的装置,包括在电池内部,一端分别与NTC/ID管脚串联连接的NTC电阻、电容Cid,NTC电阻、电容Cid的另一端相连接至GND,还包括一端与电池外部伸出的NTC/ID管脚相连接的电阻R1,电阻R1的另一端连接至主机控制器的IO口,所述电池外部伸出的NTC/ID管脚还连接至主机控制器的ADC管脚。为使得本领域技术人员更加了解本发明技术方案,以下具体讲述本发明的实现过程。
本发明提供了一种检测电池温度和ID的方法和装置。为使本发明的目的、技术方案及效果更加清楚明确,以下参考附图并举实例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。
如图1、2,主机上的电阻R1取值10KΩ,电池内部的NTC电池在常温时(即25℃)的阻值也是10KΩ,在其他温度下NTC表现为不同阻值。主机IO口高电平为3.3V,低电平为0V。有A和B两款电池,其内部的Cid分别为0.1uF和1uF。工作状态如下:
状态1):初始或空闲状态时,IO口输出0V,主机ADC检测到的电压Vadc=0V,检测电路功耗为零。
状态2):需要检测电池温度时,主机将IO口置为高电平3.3V,此时Cid开 始充电,如图3,主机ADC检测到的电压Vadc从0V逐渐升高,经过一段较长的时间(如100ms)后,Cid充满,此时Vadc电压等于R1和NTC的分压值,即:
Figure PCTCN2016094781-appb-000007
根据Vadc和R1值,可以计算出NTC的阻值,进而计算或者查表得到温度值,
状态3):需要检测电池ID时,在状态2的基础上将IO口由高电平3.3V置为低电平0V,此时电容Cid对R1和NTC放电,如图3,主机ADC检测到的电压Vadc从状态2中的R1和NTC的分压值开始逐渐下降,经过一段较短时间(如1ms)后,主机ADC进行采样,Vadc等于
Figure PCTCN2016094781-appb-000008
根据Vadc、R1和NTC值,可以计算出电容Cid值,进而识别出是电池A或者电池B。
当检测结束后,重新将IO口置低电平0V,回到状态1,检测电路功耗为零。
除了使用公式计算外,本专利的另一种实施方式是采用查找表,上述实例中,可预先将查找表储存到主机软件中,根据状态2和状态3中采样到的电压值Vadc可直接查表得到电池温度和ID。一种可行查找表1结构如下
表1
Figure PCTCN2016094781-appb-000009
Figure PCTCN2016094781-appb-000010
例如在状态2中采样到电压2.1V,状态3中采样到1.8V,查找表格可知,对应的电池温度为10℃,电池型号为B,以此类推。
状态3的另一种实施方式是检测从状态0变为状态1中的电容Cid的充电过程电压,具体方法类似,不详述。
以上是本发明的较佳实施例,凡依本发明技术方案所作的改变,所产生的功能作用未超出本发明技术方案的范围时,均属于本发明的保护范围。

Claims (7)

  1. 一种检测电池温度和ID的方法,其特征在于:包括如下步骤,
    S1:在电池内部,NTC/ID管脚串联一NTC电阻至GND,并在该NTC电阻两端并联一电容Cid,将电池外部伸出的NTC/ID管脚与主机控制器的ADC管脚连接,同时将电池外部伸出的NTC/ID管脚通过电阻R1连接至主机控制器的IO口;
    S2:检测电池温度:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值,从而得出电池内部温度值;
    S3:检测电池ID:将IO口置高电平,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1的阻值及NTC/ID管脚的电压值,即可计算得出电池内部NTC电阻阻值;而后将IO口置低电平,间隔第二预定时间,ADC管脚采样NTC/ID管脚的电压值,根据电阻R1、NTC电阻的阻值及NTC/ID管脚的电压值,即可计算电容Cid值,通过与主机控制器中预设的Cid值比较,从而获知电池ID;
    S4:检测结束,将IO口置低电平。
  2. 根据权利要求1所述的检测电池温度和ID的方法,其特征在于:所述步骤S2具体实现如下:
    将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
    Figure PCTCN2016094781-appb-100001
    其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值,Vio为IO口输出的高电平电压值,NTC为所求电池内部NTC电阻阻值;
    根据Vadc、R1及Vio,即可计算得出电池内部NTC电阻阻值,由此即可得出电池内部温度值。
  3. 根据权利要求1所述的检测电池温度和ID的方法,其特征在于:所述步骤S3具体实现如下:
    (1)将IO口置高电平Vio,间隔第一预定时间,ADC管脚采样NTC/ID管脚的电压值公式如下,
    Figure PCTCN2016094781-appb-100002
    其中,Vadc为ADC管脚采样NTC/ID管脚的电压值,R1为电阻R1阻值,Vio为IO口输出电压值,NTC为所求电池内部NTC电阻阻值;根据Vadc、R1及Vio,即可计算得出电池内部NTC电阻阻值;
    (2)将IO口置低电平0V,间隔第二预定时间t,ADC管脚采样NTC/ID管脚的电压值公式如下,
    Figure PCTCN2016094781-appb-100003
    其中,根据Vadc'、R1、NTC及Vio,即可计算得出电容Cid值,从而获知电池ID。
  4. 根据权利要求1所述的检测电池温度和ID的方法,其特征在于:所述第一预定时间应大于电容Cid的充电时间,第二预定时间应小于电容Cid的放电时间。
  5. 根据权利要求1所述的检测电池温度和ID的方法,其特征在于:所述电阻R1为定值电阻。
  6. 一种检测电池温度和ID的装置,其特征在于:包括在电池内部,一端分别与NTC/ID管脚串联连接的NTC电阻、电容Cid,NTC电阻、电容Cid的另一端相连接至GND,还包括一端与电池外部伸出的NTC/ID管脚相连接的电阻R1,电阻R1的另一端连接至主机控制器的IO口,所述电池外部伸出的NTC/ID管脚还连接至主机控制器的ADC管脚。
  7. 根据权利要求6所述的检测电池温度和ID的装置,其特征在于:所述电阻R1为定值电阻。
PCT/CN2016/094781 2016-04-01 2016-08-12 一种检测电池温度和id的方法及装置 WO2017166573A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610198323.5 2016-04-01
CN201610198323.5A CN105676145A (zh) 2016-04-01 2016-04-01 一种检测电池温度和id的方法及装置

Publications (1)

Publication Number Publication Date
WO2017166573A1 true WO2017166573A1 (zh) 2017-10-05

Family

ID=56225751

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094781 WO2017166573A1 (zh) 2016-04-01 2016-08-12 一种检测电池温度和id的方法及装置

Country Status (2)

Country Link
CN (1) CN105676145A (zh)
WO (1) WO2017166573A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110567603A (zh) * 2019-09-29 2019-12-13 杨柳 一种采用gpio控制的单adc多路温度监测电路
CN111432069A (zh) * 2020-03-12 2020-07-17 Oppo广东移动通信有限公司 终端设备的开机控制方法、装置、及相关设备
DE102020100710A1 (de) * 2020-01-14 2021-07-15 Miele & Cie. Kg Speichereinheit für mobiles Haushaltsgerät und Ladegerät
EP3940916A1 (en) * 2020-07-14 2022-01-19 Illinois Tool Works, Inc. Battery pack and battery charger with battery type identifying device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105676145A (zh) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 一种检测电池温度和id的方法及装置
CN106501723B (zh) * 2016-09-27 2019-04-12 宁波三星医疗电气股份有限公司 一种用于三相电表的内外置电池检测电路
CN107271917A (zh) * 2017-07-19 2017-10-20 上海鼎为电子科技(集团)有限公司 电池检测电路及移动终端
CN109473736B (zh) * 2017-09-08 2021-12-03 上海比亚迪有限公司 电池的电阻检测方法、充放电控制方法、装置及电子设备
CN110133402A (zh) * 2019-05-14 2019-08-16 惠州Tcl移动通信有限公司 一种电路板螺丝的定位检测方法、系统及移动终端
CN112304460B (zh) * 2020-10-20 2023-01-24 青岛依爱科技有限公司 基于双mos管导通切换的单路ad采样电路、系统及方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5696433A (en) * 1997-03-07 1997-12-09 Motorola, Inc. Method and apparatus for expanded battery recognition in a battery charging system
CN101354431A (zh) * 2008-08-26 2009-01-28 崧顺电子(深圳)有限公司 用于识别电池类型的装置和方法
CN101488589A (zh) * 2008-01-15 2009-07-22 宏达国际电子股份有限公司 电池组件及其充电状态的测量方法
CN103217650A (zh) * 2013-04-09 2013-07-24 青岛海信移动通信技术股份有限公司 电池类型检测方法及采用该方法设计的移动终端
CN103268965A (zh) * 2013-04-18 2013-08-28 深圳市金立通信设备有限公司 一种电池检测电路、电池及移动终端
CN103283082A (zh) * 2010-12-30 2013-09-04 吉列公司 单线电池组温度及识别方法
CN105676145A (zh) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 一种检测电池温度和id的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102183315A (zh) * 2011-02-28 2011-09-14 惠州Tcl移动通信有限公司 共用检测引脚检测电池id和电池温度的检测电路及方法
CN105353317B (zh) * 2013-04-09 2018-09-04 青岛海信移动通信技术股份有限公司 一种电池类型检测方法及移动终端
CN104638313B (zh) * 2013-11-15 2017-02-08 维沃移动通信有限公司 一种移动手持装置的电池识别方法
CN104714184B (zh) * 2015-03-12 2017-11-10 惠州Tcl移动通信有限公司 通过单引脚检测电池id和电池温度的检测装置及方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5696433A (en) * 1997-03-07 1997-12-09 Motorola, Inc. Method and apparatus for expanded battery recognition in a battery charging system
CN101488589A (zh) * 2008-01-15 2009-07-22 宏达国际电子股份有限公司 电池组件及其充电状态的测量方法
CN101354431A (zh) * 2008-08-26 2009-01-28 崧顺电子(深圳)有限公司 用于识别电池类型的装置和方法
CN103283082A (zh) * 2010-12-30 2013-09-04 吉列公司 单线电池组温度及识别方法
CN103217650A (zh) * 2013-04-09 2013-07-24 青岛海信移动通信技术股份有限公司 电池类型检测方法及采用该方法设计的移动终端
CN103268965A (zh) * 2013-04-18 2013-08-28 深圳市金立通信设备有限公司 一种电池检测电路、电池及移动终端
CN105676145A (zh) * 2016-04-01 2016-06-15 福建联迪商用设备有限公司 一种检测电池温度和id的方法及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110567603A (zh) * 2019-09-29 2019-12-13 杨柳 一种采用gpio控制的单adc多路温度监测电路
CN110567603B (zh) * 2019-09-29 2024-03-19 江苏久卫智能科技有限公司 一种采用gpio控制的单adc多路温度监测电路
DE102020100710A1 (de) * 2020-01-14 2021-07-15 Miele & Cie. Kg Speichereinheit für mobiles Haushaltsgerät und Ladegerät
EP3852220A1 (de) * 2020-01-14 2021-07-21 Miele & Cie. KG Speichereinheit für mobiles haushaltsgerät und ladegerät
CN111432069A (zh) * 2020-03-12 2020-07-17 Oppo广东移动通信有限公司 终端设备的开机控制方法、装置、及相关设备
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
CN105676145A (zh) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2017166573A1 (zh) 一种检测电池温度和id的方法及装置
WO2021068121A1 (zh) 电池检测方法、电池、电子设备和存储介质
CN106646256B (zh) 电池容量计算方法
CN106645981B (zh) 电容容值测量电路
CN107390138A (zh) 动力电池等效电路模型参数迭代辨识新方法
CN104076184A (zh) 电压检测装置
JP2020521947A (ja) バッテリー等価回路モデルのパラメータ推定方法、装置及び記録媒体
CN106840442A (zh) 一种电池温度测量系统及方法
WO2023207404A1 (zh) 一种电池内阻检测方法和电池内阻检测电路
CN105353317B (zh) 一种电池类型检测方法及移动终端
US11796578B2 (en) Insulation detection circuit for voltage balance
WO2020125407A1 (zh) 电池内阻检测的方法及装置、电池老化检测的方法及装置
CN106768459B (zh) 一种温湿度检测电路及控制方法
CN103217650B (zh) 电池类型检测方法及采用该方法设计的移动终端
CN201885823U (zh) 一种电磁炉的精确测温电路
TWI622780B (zh) Asymmetric battery detection device
CN109374148A (zh) 一种温度测量装置与测量方法
CN104390718A (zh) 一种温度检测方法
WO2023070321A1 (zh) 一种电池过流检测方法、电池管理系统及电池
CN103033693A (zh) 一种移动终端充电测试系统及方法
CN104897964B (zh) 一种测量可变电阻阻值的电路及方法
CN105514934B (zh) 非直接输出电压分压设置电路的输出过压保护方法及系统
CN204154789U (zh) 汽车蓄电池启动电压测量电路
CN108363012B (zh) 一种车用锂电池启动电源关键器件故障检测系统及方法
CN203465349U (zh) 一种基于敏感电阻的微功耗检测电路

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896345

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896345

Country of ref document: EP

Kind code of ref document: A1