CN116054301B - A battery protection device, battery protection method and electronic equipment - Google Patents

A battery protection device, battery protection method and electronic equipment Download PDF

Info

Publication number
CN116054301B
CN116054301B CN202210743212.3A CN202210743212A CN116054301B CN 116054301 B CN116054301 B CN 116054301B CN 202210743212 A CN202210743212 A CN 202210743212A CN 116054301 B CN116054301 B CN 116054301B
Authority
CN
China
Prior art keywords
battery
identification information
electronic device
main control
logic 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.)
Active
Application number
CN202210743212.3A
Other languages
Chinese (zh)
Other versions
CN116054301A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210743212.3A priority Critical patent/CN116054301B/en
Publication of CN116054301A publication Critical patent/CN116054301A/en
Application granted granted Critical
Publication of CN116054301B publication Critical patent/CN116054301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00038Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange using passive battery identification means, e.g. resistors or capacitors
    • H02J7/00043Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange using passive battery identification means, e.g. resistors or capacitors using switches, contacts or markings, e.g. optical, magnetic or barcode
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00306Overdischarge protection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请提供了一种电池保护装置、电池保护方法及电子设备,涉及终端技术领域。该电池保护装置设置于电子设备,电子设备的电池包括电芯和所述电池保护板,电池保护装置包括:主控芯片和逻辑芯片;逻辑芯片与主控芯片之间电气连接;所述逻辑芯片位于电池保护板;所述逻辑芯片,用于存储第一标识信息;主控芯片,用于存储第二标识信息,并读取所述逻辑芯片存储的所述第一标识信息,当第一标识信息与第二标识信息匹配时,控制电子设备按照正常充电模式对电池进行充电;当第一标识信息与第二标识信息不匹配或未读取到所述第一标识信息时,控制所述电子设备降低对所述电池的充电功率。利用该方案,能够在确保电池充电安全的前提下,降低硬件成本。

This application provides a battery protection device, a battery protection method and electronic equipment, and relates to the field of terminal technology. The battery protection device is provided in electronic equipment. The battery of the electronic equipment includes a battery core and the battery protection plate. The battery protection device includes: a main control chip and a logic chip; the logic chip and the main control chip are electrically connected; the logic chip Located on the battery protection board; the logic chip is used to store the first identification information; the main control chip is used to store the second identification information and read the first identification information stored in the logic chip. When the first identification information When the information matches the second identification information, the electronic device is controlled to charge the battery according to the normal charging mode; when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to charge the battery. The device reduces charging power to the battery. This solution can reduce hardware costs while ensuring battery charging safety.

Description

一种电池保护装置、电池保护方法及电子设备A battery protection device, battery protection method and electronic equipment

技术领域Technical field

本申请涉及终端技术领域,尤其涉及一种电池保护装置、电池保护方法及电子设备。The present application relates to the field of terminal technology, and in particular, to a battery protection device, a battery protection method and electronic equipment.

背景技术Background technique

随着电池充电技术的进步,目前大功率充电在电子设备上的应用日渐广泛。此外,电子设备上应用的电池的额定容量也日渐提升。With the advancement of battery charging technology, high-power charging is now increasingly used in electronic devices. In addition, the rated capacity of batteries used in electronic devices is also increasing.

目前,不同设备生产厂商的大功率充电技术存在差异,并且对电池的充电功率也不尽相同。为了避免电子设备应用非标配电池或者劣质电池,导致充电功率超出电池自身充电规格而出现安全事故,一般采用加密防伪集成电路(integrated circuit,IC)实现电池的安全保护。当加密防伪IC发现电子设备当前的电池为非标配电池时,可以使电子设备降低对电池的充电电流,以降低安全隐患。At present, there are differences in the high-power charging technology of different equipment manufacturers, and the charging power of the battery is also different. In order to avoid safety accidents caused by the use of non-standard batteries or inferior batteries in electronic equipment, which may cause the charging power to exceed the battery's own charging specifications, encryption and anti-counterfeiting integrated circuits (ICs) are generally used to achieve battery safety protection. When the encryption anti-counterfeiting IC discovers that the current battery of the electronic device is a non-standard battery, the electronic device can reduce the charging current of the battery to reduce safety risks.

但是,目前采用的加密防伪IC需要内置加密算法,导致加密防伪IC设计较为复杂,硬件成本较高。However, currently used encryption and anti-counterfeiting ICs require built-in encryption algorithms, resulting in a more complex design of encryption and anti-counterfeiting ICs and higher hardware costs.

发明内容Contents of the invention

为了解决上述问题,本申请提供了一种电池保护装置、电池保护方法及电子设备,能够在确保电池充电安全的前提下,降低硬件成本。In order to solve the above problems, this application provides a battery protection device, a battery protection method and electronic equipment, which can reduce hardware costs while ensuring the safety of battery charging.

第一方面,本申请提供了一种电池保护装置,该电池保护装置设置于电子设备,电子设备包括电池保护板,该电池保护装置包括主控芯片和逻辑芯片。其中,逻辑芯片与主控芯片之间电气连接,逻辑芯片位于电池保护板;逻辑芯片用于存储第一标识信息;所述主控芯片,用于存储第二标识信息,并读取所述逻辑芯片存储的所述第一标识信息,当所述第一标识信息与所述第二标识信息匹配时,控制所述电子设备按照正常充电模式对所述电池进行充电;当所述第一标识信息与所述第二标识信息不匹配或未读取到第一标识信息时,控制所述电子设备降低对所述电池的充电功率。In a first aspect, this application provides a battery protection device. The battery protection device is provided in an electronic device. The electronic device includes a battery protection board. The battery protection device includes a main control chip and a logic chip. Among them, the logic chip and the main control chip are electrically connected, and the logic chip is located on the battery protection board; the logic chip is used to store the first identification information; the main control chip is used to store the second identification information and read the logic The first identification information stored in the chip, when the first identification information matches the second identification information, controls the electronic device to charge the battery according to the normal charging mode; when the first identification information When the second identification information does not match or the first identification information is not read, the electronic device is controlled to reduce the charging power of the battery.

该电池保护装置选用普通的逻辑芯片,利用逻辑芯片的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。The battery protection device uses an ordinary logic chip and uses the read-write register of the logic chip to store the matching relationship between the electronic device and the battery on the logic chip, and also stores the matching relationship on the main control chip. By comparing the two matching relationship, you can determine whether the battery has been replaced. This solution does not require a built-in encryption algorithm on the logic chip and has low requirements on the logic chip. Therefore, it can reduce hardware costs while ensuring the safety of battery charging, and has high practicability.

在一种可能的实现方式中,所述主控芯片,具体用于当根据所述第一标识信息与所述第二标识信息匹配时,根据当前的时间、所述电子设备的标识码和所述电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息,存储所述更新后的第二标识信息并将所述更新后的第一标识信息写入所述逻辑芯片。此时每次充电后,都会更新第一标识信息以及第二标识信息,也即第一标识信息与第二标识信息并不固定,提升了信息的安全性。In a possible implementation, the main control chip is specifically configured to: when matching the first identification information and the second identification information, based on the current time, the identification code of the electronic device and the The identification code of the battery is generated, the updated first identification information and the updated second identification information are generated, the updated second identification information is stored, and the updated first identification information is written into the logic chip. . At this time, after each charging, the first identification information and the second identification information will be updated, that is, the first identification information and the second identification information are not fixed, which improves the security of the information.

在一种可能的实现方式中,所述电子设备的标识码为所述电子设备的产品序列码,所述电池的标识码为所述电池的产品序列码。In a possible implementation, the identification code of the electronic device is the product serial code of the electronic device, and the identification code of the battery is the product serial code of the battery.

在一种可能的实现方式中,所述主控芯片设置于所述电子设备的主板;所述逻辑芯片的接地端用于通过所述主板接地;所述逻辑芯片的接地端当与所述主板断开连接时,清除存储的所述第一标识信息,以使第一标识信息为空数据。也即当电池被更换时,由于逻辑芯片位于电池保护板,因此逻辑芯片也需要被更换,则逻辑芯片的接地端当与所述主板断开连接,导致逻辑芯片上的第一保护信息被清除。以便于根据第一保护信息能够确定出电池是否被更换或者出现异常掉电。In a possible implementation, the main control chip is provided on the mainboard of the electronic device; the grounding terminal of the logic chip is used for grounding through the mainboard; the grounding terminal of the logic chip is connected to the mainboard. When disconnecting, the stored first identification information is cleared so that the first identification information is empty data. That is, when the battery is replaced, since the logic chip is located on the battery protection board, the logic chip also needs to be replaced, and the ground terminal of the logic chip is disconnected from the motherboard, causing the first protection information on the logic chip to be cleared. . This is so that it can be determined based on the first protection information whether the battery has been replaced or abnormal power loss has occurred.

在一种可能的实现方式中,主控芯片,具体用于当读取到的所述第一标识信息和所述第二标识信息不一致时,或者,当未读取到所述第一标识信息,且所述电池的电压大于第一电压值时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。In a possible implementation, the main control chip is specifically used when the read first identification information and the second identification information are inconsistent, or when the first identification information is not read. , and when the voltage of the battery is greater than the first voltage value, the electronic device is controlled to charge the battery according to the lowest charging power supported by the electronic device.

当读取到的所述第一标识信息和所述第二标识信息不一致时,此时第一标识信息不为空数据,表征此时可能出现以下情况:电池发生了更换,但更换的电池中设置有本申请所述的逻辑芯片,但由于电池的识别码不同,导致虽然逻辑芯片和主控芯片之间的电气连接正常,但是逻辑芯片上存储的第一标识信息与主控芯片上存储的第二标识信息不一致。When the read first identification information and the second identification information are inconsistent, the first identification information is not empty data at this time, indicating that the following situation may occur at this time: the battery has been replaced, but the replaced battery has The logic chip described in this application is provided, but due to the different identification codes of the batteries, although the electrical connection between the logic chip and the main control chip is normal, the first identification information stored on the logic chip is different from the first identification information stored on the main control chip. The second identification information is inconsistent.

当未读取到所述第一标识信息,且所述电池的电压大于第一电压值时,表明此时电池未发生过放,电池可能被更换。When the first identification information is not read and the voltage of the battery is greater than the first voltage value, it indicates that the battery is not over-discharged at this time and the battery may be replaced.

为了避免安全隐患,主控芯片控制电子设备的充电管理模块按照最低的充电功率对电池的充电。In order to avoid potential safety hazards, the main control chip controls the charging management module of the electronic device to charge the battery according to the lowest charging power.

在一种可能的实现方式中,主控芯片,还用于当与所述逻辑芯片之间电气连接断开时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。In a possible implementation, the main control chip is also used to control the electronic device to charge the battery according to the lowest charging power supported by the electronic device when the electrical connection with the logic chip is disconnected. to charge.

在一种可能的实现方式中,主控芯片,具体用于当未读取到所述第一标识信息,且所述电池开始充电时的电压小于第一电压值,且所述电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,控制所述电子设备按照降额充电模式对所述电池进行充电,所述降额充电模式的充电功率低于所述正常充电模式的充电功率,高于所述电子设备支持的最低充电功率,所述第二电压值大于所述第一电压值。In a possible implementation, the main control chip is specifically used when the first identification information is not read, and the voltage of the battery when it starts charging is less than the first voltage value, and the voltage of the battery is When the time it takes for the second voltage value to drop to the first voltage value is greater than the preset time, the electronic device is controlled to charge the battery in a derating charging mode, and the charging power in the derating charging mode is lower than the normal charging. The charging power of the mode is higher than the lowest charging power supported by the electronic device, and the second voltage value is greater than the first voltage value.

此时电子设备的电池未被更换,但是发生了过放导致第一标识信息无法读取。降额充电模式的充电功率可以设置为略小于正常充电模式的充电功率。At this time, the battery of the electronic device has not been replaced, but it has been over-discharged and the first identification information cannot be read. The charging power in the derated charging mode can be set to be slightly less than the charging power in the normal charging mode.

在一种可能的实现方式中,主控芯片,还用于当与所述逻辑芯片之间的电气连接正常,但读取到所述第一标识信息为空数据时,控制所述电子设备按照所述降额充电模式对所述电池进行充电。In a possible implementation, the main control chip is also used to control the electronic device according to the The derated charging mode charges the battery.

此时可能出现以下情况:电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。At this time, the following situation may occur: the battery of the electronic device has not been replaced, but due to an accidental drop or collision, or a brief disassembly during maintenance, the logic chip loses power and the first identification information stored on the logic chip is cleared. , and then the logic chip is powered on normally and restored to normal connection with the main control chip.

在一种可能的实现方式中,主控芯片上还包括数据接口;所述数据接口用于连接外部设备;所述主控芯片,还用于对所述外部设备进行鉴权,当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。In a possible implementation, the main control chip also includes a data interface; the data interface is used to connect external devices; the main control chip is also used to authenticate the external device. When the authentication passes Finally, under the control of the external device, the updated second identification information is stored, and the updated first identification information is written to the logic chip.

在产线上连接外部设备时,可以对主控芯片和逻辑芯片上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片对逻辑芯片上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口在主控芯片和逻辑芯片上更新对应标识信息。When connecting external devices on the production line, the identification information stored on the main control chip and logic chip can be initialized and set; when the maintenance point connects external equipment, the data stored on the logic chip can be updated through the main control chip, and the data stored on the logic chip can be updated through the main control chip. That is, when the battery of an electronic device needs to be replaced, first replace the standard battery, obtain the identification code of the new battery, which is the device serial number of the new battery, and then update the corresponding identification information on the main control chip and logic chip through the data interface.

第二方面,本申请还提供了一种电池保护方法,应用于主控芯片,所述主控芯片存储有第二标识信息,该方法包括:读取逻辑芯片存储的第一标识信息,所述逻辑芯片与所述主控芯片之间电气连接,所述逻辑芯片位于电池保护板;当所述第一标识信息与所述第二标识信息匹配时,控制所述电子设备按照正常充电模式对所述电池进行充电;当所述第一标识信息与所述第二标识信息不匹配或未读取到所述第一标识信息时,控制所述电子设备降低对所述电池的充电功率。In a second aspect, this application also provides a battery protection method, which is applied to a main control chip. The main control chip stores second identification information. The method includes: reading the first identification information stored in the logic chip. The logic chip is electrically connected to the main control chip, and the logic chip is located on the battery protection board; when the first identification information matches the second identification information, the electronic device is controlled to charge all cells according to the normal charging mode. The battery is charged; when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to reduce the charging power of the battery.

利用该方法,通过将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。该方法无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。Using this method, the matching relationship between the electronic device and the battery is stored on the logic chip, and the matching relationship is also stored on the main control chip. By comparing the two matching relationships, it can be determined whether the battery has been replaced. This method does not require a built-in encryption algorithm on the logic chip and has low requirements on the logic chip. Therefore, it can reduce hardware costs while ensuring the safety of battery charging, and has high practicability.

在一种可能的实现方式中,所述当所述第一标识信息与所述第二标识信息匹配时,控制所述电子设备按照正常充电模式对所述电池进行充电,具体包括:In a possible implementation, when the first identification information matches the second identification information, controlling the electronic device to charge the battery in a normal charging mode specifically includes:

当所述第一标识信息与所述第二标识信息匹配时,根据当前的时间、所述电子设备的标识码和所述电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息;When the first identification information matches the second identification information, the updated first identification information and the updated third identification information are generated based on the current time, the identification code of the electronic device and the identification code of the battery. 2. Identification information;

存储所述更新后的第二标识信息并将所述更新后的第一标识信息写入所述逻辑芯片;Store the updated second identification information and write the updated first identification information into the logic chip;

并控制所述电子设备按照正常充电模式对所述电池进行充电。And control the electronic device to charge the battery according to the normal charging mode.

在一种可能的实现方式中,所述电子设备的标识码为所述电子设备的产品序列码,所述电池的标识码为所述电池的产品序列码。In a possible implementation, the identification code of the electronic device is the product serial code of the electronic device, and the identification code of the battery is the product serial code of the battery.

在一种可能的实现方式中,主控芯片设置于所述电子设备的主板;所述逻辑芯片的接地端通过所述主板接地;所述逻辑芯片的接地端当与所述主板断开连接时,清除存储的所述第一标识信息。In a possible implementation, the main control chip is provided on the mainboard of the electronic device; the ground terminal of the logic chip is grounded through the mainboard; when the ground terminal of the logic chip is disconnected from the mainboard , clear the stored first identification information.

在一种可能的实现方式中,所述当所述第一标识信息与所述第二标识信息不匹配或未读取到所述第一标识信息时,控制所述电子设备降低对所述电池的充电功率,具体包括:In a possible implementation, when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to reduce the impact on the battery. charging power, specifically including:

当读取到的所述第一标识信息和所述第二标识信息不一致时,或者,当未读取到所述第一标识信息,且所述电池的电压大于第一电压值时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。When the read first identification information and the second identification information are inconsistent, or when the first identification information is not read and the voltage of the battery is greater than the first voltage value, control all The electronic device charges the battery according to the lowest charging power supported by the electronic device.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

当与所述逻辑芯片之间电气连接断开时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。When the electrical connection with the logic chip is disconnected, the electronic device is controlled to charge the battery according to the lowest charging power supported by the electronic device.

在一种可能的实现方式中,所述当所述第一标识信息与所述第二标识信息不匹配或未读取到所述第一标识信息时,控制所述电子设备降低对所述电池的充电功率,具体包括:In a possible implementation, when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to reduce the impact on the battery. charging power, specifically including:

当未读取到所述第一标识信息,且所述电池开始充电时的电压小于第一电压值,且所述电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,控制所述电子设备按照降额充电模式对所述电池进行充电,所述降额充电模式的充电功率低于所述正常充电模式的充电功率,高于所述电子设备支持的最低充电功率,所述第二电压值大于所述第一电压值。When the first identification information is not read, and the voltage of the battery when it starts charging is less than the first voltage value, and the time it takes for the voltage of the battery to drop from the second voltage value to the first voltage value is greater than the preset time When, the electronic device is controlled to charge the battery according to the derated charging mode. The charging power of the derated charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic device. , the second voltage value is greater than the first voltage value.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

当与所述逻辑芯片之间的电气连接正常,但读取到所述第一标识信息为空数据时,控制所述电子设备按照所述降额充电模式对所述电池进行充电。When the electrical connection with the logic chip is normal but the first identification information is read as empty data, the electronic device is controlled to charge the battery according to the derating charging mode.

在一种可能的实现方式中,所述方法还包括:通过数据接口连接外部设备,并对所述外部设备进行鉴权;当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。In a possible implementation, the method further includes: connecting an external device through a data interface, and authenticating the external device; when the authentication is passed, under the control of the external device, store the updated the second identification information, and writes the updated first identification information to the logic chip.

第三方面,本申请还提供了一种电子设备,该电子设备包括以上实现方式提供的电池保护装置,还包括电芯。所述电芯和所述电池保护板封装在一起,以形成电池。电池用于为电子设备供电。电池保护装置的主控芯片可以集成在电子设备的主板上。主控芯片和逻辑芯片由电芯供电。In a third aspect, this application also provides an electronic device, which includes the battery protection device provided by the above implementation manner and also includes a battery core. The battery core and the battery protection plate are packaged together to form a battery. Batteries are used to power electronic devices. The main control chip of the battery protection device can be integrated on the motherboard of the electronic device. The main control chip and logic chip are powered by battery cells.

该电子设备应用了电池保护装置,该电池保护装置选用普通的逻辑芯片,利用逻辑芯片的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,主控芯片可以直接复用电子设备上的处理器,因此能够在确保电池充电安全的前提下,降低了电子设备的硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。The electronic equipment applies a battery protection device. The battery protection device uses an ordinary logic chip and uses the readable and writable registers of the logic chip to store the matching relationship between the electronic equipment and the battery on the logic chip and also on the main control chip. For this matching relationship, by comparing the two matching relationships, it can be determined whether the battery has been replaced. This solution does not require a built-in encryption algorithm on the logic chip and has low requirements for the logic chip. The main control chip can directly reuse the processor on the electronic device, so it can reduce the hardware cost of the electronic device while ensuring the safety of battery charging. , has high practicality. In addition, the battery protection device can also distinguish situations such as battery over-discharge, battery not replaced but communication failure between the main control chip and the logic chip, battery not replaced but short-term power outage, etc., so that the corresponding charging mode can be adopted, which has higher reliability. Practicality further improves the safety of electronic equipment and reduces the risk of accidents.

附图说明Description of the drawings

图1为电子设备的结构示意图;Figure 1 is a schematic structural diagram of an electronic device;

图2为一种充电阶段的示意图;Figure 2 is a schematic diagram of the charging stage;

图3为本申请实施例提供的一种电池保护装置的示意图;Figure 3 is a schematic diagram of a battery protection device provided by an embodiment of the present application;

图4为本申请实施例提供的另一种电池保护装置的示意图;Figure 4 is a schematic diagram of another battery protection device provided by an embodiment of the present application;

图5为本申请实施例提供的一种电池保护方法的流程图;Figure 5 is a flow chart of a battery protection method provided by an embodiment of the present application;

图6为本申请实施例提供的另一种电池保护方法的流程图;Figure 6 is a flow chart of another battery protection method provided by an embodiment of the present application;

图7为本申请实施例提供的一种电子设备的示意图。FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更清楚地理解本申请的方案,下面首先说明本申请技术方案的应用场景。In order to enable those in the technical field to understand the solution of the present application more clearly, the application scenarios of the technical solution of the present application are first described below.

本申请提供的技术方案可以应用于电子设备,电子设备可以为手机、可穿戴电子设备(例如智能手表)、平板电脑、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等,本申请实施例不作具体限定。The technical solution provided by this application can be applied to electronic devices. The electronic devices can be mobile phones, wearable electronic devices (such as smart watches), tablet computers, augmented reality (AR) devices, and virtual reality (VR) devices. etc., the embodiments of this application are not specifically limited.

参见图1,该图为电子设备的结构示意图。Refer to Figure 1, which is a schematic structural diagram of an electronic device.

电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

参见图2,该图为一种充电阶段的示意图。See Figure 2, which is a schematic diagram of a charging stage.

当电子设备20上使用标配的电池时,以电子设备20支持直流快充,也即大功率充电为例进行说明。此时对电子设备20的充电阶段可以分为涓流充电阶段、恒流充电阶段、恒压充电阶段和充电终止阶段。When a standard battery is used on the electronic device 20 , the electronic device 20 supports DC fast charging, that is, high-power charging, as an example. At this time, the charging stage of the electronic device 20 can be divided into a trickle charging stage, a constant current charging stage, a constant voltage charging stage and a charging termination stage.

图中曲线A表示电池的电压,曲线B表示电池的充电电流。Curve A in the figure represents the voltage of the battery, and curve B represents the charging current of the battery.

涓流充电阶段时,电子设备采用LDO(Low Dropout Regulator,低压差线性稳压器)充电模式,对应图中INT0-INT1之间。During the trickle charging stage, the electronic equipment adopts the LDO (Low Dropout Regulator, low voltage dropout linear regulator) charging mode, which corresponds to the period between INT0 and INT1 in the figure.

本实施例不具体限定恒流充电阶段分为几个阶段,恒流充电阶段可以分为多个阶段,例如:CC1阶段(对应图中INT1-INT2之间)、CC2阶段(对应图中INT2-INT3之间)和CC3阶段(对应图中INT3-INT4之间)。This embodiment does not specifically limit the constant current charging stage to several stages. The constant current charging stage can be divided into multiple stages, for example: CC1 stage (corresponding to INT1-INT2 in the figure), CC2 stage (corresponding to INT2-INT2 in the figure). Between INT3) and CC3 stage (corresponding to between INT3-INT4 in the figure).

图中CV表示恒压充电阶段,对应图中INT4-INT5之间。C1、C2和C3分别表示恒流充电阶时CC1阶段、CC2阶段和CC3阶段的充电电流。CV in the figure represents the constant voltage charging stage, corresponding to the period between INT4-INT5 in the figure. C1, C2 and C3 respectively represent the charging current in the CC1 stage, CC2 stage and CC3 stage during the constant current charging stage.

下面分别详细介绍涓流充电阶段、恒流充电阶段和恒压充电阶段。The trickle charging stage, constant current charging stage and constant voltage charging stage are introduced in detail below.

当电子设备的电池的电压小于预充充电阈值时,充电装置在给电子设备充电时,则能够确定电池的充电阶段为涓流充电阶段。When the voltage of the battery of the electronic device is less than the precharge charging threshold, the charging device can determine that the charging stage of the battery is a trickle charging stage when charging the electronic equipment.

本申请不限定预充充电阈值,预充充电阈值可以为2.8V,也可以为3V,本领域技术人员可以根据实际需要选择合适的预充充电阈值。This application does not limit the precharge charging threshold. The precharge charging threshold can be 2.8V or 3V. Those skilled in the art can select an appropriate precharge charging threshold according to actual needs.

在涓流充电阶段,充电装置会输出较小的电压给电子设备,为电池进行小电流充电。In the trickle charging stage, the charging device will output a smaller voltage to the electronic device to charge the battery with a small current.

在涓流充电阶段中,随着充电时间的增加,电池的电量越来越多,进而电池的电压也会变大。当电池的电压大于等于预充充电阈值时,充电阶段由涓流充电阶段变为恒流充电阶段。In the trickle charging stage, as the charging time increases, the battery has more and more power, and the battery voltage will also increase. When the battery voltage is greater than or equal to the precharge charging threshold, the charging stage changes from the trickle charging stage to the constant current charging stage.

在恒流充电阶段中,可以实现对电池的大电流充电,此时的充电功率较大,也即实现了快充功能。随着充电时间的增加,电池的电压进一步变大。当电池的电压大于等于快充充电阈值时,充电阶段由恒流充电阶段变为恒压充电阶段。In the constant current charging stage, large current charging of the battery can be achieved. At this time, the charging power is relatively large, that is, the fast charging function is realized. As the charging time increases, the battery voltage further increases. When the battery voltage is greater than or equal to the fast charging threshold, the charging stage changes from the constant current charging stage to the constant voltage charging stage.

在恒压充电阶段中,电池的电压几乎维持不变,充电电流逐渐下降,充电过程逐渐完成。In the constant voltage charging stage, the battery voltage remains almost unchanged, the charging current gradually decreases, and the charging process is gradually completed.

目前,不同设备生产厂商的大功率充电技术存在差异,并且对电池的充电功率也不尽相同。当电子设备应用非标配电池或者劣质电池时,充电功率可能超出电池自身充电规格而出现安全事故,例如在恒流充电过程中的充电电流过高,可能导致电池损坏,严重时还存在起火爆炸的风险。At present, there are differences in the high-power charging technology of different equipment manufacturers, and the charging power of the battery is also different. When non-standard batteries or inferior batteries are used in electronic equipment, the charging power may exceed the battery's own charging specifications and safety accidents may occur. For example, the charging current during constant current charging may be too high, which may cause battery damage, and in severe cases, fire and explosion. risks of.

目前一般采用加密防伪集成IC实现电池的安全保护。当加密防伪IC发现电子设备当前的电池为非标配电池时,可以使电子设备降低对电池的充电功率,例如采用小电流充电,以降低安全隐患。而采用的加密防伪IC需要内置加密算法,导致加密防伪IC设计较为复杂,硬件成本较高。At present, encryption and anti-counterfeiting integrated ICs are generally used to achieve battery safety protection. When the encryption anti-counterfeiting IC discovers that the current battery of the electronic device is a non-standard battery, the electronic device can reduce the charging power of the battery, for example, use a small current to charge, to reduce safety risks. The encryption and anti-counterfeiting IC used requires a built-in encryption algorithm, which makes the design of the encryption and anti-counterfeiting IC more complex and the hardware cost higher.

为了解决上述问题,本申请提供了一种电池保护装置、电池保护方法及电子设备,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑IC上,当标配电池被更换为非标配电池或劣质电池时,逻辑IC掉电信息清零,重新开机后信息不匹配,即可检测到电池被替换,进而改变相应的充电模式。因此该方案,能够在确保电池充电安全的前提下,降低硬件成本。In order to solve the above problems, this application provides a battery protection device, a battery protection method and an electronic device. The readable and writable register of the logic IC is used to store the matching relationship between the electronic device and the battery on the logic IC. When the standard battery is When replacing a non-standard battery or a low-quality battery, the logic IC power-down information is cleared. If the information does not match after restarting, it can be detected that the battery has been replaced, and the corresponding charging mode is changed. Therefore, this solution can reduce hardware costs while ensuring the safety of battery charging.

为了使本技术领域的人员更清楚地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。In order to enable those skilled in the art to understand the solution of the present application more clearly, the technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application.

本申请说明中的“第一”、“第二”等用词仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。Words such as "first" and "second" in the description of this application are only used for descriptive purposes and cannot be understood as indicating or implying the relative importance or implicitly indicating the quantity of the indicated technical features.

在本申请中,除非另有明确的规定和限定,术语“连接”应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或成一体;可以是直接连接,也可以通过中间媒介间接连接。In this application, unless otherwise clearly stated and limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral body; it can be a direct connection or a direct connection. Can be connected indirectly through an intermediary.

参见图3,该图为本申请实施例提供的一种电池保护装置的示意图。Refer to Figure 3, which is a schematic diagram of a battery protection device provided by an embodiment of the present application.

该电池保护装置包括:主控芯片401和逻辑芯片301。The battery protection device includes: a main control chip 401 and a logic chip 301.

主控芯片401设置在电子设备的主板40上,为电子设备的主板的重要组成部分。在一种可能的实现方式中,该主控芯片401可以为电子设备的CPU。The main control chip 401 is provided on the mainboard 40 of the electronic device and is an important component of the mainboard of the electronic device. In a possible implementation, the main control chip 401 may be a CPU of an electronic device.

主控芯片401上存储有第二标识信息。The main control chip 401 stores second identification information.

电子设备的电池194包括电池保护板30和电芯31。其中,电池保护板31主要是针对可充电(一般指锂电池)起保护作用的集成电路板。由于电芯31本身不能被过充、过放、过流、短路及超高温充放电,因此电芯31总会与电池保护板30配套出现,封装在一起以形成电池。The battery 194 of the electronic device includes a battery protection plate 30 and a battery core 31 . Among them, the battery protection board 31 is mainly an integrated circuit board that protects rechargeable (generally lithium batteries). Since the battery core 31 itself cannot be overcharged, overdischarged, overcurrent, short-circuited or charged and discharged at ultra-high temperatures, the battery core 31 is always paired with the battery protection plate 30 and packaged together to form a battery.

逻辑芯片301也可以称为可编程逻辑器件(Programmable Logic Device,PLD),是一种电子零件,简而言之也是一种集成电路。逻辑芯片301属于数字类型的电路芯片。本申请实施例中,逻辑芯片301用于存储第一标识信息。也即本申请实施例中,应用了逻辑芯片301上的可读写寄存器,进行存储,也即逻辑芯片301仅需实现简单的存储功能即可,无需内置复杂的加密算法,因此逻辑芯片301的实现方式简单,成本更低。The logic chip 301 can also be called a programmable logic device (PLD), which is an electronic component and, in short, an integrated circuit. The logic chip 301 is a digital type circuit chip. In this embodiment of the present application, the logic chip 301 is used to store the first identification information. That is to say, in the embodiment of the present application, the readable and writable registers on the logic chip 301 are used for storage, that is, the logic chip 301 only needs to implement a simple storage function without the need for built-in complex encryption algorithms. Therefore, the logic chip 301 The implementation method is simple and the cost is lower.

第一标识信息与第二标识信息用于表征电子设备与电池的匹配关系,当第一标识信息与第二标识信息匹配时,表征此时电子设备与电池匹配,也即电池未被更换;当第一标识信息与第二标识信息不匹配时,表征此时电子设备存在异常掉电的风险,或者电子设备的电池被更换。The first identification information and the second identification information are used to represent the matching relationship between the electronic device and the battery. When the first identification information matches the second identification information, it indicates that the electronic device and the battery are matched at this time, that is, the battery has not been replaced; when When the first identification information does not match the second identification information, it indicates that there is a risk of abnormal power loss of the electronic device at this time, or the battery of the electronic device has been replaced.

主控芯片401与逻辑芯片301之间进行电气连接。本申请实施例不具体限定电气连接的实现方式,例如可以通过单根信号线实现连接,或者通过多根信号线实现连接。The main control chip 401 and the logic chip 301 are electrically connected. The embodiments of the present application do not specifically limit the implementation of electrical connection. For example, the connection can be achieved through a single signal line, or the connection can be achieved through multiple signal lines.

当电子设备开机或者开始进行充电时,主控芯片401读取自身存储的第二标识信息,并读取逻辑芯片301存储的第一标识信息。主控芯片401将第一标识信息和第二标识信息进行比对,当第一标识信息与所述第二标识信息匹配时,表征此时电子设备的电池未被替换,此时可以按照正常的充电模式对电池进行充电。此时主控芯片401可以控制电子设备的充电管理模块对电子采用正常充电模式,执行正常的充电策略,例如可以正常采用大功率快充。When the electronic device is turned on or starts charging, the main control chip 401 reads the second identification information stored by itself and reads the first identification information stored by the logic chip 301 . The main control chip 401 compares the first identification information and the second identification information. When the first identification information matches the second identification information, it means that the battery of the electronic device has not been replaced at this time. At this time, the battery can be replaced as normal. Charging mode charges the battery. At this time, the main control chip 401 can control the charging management module of the electronic device to adopt a normal charging mode for the electronics and execute a normal charging strategy, for example, high-power fast charging can be used normally.

当第一标识信息与所述第二标识信息不匹配时,或未读取到所述第一标识信息时,表征此时电子设备的电池可能出现被替换的情况,此时为了避免安全隐患,主控芯片401控制电子设备的充电管理模块降低对电池的充电功率。When the first identification information does not match the second identification information, or when the first identification information is not read, it means that the battery of the electronic device may be replaced at this time. In order to avoid safety hazards, The main control chip 401 controls the charging management module of the electronic device to reduce the charging power of the battery.

综上所述,利用本申请实施例提供的电池保护装置,选用普通的逻辑芯片,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。To sum up, using the battery protection device provided by the embodiment of the present application, an ordinary logic chip is selected, and the readable and writable register of the logic IC is used to store the matching relationship between the electronic device and the battery on the logic chip, and the matching relationship between the electronic device and the battery is stored in the main control chip. The matching relationship is also stored on the computer. By comparing the two matching relationships, it can be determined whether the battery has been replaced. This solution does not require a built-in encryption algorithm on the logic chip and has low requirements on the logic chip. Therefore, it can reduce hardware costs while ensuring the safety of battery charging, and has high practicability.

下面结合具体的实现方式说明该电池保护装置的工作原理。The working principle of the battery protection device will be described below with specific implementation methods.

参见图4,该图为本申请实施例提供的另一种电池保护装置的示意图。Refer to Figure 4, which is a schematic diagram of another battery protection device provided by an embodiment of the present application.

该电池保护装置与图3的区别在于,还包括数据接口402。The difference between this battery protection device and FIG. 3 is that it also includes a data interface 402 .

电子设备出厂时,内置该电池保护装置,逻辑芯片301在出厂时即存储有初始的第一标识信息。初始的第一标识信息根据电子设备的标识码、电池的标识码和初始时间信息生成。When the electronic device leaves the factory, the battery protection device is built-in, and the logic chip 301 stores initial first identification information when it leaves the factory. The initial first identification information is generated based on the identification code of the electronic device, the identification code of the battery and the initial time information.

在一种可能的实现方式中,电子设备的标识码为电子设备的产品序列码(SerialNumber,SN),电池的标识码为电池的SN码。实际应用中,标识码也可以采用其他具备唯一标识功能的字符或字符串,本申请实施例不作具体限定。In a possible implementation, the identification code of the electronic device is the product serial number (SN) of the electronic device, and the identification code of the battery is the SN code of the battery. In actual applications, the identification code may also use other characters or strings with a unique identification function, which are not specifically limited in the embodiments of this application.

逻辑芯片301与主控芯片401之间进行电气连接,以实现通信。本申请实施例不具体限定电气连接的实现方式,例如可以通过单根信号线实现连接,或者通过多根信号线实现连接。The logic chip 301 and the main control chip 401 are electrically connected to achieve communication. The embodiments of the present application do not specifically limit the implementation of electrical connection. For example, the connection can be achieved through a single signal line, or the connection can be achieved through multiple signal lines.

此外,主控芯片401设置在电子设备的主板40上,逻辑芯片301的接地由主板40提供,也即芯片301的接地端通过走线连接主板40,通过主板40的接地端口实现接地。逻辑芯片301的接地端当与主板40断开连接时,清除自身存储的第一标识信息。In addition, the main control chip 401 is arranged on the motherboard 40 of the electronic device, and the grounding of the logic chip 301 is provided by the motherboard 40. That is, the ground terminal of the chip 301 is connected to the motherboard 40 through wiring, and the grounding is realized through the ground port of the motherboard 40. When the ground terminal of the logic chip 301 is disconnected from the motherboard 40, the first identification information stored in the logic chip 301 is cleared.

也即如果更换电池194,由于芯片301的接地端通过走线连接主板40以实现接地,则会使得逻辑芯片301掉电,逻辑芯片301被配置为掉电时数据清除。在另一些实施例中,逻辑芯片301也可以被配置为掉电时等待一定时间(例如几秒)后才数据清除,以排除偶尔接触不良等意外情况导致第一标识信息的被清除。That is, if the battery 194 is replaced, since the ground terminal of the chip 301 is connected to the motherboard 40 through wiring to achieve grounding, the logic chip 301 will be powered off, and the logic chip 301 is configured to clear data when powered off. In other embodiments, the logic chip 301 may also be configured to wait for a certain period of time (for example, a few seconds) before clearing the data when the power is turned off, to eliminate the possibility of clearing the first identification information due to accidental situations such as poor contact.

下面具体说明该电池保护装置的识别原理。The identification principle of the battery protection device is explained in detail below.

当电子设备开机或者通过充电装置进行充电时,主控芯片401获取存储的第二标识信息,该第二标识信息根据电子设备的标识码、电池的标识码以及网络时间生成。When the electronic device is turned on or charged through a charging device, the main control chip 401 obtains the stored second identification information. The second identification information is generated based on the identification code of the electronic device, the identification code of the battery, and the network time.

主控芯片401读取逻辑芯片301存储的第一标识信息。同理,该第一标识信息根据电子设备的标识码、电池的标识码以及网络时间生成。The main control chip 401 reads the first identification information stored in the logic chip 301 . Similarly, the first identification information is generated based on the identification code of the electronic device, the identification code of the battery, and the network time.

当主控芯片401读取到第一标识信息且第一标识信息与第二标识信息匹配时,表征此时电子设备的电池未被更换。When the main control chip 401 reads the first identification information and the first identification information matches the second identification information, it means that the battery of the electronic device has not been replaced at this time.

其中,第一标识信息与第二标识信息匹配,指的是两者表征的设备的标识码、电池的标识码以及网络时间相同。该网络时间可以为上次主控芯片401更新第一标识信息和第二标识信息的时间,或者为上次主控芯片401进行电池识别的时间。Wherein, the first identification information and the second identification information match, which means that the identification code of the device, the identification code of the battery and the network time represented by the two are the same. The network time may be the last time the main control chip 401 updated the first identification information and the second identification information, or the last time the main control chip 401 performed battery identification.

对于首次进行开启或者首次充电的设备,第一标识信息和第二标识信息对应的网络时间可以设置为初始网络时间,为一个设定值,本申请实施例对此不作具体限定For a device that is turned on or charged for the first time, the network time corresponding to the first identification information and the second identification information can be set as the initial network time, which is a set value. This is not specifically limited in the embodiment of the present application.

当主控芯片401读取到第一标识信息且第一标识信息与第二标识信息匹配时,主控芯片401根据当前的时间、电子设备的标识码和电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息,存储更新后的第二标识信息并将更新后的第一标识信息写入逻辑芯片301。在一种可能的实现方式中,主控芯片401生成的第一标识信息与第二标识信息包括的数据一致,但存储在不同的器件上。When the main control chip 401 reads the first identification information and the first identification information matches the second identification information, the main control chip 401 generates the updated third identification code based on the current time, the identification code of the electronic device and the identification code of the battery. An identification information and updated second identification information, the updated second identification information is stored and the updated first identification information is written into the logic chip 301 . In a possible implementation, the first identification information generated by the main control chip 401 is consistent with the data included in the second identification information, but is stored on different devices.

实际应用中,在一些实施例中,主控芯片401当第一标识信息写入逻辑芯片301成功后,才存储更新后的第二标识信息;否则,保持原有的第二标识信息不变。In practical applications, in some embodiments, the main control chip 401 only stores the updated second identification information after the first identification information is successfully written to the logic chip 301; otherwise, the original second identification information remains unchanged.

然后主控芯片401控制电子设备的充电管理模块按照正常充电模式对电池进行充电,例如对电池进行大功率快充。Then the main control chip 401 controls the charging management module of the electronic device to charge the battery according to the normal charging mode, for example, high-power fast charging of the battery.

在另一些实施例中,主控芯片401读取到的第一标识信息与第二标识信息不匹配,或者未读取到第一标识信息时,此时主控芯片401控制电子设备的充电管理模块降低对电池的充电功率,下面分别说明。In other embodiments, when the first identification information read by the main control chip 401 does not match the second identification information, or the first identification information is not read, the main control chip 401 controls the charging management of the electronic device at this time. The module reduces the charging power of the battery, which are explained below.

在一种可能的情况中,电池发生了更换,但更换的电池中设置有本申请所述的逻辑芯片301,但由于电池的识别码不同,导致虽然逻辑芯片301和主控芯片401之间的电气连接正常,但是逻辑芯片301上存储的第一标识信息与主控芯片401上存储的第二标识信息不一致,此时主控芯片401读取到的第一标识信息不是空数据。In one possible situation, the battery has been replaced, but the replaced battery is equipped with the logic chip 301 described in this application. However, due to the different identification codes of the batteries, although the logic chip 301 and the main control chip 401 have different The electrical connection is normal, but the first identification information stored on the logic chip 301 is inconsistent with the second identification information stored on the main control chip 401. At this time, the first identification information read by the main control chip 401 is not empty data.

主控芯片401当读取到的第一标识信息和第二标识信息不一致时,控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。When the read first identification information and the second identification information are inconsistent, the main control chip 401 controls the charging management module of the electronic device to charge the electronic device according to the lowest charging power supported by the battery device to avoid high-power charging from damaging the battery. This reduces safety risks.

本申请实施例不限定最低充电功率的具体规格,可以根据电子设备的实际情况确定。此外,主控芯片401当读取到的所述第一标识信息和所述第二标识信息不一致时,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。The embodiments of this application do not limit the specific specifications of the minimum charging power, which can be determined according to the actual situation of the electronic device. In addition, when the read first identification information and the second identification information are inconsistent, the main control chip 401 can also record the time of this identification and generate a corresponding log for recording, so as to facilitate subsequent equipment maintain.

在另一种可能的情况中,用户更换的非标配的电池,并且该电池中未设置本申请所述的逻辑芯片301。因此此时主控芯片401无法获取到第一标识信息,并且主控芯片401此时与逻辑芯片301之间的电气连接断开。In another possible situation, the user replaces a non-standard battery, and the logic chip 301 described in this application is not installed in the battery. Therefore, the main control chip 401 cannot obtain the first identification information at this time, and the electrical connection between the main control chip 401 and the logic chip 301 is disconnected at this time.

主控芯片401当未获取到第一标识信息时,且电池的电压大于第一电压值时,控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。When the main control chip 401 does not obtain the first identification information and the voltage of the battery is greater than the first voltage value, the main control chip 401 controls the charging management module of the electronic device to charge the electronic device according to the lowest charging power supported by the battery device to avoid high power. Charging damages the battery, thereby reducing safety risks.

其中,设置电池的电压大于第一电压值的判据是因为:如果电池未被更换,而电池出现过放时,逻辑芯片301可能掉电,此时主控芯片401无法读取到第一标识信息,导致逻辑芯片301容易误判电池发生了更换,为了避免这种情况,设置了电池的电压大于第一电压值的条件。当电池的电压大于第一电压值时,表征此时电池未发生过放,避免了误判。Among them, the criterion for setting the voltage of the battery to be greater than the first voltage value is because: if the battery has not been replaced and the battery is over-discharged, the logic chip 301 may lose power. At this time, the main control chip 401 cannot read the first identifier. information, causing the logic chip 301 to easily misjudge that the battery has been replaced. In order to avoid this situation, a condition is set that the voltage of the battery is greater than the first voltage value. When the voltage of the battery is greater than the first voltage value, it means that the battery is not over-discharged at this time, thus avoiding misjudgment.

实际应用中,电池的过放可能是由于电子设备长时间未使用,电池长时间未充电导致电量消耗过度。In practical applications, over-discharge of the battery may be caused by the electronic device not being used for a long time and the battery not being charged for a long time, resulting in excessive power consumption.

本申请实施例不限定最低充电功率的具体规格,可以根据电子设备的实际情况确定。此外,主控芯片401当无法获取到第一标识信息且电池的电压大于第一电压值时,判断此时电池可能被替换,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。The embodiments of this application do not limit the specific specifications of the minimum charging power, which can be determined according to the actual situation of the electronic device. In addition, when the main control chip 401 cannot obtain the first identification information and the voltage of the battery is greater than the first voltage value, it determines that the battery may be replaced at this time, and can also record the time of this identification and generate a corresponding log for recording. , to facilitate subsequent equipment maintenance.

在又一种可能的实现方式中,可以根据主控芯片401可以根据与逻辑芯片301之间的电气连接是否正常来确定是否降低对电池的充电功率。当电气连接断开时,表明此时存在异常断电行为,一方面,可能是由于电池更换导致电气连接断开,另一方面,还可能是由于遇到电子设备进水、撞击等原因导致电气连接断开,无论出现以上哪一种情况,对电池采用正常的大功率充电模式均存在安全隐患。因此主控芯片401当与逻辑芯片301之间电气连接断开时,控制电子设备的充电管理模块按照电子设备支持的最低充电功率,对电池进行充电。In yet another possible implementation, the main control chip 401 may determine whether to reduce the charging power of the battery based on whether the electrical connection with the logic chip 301 is normal. When the electrical connection is disconnected, it indicates that there is abnormal power outage behavior at this time. On the one hand, it may be due to battery replacement that causes the electrical connection to be disconnected. On the other hand, it may also be due to water intrusion or impact on the electronic device. If the connection is disconnected, no matter which of the above situations occurs, there are safety risks in using the normal high-power charging mode for the battery. Therefore, when the electrical connection between the main control chip 401 and the logic chip 301 is disconnected, the charging management module of the electronic device is controlled to charge the battery according to the lowest charging power supported by the electronic device.

此外,主控芯片401当与逻辑芯片301之间电气连接断开时,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, when the main control chip 401 is electrically disconnected from the logic chip 301, it can also record the time of this identification and generate a corresponding log for recording to facilitate subsequent equipment maintenance.

在再一种可能的实现方式中,电子设备的电池未被更换,但是电池发生了过放,例如电子设备长时间闲置未对电池进行充电,此时主控芯片401未获取到第一标识信息。本申请的方案为了识别出这种情况,避免误判电池更换,当逻辑芯片未读取到第一标识信息,且电池开始充电时的电压小于第一电压值,且电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,控制电子设备按照降额充电模式对电池进行充电。In another possible implementation, the battery of the electronic device has not been replaced, but the battery has been over-discharged. For example, the electronic device has been idle for a long time without charging the battery. At this time, the main control chip 401 has not obtained the first identification information. . The solution of this application is to identify this situation and avoid misjudgment of battery replacement. When the logic chip does not read the first identification information, and the voltage when the battery starts charging is less than the first voltage value, and the battery voltage is changed from the second voltage When the time taken for the voltage to drop to the first voltage value is greater than the preset time, the electronic device is controlled to charge the battery according to the derating charging mode.

本申请对第一电压值、第二电压值和预设时间不作具体限定。其中,第一电压值小于第二电压值,以电子设备为手机为例,第一电压值可以设置为2.6V,第二电压值可以设置为3.6V。当电池的电压低于第一电压值时,表征此时电池电压过低,可能出现了过放。该预设时间可以通过预先对电子设备进行闲置的测试来确定。实际应用中,主控芯片401可以从电子设备的最近的日志中确定电池的电压由第二电压值下降至第一电压值的用时。This application does not specifically limit the first voltage value, the second voltage value and the preset time. The first voltage value is smaller than the second voltage value. Taking the electronic device as a mobile phone as an example, the first voltage value can be set to 2.6V, and the second voltage value can be set to 3.6V. When the voltage of the battery is lower than the first voltage value, it means that the battery voltage is too low at this time and over-discharge may occur. The preset time can be determined by performing an idle test on the electronic device in advance. In practical applications, the main control chip 401 can determine the time it takes for the battery voltage to drop from the second voltage value to the first voltage value from the latest log of the electronic device.

本申请实施例不限定降额充电模式的具体规格,降额充电模式的充电功率低于正常充电模式的充电功率,高于电子设备支持的最低充电功率,具体充电功率可以根据电子设备的实际情况确定。实际应用中,由于该情况下电子设备的电池仅是出现了过放,而未出现更换,因此降额充电模式的充电功率可以设置为略小于正常充电模式的充电功率。The embodiments of this application do not limit the specific specifications of the derated charging mode. The charging power in the derated charging mode is lower than the charging power in the normal charging mode and higher than the minimum charging power supported by the electronic device. The specific charging power can be based on the actual situation of the electronic device. Sure. In practical applications, since the battery of the electronic device is only over-discharged and not replaced in this case, the charging power in the derated charging mode can be set to be slightly smaller than the charging power in the normal charging mode.

此外,主控芯片401可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, the main control chip 401 can record the time of this recognition and generate corresponding logs for recording to facilitate subsequent equipment maintenance.

在另一种可能的实现方式中,电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片301掉电,逻辑芯片301上存储的第一标识信息被清空,而之后逻辑芯片301由正常上电,并且与主控芯片401恢复正常连接。为了识别出该情况,主控芯片401当与逻辑芯片301之间的电气连接正常,但读取到第一标识信息为空数据时,控制电子设备的充电管理模块按照降额充电模式对电池进行充电。In another possible implementation, the battery of the electronic device has not been replaced, but due to an accidental drop or collision, or a brief disassembly during maintenance, the logic chip 301 loses power, and the first stored value on the logic chip 301 is lost. The identification information is cleared, and then the logic chip 301 is powered on normally, and the normal connection with the main control chip 401 is restored. In order to recognize this situation, when the electrical connection between the main control chip 401 and the logic chip 301 is normal, but the first identification information is read as empty data, the charging management module of the electronic device is controlled to charge the battery according to the derated charging mode. Charge.

此外,主控芯片401可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, the main control chip 401 can record the time of this recognition and generate corresponding logs for recording to facilitate subsequent equipment maintenance.

本申请实施例的设备主板40上还包括数据接口402。电子设备的产线或者维修点可以将数据接口与外部设备进行连接。主控芯片401对外部设备进行鉴权,以确定外部设备是否合规,是否为官方设备。当对外部设备的鉴权通过后,外部设备能够对主控芯片401进行控制和读写,将更新的第二标识信息存储在主控芯片401,以及控制主控芯片401向逻辑芯片写入更新后的第一标识信息。The device mainboard 40 in the embodiment of the present application also includes a data interface 402. The production line or maintenance point of electronic equipment can connect the data interface to external equipment. The main control chip 401 authenticates the external device to determine whether the external device is compliant and whether it is an official device. After the external device is authenticated, the external device can control, read and write the main control chip 401, store the updated second identification information in the main control chip 401, and control the main control chip 401 to write updates to the logic chip. The first identification information after.

在产线上连接外部设备时,可以对主控芯片401和逻辑芯片301上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片401对逻辑芯片301上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口402在主控芯片401和逻辑芯片301上更新对应标识信息。When an external device is connected to the production line, the identification information stored on the main control chip 401 and the logic chip 301 can be initialized and set; when the maintenance point connects an external device, the data stored on the logic chip 301 can be set through the main control chip 401. Update, that is, when the battery of the electronic device needs to be replaced, first replace the standard battery, obtain the identification code of the new battery, that is, the device serial number of the new battery, and then use the data interface 402 to connect the main control chip 401 and the logic chip Update the corresponding identification information on 301.

此外,对于以下两种情况,也可以通过在数据接口402连接外部设备,重新在主控芯片401和逻辑芯片301上更新对应标识信息,以使电子设备的充电管理模块能够对电池采用正常的充电模式:In addition, for the following two situations, you can also connect an external device to the data interface 402 and update the corresponding identification information on the main control chip 401 and the logic chip 301 again, so that the charging management module of the electronic device can charge the battery normally. model:

1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, or brief disassembly during maintenance, the logic chip loses power, and the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally and resume normal connection with the main control chip.

2.电子设备的电池未被更换,但是电池发生了过放,例如电子设备长时间闲置未对电池进行充电,此时主控芯片无法获取第一标识信息。2. The battery of the electronic device has not been replaced, but the battery has been over-discharged. For example, the electronic device has been idle for a long time without charging the battery. At this time, the main control chip cannot obtain the first identification information.

对于以上两种情况,由于实际上并未进行电池的更换,因此可以恢复对电池的正常充电模式。For the above two situations, since the battery is not actually replaced, the normal charging mode of the battery can be restored.

综上所述,利用本申请实施例提供的电池保护装置,选用普通的逻辑芯片,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。To sum up, using the battery protection device provided by the embodiment of the present application, an ordinary logic chip is selected, and the readable and writable register of the logic IC is used to store the matching relationship between the electronic device and the battery on the logic chip, and the matching relationship between the electronic device and the battery is stored in the main control chip. The matching relationship is also stored on the computer. By comparing the two matching relationships, it can be determined whether the battery has been replaced. This solution does not require a built-in encryption algorithm on the logic chip and has low requirements on the logic chip. Therefore, it can reduce hardware costs while ensuring the safety of battery charging, and has high practicability. In addition, the battery protection device can also distinguish situations such as battery over-discharge, battery not replaced but communication failure between the main control chip and the logic chip, battery not replaced but short-term power outage, etc., so that the corresponding charging mode can be adopted, which has higher reliability. Practicality further improves the safety of electronic equipment and reduces the risk of accidents.

基于以上实施例提供的电池保护装置,本申请还提供了一种电池保护方法,下面结合附图具体说明。Based on the battery protection device provided in the above embodiments, this application also provides a battery protection method, which will be described in detail below with reference to the accompanying drawings.

参见图5,该图为本申请实施例提供的一种电池保护方法的流程图。Refer to Figure 5, which is a flow chart of a battery protection method provided by an embodiment of the present application.

该方法应用于电子设备的主控芯片,主控芯片存储有第二标识信息,主控芯片能够读取逻辑芯片存储的第一标识信息,关于主控芯片和逻辑芯片的具体实现方式可以参见以上实施例中的说明,在此不再赘述。该方法包括以下流程:This method is applied to the main control chip of the electronic device. The main control chip stores the second identification information. The main control chip can read the first identification information stored in the logic chip. For the specific implementation methods of the main control chip and the logic chip, please refer to the above. The descriptions in the embodiments will not be repeated here. The method includes the following processes:

S101:读取逻辑芯片存储的第一标识信息。S101: Read the first identification information stored in the logic chip.

逻辑芯片与主控芯片之间电气连接,逻辑芯片位于电池保护板。The logic chip is electrically connected to the main control chip, and the logic chip is located on the battery protection board.

当电子设备开机或者开始进行充电时,主控芯片读取自身存储的第二标识信息,并读取逻辑芯片存储的第一标识信息。When the electronic device is turned on or starts charging, the main control chip reads the second identification information stored by itself and reads the first identification information stored by the logic chip.

第一标识信息与第二标识信息用于表征电子设备与电池的匹配关系,当第一标识信息与第二标识信息匹配时,表征此时电子设备与电池匹配,也即电池未被更换;当第一标识信息与第二标识信息不匹配时,表征此时电子设备存在异常掉电的风险,或者电子设备的电池被更换。The first identification information and the second identification information are used to represent the matching relationship between the electronic device and the battery. When the first identification information matches the second identification information, it indicates that the electronic device and the battery are matched at this time, that is, the battery has not been replaced; when When the first identification information does not match the second identification information, it indicates that there is a risk of abnormal power loss of the electronic device at this time, or the battery of the electronic device has been replaced.

S102:当第一标识信息与第二标识信息匹配时,控制电子设备按照正常充电模式对电池进行充电。S102: When the first identification information matches the second identification information, control the electronic device to charge the battery according to the normal charging mode.

主控芯片可以控制电子设备的充电管理模块对电子采用正常充电模式,执行正常的充电策略,例如可以正常采用大功率快充。The main control chip can control the charging management module of the electronic device to adopt the normal charging mode for the electronics and implement the normal charging strategy. For example, high-power fast charging can be used normally.

S103:当第一标识信息与第二标识信息不匹配或未读取到第一标识信息时,控制电子设备降低对电池的充电功率。S103: When the first identification information does not match the second identification information or the first identification information is not read, control the electronic device to reduce the charging power of the battery.

当第一标识信息与所述第二标识信息不匹配时,或未读取到所述第一标识信息时,表征此时电子设备的电池可能出现被替换的情况,此时为了避免安全隐患,主控芯片控制电子设备的充电管理模块降低对电池的充电功率。When the first identification information does not match the second identification information, or when the first identification information is not read, it means that the battery of the electronic device may be replaced at this time. In order to avoid safety hazards, The main control chip controls the charging management module of the electronic device to reduce the charging power of the battery.

下面结合具体的实现方式进行说明。The following describes the specific implementation method.

参见图6,该图为本申请实施例提供的另一种电池保护方法的流程图。Refer to Figure 6, which is a flow chart of another battery protection method provided by an embodiment of the present application.

S201:读取逻辑芯片存储的第一标识信息。S201: Read the first identification information stored in the logic chip.

S202:第一标识信息与第二标识信息是否匹配。S202: Whether the first identification information matches the second identification information.

若是,则执行S203;否则,执行S205。If yes, execute S203; otherwise, execute S205.

S203:根据当前的时间、电子设备的标识码和电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息,存储更新后的第二标识信息并将更新后的第一标识信息写入逻辑芯片。S203: Generate updated first identification information and updated second identification information based on the current time, the identification code of the electronic device, and the identification code of the battery, store the updated second identification information, and store the updated first identification information. The identification information is written to the logic chip.

此时每次充电后,都会更新第一标识信息以及第二标识信息,也即第一标识信息与第二标识信息并不固定,提升了信息的安全性。At this time, after each charging, the first identification information and the second identification information will be updated, that is, the first identification information and the second identification information are not fixed, which improves the security of the information.

电子设备的标识码为所述电子设备的产品序列码,所述电池的标识码为所述电池的产品序列码。The identification code of the electronic device is the product serial code of the electronic device, and the identification code of the battery is the product serial code of the battery.

S204:控制电子设备按照正常充电模式对电池进行充电。S204: Control the electronic device to charge the battery according to the normal charging mode.

主控芯片可以控制电子设备的充电管理模块对电子采用正常充电模式,执行正常的充电策略,例如可以正常采用大功率快充。The main control chip can control the charging management module of the electronic device to adopt the normal charging mode for the electronics and implement the normal charging strategy. For example, high-power fast charging can be used normally.

S205:主控芯片与逻辑芯片之间的电气连接是否断开。S205: Whether the electrical connection between the main control chip and the logic chip is disconnected.

若是,则执行S211;若否,则执行S206。If yes, execute S211; if not, execute S206.

S206:是否读取到第一识别信息。S206: Whether the first identification information is read.

若是,则执行S209;若否,则执行S207。If yes, execute S209; if not, execute S207.

S207:电池电压是否大于第一电压值。S207: Whether the battery voltage is greater than the first voltage value.

若是,则执行S211;若否,则执行S208。If yes, execute S211; if not, execute S208.

当电子设备开机前或者开始充电前的电池电压大于第一电压值时,表明此时电子设备的电池未出现过放,则判断此时可能出现了电池更换。以电子设备为手机为例,第一电压值可以设置为2.6V,当电池的电压低于第一电压值时,表征此时电池电压过低,可能出现了过放。When the battery voltage before the electronic device is turned on or before charging is started is greater than the first voltage value, it indicates that the battery of the electronic device is not over-discharged at this time, and it is determined that the battery replacement may have occurred at this time. Taking the electronic device as a mobile phone as an example, the first voltage value can be set to 2.6V. When the voltage of the battery is lower than the first voltage value, it means that the battery voltage is too low at this time and over-discharge may occur.

S208:电池的电压由第二电压值下降至第一电压值的用时是否大于预设时间。S208: Whether the time it takes for the battery voltage to drop from the second voltage value to the first voltage value is greater than the preset time.

若是,则执行S210;若否,则执行S211。If yes, execute S210; if not, execute S211.

当电池的电压由第二电压值下降至第一电压值的用时小于预设时间时,表征此时电池未出现过放,因此判断电池可能出现了更换。When the time it takes for the voltage of the battery to drop from the second voltage value to the first voltage value is less than the preset time, it means that the battery is not over-discharged at this time, so it is judged that the battery may have been replaced.

而当电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,表征此时电子设备长时间闲置未对电池进行充电,导致电池电压过低,可能出现了过放。该预设时间可以通过预先对电子设备进行闲置的测试来确定。When the time it takes for the battery voltage to drop from the second voltage value to the first voltage value is greater than the preset time, it means that the electronic device has been idle for a long time without charging the battery, resulting in low battery voltage and possibly over-discharge. The preset time can be determined by performing an idle test on the electronic device in advance.

实际应用中,可以从电子设备的最近的日志中确定电池的电压由第二电压值下降至第一电压值的用时。In practical applications, the time it takes for the voltage of the battery to drop from the second voltage value to the first voltage value can be determined from a recent log of the electronic device.

S209:读取到的第一标识信息是否为空数据。S209: Whether the first identification information read is empty data.

若是,则执行S210;若否,则执行S211。If yes, execute S210; if not, execute S211.

当第一标识信息为空数据时,表征此时可能出现以下情况:电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。When the first identification information is empty data, it means that the following situation may occur at this time: the battery of the electronic device has not been replaced, but due to accidental drop or collision, or brief disassembly during maintenance, the logic chip loses power. The first identification information stored on the logic chip is cleared, and then the logic chip is powered on normally and the normal connection with the main control chip is restored.

当第一标识信息不为空数据时,表征此时可能出现以下情况:电池发生了更换,但更换的电池中设置有本申请所述的逻辑芯片,但由于电池的识别码不同,导致虽然逻辑芯片和主控芯片之间的电气连接正常,但是逻辑芯片上存储的第一标识信息与主控芯片上存储的第二标识信息不一致。When the first identification information is not empty data, it means that the following situation may occur at this time: the battery has been replaced, but the replaced battery is equipped with the logic chip described in this application, but because the identification code of the battery is different, although the logic chip The electrical connection between the chip and the main control chip is normal, but the first identification information stored on the logic chip is inconsistent with the second identification information stored on the main control chip.

S210:控制电子设备按照降额充电模式对电池进行充电。S210: Control the electronic device to charge the battery according to the derated charging mode.

本申请实施例不限定降额充电模式的具体规格,降额充电模式的充电功率低于正常充电模式的充电功率,高于电子设备支持的最低充电功率,具体充电功率可以根据电子设备的实际情况确定。实际应用中,降额充电模式的充电功率可以设置为略小于正常充电模式的充电功率。The embodiments of this application do not limit the specific specifications of the derated charging mode. The charging power in the derated charging mode is lower than the charging power in the normal charging mode and higher than the minimum charging power supported by the electronic device. The specific charging power can be based on the actual situation of the electronic device. Sure. In practical applications, the charging power in the derated charging mode can be set to be slightly smaller than the charging power in the normal charging mode.

S211:控制电子设备按照支持的最低充电功率对电池进行充电。S211: Control the electronic device to charge the battery according to the lowest supported charging power.

控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。The charging management module that controls the electronic device charges the electronic device according to the lowest charging power supported by the battery device to avoid high-power charging from damaging the battery, thereby reducing potential safety hazards.

以上步骤的划分仅是为了方便说明,并不构成对于本申请技术方案的限定。实际应用中,本领域技术人员可以根据电子设备的情况对以上步骤进行调整。The division of the above steps is only for convenience of explanation and does not constitute a limitation on the technical solution of the present application. In practical applications, those skilled in the art can adjust the above steps according to the conditions of the electronic device.

进一步的,在另一些实施例中,还可以包括以下步骤:Further, in other embodiments, the following steps may also be included:

通过数据接口连接外部设备,并对所述外部设备进行鉴权;Connect external devices through the data interface and authenticate the external devices;

当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。After the authentication is passed, under the control of the external device, the updated second identification information is stored, and the updated first identification information is written to the logic chip.

在产线上连接外部设备时,可以对主控芯片和逻辑芯片上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片对逻辑芯片上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口在主控芯片和逻辑芯片上更新对应标识信息。When connecting external devices on the production line, the identification information stored on the main control chip and logic chip can be initialized and set; when the maintenance point connects external equipment, the data stored on the logic chip can be updated through the main control chip, and the data stored on the logic chip can be updated through the main control chip. That is, when the battery of an electronic device needs to be replaced, first replace the standard battery, obtain the identification code of the new battery, which is the device serial number of the new battery, and then update the corresponding identification information on the main control chip and logic chip through the data interface.

此外,对于以下两种情况,由于电子设备的电池未被更换,也可以通过在数据接口连接外部设备,重新在主控芯片和逻辑芯片上更新对应标识信息,以使电子设备的充电管理模块能够对电池采用正常的充电模式:In addition, for the following two situations, since the battery of the electronic device has not been replaced, you can also connect the external device through the data interface and update the corresponding identification information on the main control chip and logic chip again, so that the charging management module of the electronic device can Use normal charging mode for the battery:

1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接;1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, or brief disassembly during maintenance, the logic chip loses power, and the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally and resume normal connection with the main control chip;

2.电子设备的电池未被更换,但是电池发生了过放,例如电子设备长时间闲置未对电池进行充电,此时主控芯片无法获取第一标识信息。2. The battery of the electronic device has not been replaced, but the battery has been over-discharged. For example, the electronic device has been idle for a long time without charging the battery. At this time, the main control chip cannot obtain the first identification information.

综上所述,利用该方法,通过将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。该方法无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。此外,该方法还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。In summary, using this method, by storing the matching relationship between the electronic device and the battery on the logic chip, and also storing the matching relationship on the main control chip, by comparing the two matching relationships, it can be determined whether the battery has been damaged. replace. This method does not require a built-in encryption algorithm on the logic chip and has low requirements on the logic chip. Therefore, it can reduce hardware costs while ensuring the safety of battery charging, and has high practicability. In addition, this method can also distinguish situations where the battery is over-discharged, the battery has not been replaced but there is a communication failure between the main control chip and the logic chip, the battery has not been replaced but there is a brief power outage, etc., so that the corresponding charging mode can be adopted, which is highly practical. , further improving the safety of electronic equipment and reducing the risk of accidents.

基于以上实施例提供的电池保护装置和电池保护方法,本申请还提供了一种电子设备,下面结合附图具体说明。Based on the battery protection device and battery protection method provided in the above embodiments, this application also provides an electronic device, which will be described in detail below with reference to the accompanying drawings.

参见图7,该图为本申请实施例提供的一种电子设备的示意图。Refer to Figure 7, which is a schematic diagram of an electronic device provided by an embodiment of the present application.

本申请实施例提供的电子设备70包括电池保护装置701和电芯31。The electronic device 70 provided in this embodiment of the present application includes a battery protection device 701 and a battery core 31 .

其中,该电池保护装置701包括逻辑芯片301和主控芯片401。The battery protection device 701 includes a logic chip 301 and a main control chip 401 .

逻辑芯片301位于电池保护板30。主控芯片401可以集成在电子设备70的主板40。The logic chip 301 is located on the battery protection board 30 . The main control chip 401 can be integrated on the motherboard 40 of the electronic device 70 .

关于逻辑芯片301和主控芯片401的具体实现方式以及工作原理可以参见以上实施例中的相关说明,本申请实施例在此不再赘述。Regarding the specific implementation and working principles of the logic chip 301 and the main control chip 401, please refer to the relevant descriptions in the above embodiments, and the embodiments of the present application will not be repeated here.

电芯31和电池保护板30封装形成电池194,也即逻辑芯片301位于电池194。The battery core 31 and the battery protection plate 30 are packaged to form a battery 194, that is, the logic chip 301 is located in the battery 194.

电池194用于为电子设备70进行供电。Battery 194 is used to power electronic device 70 .

在一些实施例中,主控芯片上还包括数据接口402,该数据接口通过走线连接主板40上的对外接口。当主板40上的对外接口外接外部设备时,也即数据接口402外接了外部设备。本申请实施例不具体限定外部设备的类型,例如可以为手机、平板电脑、PC或者笔记本电脑等等。In some embodiments, the main control chip also includes a data interface 402, which is connected to the external interface on the motherboard 40 through wires. When the external interface on the motherboard 40 is connected to an external device, that is, the data interface 402 is connected to the external device. The embodiments of the present application do not specifically limit the type of external device, for example, it may be a mobile phone, a tablet, a PC or a laptop, etc.

电子设备的产线或者维修点可以将数据接口与外部设备进行连接。主控芯片401对外部设备进行鉴权,以确定外部设备是否合规,是否为官方设备。当对外部设备的鉴权通过后,外部设备能够对主控芯片401进行控制和读写,将更新的第二标识信息存储在主控芯片401,以及控制主控芯片401向逻辑芯片写入更新后的第一标识信息。The production line or maintenance point of electronic equipment can connect the data interface to external equipment. The main control chip 401 authenticates the external device to determine whether the external device is compliant and whether it is an official device. After the external device is authenticated, the external device can control, read and write the main control chip 401, store the updated second identification information in the main control chip 401, and control the main control chip 401 to write updates to the logic chip. The first identification information after.

在产线上连接外部设备时,可以对主控芯片401和逻辑芯片301上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片401对逻辑芯片301上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口402在主控芯片401和逻辑芯片301上更新对应标识信息。When an external device is connected to the production line, the identification information stored on the main control chip 401 and the logic chip 301 can be initialized and set; when the maintenance point connects an external device, the data stored on the logic chip 301 can be set through the main control chip 401. Update, that is, when the battery of the electronic device needs to be replaced, first replace the standard battery, obtain the identification code of the new battery, that is, the device serial number of the new battery, and then use the data interface 402 to connect the main control chip 401 and the logic chip Update the corresponding identification information on 301.

此外,对于以下两种情况,也可以通过在数据接口402连接外部设备,重新在主控芯片401和逻辑芯片301上更新对应标识信息,以使电子设备的充电管理模块能够对电池采用正常的充电模式:In addition, for the following two situations, you can also connect an external device to the data interface 402 and update the corresponding identification information on the main control chip 401 and the logic chip 301 again, so that the charging management module of the electronic device can charge the battery normally. model:

1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, or brief disassembly during maintenance, the logic chip loses power, and the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally and resume normal connection with the main control chip.

2.电子设备的电池未被更换,但是电池发生了过放,例如电子设备长时间闲置未对电池进行充电,此时主控芯片无法正常获取第一标识信息。2. The battery of the electronic device has not been replaced, but the battery has been over-discharged. For example, the electronic device has been idle for a long time without charging the battery. At this time, the main control chip cannot obtain the first identification information normally.

在一种可能的实现方式中,该数据接口402可以与电子设备上的USB接口实现连接,此时外部设备通过电子设备的USB接口即可连接数据接口402。USB接口可以为Mini USB接口,Micro USB接口,USB Type C接口等,本申请实施例不作具体限定。In a possible implementation, the data interface 402 can be connected to a USB interface on the electronic device. In this case, the external device can connect to the data interface 402 through the USB interface of the electronic device. The USB interface may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc., which are not specifically limited in the embodiments of this application.

本申请实施例不具体限定电子设备的类型,电子设备可以为手机、可穿戴电子设备(例如智能手表)、平板电脑、增强现实(augmented reality,AR)设备、虚拟现实(virtualreality,VR)设备等。The embodiments of this application do not specifically limit the type of electronic device. The electronic device may be a mobile phone, a wearable electronic device (such as a smart watch), a tablet, an augmented reality (AR) device, a virtual reality (VR) device, etc. .

综上所述,该电子设备应用了电池保护装置,该电池保护装置选用普通的逻辑芯片,利用逻辑芯片的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,主控芯片可以直接复用电子设备上的处理器,因此能够在确保电池充电安全的前提下,降低了电子设备的硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。To sum up, this electronic device applies a battery protection device. The battery protection device uses an ordinary logic chip and uses the readable and writable registers of the logic chip to store the matching relationship between the electronic device and the battery on the logic chip, and in the host computer. The matching relationship is also stored on the control chip. By comparing the two matching relationships, it can be determined whether the battery has been replaced. This solution does not require a built-in encryption algorithm on the logic chip and has low requirements for the logic chip. The main control chip can directly reuse the processor on the electronic device, so it can reduce the hardware cost of the electronic device while ensuring the safety of battery charging. , has high practicality. In addition, the battery protection device can also distinguish situations such as battery over-discharge, battery not replaced but communication failure between the main control chip and the logic chip, battery not replaced but short-term power outage, etc., so that the corresponding charging mode can be adopted, which has higher reliability. Practicality further improves the safety of electronic equipment and reduces the risk of accidents.

应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。It should be understood that in this application, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And/or" is used to describe the relationship between associated objects, indicating that there can be three relationships. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist simultaneously. , where A and B can be singular or plural.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in each embodiment of the present application.

Claims (17)

1. A battery protection device, characterized in that is provided in an electronic apparatus, a battery of the electronic apparatus includes a battery cell and a battery protection board, the battery protection device includes: a main control chip and a logic chip;
the logic chip is electrically connected with the main control chip;
The logic chip is positioned on the battery protection board;
the logic chip is used for storing first identification information;
the main control chip is used for storing second identification information, reading the first identification information stored by the logic chip, and controlling the electronic equipment to charge the battery according to a normal charging mode when the first identification information is matched with the second identification information; when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery; and when the first identification information is not read, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time when the voltage of the battery is reduced from a second voltage value to the first voltage value is longer than a preset time, the electronic equipment is controlled to charge the battery according to a derating charging mode, the charging power of the derating charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic equipment, and the second voltage value is larger than the first voltage value.
2. The battery protection device according to claim 1, wherein the main control chip is specifically configured to generate updated first identification information and updated second identification information according to a current time, an identification code of the electronic device, and an identification code of the battery when the first identification information matches the second identification information, store the updated second identification information, and write the updated first identification information into the logic chip.
3. The battery protection device of claim 2, wherein the identification code of the electronic device is a product serial code of the electronic device and the identification code of the battery is a product serial code of the battery.
4. The battery protection device according to claim 3, wherein the main control chip is disposed on a motherboard of the electronic apparatus;
the grounding end of the logic chip is used for being grounded through the main board;
and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared.
5. The battery protection device according to claim 4, wherein the main control chip is specifically configured to control the electronic device to charge the battery according to a minimum charging power supported by the electronic device when the read first identification information and the read second identification information are inconsistent, or when the first identification information is not read and the voltage of the battery is greater than a first voltage value.
6. The battery protection device of claim 5, wherein the main control chip is further configured to control the electronic device to charge the battery according to a minimum charging power supported by the electronic device when the main control chip is electrically disconnected from the logic chip.
7. The battery protection device of claim 4, wherein the main control chip is further configured to control the electronic device to charge the battery according to the derating charging mode when the electrical connection with the logic chip is normal, but the first identification information is read as null data.
8. The battery protection device according to any one of claims 1 to 7, wherein the main control chip further comprises a data interface thereon;
the data interface is used for connecting with external equipment;
the main control chip is also used for authenticating the external equipment, storing the updated second identification information under the control of the external equipment after the authentication is passed, and writing the updated first identification information into the logic chip.
9. The battery protection method is characterized by being applied to a main control chip of electronic equipment, wherein the main control chip stores second identification information, and the method comprises the following steps:
reading first identification information stored by a logic chip, wherein the logic chip is electrically connected with the main control chip and is positioned on a battery protection board;
when the first identification information is matched with the second identification information, the electronic equipment is controlled to charge the battery according to a normal charging mode;
When the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery;
when the first identification information is not read, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time when the voltage of the battery is reduced from a second voltage value to the first voltage value is longer than a preset time, the electronic equipment is controlled to charge the battery according to a derating charging mode, the charging power of the derating charging mode is lower than the charging power of the normal charging mode and is higher than the lowest charging power supported by the electronic equipment, and the second voltage value is larger than the first voltage value.
10. The battery protection method according to claim 9, wherein when the first identification information matches the second identification information, the electronic device is controlled to charge the battery in a normal charging mode, specifically comprising:
when the first identification information is matched with the second identification information, generating updated first identification information and updated second identification information according to the current time, the identification code of the electronic equipment and the identification code of the battery;
Storing the updated second identification information and writing the updated first identification information into the logic chip;
and controlling the electronic equipment to charge the battery according to a normal charging mode.
11. The battery protection method of claim 10, wherein the identification code of the electronic device is a product serial code of the electronic device, and the identification code of the battery is a product serial code of the battery.
12. The battery protection method according to claim 10, wherein the main control chip is disposed on a motherboard of the electronic device; the grounding end of the logic chip is grounded through the main board; and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared.
13. The method according to claim 12, wherein when the first identification information does not match the second identification information or the first identification information is not read, controlling the electronic device to reduce the charging power of the battery specifically includes:
and when the read first identification information is inconsistent with the second identification information, or when the first identification information is not read and the voltage of the battery is larger than a first voltage value, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
14. The battery protection method according to claim 13, characterized in that the method further comprises:
and when the electric connection between the electronic equipment and the logic chip is disconnected, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
15. The battery protection method according to claim 13, characterized in that the method further comprises:
and when the electrical connection between the electronic device and the logic chip is normal, but the first identification information is read to be null data, controlling the electronic device to charge the battery according to the derating charging mode.
16. The battery protection method according to any one of claims 9 to 15, characterized in that the method further comprises:
connecting external equipment through a data interface, and authenticating the external equipment;
and after the authentication is passed, storing the updated second identification information under the control of the external equipment, and writing the updated first identification information into the logic chip.
17. An electronic device, characterized in that it comprises the battery protection device of any one of claims 1-8, further comprising a battery cell;
The battery cell and the battery protection plate form the battery;
the battery is used for supplying power to the electronic equipment.
CN202210743212.3A 2022-06-28 2022-06-28 A battery protection device, battery protection method and electronic equipment Active CN116054301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743212.3A CN116054301B (en) 2022-06-28 2022-06-28 A battery protection device, battery protection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743212.3A CN116054301B (en) 2022-06-28 2022-06-28 A battery protection device, battery protection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116054301A CN116054301A (en) 2023-05-02
CN116054301B true CN116054301B (en) 2023-10-24

Family

ID=86113887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743212.3A Active CN116054301B (en) 2022-06-28 2022-06-28 A battery protection device, battery protection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116054301B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707618B (en) * 2023-06-30 2024-08-09 荣耀终端有限公司 Data reading method, electronic device and storage medium
CN117578669A (en) * 2023-11-29 2024-02-20 苏州赛芯电子科技股份有限公司 Battery charging and discharging device and control method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212410B1 (en) * 1997-02-24 2001-04-03 Nec Corporation Portable telephone apparatus with security function
JP2002165382A (en) * 2001-09-25 2002-06-07 Toshiba Corp Electronic device system and charge control method for secondary battery pack
CN103606718A (en) * 2013-10-25 2014-02-26 小米科技有限责任公司 Battery, battery protection method, apparatus and system
CN107681730A (en) * 2017-10-26 2018-02-09 珠海市魅族科技有限公司 A kind of battery, terminal device, charging system, the recognition methods of battery and device
WO2018169323A1 (en) * 2017-03-17 2018-09-20 삼성전자 주식회사 Electronic device and control method therefor
CN212277961U (en) * 2020-06-16 2021-01-01 无锡北方湖光光电有限公司 Battery information reading circuit
CN112803525A (en) * 2020-12-31 2021-05-14 联想(北京)有限公司 Electronic device and charging control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5508752B2 (en) * 2008-04-09 2014-06-04 パナソニック株式会社 Battery authentication system and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212410B1 (en) * 1997-02-24 2001-04-03 Nec Corporation Portable telephone apparatus with security function
JP2002165382A (en) * 2001-09-25 2002-06-07 Toshiba Corp Electronic device system and charge control method for secondary battery pack
CN103606718A (en) * 2013-10-25 2014-02-26 小米科技有限责任公司 Battery, battery protection method, apparatus and system
WO2018169323A1 (en) * 2017-03-17 2018-09-20 삼성전자 주식회사 Electronic device and control method therefor
CN107681730A (en) * 2017-10-26 2018-02-09 珠海市魅族科技有限公司 A kind of battery, terminal device, charging system, the recognition methods of battery and device
CN212277961U (en) * 2020-06-16 2021-01-01 无锡北方湖光光电有限公司 Battery information reading circuit
CN112803525A (en) * 2020-12-31 2021-05-14 联想(北京)有限公司 Electronic device and charging control method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高性能锂电池充电器设计方案;郝杰;《中国新技术新产品》;第2页 *

Also Published As

Publication number Publication date
CN116054301A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
JP3819658B2 (en) Portable electronic devices with a common serial bus connector
EP3750227B1 (en) Electronic device including control circuits controlling switches connected to charging circuit
TWI494863B (en) Dual-interface card reader module
US11482871B2 (en) Electronic device and charging control method therefor
CN116054301B (en) A battery protection device, battery protection method and electronic equipment
CN108845655B (en) Electronic equipment control method, device, control circuit and electronic equipment
CN102694400B (en) Imput output circuit
JP2001184147A (en) Portable electronic equipment
TW201035727A (en) Port power controller for USB hubs with legacy battery charge support
KR102813618B1 (en) Method for power supply and an electronic device thereof
US20210089099A1 (en) Electronic device supporting connection with external device and power consumption reducing method when using electronic device in connection with external device
US20090037756A1 (en) System and Method for Suspending Operation of a Mobile Unit
US20030115001A1 (en) Electrical apparatus, computer equipment, intelligent battery, and control method for battery
US11269588B2 (en) Electronic device for outputting audio through USB port and method thereof
CN114077565A (en) Identification circuit, system control circuit, access circuit, interface equipment
KR102799036B1 (en) Method for malfunction of connector and electronic device having the connector
US12292786B1 (en) Server interrupt operation execution method and apparatus, device and storage medium
CN111949103B (en) Integrated electronic device with data access, transmission and power management and method thereof
CN114221403B (en) Charging method and charging device
KR20210037309A (en) Electronic device and method for controlling reset of control integrated circuit
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
CN202948397U (en) Computer and its external power supply module
CN114265492A (en) Power-on method, device and electronic device
KR102600482B1 (en) Electronic apparatus and method for outputting a alarm, and system including a locking device connected to the electronic device
CN116131372A (en) Charging circuit and system, wearable device, charging method for wearable device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address