CN116054301A - A battery protection device, battery protection method and electronic equipment - Google Patents
A battery protection device, battery protection method and electronic equipment Download PDFInfo
- Publication number
- CN116054301A CN116054301A CN202210743212.3A CN202210743212A CN116054301A CN 116054301 A CN116054301 A CN 116054301A CN 202210743212 A CN202210743212 A CN 202210743212A CN 116054301 A CN116054301 A CN 116054301A
- Authority
- CN
- China
- Prior art keywords
- battery
- identification information
- electronic device
- logic chip
- main control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00038—Circuit 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/00043—Circuit 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
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/00306—Overdischarge protection
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种电池保护装置、电池保护方法及电子设备。The present application relates to the field of terminal technologies, and in particular to a battery protection device, a battery protection method, and electronic equipment.
背景技术Background technique
随着电池充电技术的进步,目前大功率充电在电子设备上的应用日渐广泛。此外,电子设备上应用的电池的额定容量也日渐提升。With the advancement of battery charging technology, the application of high-power charging on electronic devices is becoming more and more extensive. In addition, the rated capacity of batteries used in electronic devices is also increasing day by day.
目前,不同设备生产厂商的大功率充电技术存在差异,并且对电池的充电功率也不尽相同。为了避免电子设备应用非标配电池或者劣质电池,导致充电功率超出电池自身充电规格而出现安全事故,一般采用加密防伪集成电路(integrated circuit,IC)实现电池的安全保护。当加密防伪IC发现电子设备当前的电池为非标配电池时,可以使电子设备降低对电池的充电电流,以降低安全隐患。At present, there are differences in the high-power charging technologies 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, resulting in charging power exceeding the battery’s own charging specifications, an encrypted anti-counterfeiting integrated circuit (IC) is generally used to achieve battery safety protection. When the encrypted anti-counterfeiting IC finds that the current battery of the electronic device is a non-standard battery, it can reduce the charging current of the electronic device to the battery to reduce potential safety hazards.
但是,目前采用的加密防伪IC需要内置加密算法,导致加密防伪IC设计较为复杂,硬件成本较高。However, currently used encryption anti-counterfeiting ICs require built-in encryption algorithms, resulting in complex design of encryption anti-counterfeiting ICs and high hardware costs.
发明内容Contents of the invention
为了解决上述问题,本申请提供了一种电池保护装置、电池保护方法及电子设备,能够在确保电池充电安全的前提下,降低硬件成本。In order to solve the above problems, the present application provides a battery protection device, a battery protection method and an electronic device, which can reduce hardware costs on the premise of ensuring battery charging safety.
第一方面,本申请提供了一种电池保护装置,该电池保护装置设置于电子设备,电子设备包括电池保护板,该电池保护装置包括主控芯片和逻辑芯片。其中,逻辑芯片与主控芯片之间电气连接,逻辑芯片位于电池保护板;逻辑芯片用于存储第一标识信息;所述主控芯片,用于存储第二标识信息,并读取所述逻辑芯片存储的所述第一标识信息,当所述第一标识信息与所述第二标识信息匹配时,控制所述电子设备按照正常充电模式对所述电池进行充电;当所述第一标识信息与所述第二标识信息不匹配或未读取到第一标识信息时,控制所述电子设备降低对所述电池的充电功率。In a first aspect, the present application provides a battery protection device. The battery protection device is set on an electronic device, the electronic device includes a battery protection board, and the battery protection device includes a main control chip and a logic chip. Wherein, the logic chip is electrically connected to the main control chip, 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, control 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 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 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 battery charging safety, and has high practicability.
在一种可能的实现方式中,所述主控芯片,具体用于当根据所述第一标识信息与所述第二标识信息匹配时,根据当前的时间、所述电子设备的标识码和所述电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息,存储所述更新后的第二标识信息并将所述更新后的第一标识信息写入所述逻辑芯片。此时每次充电后,都会更新第一标识信息以及第二标识信息,也即第一标识信息与第二标识信息并不固定,提升了信息的安全性。In a possible implementation manner, the main control chip is specifically configured to: when the first identification information matches the second identification information, according to the current time, the identification code of the electronic device, and the the identification code of the battery, generate updated first identification information and updated second identification information, store the updated second identification information and write the updated first identification information into the logic chip . At this time, after each charging, the first identification information and the second identification information are updated, that is, the first identification information and the second identification information are not fixed, which improves the security of information.
在一种可能的实现方式中,所述电子设备的标识码为所述电子设备的产品序列码,所述电池的标识码为所述电池的产品序列码。In a possible implementation manner, 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.
在一种可能的实现方式中,所述主控芯片设置于所述电子设备的主板;所述逻辑芯片的接地端用于通过所述主板接地;所述逻辑芯片的接地端当与所述主板断开连接时,清除存储的所述第一标识信息,以使第一标识信息为空数据。也即当电池被更换时,由于逻辑芯片位于电池保护板,因此逻辑芯片也需要被更换,则逻辑芯片的接地端当与所述主板断开连接,导致逻辑芯片上的第一保护信息被清除。以便于根据第一保护信息能够确定出电池是否被更换或者出现异常掉电。In a possible implementation manner, the main control chip is arranged on the main board of the electronic device; the ground terminal of the logic chip is used for grounding through the main board; the ground terminal of the logic chip should be connected to the main board When the connection is disconnected, 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 main board, causing the first protection information on the logic chip to be cleared . So that it can be determined according to the first protection information whether the battery has been replaced or abnormal power failure occurs.
在一种可能的实现方式中,主控芯片,具体用于当读取到的所述第一标识信息和所述第二标识信息不一致时,或者,当未读取到所述第一标识信息,且所述电池的电压大于第一电压值时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。In a possible implementation manner, the main control chip is specifically configured to: when the read first identification information is inconsistent with the second identification information, 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 is inconsistent with the second identification information, 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 The logic chip described in this application is provided, but because the identification codes of the batteries are different, 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 manner, the main control chip is further configured 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 manner, the main control chip is specifically configured to: when the first identification information is not read and the voltage of the battery starts charging is less than the first voltage value, and the voltage of the battery is determined by When the time taken for the second voltage value to drop to the first voltage value is longer than the preset time, the electronic device is controlled to charge the battery according to the derating charging mode, and the charging power of the derating charging mode is lower than the normal charging The charging power of the mode is higher than the minimum 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 the first identification information cannot be read due to over-discharge. The charging power of the derating charging mode can be set to be slightly lower than that of the normal charging mode.
在一种可能的实现方式中,主控芯片,还用于当与所述逻辑芯片之间的电气连接正常,但读取到所述第一标识信息为空数据时,控制所述电子设备按照所述降额充电模式对所述电池进行充电。In a possible implementation manner, the main control chip is further configured to control the electronic device according to The derating charging mode charges the battery.
此时可能出现以下情况:电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。At this time, the following situations may occur: the battery of the electronic device has not been replaced, but due to accidental drop or collision, or short-term disassembly during maintenance, the logic chip is powered off, and 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.
在一种可能的实现方式中,主控芯片上还包括数据接口;所述数据接口用于连接外部设备;所述主控芯片,还用于对所述外部设备进行鉴权,当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。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 Then, under the control of the external device, store the updated second identification information, and write the updated first identification information into 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; when the maintenance point is connected to external devices, the data stored on the logic chip can be updated through the main control chip, and also 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, that 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, the present application also provides a battery protection method, which is applied to a main control chip, and the main control chip stores second identification information, and the method includes: reading the first identification information stored in the logic chip, the 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, control the electronic device to charge the electronic device 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.
利用该方法,通过将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。该方法无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。With 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 replaced. The method does not need to build an encryption algorithm on the logic chip, and has low requirements on the logic chip, so it can reduce hardware costs under the premise of ensuring battery charging safety, and has high practicability.
在一种可能的实现方式中,所述当所述第一标识信息与所述第二标识信息匹配时,控制所述电子设备按照正常充电模式对所述电池进行充电,具体包括:In a possible implementation manner, when the first identification information matches the second identification information, controlling the electronic device to charge the battery according to a normal charging mode specifically includes:
当所述第一标识信息与所述第二标识信息匹配时,根据当前的时间、所述电子设备的标识码和所述电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息;When the first identification information matches the second identification information, generate updated first identification information and updated first identification information according to the current time, the identification code of the electronic device, and the identification code of the battery. 2. Identification information;
存储所述更新后的第二标识信息并将所述更新后的第一标识信息写入所述逻辑芯片;storing the updated second identification information and writing 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 manner, 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.
在一种可能的实现方式中,主控芯片设置于所述电子设备的主板;所述逻辑芯片的接地端通过所述主板接地;所述逻辑芯片的接地端当与所述主板断开连接时,清除存储的所述第一标识信息。In a possible implementation manner, the main control chip is arranged on the main board of the electronic device; the ground terminal of the logic chip is grounded through the main board; when the ground terminal of the logic chip is disconnected from the main board, , clearing the stored first identification information.
在一种可能的实现方式中,所述当所述第一标识信息与所述第二标识信息不匹配或未读取到所述第一标识信息时,控制所述电子设备降低对所述电池的充电功率,具体包括:In a possible implementation manner, 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 lower the power consumption of the battery. charging power, including:
当读取到的所述第一标识信息和所述第二标识信息不一致时,或者,当未读取到所述第一标识信息,且所述电池的电压大于第一电压值时,控制所述电子设备按照所述电子设备支持的最低充电功率,对所述电池进行充电。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 greater than the first voltage value, control the 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 manner, 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 lower the power consumption of the battery. charging power, including:
当未读取到所述第一标识信息,且所述电池开始充电时的电压小于第一电压值,且所述电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,控制所述电子设备按照降额充电模式对所述电池进行充电,所述降额充电模式的充电功率低于所述正常充电模式的充电功率,高于所述电子设备支持的最低充电功率,所述第二电压值大于所述第一电压值。When the first identification information is not read, and the voltage of the battery when charging starts is less than the first voltage value, and the time taken for the voltage of the battery to drop from the second voltage value to the first voltage value is longer than a preset time , control the electronic device to charge the battery according to the 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 minimum 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 read first identification information is empty data, control the electronic device to charge the battery according to the derating charging mode.
在一种可能的实现方式中,所述方法还包括:通过数据接口连接外部设备,并对所述外部设备进行鉴权;当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。In a possible implementation, the method further includes: connecting to an external device through a data interface, and authenticating the external device; after the authentication is passed, under the control of the external device, storing the updated and write the updated first identification information into the logic chip.
第三方面,本申请还提供了一种电子设备,该电子设备包括以上实现方式提供的电池保护装置,还包括电芯。所述电芯和所述电池保护板封装在一起,以形成电池。电池用于为电子设备供电。电池保护装置的主控芯片可以集成在电子设备的主板上。主控芯片和逻辑芯片由电芯供电。In a third aspect, the present application further provides an electronic device, the electronic device includes the battery protection device provided in the above implementation manner, and further includes a battery cell. The battery cell 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 main board of the electronic equipment. The main control chip and logic chip are powered by batteries.
该电子设备应用了电池保护装置,该电池保护装置选用普通的逻辑芯片,利用逻辑芯片的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,主控芯片可以直接复用电子设备上的处理器,因此能够在确保电池充电安全的前提下,降低了电子设备的硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。The electronic equipment uses 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 stores it on the main control chip. For the 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 on the logic chip. The main control chip can directly multiplex 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 practicability. In addition, the battery protection device can also distinguish the battery over-discharge, the battery has not been replaced but the main control chip and the logic chip have a communication failure, the battery has not been replaced but the power is lost for a short time, etc., so as to adopt the corresponding charging mode, with high Practicality further improves the safety of electronic equipment and reduces the risk of accidents.
附图说明Description of drawings
图1为电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device;
图2为一种充电阶段的示意图;Fig. 2 is a schematic diagram of a charging stage;
图3为本申请实施例提供的一种电池保护装置的示意图;FIG. 3 is a schematic diagram of a battery protection device provided by an embodiment of the present application;
图4为本申请实施例提供的另一种电池保护装置的示意图;Fig. 4 is a schematic diagram of another battery protection device provided by the embodiment of the present application;
图5为本申请实施例提供的一种电池保护方法的流程图;FIG. 5 is a flow chart of a battery protection method provided by an embodiment of the present application;
图6为本申请实施例提供的另一种电池保护方法的流程图;FIG. 6 is a flow chart of another battery protection method provided by the 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 skilled in the art 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 solutions provided by this application can be applied to electronic devices, and the electronic devices can be mobile phones, wearable electronic devices (such as smart watches), tablet computers, augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices etc., which are not specifically limited in the embodiments of the present application.
参见图1,该图为电子设备的结构示意图。Referring to FIG. 1 , this figure 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
可以理解的是,本发明实施例示意的结构并不构成对电子设备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 figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized 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
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. 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 and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does 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 manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the
参见图2,该图为一种充电阶段的示意图。Referring to Fig. 2, this figure is a schematic diagram of a charging stage.
当电子设备20上使用标配的电池时,以电子设备20支持直流快充,也即大功率充电为例进行说明。此时对电子设备20的充电阶段可以分为涓流充电阶段、恒流充电阶段、恒压充电阶段和充电终止阶段。When a standard battery is used on the electronic device 20 , it will be described by taking the electronic device 20 supporting DC fast charging, that is, high-power charging as an example. At this time, the charging phase of the electronic device 20 can be divided into a trickle charging phase, a constant current charging phase, a constant voltage charging phase and a charging termination phase.
图中曲线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 device adopts LDO (Low Dropout Regulator, low dropout linear regulator) charging mode, which corresponds to INT0-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 be divided into several stages, and the constant current charging stage can be divided into multiple stages, for example: CC1 stage (corresponding between INT1-INT2 in the figure), CC2 stage (corresponding to INT2-INT2 in the figure) between INT3) and CC3 stages (corresponding 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 currents of the CC1 stage, CC2 stage and CC3 stage during the constant current charging stage.
下面分别详细介绍涓流充电阶段、恒流充电阶段和恒压充电阶段。The trickle charging stage, the constant current charging stage and the constant voltage charging stage are described in detail below.
当电子设备的电池的电压小于预充充电阈值时,充电装置在给电子设备充电时,则能够确定电池的充电阶段为涓流充电阶段。When the voltage of the battery of the electronic device is lower than the pre-charge charging threshold, the charging device can determine that the charging stage of the battery is a trickle charging stage when charging the electronic device.
本申请不限定预充充电阈值,预充充电阈值可以为2.8V,也可以为3V,本领域技术人员可以根据实际需要选择合适的预充充电阈值。The present application does not limit the pre-charge threshold, which may be 2.8V or 3V, and those skilled in the art may select an appropriate pre-charge threshold according to actual needs.
在涓流充电阶段,充电装置会输出较小的电压给电子设备,为电池进行小电流充电。In the trickle charging stage, the charging device will output a small voltage to the electronic equipment to charge the battery with a small current.
在涓流充电阶段中,随着充电时间的增加,电池的电量越来越多,进而电池的电压也会变大。当电池的电压大于等于预充充电阈值时,充电阶段由涓流充电阶段变为恒流充电阶段。In the trickle charging stage, as the charging time increases, the battery capacity will increase, and the battery voltage will also increase. When the voltage of the battery is greater than or equal to the precharge charging threshold, the charging stage changes from a trickle charging stage to a constant current charging stage.
在恒流充电阶段中,可以实现对电池的大电流充电,此时的充电功率较大,也即实现了快充功能。随着充电时间的增加,电池的电压进一步变大。当电池的电压大于等于快充充电阈值时,充电阶段由恒流充电阶段变为恒压充电阶段。In the constant current charging stage, the battery can be charged with a large current, and the charging power at this time is relatively large, that is, the fast charging function is realized. As the charging time increases, the voltage of the battery further increases. When the voltage of the battery is greater than or equal to the fast charging threshold, the charging phase changes from a constant current charging phase to a constant voltage charging phase.
在恒压充电阶段中,电池的电压几乎维持不变,充电电流逐渐下降,充电过程逐渐完成。In the constant voltage charging stage, the voltage of the battery remains almost constant, the charging current gradually decreases, and the charging process is gradually completed.
目前,不同设备生产厂商的大功率充电技术存在差异,并且对电池的充电功率也不尽相同。当电子设备应用非标配电池或者劣质电池时,充电功率可能超出电池自身充电规格而出现安全事故,例如在恒流充电过程中的充电电流过高,可能导致电池损坏,严重时还存在起火爆炸的风险。At present, there are differences in the high-power charging technologies of different equipment manufacturers, and the charging power of the battery is also different. When electronic equipment uses non-standard batteries or low-quality batteries, the charging power may exceed the battery’s own charging specifications and cause safety accidents. For example, the charging current during constant current charging is too high, which may cause damage to the battery. In severe cases, there may be fire and explosion risks of.
目前一般采用加密防伪集成IC实现电池的安全保护。当加密防伪IC发现电子设备当前的电池为非标配电池时,可以使电子设备降低对电池的充电功率,例如采用小电流充电,以降低安全隐患。而采用的加密防伪IC需要内置加密算法,导致加密防伪IC设计较为复杂,硬件成本较高。At present, the encryption anti-counterfeiting integrated IC is generally used to realize the safety protection of the battery. When the encrypted anti-counterfeiting IC finds that the current battery of the electronic device is a non-standard battery, the electronic device can reduce the charging power of the battery, such as charging with a small current, to reduce potential safety hazards. However, the encrypted anti-counterfeiting IC needs to have a built-in encryption algorithm, which leads to complex design of the encrypted anti-counterfeiting IC and high hardware cost.
为了解决上述问题,本申请提供了一种电池保护装置、电池保护方法及电子设备,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑IC上,当标配电池被更换为非标配电池或劣质电池时,逻辑IC掉电信息清零,重新开机后信息不匹配,即可检测到电池被替换,进而改变相应的充电模式。因此该方案,能够在确保电池充电安全的前提下,降低硬件成本。In order to solve the above problems, the present application provides a battery protection device, a battery protection method, and electronic equipment. The matching relationship between the electronic equipment and the battery is stored on the logic IC by using the readable and writable registers of the logic IC. When replacing with a non-standard battery or a low-quality battery, the power-off information of the logic IC is cleared to zero, and if the information does not match after restarting, it can detect that the battery has been replaced, and then change the corresponding charging mode. Therefore, this solution can reduce hardware costs on the premise of ensuring battery charging safety.
为了使本技术领域的人员更清楚地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。In order to make those skilled in the art understand the solutions of the present application more clearly, the technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请说明中的“第一”、“第二”等用词仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。Words such as "first" and "second" in the description of the present application are used for description purposes only, and should not be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features.
在本申请中,除非另有明确的规定和限定,术语“连接”应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或成一体;可以是直接连接,也可以通过中间媒介间接连接。In this application, unless otherwise clearly stipulated 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 Can be connected indirectly through intermediaries.
参见图3,该图为本申请实施例提供的一种电池保护装置的示意图。Refer to FIG. 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
主控芯片401设置在电子设备的主板40上,为电子设备的主板的重要组成部分。在一种可能的实现方式中,该主控芯片401可以为电子设备的CPU。The
主控芯片401上存储有第二标识信息。Second identification information is stored on the
电子设备的电池194包括电池保护板30和电芯31。其中,电池保护板31主要是针对可充电(一般指锂电池)起保护作用的集成电路板。由于电芯31本身不能被过充、过放、过流、短路及超高温充放电,因此电芯31总会与电池保护板30配套出现,封装在一起以形成电池。The
逻辑芯片301也可以称为可编程逻辑器件(Programmable Logic Device,PLD),是一种电子零件,简而言之也是一种集成电路。逻辑芯片301属于数字类型的电路芯片。本申请实施例中,逻辑芯片301用于存储第一标识信息。也即本申请实施例中,应用了逻辑芯片301上的可读写寄存器,进行存储,也即逻辑芯片301仅需实现简单的存储功能即可,无需内置复杂的加密算法,因此逻辑芯片301的实现方式简单,成本更低。The
第一标识信息与第二标识信息用于表征电子设备与电池的匹配关系,当第一标识信息与第二标识信息匹配时,表征此时电子设备与电池匹配,也即电池未被更换;当第一标识信息与第二标识信息不匹配时,表征此时电子设备存在异常掉电的风险,或者电子设备的电池被更换。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 matches the battery at this time, that is, the battery has not been replaced; When the first identification information does not match the second identification information, it indicates that there is a risk of abnormal power failure of the electronic device at this time, or the battery of the electronic device is replaced.
主控芯片401与逻辑芯片301之间进行电气连接。本申请实施例不具体限定电气连接的实现方式,例如可以通过单根信号线实现连接,或者通过多根信号线实现连接。The
当电子设备开机或者开始进行充电时,主控芯片401读取自身存储的第二标识信息,并读取逻辑芯片301存储的第一标识信息。主控芯片401将第一标识信息和第二标识信息进行比对,当第一标识信息与所述第二标识信息匹配时,表征此时电子设备的电池未被替换,此时可以按照正常的充电模式对电池进行充电。此时主控芯片401可以控制电子设备的充电管理模块对电子采用正常充电模式,执行正常的充电策略,例如可以正常采用大功率快充。When the electronic device is turned on or starts to be charged, the
当第一标识信息与所述第二标识信息不匹配时,或未读取到所述第一标识信息时,表征此时电子设备的电池可能出现被替换的情况,此时为了避免安全隐患,主控芯片401控制电子设备的充电管理模块降低对电池的充电功率。When the first identification information does not match the second identification information, or the first identification information is not read, it indicates that the battery of the electronic device may be replaced at this time, in order to avoid potential safety hazards at this time, The
综上所述,利用本申请实施例提供的电池保护装置,选用普通的逻辑芯片,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。In summary, 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 in the main control chip The matching relationship is also stored on the computer, and 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 battery charging safety, and has high practicability.
下面结合具体的实现方式说明该电池保护装置的工作原理。The working principle of the battery protection device will be described below in combination with a specific implementation manner.
参见图4,该图为本申请实施例提供的另一种电池保护装置的示意图。Refer to FIG. 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 further includes a
电子设备出厂时,内置该电池保护装置,逻辑芯片301在出厂时即存储有初始的第一标识信息。初始的第一标识信息根据电子设备的标识码、电池的标识码和初始时间信息生成。When the electronic equipment leaves the factory, the battery protection device is built in, and the
在一种可能的实现方式中,电子设备的标识码为电子设备的产品序列码(SerialNumber,SN),电池的标识码为电池的SN码。实际应用中,标识码也可以采用其他具备唯一标识功能的字符或字符串,本申请实施例不作具体限定。In a possible implementation manner, the identification code of the electronic device is a product serial number (SerialNumber, SN) of the electronic device, and the identification code of the battery is the SN code of the battery. In practical applications, the identification code may also use other characters or character strings with a unique identification function, which are not specifically limited in this embodiment of the present application.
逻辑芯片301与主控芯片401之间进行电气连接,以实现通信。本申请实施例不具体限定电气连接的实现方式,例如可以通过单根信号线实现连接,或者通过多根信号线实现连接。The
此外,主控芯片401设置在电子设备的主板40上,逻辑芯片301的接地由主板40提供,也即芯片301的接地端通过走线连接主板40,通过主板40的接地端口实现接地。逻辑芯片301的接地端当与主板40断开连接时,清除自身存储的第一标识信息。In addition, the
也即如果更换电池194,由于芯片301的接地端通过走线连接主板40以实现接地,则会使得逻辑芯片301掉电,逻辑芯片301被配置为掉电时数据清除。在另一些实施例中,逻辑芯片301也可以被配置为掉电时等待一定时间(例如几秒)后才数据清除,以排除偶尔接触不良等意外情况导致第一标识信息的被清除。That is, if the
下面具体说明该电池保护装置的识别原理。The identification principle of the battery protection device will be described in detail below.
当电子设备开机或者通过充电装置进行充电时,主控芯片401获取存储的第二标识信息,该第二标识信息根据电子设备的标识码、电池的标识码以及网络时间生成。When the electronic device is turned on or charged by the charging device, the
主控芯片401读取逻辑芯片301存储的第一标识信息。同理,该第一标识信息根据电子设备的标识码、电池的标识码以及网络时间生成。The
当主控芯片401读取到第一标识信息且第一标识信息与第二标识信息匹配时,表征此时电子设备的电池未被更换。When the
其中,第一标识信息与第二标识信息匹配,指的是两者表征的设备的标识码、电池的标识码以及网络时间相同。该网络时间可以为上次主控芯片401更新第一标识信息和第二标识信息的时间,或者为上次主控芯片401进行电池识别的时间。Where the first identification information matches the second identification information, it 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 when the
对于首次进行开启或者首次充电的设备,第一标识信息和第二标识信息对应的网络时间可以设置为初始网络时间,为一个设定值,本申请实施例对此不作具体限定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, which is not specifically limited in this embodiment of the present application
当主控芯片401读取到第一标识信息且第一标识信息与第二标识信息匹配时,主控芯片401根据当前的时间、电子设备的标识码和电池的标识码,生成更新后的第一标识信息和更新后的第二标识信息,存储更新后的第二标识信息并将更新后的第一标识信息写入逻辑芯片301。在一种可能的实现方式中,主控芯片401生成的第一标识信息与第二标识信息包括的数据一致,但存储在不同的器件上。When the
实际应用中,在一些实施例中,主控芯片401当第一标识信息写入逻辑芯片301成功后,才存储更新后的第二标识信息;否则,保持原有的第二标识信息不变。In practical applications, in some embodiments, the
然后主控芯片401控制电子设备的充电管理模块按照正常充电模式对电池进行充电,例如对电池进行大功率快充。Then the
在另一些实施例中,主控芯片401读取到的第一标识信息与第二标识信息不匹配,或者未读取到第一标识信息时,此时主控芯片401控制电子设备的充电管理模块降低对电池的充电功率,下面分别说明。In other embodiments, when the first identification information read by the
在一种可能的情况中,电池发生了更换,但更换的电池中设置有本申请所述的逻辑芯片301,但由于电池的识别码不同,导致虽然逻辑芯片301和主控芯片401之间的电气连接正常,但是逻辑芯片301上存储的第一标识信息与主控芯片401上存储的第二标识信息不一致,此时主控芯片401读取到的第一标识信息不是空数据。In a possible situation, the battery has been replaced, but the
主控芯片401当读取到的第一标识信息和第二标识信息不一致时,控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。When the first identification information read by the
本申请实施例不限定最低充电功率的具体规格,可以根据电子设备的实际情况确定。此外,主控芯片401当读取到的所述第一标识信息和所述第二标识信息不一致时,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。The embodiment of the present application does not limit the specific specification of the minimum charging power, which may be determined according to the actual situation of the electronic device. In addition, when the first identification information read by the
在另一种可能的情况中,用户更换的非标配的电池,并且该电池中未设置本申请所述的逻辑芯片301。因此此时主控芯片401无法获取到第一标识信息,并且主控芯片401此时与逻辑芯片301之间的电气连接断开。In another possible situation, the user replaces a non-standard battery, and the
主控芯片401当未获取到第一标识信息时,且电池的电压大于第一电压值时,控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。When the
其中,设置电池的电压大于第一电压值的判据是因为:如果电池未被更换,而电池出现过放时,逻辑芯片301可能掉电,此时主控芯片401无法读取到第一标识信息,导致逻辑芯片301容易误判电池发生了更换,为了避免这种情况,设置了电池的电压大于第一电压值的条件。当电池的电压大于第一电压值时,表征此时电池未发生过放,避免了误判。The reason for setting the criterion that the voltage of the battery is greater than the first voltage value is that if the battery has not been replaced and the battery is over-discharged, the
实际应用中,电池的过放可能是由于电子设备长时间未使用,电池长时间未充电导致电量消耗过度。In practical applications, the over-discharge of the battery may be due to the electronic equipment not being used for a long time, and the battery not being charged for a long time leads to excessive power consumption.
本申请实施例不限定最低充电功率的具体规格,可以根据电子设备的实际情况确定。此外,主控芯片401当无法获取到第一标识信息且电池的电压大于第一电压值时,判断此时电池可能被替换,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。The embodiment of the present application does not limit the specific specification of the minimum charging power, which may be determined according to the actual situation of the electronic device. In addition, when the
在又一种可能的实现方式中,可以根据主控芯片401可以根据与逻辑芯片301之间的电气连接是否正常来确定是否降低对电池的充电功率。当电气连接断开时,表明此时存在异常断电行为,一方面,可能是由于电池更换导致电气连接断开,另一方面,还可能是由于遇到电子设备进水、撞击等原因导致电气连接断开,无论出现以上哪一种情况,对电池采用正常的大功率充电模式均存在安全隐患。因此主控芯片401当与逻辑芯片301之间电气连接断开时,控制电子设备的充电管理模块按照电子设备支持的最低充电功率,对电池进行充电。In yet another possible implementation manner, the
此外,主控芯片401当与逻辑芯片301之间电气连接断开时,还可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, when the electrical connection between the
在再一种可能的实现方式中,电子设备的电池未被更换,但是电池发生了过放,例如电子设备长时间闲置未对电池进行充电,此时主控芯片401未获取到第一标识信息。本申请的方案为了识别出这种情况,避免误判电池更换,当逻辑芯片未读取到第一标识信息,且电池开始充电时的电压小于第一电压值,且电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,控制电子设备按照降额充电模式对电池进行充电。In yet 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 not been charged for a long time, and the
本申请对第一电压值、第二电压值和预设时间不作具体限定。其中,第一电压值小于第二电压值,以电子设备为手机为例,第一电压值可以设置为2.6V,第二电压值可以设置为3.6V。当电池的电压低于第一电压值时,表征此时电池电压过低,可能出现了过放。该预设时间可以通过预先对电子设备进行闲置的测试来确定。实际应用中,主控芯片401可以从电子设备的最近的日志中确定电池的电压由第二电压值下降至第一电压值的用时。The application does not specifically limit the first voltage value, the second voltage value and the preset time. Wherein, 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 may be set to 2.6V, and the second voltage value may be set to 3.6V. When the voltage of the battery is lower than the first voltage value, it indicates that the voltage of the battery 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 equipment in advance. In practical applications, the
本申请实施例不限定降额充电模式的具体规格,降额充电模式的充电功率低于正常充电模式的充电功率,高于电子设备支持的最低充电功率,具体充电功率可以根据电子设备的实际情况确定。实际应用中,由于该情况下电子设备的电池仅是出现了过放,而未出现更换,因此降额充电模式的充电功率可以设置为略小于正常充电模式的充电功率。The embodiment of this application does not limit the specific specifications of the 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 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 but not replaced in this case, the charging power in the derating charging mode can be set to be slightly lower than the charging power in the normal charging mode.
此外,主控芯片401可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, the
在另一种可能的实现方式中,电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片301掉电,逻辑芯片301上存储的第一标识信息被清空,而之后逻辑芯片301由正常上电,并且与主控芯片401恢复正常连接。为了识别出该情况,主控芯片401当与逻辑芯片301之间的电气连接正常,但读取到第一标识信息为空数据时,控制电子设备的充电管理模块按照降额充电模式对电池进行充电。In another possible implementation, the battery of the electronic device has not been replaced, but the
此外,主控芯片401可以记录此次识别的时间,并生成相应的日志以进行记录,以便于后续的设备维护。In addition, the
本申请实施例的设备主板40上还包括数据接口402。电子设备的产线或者维修点可以将数据接口与外部设备进行连接。主控芯片401对外部设备进行鉴权,以确定外部设备是否合规,是否为官方设备。当对外部设备的鉴权通过后,外部设备能够对主控芯片401进行控制和读写,将更新的第二标识信息存储在主控芯片401,以及控制主控芯片401向逻辑芯片写入更新后的第一标识信息。The
在产线上连接外部设备时,可以对主控芯片401和逻辑芯片301上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片401对逻辑芯片301上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口402在主控芯片401和逻辑芯片301上更新对应标识信息。When connecting external devices on the production line, the identification information stored on the
此外,对于以下两种情况,也可以通过在数据接口402连接外部设备,重新在主控芯片401和逻辑芯片301上更新对应标识信息,以使电子设备的充电管理模块能够对电池采用正常的充电模式:In addition, for the following two situations, it is also possible to update the corresponding identification information on the
1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, etc., or short-term disassembly during maintenance, the logic chip is powered off, the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally, and restore 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 cases, since the battery is not actually replaced, the normal charging mode for the battery can be resumed.
综上所述,利用本申请实施例提供的电池保护装置,选用普通的逻辑芯片,利用逻辑IC的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,因此能够在确保电池充电安全的前提下,降低硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。In summary, 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 in the main control chip The matching relationship is also stored on the computer, and 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 battery charging safety, and has high practicability. In addition, the battery protection device can also distinguish the battery over-discharge, the battery has not been replaced but the main control chip and the logic chip have a communication failure, the battery has not been replaced but the power is lost for a short time, etc., so as to adopt the corresponding charging mode, with high 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, the present application also provides a battery protection method, which will be described in detail below with reference to the accompanying drawings.
参见图5,该图为本申请实施例提供的一种电池保护方法的流程图。Referring to FIG. 5 , this figure is a flow chart of a battery protection method provided by an embodiment of the present application.
该方法应用于电子设备的主控芯片,主控芯片存储有第二标识信息,主控芯片能够读取逻辑芯片存储的第一标识信息,关于主控芯片和逻辑芯片的具体实现方式可以参见以上实施例中的说明,在此不再赘述。该方法包括以下流程:The method is applied to the main control chip of electronic equipment, the main control chip stores the second identification information, and the main control chip can read the first identification information stored in the logic chip. For the specific implementation of the main control chip and the logic chip, please refer to the above The description in the embodiment 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 to be charged, the main control chip reads the second identification information stored by itself, and reads the first identification information stored in 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 matches the battery at this time, that is, the battery has not been replaced; When the first identification information does not match the second identification information, it indicates that there is a risk of abnormal power failure of the electronic device at this time, or the battery of the electronic device is replaced.
S102:当第一标识信息与第二标识信息匹配时,控制电子设备按照正常充电模式对电池进行充电。S102: When the first identification information matches the second identification information, control the electronic device to charge the battery in a normal charging mode.
主控芯片可以控制电子设备的充电管理模块对电子采用正常充电模式,执行正常的充电策略,例如可以正常采用大功率快充。The main control chip can control the charging management module of the electronic device to adopt a normal charging mode for the electronic device and execute a normal charging strategy, for example, it can normally use high-power fast charging.
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 the first identification information is not read, it indicates that the battery of the electronic device may be replaced at this time, in order to avoid potential safety hazards at this time, The main control chip controls the charging management module of the electronic device to reduce the charging power to the battery.
下面结合具体的实现方式进行说明。The following will describe in conjunction with a specific implementation manner.
参见图6,该图为本申请实施例提供的另一种电池保护方法的流程图。Referring to FIG. 6 , this figure 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 according to 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 into the logic chip.
此时每次充电后,都会更新第一标识信息以及第二标识信息,也即第一标识信息与第二标识信息并不固定,提升了信息的安全性。At this time, after each charging, the first identification information and the second identification information are updated, that is, the first identification information and the second identification information are not fixed, which improves the security of information.
电子设备的标识码为所述电子设备的产品序列码,所述电池的标识码为所述电池的产品序列码。The identification code of the electronic equipment is the product serial code of the electronic equipment, 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 a normal charging mode for the electronic device and execute a normal charging strategy, for example, it can normally use high-power fast charging.
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 of the electronic device is greater than the first voltage value before the electronic device is started or charged, it indicates that the battery of the electronic device is not over-discharged at this time, and it is determined that the battery may be replaced 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 battery voltage is lower than the first voltage value, it indicates that the battery voltage is too low at this time, and over-discharge may occur.
S208:电池的电压由第二电压值下降至第一电压值的用时是否大于预设时间。S208: Whether the time taken for the voltage of the battery to drop from the second voltage value to the first voltage value is longer than a preset time.
若是,则执行S210;若否,则执行S211。If yes, execute S210; if not, execute S211.
当电池的电压由第二电压值下降至第一电压值的用时小于预设时间时,表征此时电池未出现过放,因此判断电池可能出现了更换。When the time taken 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 determined that the battery may be replaced.
而当电池的电压由第二电压值下降至第一电压值的用时大于预设时间时,表征此时电子设备长时间闲置未对电池进行充电,导致电池电压过低,可能出现了过放。该预设时间可以通过预先对电子设备进行闲置的测试来确定。And when the time taken for the voltage of the battery to drop from the second voltage value to the first voltage value is longer than the preset time, it means that the electronic device has not charged the battery for a long time at this time, resulting in the battery voltage being too low and possibly over-discharging. The preset time can be determined by performing an idle test on the electronic equipment in advance.
实际应用中,可以从电子设备的最近的日志中确定电池的电压由第二电压值下降至第一电压值的用时。In practical applications, the time taken for the voltage of the battery to drop from the second voltage value to the first voltage value can be determined from the latest log of the electronic device.
S209:读取到的第一标识信息是否为空数据。S209: Whether the read first identification information is empty data.
若是,则执行S210;若否,则执行S211。If yes, execute S210; if not, execute S211.
当第一标识信息为空数据时,表征此时可能出现以下情况:电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。When the first identification information is empty data, it indicates 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 short-term disassembly during maintenance, the logic chip is powered off, The first identification information stored on the logic chip is cleared, and then the logic chip is normally powered on, and the normal connection with the main control chip is restored.
当第一标识信息不为空数据时,表征此时可能出现以下情况:电池发生了更换,但更换的电池中设置有本申请所述的逻辑芯片,但由于电池的识别码不同,导致虽然逻辑芯片和主控芯片之间的电气连接正常,但是逻辑芯片上存储的第一标识信息与主控芯片上存储的第二标识信息不一致。When the first identification information is not empty data, it indicates that the following situation may occur at this time: the battery has been replaced, but the logic chip described in this application is installed in the replaced battery, 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 derating charging mode.
本申请实施例不限定降额充电模式的具体规格,降额充电模式的充电功率低于正常充电模式的充电功率,高于电子设备支持的最低充电功率,具体充电功率可以根据电子设备的实际情况确定。实际应用中,降额充电模式的充电功率可以设置为略小于正常充电模式的充电功率。The embodiment of this application does not limit the specific specifications of the 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 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 derating charging mode can be set to be slightly lower than the charging power in the normal charging mode.
S211:控制电子设备按照支持的最低充电功率对电池进行充电。S211: Control the electronic device to charge the battery according to the supported minimum charging power.
控制电子设备的充电管理模块按照电池设备支持的最低充电功率对电子设备进行充电,以避免大功率充电损坏电池,进而降低了安全隐患。The charging management module that controls the electronic equipment charges the electronic equipment according to the minimum charging power supported by the battery equipment, so as to avoid damage to the battery by high-power charging, thereby reducing potential safety hazards.
以上步骤的划分仅是为了方便说明,并不构成对于本申请技术方案的限定。实际应用中,本领域技术人员可以根据电子设备的情况对以上步骤进行调整。The division of the above steps is only for convenience of description, and does not constitute a limitation to the technical solution of the present application. In practical applications, those skilled in the art may adjust the above steps according to the conditions of the electronic equipment.
进一步的,在另一些实施例中,还可以包括以下步骤:Further, in some other embodiments, the following steps may also be included:
通过数据接口连接外部设备,并对所述外部设备进行鉴权;Connecting to an external device through a data interface, and authenticating the external device;
当鉴权通过后,在所述外部设备的控制下,存储更新后的第二标识信息,并向所述逻辑芯片写入更新后的第一标识信息。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 into 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; when the maintenance point is connected to external devices, the data stored on the logic chip can be updated through the main control chip, and also 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, that 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 cases, since the battery of the electronic device has not been replaced, it is also possible to re-update the corresponding identification information on the main control chip and the logic chip by connecting an external device through the data interface, so that the charging management module of the electronic device can Apply normal charging mode to the battery:
1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接;1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, etc., or short-term disassembly during maintenance, the logic chip is powered off, the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally, and restore the 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 is damaged or not. replace. The method does not need to build an encryption algorithm on the logic chip, and has low requirements on the logic chip, so it can reduce hardware costs under the premise of ensuring battery charging safety, and has high practicability. In addition, this method can also distinguish the battery over-discharge, the battery has not been replaced but the main control chip and the logic chip have a communication failure, the battery has not been replaced but the power is lost for a short time, etc., so as to adopt the corresponding charging mode, which has high practicability , which further improves the safety of electronic equipment and reduces the risk of accidents.
基于以上实施例提供的电池保护装置和电池保护方法,本申请还提供了一种电子设备,下面结合附图具体说明。Based on the battery protection device and battery protection method provided in the above embodiments, the present application also provides an electronic device, which will be described in detail below with reference to the accompanying drawings.
参见图7,该图为本申请实施例提供的一种电子设备的示意图。Referring to FIG. 7 , this figure is a schematic diagram of an electronic device provided by an embodiment of the present application.
本申请实施例提供的电子设备70包括电池保护装置701和电芯31。The
其中,该电池保护装置701包括逻辑芯片301和主控芯片401。Wherein, the battery protection device 701 includes a
逻辑芯片301位于电池保护板30。主控芯片401可以集成在电子设备70的主板40。The
关于逻辑芯片301和主控芯片401的具体实现方式以及工作原理可以参见以上实施例中的相关说明,本申请实施例在此不再赘述。For the specific implementation and working principles of the
电芯31和电池保护板30封装形成电池194,也即逻辑芯片301位于电池194。The
电池194用于为电子设备70进行供电。The
在一些实施例中,主控芯片上还包括数据接口402,该数据接口通过走线连接主板40上的对外接口。当主板40上的对外接口外接外部设备时,也即数据接口402外接了外部设备。本申请实施例不具体限定外部设备的类型,例如可以为手机、平板电脑、PC或者笔记本电脑等等。In some embodiments, the main control chip further includes a
电子设备的产线或者维修点可以将数据接口与外部设备进行连接。主控芯片401对外部设备进行鉴权,以确定外部设备是否合规,是否为官方设备。当对外部设备的鉴权通过后,外部设备能够对主控芯片401进行控制和读写,将更新的第二标识信息存储在主控芯片401,以及控制主控芯片401向逻辑芯片写入更新后的第一标识信息。The production line or maintenance point of electronic equipment can connect the data interface with external equipment. The
在产线上连接外部设备时,可以对主控芯片401和逻辑芯片301上存储的标识信息进行初始化设置;当维修点连接外部设备时,可以通过主控芯片401对逻辑芯片301上存储的数据进行更新,也即当电子设备的电池需要更换时,首先更换标配的电池,获取新电池的标识码,也即新电池的设备序列号,然后通过数据接口402在主控芯片401和逻辑芯片301上更新对应标识信息。When connecting external devices on the production line, the identification information stored on the
此外,对于以下两种情况,也可以通过在数据接口402连接外部设备,重新在主控芯片401和逻辑芯片301上更新对应标识信息,以使电子设备的充电管理模块能够对电池采用正常的充电模式:In addition, for the following two situations, it is also possible to update the corresponding identification information on the
1.电子设备的电池未被更换,但是由于发生了意外跌落或碰撞等情况,或者维修时短暂的拆卸,导致逻辑芯片掉电,逻辑芯片上存储的第一标识信息被清空,而之后逻辑芯片由正常上电,并且与主控芯片恢复正常连接。1. The battery of the electronic device has not been replaced, but due to accidental drop or collision, etc., or short-term disassembly during maintenance, the logic chip is powered off, the first identification information stored on the logic chip is cleared, and then the logic chip Power on normally, and restore 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 normally obtain the first identification information.
在一种可能的实现方式中,该数据接口402可以与电子设备上的USB接口实现连接,此时外部设备通过电子设备的USB接口即可连接数据接口402。USB接口可以为Mini USB接口,Micro USB接口,USB Type C接口等,本申请实施例不作具体限定。In a possible implementation manner, the
本申请实施例不具体限定电子设备的类型,电子设备可以为手机、可穿戴电子设备(例如智能手表)、平板电脑、增强现实(augmented reality,AR)设备、虚拟现实(virtualreality,VR)设备等。The embodiment of the present application does not specifically limit the type of electronic device, and the electronic device may be a mobile phone, a wearable electronic device (such as a smart watch), a tablet computer, an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, etc. .
综上所述,该电子设备应用了电池保护装置,该电池保护装置选用普通的逻辑芯片,利用逻辑芯片的可读写寄存器,将电子设备与电池的匹配关系储存在逻辑芯片上,并且在主控芯片上也存储该匹配关系,通过对比两个匹配关系,即可确定出电池是否被更换。本方案无需在逻辑芯片上内置加密算法,对逻辑芯片的要求低,主控芯片可以直接复用电子设备上的处理器,因此能够在确保电池充电安全的前提下,降低了电子设备的硬件成本,具有较高的实用性。此外,该电池保护装置还能够针对电池过放、电池未更换但主控芯片与逻辑芯片出现通信故障、电池未更换但短暂掉电等情况进行区分,以采用对应的充电模式,具有较高的实用性,进一步提升了电子设备的安全性,降低了事故风险。To sum up, the electronic equipment uses 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 in the main 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 on the logic chip. The main control chip can directly multiplex 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 practicability. In addition, the battery protection device can also distinguish the battery over-discharge, the battery has not been replaced but the main control chip and the logic chip have a communication failure, the battery has not been replaced but the power is lost for a short time, etc., so as to adopt the corresponding charging mode, with high 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)" means one or more, and "multiple" means two or more. "And/or" is used to describe the association relationship of associated objects, indicating that there can be three types of relationships, for example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time , where A and B can be singular or plural.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; 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: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.
Claims (19)
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 true CN116054301A (en) | 2023-05-02 |
| CN116054301B 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) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117578669A (en) * | 2023-11-29 | 2024-02-20 | 苏州赛芯电子科技股份有限公司 | Battery charging and discharging device and control method and electronic equipment |
| CN117707618A (en) * | 2023-06-30 | 2024-03-15 | 荣耀终端有限公司 | A data reading method, electronic device and storage medium |
Citations (8)
| 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 |
| US20090256717A1 (en) * | 2008-04-09 | 2009-10-15 | Panasonic Corporation | Battery authentication system, electronic device, battery, and battery charger |
| 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 |
-
2022
- 2022-06-28 CN CN202210743212.3A patent/CN116054301B/en active Active
Patent Citations (8)
| 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 |
| US20090256717A1 (en) * | 2008-04-09 | 2009-10-15 | Panasonic Corporation | Battery authentication system, electronic device, battery, and battery charger |
| 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)
| Title |
|---|
| 郝杰: "高性能锂电池充电器设计方案", 《中国新技术新产品》, pages 2 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117707618A (en) * | 2023-06-30 | 2024-03-15 | 荣耀终端有限公司 | A 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116054301B (en) | 2023-10-24 |
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 | |
| US10840730B2 (en) | Electronic device and method for controlling power supply | |
| KR101494900B1 (en) | A portable terminal having a charging function through charging device identification and a method | |
| CN102694400B (en) | Imput output circuit | |
| US11056903B2 (en) | Electronic device including battery and method of controlling charging thereof | |
| US11482871B2 (en) | Electronic device and charging control method therefor | |
| JP2001184147A (en) | Portable electronic equipment | |
| CN108845655B (en) | Electronic equipment control method, device, control circuit and electronic equipment | |
| CN116054301B (en) | A battery protection device, battery protection method and electronic equipment | |
| EP2711803A2 (en) | Host apparatus and method of charging user terminal apparatus | |
| KR20130097198A (en) | Charginig port | |
| KR102813618B1 (en) | Method for power supply and an electronic device thereof | |
| EP3771987A1 (en) | Electronic device for preventing damage of usb device and operating method thereof | |
| US20090037756A1 (en) | System and Method for Suspending Operation of a Mobile Unit | |
| CN106685018B (en) | Reverse charging method and device and terminal | |
| CN116914894A (en) | Adjustment method of cut-off voltage, electronic equipment and readable storage medium | |
| CN114221403B (en) | Charging method and charging device | |
| CN116315185B (en) | Electronic device and battery management method | |
| TW201339843A (en) | USB protection devices, and methods thereof | |
| WO2024148811A1 (en) | Terminal device, and external device access detection system | |
| CN117096991A (en) | Charging method, electronic equipment and readable storage medium | |
| CN116667268A (en) | Method for preventing triggering over-current protection and electronic equipment | |
| CN114265492A (en) | Power-on method, device and electronic 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 |