Battery module authentication method, electronic equipment and computer readable storage medium

By performing secondary authentication in battery module authentication and identifying the battery module type with its built-in serial number, the problem of insufficient safety of battery module authentication in the prior art is solved, and the safety and reliability of the battery module are improved.

CN120341395APending Publication Date: 2025-07-18VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510445712.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the battery module authentication method is relatively low and is easily cracked by external factors, resulting in insufficient safety of the battery module.

Method used

After the battery module is certified successfully, it obtains its serial number and performs secondary authentication. The type of battery module is identified by the serial number, including standard battery modules or non-standard battery modules.

Benefits of technology

It improves the safety of the battery module, avoids third parties from cracking safety certification by forging battery modules, and enhances the safety and reliability of the certification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120341395A_ABST
    Figure CN120341395A_ABST
Patent Text Reader

Abstract

The invention discloses a battery module authentication method, electronic equipment and a computer readable storage medium, and belongs to the field of terminals. The method comprises the following steps: after a battery module is successfully authenticated for one time, acquiring a serial number of the battery module; performing secondary authentication on the battery module based on the serial number of the battery module; wherein the secondary authentication is used for identifying the type of the battery module, and the type of the battery module comprises a standard battery module or a non-standard battery module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of terminals, and particularly relates to a battery module authentication method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the popularization of mobile terminal devices and the development and maturity of charging solution technologies, the market has put forward higher requirements for the safety of battery modules.

[0003] To ensure the safety of using battery modules, generally, the battery modules are authenticated before use. In the related technologies, a one-time authentication method is often used during the authentication of the battery. For example, the battery module is authenticated through the built-in resistor of the battery module, and this authentication method is also called resistance in-position verification.

[0004] However, this method of authenticating battery modules in the related technologies is easily cracked externally and often has low security. Summary of the Invention

[0005] Embodiments of this application provide a battery module authentication method, an electronic device, and a computer-readable storage medium, which can solve the problem of low security of the method for authenticating battery modules in the related technologies.

[0006] In a first aspect, embodiments of this application provide a battery module authentication method, which includes: After the battery module passes the first authentication successfully, obtain the serial number of the battery module; Based on the serial number of the battery module, perform a second authentication on the battery module; wherein, the second authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0007] In a second aspect, embodiments of this application provide a battery module authentication device, including: An obtaining module, configured to obtain the serial number of the battery module after the battery module passes the first authentication successfully; An authentication module, configured to perform a second authentication on the battery module based on the serial number of the battery module; wherein, the second authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0008] In a third aspect, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect.

[0011] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects: In an embodiment of the present application, after the battery module is successfully authenticated once, the serial number of the battery module is obtained; based on the serial number of the battery module, the battery module is authenticated for a second time; wherein the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module. In this way, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number of the battery module, which can prevent a third party from cracking the security authentication by counterfeiting the battery module to a certain extent, thereby improving the safety and being able to solve the problem of low safety of the related technology in authenticating the battery module. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 is a schematic diagram of a process of authenticating a battery module in a battery module authentication method provided in an embodiment of the present application; Figure 2 is a flow chart of a battery module authentication method provided in an embodiment of the present application; Figure 3 is a flow chart of another battery module authentication method provided in an embodiment of the present application; Figure 4 is a flow chart of another battery module authentication method provided in an embodiment of the present application; Figure 5 It is a flowchart of a specific battery module authentication method provided by an embodiment of the present application for a battery module with a built-in encryption device; Figure 6It is a flowchart of another battery module authentication method provided by an embodiment of the present application; Figure 7 It is a flowchart of another battery module authentication method provided by an embodiment of the present application; Figure 8 It is a flowchart of another battery module authentication method provided by an embodiment of the present application; Figure 9 It is a flowchart of another battery module authentication method provided by an embodiment of the present application; Figure 10 It is a flowchart of a specific battery module authentication method provided by an embodiment of the present application for a battery module without a built-in encryption device; Figure 11 It is a structural block diagram of a battery module authentication device provided by an embodiment of the present application; Figure 12 It is a structural block diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0014] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0015] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.

[0016] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0017] Figure 1It is a schematic diagram of the process of performing a primary authentication on a battery module in the battery module authentication method provided by an embodiment of the present application. The battery module in the embodiment of the present application may be a battery pack or a battery. Refer to Figure 1 The primary authentication process provided by the embodiment of the present application may include primary authentication for a battery module without an encryption device and primary authentication for a battery module with an encryption device. Among them, the encryption device may include at least one of an encryption integrated circuit (IC) and a fuel gauge. The encryption device may include a chip for protecting the safety of the battery module, such as a battery authentication chip. The battery authentication chip can be used to verify whether the battery module is an original or authorized product, prevent counterfeit battery modules, and ensure communication security through an encryption algorithm, such as the Advanced Encryption Standard (AES) algorithm.

[0018] For the case of a battery module with an encryption device, primary authentication can be performed by means of an encryption algorithm. After successful authentication, target information can be read from the encryption IC. The target information may include at least one of the battery production date, the number of charge-discharge cycles, and the initial use time, etc. Then, the battery health can be calculated based on the target information, and parameters such as the shutdown voltage can be configured. For the case of a battery module without an encryption device, primary authentication can be performed by means of resistance in-place (BATT_ID) verification, and parameters can be configured after identification.

[0019] During the process of performing primary authentication for the case of a battery module without an encryption device, since there is only one pull-down resistor (such as a 3.3k pull-down resistor) inside the battery module for judgment, it is easily cracked by an external third party, so that a non-standard battery can be replaced for the electronic device, which will bring potential safety hazards.

[0020] During the process of performing primary authentication for the case of a battery module with an encryption device, a third party can crack the battery module by transplanting the encryption device, and there are still potential safety hazards.

[0021] In the battery module authentication method provided by the embodiment of the present application, after the primary authentication of the battery module is successful, the serial number of the battery module is obtained. This serial number can be built into the battery module (such as a battery pack); based on the serial number of the battery module, secondary authentication is performed on the battery module; wherein, the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module. In this way, by performing secondary authentication on the battery module instead of primary authentication, the safety of the battery module can be improved. At the same time, the secondary authentication is based on the serial number built into the battery module, which can, to a certain extent, prevent a third party from cracking the security authentication by forging the battery module, further improving the security, and can solve the problem that the security of the method for authenticating the battery module in the related art is relatively low.

[0022] In addition, taking the case of no encryption device as an example, when the electronic device is powered on, the main board cannot read the valid battery module information. It can only rely on the power-off situation of the main board to judge whether the battery module is replaced, and it cannot judge the health status of the replaced battery module. Therefore, for the situation of replacing the battery module, it will be handled violently and configured uniformly according to the safest shutdown voltage, resulting in more loss of the effective capacity of the new battery module, which is not conducive to the user experience.

[0023] In the battery module authentication method provided by the embodiments of the present application, by judging the type of the battery module, that is, the standard battery module or the non-standard battery module, different charge and discharge capacity limits can be configured for different types of battery modules. In this way, on the basis of ensuring safety, the charge and discharge capacity of the battery module can be fully utilized, the loss of the effective capacity of the battery module can be reduced, and the user experience can be improved. Moreover, different charge and discharge capacity limits can be set for the primary authentication result and the secondary authentication result respectively, and the old and new batteries can be identified through big data to configure the corresponding health parameters and logics to ensure battery safety.

[0024] In addition, for electronic devices (such as mobile phones) using the platform fuel gauge solution, one encryption device (encryption IC) can be saved to achieve cost optimization. Among them, the platform fuel gauge is the fuel gauge on the main board, that is, the fuel gauge is on the main board, and there is no device that can store information on the battery module. Generally, information storage is achieved by adding an encryption device in the battery module. The solutions provided by some embodiments of the present application (such as Figure 10 the shown solution) can eliminate the need to introduce an encryption device in the battery module, thereby saving costs.

[0025] The battery module authentication method provided by the embodiments of the present application can be executed by an electronic device and can be applied to the battery authentication process of the electronic device. Among them, the electronic device can be a terminal device, including but not limited to mobile phones, tablets, etc.

[0026] Figure 2 is a flowchart of a battery module authentication method provided by an embodiment of the present application. Referring to Figure 2 , the battery module authentication method provided by the embodiments of the present application includes: Step 210, after the primary authentication of the battery module is successful, obtain the serial number of the battery module; Among them, the primary authentication process of the battery module can be as Figure 1 shown. The primary authentication of the battery module can be the primary authentication in the case of having an encryption device or the primary authentication in the case of no encryption.

[0027] Among them, the battery module in the embodiment of the present application can be a battery pack or a battery. The serial number of the battery module can be placed in the battery module, for example, the serial number of the battery module can be stored in the memory of the battery module. The serial number is a fixed code after the battery module is produced. This code can uniquely identify the battery module, and different battery modules have different serial numbers. The serial number of the battery module can be in the form of letters and numbers, or it can be a customized form.

[0028] Step 210, performing secondary authentication on the battery module based on the serial number of the battery module; The secondary authentication is used to identify the type of the battery module, which includes a standard battery module or a non-standard battery module. The standard battery module may include a terminal installed battery module and an original aftermarket battery module; the non-standard battery module may include a non-original battery module.

[0029] The secondary authentication in the embodiment of the present application may refer to an authentication process based on the serial number of the battery module. The secondary authentication process may not only include the identification process of the type of the battery module, but also include the configuration process of the charge and discharge capacity limit of the battery module.

[0030] In an embodiment of the present application, after the battery module is successfully authenticated once, the serial number of the battery module is obtained; based on the serial number of the battery module, the battery module is authenticated for a second time; wherein the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module. In this way, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number built into the battery module, which can prevent a third party from cracking the security authentication by counterfeiting the battery module to a certain extent, thereby improving security and solving the problem of low security in the related technology for authenticating battery modules. In addition, by performing a secondary authentication on the built-in serial number of the battery module, the ability to identify standard battery modules can be improved.

[0031] Figure 3 This is a flow chart of a battery module authentication method provided in an embodiment of the present application. Figure 3 The battery module in the contains encryption devices. Figure 3 The battery module authentication method provided in the embodiment of the present application includes: Step 310, after the battery module is successfully authenticated once, obtaining the serial number of the battery module; Before step 310, the battery module may be authenticated once by means of an encryption algorithm; if the battery module is successfully authenticated once, a charge and discharge capacity limit of the battery module is set.

[0032] Step 320: Obtain the initial information of the battery module based on the serial number of the battery module. Among them, the initial information of the battery module can be information associated with the production date of the target object, information associated with the production batch of the target object, or information associated with both the production date and the production batch of the target object. The target object can be at least one of a battery module, an encryption device within the battery module, and a protection device within the battery module. The initial information of the battery module can be in the form of numbers or a combination of numbers and letters. The initial information of the battery module can be the information before encryption, and the serial number of the battery module can be the information after encryption. The initial information of the battery module can be obtained after an encryption operation on the serial number of the battery module.

[0033] In the embodiment of the present application, the serial number of the battery module can be decrypted to obtain decryption information; based on the decryption information, the initial information of the battery module is obtained. Among them, the decryption information itself can be the initial information of the battery module, or the initial information of the battery module can be obtained by further operating on the decryption information.

[0034] Step 330: Match the initial information of the battery module with the target information read from the encryption device of the battery module. Among them, the target information read from the encryption device of the battery module can include at least one of the production date of the target object and the production batch of the target object. The target object can be at least one of a battery module, an encryption device within the battery module, and a protection device within the battery module. In addition to the production date of the target object and the production batch of the target object, the target information read from the encryption device of the battery module can also include the initial use time, the number of cycles, etc.

[0035] Step 330 can specifically be: Search for information that matches the obtained initial information of the battery module in the target information to determine whether there is information in the target information that is the same as the obtained initial information of the battery module. If there is information in the target information that is the same as the obtained initial information of the battery module, it is determined that the initial information of the battery module matches the target information; if there is no information in the target information that is the same as the obtained initial information of the battery module, it is determined that the initial information of the battery module does not match the target information.

[0036] Step 340: When the initial information of the battery module matches the target information, it is determined that the secondary authentication of the battery module is successful, and it is determined that the battery module is a standard-equipped battery module. In the embodiment of the present application, the standard battery module may be relative to the terminal manufacturer. The terminal manufacturer may be a mobile phone manufacturer. For example, the standard battery module may be a battery module that is standardly provided by the mobile phone manufacturer.

[0037] Step 350, when the initial information of the battery module does not match the target information, determining that the secondary authentication of the battery module fails, and judging that the battery module is a non-standard battery module; The secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0038] In the embodiment of the present application, the non-standard battery module may be relative to the terminal manufacturer. The terminal manufacturer may be a mobile phone manufacturer. For example, the non-standard battery module may refer to a battery module that is not standardly provided by the mobile phone manufacturer.

[0039] In the embodiment of the present application, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number built into the battery module, which can prevent a third party from cracking the security authentication by forging the battery module to a certain extent, thereby improving security and solving the problem of low security in the way the battery module is authenticated by related technologies. In addition, by performing a secondary authentication with a built-in serial number in the battery module, the secondary authentication of the battery can be completed locally by comparing the initial information of the battery module with the target information read from the encryption device of the battery module during the secondary authentication process, which can cover scenarios where the electronic device has not been connected to the Internet for a long time or is not covered by big data, thereby improving verification efficiency and device compatibility.

[0040] Figure 4 is a flow chart of another battery module authentication method provided in an embodiment of the present application. Figure 4 The battery module authentication method provided in the embodiment of the present application includes: Step 410, after the battery module is successfully authenticated once, obtaining the serial number of the battery module; In an optional implementation, before step 410, the battery module may be authenticated once by means of an encryption algorithm; if the battery module is successfully authenticated once, a charge and discharge capacity limit of the battery module is set.

[0041] In an optional implementation, before step 410, the battery module may be authenticated once by means of an in-place resistor verification method; if the battery module is successfully authenticated once, a charge and discharge capacity limit of the battery module is set.

[0042] Step 420, decrypting the serial number of the battery module to obtain decrypted information; Step 430: Obtain the initial information of the battery module based on the decryption information. The initial information of the battery module includes at least one of the production date of the target object and the batch information of the target object, where the target object includes at least one of the battery module, the encryption device in the battery module, and the protection device in the battery module.

[0043] Step 440: Match the initial information of the battery module with the target information read from the encryption device of the battery module. Step 450: When the initial information of the battery module matches the target information, determine that the secondary authentication of the battery module is successful, and determine that the battery module is a standard battery module. Step 460: When the secondary authentication of the battery module is successful, configure the charge and discharge capacity limits of the battery module according to the battery module health status. The charge and discharge capacity limits include at least one of the shutdown voltage, the charge cut-off voltage, the maximum charging power, and the load-carrying capacity. The battery module health status is determined based on the target information read from the encryption device of the battery module.

[0044] Among them, the load-carrying capacity can be the ability of the battery module to provide current and voltage when connected to a load, which directly affects the performance of the battery. The load-carrying capacity in the charge and discharge capacity limits can be the maximum load-carrying capacity.

[0045] Step 470: When the initial information of the battery module does not match the target information, determine that the secondary authentication of the battery module fails, and determine that the battery module is a non-standard battery module. Step 480: When the secondary authentication of the battery module fails, maintain the charge and discharge capacity limits set after the primary authentication of the battery module. The original charge and discharge capacity limits of the battery module can be the charge and discharge capacity limits configured after the primary authentication is successful.

[0046] In the embodiments of the present application, the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0047] In the embodiments of the present application, by performing secondary authentication on the battery module instead of primary authentication, the security of the battery module can be improved. At the same time, the secondary authentication is based on the serial number built into the battery module, which can, to a certain extent, prevent a third party from cracking the security authentication by forging the battery module, thereby improving the security and solving the problem of low security in the method of authenticating the battery module in the related art. In addition, the battery module health can be calculated from the information read from the encryption device, and appropriate charge and discharge capacity limits (such as battery health parameters) can be configured based on the battery module health, ensuring that there is sufficient battery capacity and power for use. Moreover, in the case of failure of the secondary authentication of the battery module, non-standard batteries (such as disguised batteries assembled from disassembled parts) can be intercepted and their charge and discharge capabilities can be restricted to ensure battery reliability.

[0048] Figure 5 It is a flowchart of a specific battery module authentication method provided by the embodiments of the present application for a battery module with a built-in encryption device. Referring to Figure 5 , the battery module authentication method provided by the embodiments of the present application includes the following processes: The primary authentication is an encryption algorithm verification. After the verification passes, target information (such as the battery production date, the number of cycles, and the initial use time) can be read from the encryption IC, and the battery module health is initially calculated based on the target information, and the shutdown voltage VH and the charging safety cut-off voltage are configured to limit the maximum charging power and the load-carrying capacity. The battery module health can be negatively correlated (such as inversely proportional) with the shutdown voltage VH, and the battery module health can be positively correlated (such as directly proportional) with any one of the charging safety cut-off voltage, the maximum charging power, and the load-carrying capacity.

[0049] After the electronic device is powered on, secondary authentication is performed (the network connection status of the electronic device is not restricted). The serial number in the battery module is read and decrypted locally to obtain the initial information of the battery module (i.e., the decrypted information), and it is matched with the information read from the encryption IC. If the decrypted information and the information read from the encryption IC match successfully, it is considered that the battery is from the terminal manufacturer and is judged as a standard battery; if the local data does not match, it is judged as a non-standard battery. After the secondary authentication is successful, the appropriate shutdown voltage and charging cut-off voltage are opened according to the calculated battery health, and the maximum charging power and the load-carrying capacity are opened. If the secondary authentication fails, the charge and discharge capabilities are continuously restricted.

[0050] In the battery module authentication method provided by the embodiments of the present application, by comparing the initial information of the battery module parsed based on the serial number and the battery data read from the encryption IC, the secondary authentication of the battery can be completed locally, covering scenarios where the mobile phone is not connected to the network for a long time or the big data does not cover, improving the verification efficiency and the device; non-standard batteries (such as disguised batteries assembled from disassembled parts) can be intercepted, and their charge and discharge capabilities can be restricted to ensure the reliability of the battery. The battery health can be calculated through the information in the encryption device, and appropriate charge and discharge capacity limits (such as battery health parameters) can be configured to ensure that there is a complete battery capacity and ability for use.

[0051] In addition to being able to perform secondary authentication for the case of built-in encryption devices, the battery module authentication method provided by the embodiments of the present application can also perform secondary authentication for the case of no encryption device. The following is a specific elaboration.

[0052] In the case of no encryption device, the embodiments of the present application may involve at least one of a local database, a cloud database, and a battery module health database. Among them, the cloud database can be provided by the battery module manufacturer. For example, the battery serial number of the production off-line is written into the battery pack and uploaded to the cloud database. The serial number generation method is not limited to the production date or batch information of the target object, and the specific algorithm can be agreed upon by the terminal factory and the battery pack factory. The target object can be the battery pack itself, the encryption device or the protection device on the battery pack, etc. The local database can be generated by the terminal manufacturer (such as a mobile phone manufacturer), and the battery data installed in the factory is used as local data. The local database can store the serial number data of the battery modules already installed by the terminal manufacturer.

[0053] The battery module health database (such as the battery health database) can be generated based on the usage of the terminal device and regularly uploaded to the cloud as backup information. The battery module health database can be a database in the cloud.

[0054] Figure 6 It is a flowchart of another battery module authentication method provided by the embodiments of the present application. Refer to Figure 6 , the battery module authentication method provided by the embodiments of the present application includes: Step 610, after the primary authentication of the battery module is successful, obtain the serial number of the battery module; Among them, before step 610, the battery module can also be primarily authenticated through the resistance in-place verification method; in the case where the primary authentication of the battery module is successful, set the charge and discharge capacity limit of the battery module.

[0055] Step 620, match the serial number of the battery module in the local database; the local database stores the serial number data of the battery modules already installed by the terminal manufacturer; The local database may be a database locally present in the electronic device, that is, a database placed on the electronic device. The local database may store the serial number data of all battery modules installed by the terminal manufacturer before a specified time point. The specified time point may be configurable.

[0056] Matching the serial number of the battery module in the local database may specifically include: searching for the serial number of the battery module in the local database; if the serial number of the battery module is found in the local database, it can be determined that a target serial number matching the serial number of the battery module exists in the local database; if the serial number of the battery module is not found in the local database, it can be determined that a target serial number matching the serial number of the battery module does not exist in the local database.

[0057] Step 630, when there is a target serial number matching the serial number of the battery module in the local database, determining that the local database authentication of the battery module is successful, and judging that the battery module is a standard battery module; In the embodiment of the present application, the standard battery module may be relative to the terminal manufacturer. The terminal manufacturer may be a mobile phone manufacturer. For example, the standard battery module may be a battery module that is standardly provided by the mobile phone manufacturer.

[0058] In an embodiment of the present application, when there is no target serial number matching the serial number of the battery module in the local database, it is determined that the local database authentication of the battery module has failed, and the battery module is judged to be a non-terminal installed battery module.

[0059] In the embodiment of the present application, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number that comes with the battery module, which can prevent a third party from cracking the security authentication by counterfeiting the battery module to a certain extent, thereby improving security and solving the problem of low security in the related technology for authenticating battery modules. In addition, the serial number is used to match in the local database during the secondary authentication process. Since the local database does not need to be processed online, the verification speed and battery module compatibility can be improved. Moreover, Figure 6 The authentication method shown does not require the use of an encryption IC during the authentication process, which can save costs.

[0060] Figure 7 is a flow chart of another battery module authentication method provided in an embodiment of the present application. Figure 7 The battery module authentication method provided in the embodiment of the present application includes: Step 710, after the battery module is successfully authenticated once, obtaining the serial number of the battery module; Before step 710, the battery module can also be authenticated once through a resistance in - position verification method; in the case of successful primary authentication of the battery module, set the charge - discharge capacity limit of the battery module.

[0061] Step 720, match the serial number of the battery module in the local database; the local database stores the serial number data of the battery modules already installed by the terminal manufacturer. Step 730, in the case that there is a target serial number in the local database that matches the serial number of the battery module, determine that the local database authentication of the battery module is successful, and determine that the battery module is a standard - equipped battery module. Step 740, in the case that there is no target serial number in the local database that matches the serial number of the battery module, determine that the local database authentication of the battery module fails, and determine that the battery module is a non - terminal - installed battery module. Step 750, in the case that the local database authentication of the battery module fails, match the serial number of the battery module in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer. Among them, the cloud database can store the serial number data of all battery modules installed by the battery module manufacturer before a preset time point. Among them, the preset time point can be configured.

[0062] Among them, matching the serial number of the battery module in the cloud database can specifically be: searching for the serial number of the battery module in the cloud database; if the serial number of the battery module is found in the cloud database, it can be determined that there is a target serial number in the cloud database that matches the serial number of the battery module; if the serial number of the battery module is not found in the cloud database, it can be determined that there is no target serial number in the local database that matches the serial number of the battery module.

[0063] Step 760, in the case that there is a target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module is successful, and determine that the battery module is a standard - equipped battery module. Among them, the standard - equipped battery module determined in step 760 can specifically be an original factory after - sales battery module. In the embodiments of the present application, the standard - equipped battery module can be relative to the terminal manufacturer. The terminal manufacturer can be a mobile phone manufacturer. For example, the standard - equipped battery module can be the battery module standard - equipped by the mobile phone manufacturer.

[0064] Step 770: If there is no target serial number matching the serial number of the battery module in the cloud database, it is determined that the cloud database authentication of the battery module fails, and the battery module is judged to be a non-standard battery module. The non-standard battery module determined in step 770 may specifically be a non-original battery.

[0065] In the embodiment of the present application, the non-standard battery module may be relative to the terminal manufacturer. The terminal manufacturer may be a mobile phone manufacturer. For example, the non-standard battery module may refer to a battery module that is not a standard battery module of the mobile phone manufacturer. The non-standard battery module may be a non-original battery module.

[0066] In the embodiment of the present application, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number that comes with the battery module, which can prevent third parties from cracking the security authentication by counterfeiting the battery module to a certain extent, thereby improving security and being able to solve the problem that the related technology authentication method for battery modules is less secure. In addition, during the secondary authentication process, the serial number is used to match in the local database. Since the local database does not need to be processed online, the verification speed and battery module compatibility can be improved; in the event that the local database authentication of the battery module fails, non-standard batteries (such as non-original battery modules) can be intercepted through cloud database matching to ensure battery reliability. Moreover, Figure 7 The authentication method shown does not require the use of an encryption IC during the authentication process, which can save costs.

[0067] It should be understood that in the embodiment of the present application, in addition to directly matching the serial number of the battery module in the local database to determine whether the battery module is a standard battery module, the serial number of the battery module can also be directly matched in the cloud database to determine whether the battery module is a standard battery module. Specifically, in one embodiment of the present application, the secondary authentication of the battery module based on the serial number of the battery module includes: matching the serial number of the battery module in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer; when there is a target serial number matching the serial number of the battery module in the cloud database, it is determined that the authentication of the cloud database of the battery module is successful, and the battery module is judged to be a standard battery module; when there is no target serial number matching the serial number of the battery module in the cloud database, it is determined that the authentication of the cloud database of the battery module fails, and the battery module is judged to be a non-standard battery module. In this way, in the case of networking, the type of battery module can be directly determined through the cloud database, and non-standard batteries (such as non-original battery modules) can be intercepted more conveniently to ensure battery reliability.

[0068] Figure 8 It is a flowchart of another battery module authentication method provided by an embodiment of the present application. Referring to Figure 8 , the battery module authentication method provided by the embodiment of the present application includes: Step 810, after the primary authentication of the battery module is successful, obtain the serial number of the battery module; Among them, before step 810, the battery module can also be primarily authenticated by the in-position resistance verification method; in the case where the primary authentication of the battery module is successful, set the charge and discharge capacity limit of the battery module.

[0069] Step 820, match the serial number of the battery module in the local database; the local database stores the serial number data of the battery modules installed by the terminal manufacturer; Step 830, in the case where there is a target serial number in the local database that matches the serial number of the battery module, determine that the local database authentication of the battery module is successful, and determine that the battery module is a standard-equipped battery module; Step 840, in the case where there is no target serial number in the local database that matches the serial number of the battery module, determine that the local database authentication of the battery module fails, and determine that the battery module is a non-terminal-installed battery module; Step 850, in the case where the local database authentication of the battery module fails, match the serial number of the battery module in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer; Step 860, in the case where there is a target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module is successful, and determine that the battery module is a standard-equipped battery module; Step 870, in the case where there is no target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module fails, and determine that the battery module is a non-standard-equipped battery module.

[0070] Step 880, in the case where the battery module is a standard-equipped battery module, determine the battery module health of the battery module, and configure the charge and discharge capacity limit of the battery module based on the determined battery module health. The charge and discharge capacity limit includes at least one of shutdown voltage, charge cut-off voltage, maximum charging power, and load-carrying capacity.

[0071] Wherein, determining the battery module health of the battery module in step 880 may include: obtaining the usage record information of the battery module by matching the serial number of the battery module in the battery module health database; determining the battery module health of the battery module based on the usage record information of the battery module; wherein the battery module health database stores the mapping relationship between the battery module serial number and the battery module usage record information. The usage record information of the battery module may include: initial usage time, usage duration, number of cycles, etc.

[0072] In the embodiment of the present application, the safety of the battery module can be improved by performing a secondary authentication on the battery module instead of a single authentication. At the same time, the secondary authentication is based on the serial number in the battery module, which can prevent third parties from cracking the security authentication by counterfeiting the battery module to a certain extent, improve security, and solve the problem that the related technology authentication method of the battery module is low in security. In addition, during the secondary authentication process, the serial number is used to match in the local database. Since the local database does not need to be processed online, the verification speed and battery module compatibility can be improved; in the event that the local database authentication of the battery module fails, non-standard batteries (such as non-original battery modules) can be intercepted through cloud database matching, and the battery reliability can be guaranteed by configuring the charge and discharge capacity limit of the battery module. Moreover, Figure 8 The authentication method shown does not require the use of an encryption IC during the authentication process, which can save costs.

[0073] Figure 9 is a flow chart of another battery module authentication method provided in an embodiment of the present application. Figure 9 The battery module authentication method provided in the embodiment of the present application includes: Step 905, after the battery module is successfully authenticated once, obtaining the serial number of the battery module; Before step 905, the battery module may be authenticated once by means of an in-place resistor verification method; if the battery module is successfully authenticated once, a charge and discharge capacity limit of the battery module is set.

[0074] Step 910, matching the serial number of the battery module in a local database; the local database stores serial number data of battery modules installed by the terminal manufacturer; Step 915, if there is a target serial number matching the serial number of the battery module in the local database, determining that the local database authentication of the battery module is successful, and judging that the battery module is a standard battery module; Step 920, when there is no target serial number in the local database that matches the serial number of the battery module, it is determined that the local database authentication of the battery module fails, and it is judged that the battery module is a non-terminal installed battery module; Step 925, when the local database authentication of the battery module fails, the serial number of the battery module is matched in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer; Step 930, when there is a target serial number in the cloud database that matches the serial number of the battery module, it is determined that the cloud database authentication of the battery module is successful, and it is judged that the battery module is a standard-equipped battery module; Step 935, when there is no target serial number in the cloud database that matches the serial number of the battery module, it is determined that the cloud database authentication of the battery module fails, and it is judged that the battery module is a non-standard-equipped battery module.

[0075] Step 940, when the battery module is a non-standard-equipped battery module, maintain the charge and discharge capacity limit set after the battery module passes the primary authentication; Step 945, when the battery module is a standard-equipped battery module, obtain the usage record information of the battery module by matching the serial number of the battery module in the battery module health database; Step 950, based on the usage record information of the battery module, determine the battery module health degree of the battery module; Step 955, when the battery module health degree indicates that the battery module is a brand-new battery module, initialize the shutdown voltage configuration and charging cut-off voltage configuration of the battery module, and open the maximum charging power and load capacity of the battery module; Step 960, when the battery module health degree indicates that the battery module is not a brand-new battery module, adjust the shutdown voltage and charging cut-off voltage of the battery module according to the battery module health degree, and open the maximum charging power and load capacity of the battery module.

[0076] In the embodiments of the present application, by performing secondary authentication on the battery module instead of primary authentication, the security of the battery module can be improved. At the same time, the secondary authentication is based on the serial number built into the battery module, which can, to a certain extent, prevent a third party from cracking the security authentication by forging the battery module, improving the security and solving the problem of the relatively low security of the method for authenticating the battery module in the related art. In addition, during the secondary authentication process, the serial number is used for matching in the local database. Since the local database does not require network processing, the verification speed and the compatibility of the battery module can be improved; in the case of failure to authenticate in the local database of the battery module, matching through the cloud database can intercept non-standard batteries (such as non-original factory battery modules), and by configuring the charge and discharge capacity limits of the battery module, the reliability of the battery can be ensured. Moreover, Figure 6 The authentication method shown does not require the use of an encryption IC during the authentication process, which can save costs.

[0077] In addition, Figure 9 The solution shown adds a process of matching the serial number of the battery module in the battery module health database, which can determine whether the battery module is a brand-new battery module, and there is no need to always maintain a relatively high safe shutdown battery, ensuring more actual available capacity.

[0078] It should be understood that the relevant content of each embodiment of the present application can be referred to each other before and after. For example, the explanation for the Figure 1 steps can also be applied to the Figures 2 to 9 corresponding steps.

[0079] Figure 10 is a flowchart of a specific battery module authentication method provided by the embodiments of the present application for a battery module without a built-in encryption device. Referring to Figure 10 the process of the battery module authentication method provided by the embodiments of the present application is as follows: The primary authentication can be the resistance in place (BATT_ID) verification. This solution omits the encryption IC compared to the Figure 5 solution shown. After the primary authentication is successfully recognized through BATT_ID, the safe shutdown voltage VH and the charging safety cut-off voltage can be configured, and the maximum charging power and the discharge load capacity can be restricted.

[0080] After the electronic device is powered on, secondary authentication is performed. The serial number in the battery pack is read and matched with the local database. If the local quick match is successful, it is considered that the battery is from the terminal factory and is judged as a standard battery; if it does not match the local database, the serial number can be further matched with the cloud database; if it matches the cloud database, it is considered a standard battery, that is, an original factory after-sales battery, and if it does not match the cloud database, it is considered a non-standard battery, that is, a non-original factory battery.

[0081] When the battery is a standard battery, add a process to match the battery health database and activate long health detection functions (such as internal short circuit detection and health detection, etc.) to calculate the battery health; the battery health can be used to determine whether the battery is a brand new battery. Configure the corresponding shutdown voltage V0 or VL according to the battery health (or according to whether it is a brand new battery). Finally, open the maximum charging and discharging capabilities according to the secondary authentication result. For example, if the battery is not a brand new battery, adjust the adapted shutdown voltage and charging cut-off voltage according to the battery module health, and open the maximum charging power and load capacity of the battery module; if the battery is a brand new battery, initialize the shutdown voltage configuration and charging cut-off voltage configuration of the battery module, and open the maximum charging power and load capacity of the battery module.

[0082] If the serial number read from the battery pack does not match the cloud database, the cloud database authentication fails, and it is considered a non-standard battery, that is, a non-original factory battery. Maintain the safe charge and discharge capacity limit, and the safe charge and discharge capacity limit can be to maintain the original charge and discharge capacity limit of the battery module, and the original charge and discharge capacity limit can be the charge and discharge capacity limit determined in the primary authentication.

[0083] Figure 10 The shown battery module authentication method Figure 5 Compared with the described method, it saves an encryption IC and optimizes the cost; in addition, through the local database, the electronic device can achieve secondary authentication without being connected to the network, which can improve the verification speed and battery compatibility; through the cloud database matching, non-standard batteries can be intercepted and their charge and discharge capabilities can be restricted to ensure battery reliability. Moreover, Figure 10 In the shown solution, a process of matching the serial number of the battery module in the battery module health database is added, which can determine whether the battery module is a brand new battery module, and there is no need to always maintain a relatively high safe shutdown battery, ensuring more actual available capacity.

[0084] Please refer to Figure 11 , Figure 11 which is the structural block diagram of a battery module authentication device provided by an embodiment of the present application. As Figure 11 shown, an embodiment of the present application provides a battery module authentication device 1100, and the battery module authentication device 1100 includes: an acquisition module 1110 and an authentication module 1120.

[0085] The acquisition module 1110 is used to obtain the serial number of the battery module after the primary authentication of the battery module is successful; The authentication module 1120 is used to perform secondary authentication on the battery module based on the serial number of the battery module; The secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0086] In the embodiment of the present application, the safety of the battery module can be improved by performing secondary authentication on the battery module instead of primary authentication. At the same time, the secondary authentication is based on the serial number of the battery module, which can prevent a third party from cracking the security authentication by forging the battery module to a certain extent, thereby improving the security and solving the problem of low security of the related technology in authenticating the battery module.

[0087] The battery module authentication device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0088] like Figure 12 As shown, an embodiment of the present application also provides an electronic device 1200. The electronic device 1200 includes: a processor 1210 and a memory 1220, and the memory 1220 stores a program or instruction, and the program or instruction is executed by the processor 1210 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 910, the following process is implemented: after the battery module is successfully authenticated once, the serial number of the battery module is obtained; based on the serial number of the battery module, the battery module is authenticated twice; wherein the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

[0089] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of each embodiment of the touch processing method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0090] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0091] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0092] An embodiment of the present application provides a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0093] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0094] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0095] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A battery module authentication method, characterized in that, Including: After the battery module passes the primary authentication successfully, obtain the serial number of the battery module; Based on the serial number of the battery module, perform secondary authentication on the battery module; Wherein, the secondary authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

2. The method according to claim 1, wherein The battery module includes an encryption device; the performing secondary authentication on the battery module based on the serial number of the battery module includes: Based on the serial number of the battery module, obtain the initial information of the battery module; Match the initial information of the battery module with the target information read from the encryption device of the battery module; In the case where the initial information of the battery module matches the target information, determine that the secondary authentication of the battery module is successful, and determine that the battery module is a standard battery module; In the case where the initial information of the battery module does not match the target information, determine that the secondary authentication of the battery module fails, and determine that the battery module is a non-standard battery module.

3. The method according to claim 2, wherein The obtaining the initial information of the battery module based on the serial number of the battery module includes: Decrypt the serial number of the battery module to obtain decryption information; Based on the decryption information, obtain the initial information of the battery module; Wherein, the initial information of the battery module includes at least one of the production date of the target object and the batch information of the target object, and the target object includes at least one of the battery module, the encryption device in the battery module, and the protection device in the battery module.

4. The method according to claim 2 or 3, characterized in that, The performing secondary authentication on the battery module based on the serial number of the battery module further includes: In the case where the secondary authentication of the battery module is successful, configure the charge and discharge capacity limit of the battery module according to the battery module health status, and the charge and discharge capacity limit includes at least one of the shutdown voltage, the charging cut-off voltage, the maximum charging power, and the load-carrying capacity; wherein, the battery module health status is determined based on the target information read from the encryption device of the battery module; In the case where the secondary authentication of the battery module fails, maintain the charge and discharge capacity limit set after the primary authentication of the battery module is successful.

5. The method according to claim 2 or 3, characterized in that, Before obtaining the serial number of the battery module, the method further includes: Perform primary authentication on the battery module by means of an encryption algorithm; In the case where the primary authentication of the battery module is successful, set the charge and discharge capacity limit of the battery module.

6. The method according to claim 1, characterized in that, The performing secondary authentication on the battery module based on the serial number of the battery module includes: Match the serial number of the battery module in the local database; the local database stores the serial number data of the battery modules already installed by the terminal manufacturer; In the case where there is a target serial number in the local database that matches the serial number of the battery module, determine that the local database authentication of the battery module is successful, and determine that the battery module is a standard battery module.

7. The method according to claim 6, wherein The performing secondary authentication on the battery module based on the serial number of the battery module further includes: In the case where there is no target serial number in the local database that matches the serial number of the battery module, match the serial number of the battery module in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer. In the case where there is a target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module is successful, and determine that the battery module is a standard battery module. In the case where there is no target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module fails, and determine that the battery module is a non-standard battery module.

8. The method according to claim 1, wherein The secondary authentication of the battery module based on the serial number of the battery module includes: Match the serial number of the battery module in the cloud database; the cloud database stores the serial number data of the battery modules produced by the battery module manufacturer. In the case where there is a target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module is successful, and determine that the battery module is a standard battery module. In the case where there is no target serial number in the cloud database that matches the serial number of the battery module, determine that the cloud database authentication of the battery module fails, and determine that the battery module is a non-standard battery module.

9. The method according to any one of claims 6 - 8, characterized in that, The secondary authentication of the battery module based on the serial number of the battery module further includes: In the case where the battery module is a standard battery module, determine the battery module health of the battery module, and configure the charge and discharge capacity limits of the battery module based on the determined battery module health. The charge and discharge capacity limits include at least one of: shutdown voltage, charge cut-off voltage, maximum charging power, and load capacity.

10. The method according to claim 9, characterized in that, The determination of the battery module health of the battery module includes: By matching the serial number of the battery module in the battery module health database, obtain the usage record information of the battery module. Based on the usage record information of the battery module, determine the battery module health of the battery module. Wherein, the battery module health database stores the mapping relationship between the battery module serial number and the battery module usage record information.

11. The method according to claim 9, characterized in that, The configuration of the charge and discharge capacity limits of the battery module based on the determined battery module health includes: In the case where the battery module health indicates that the battery module is not a brand-new battery module, adjust the shutdown voltage and charge cut-off voltage of the battery module according to the battery module health, and open the maximum charging power and load capacity of the battery module. In the case where the battery module health indicates that the battery module is a brand-new battery module, initialize the shutdown voltage configuration and charge cut-off voltage configuration of the battery module, and open the maximum charging power and load capacity of the battery module.

12. The method according to claim 9, wherein The secondary authentication of the battery module based on the serial number of the battery module further includes: When the battery module is a non-standard battery module, maintain the charge and discharge capacity limit set after the first authentication of the battery module is successful.

13. The method according to any one of claims 6-8, characterized in that Before obtaining the serial number of the battery module, the method further includes: Performing a first authentication on the battery module through a resistance in-place verification method; When the first authentication of the battery module is successful, setting the charge and discharge capacity limit of the battery module.

14. A battery module authentication device, characterized in that, Includes: An acquisition module, configured to acquire the serial number of the battery module after the first authentication of the battery module is successful; An authentication module, configured to perform a second authentication on the battery module based on the serial number of the battery module; Wherein, the second authentication is used to identify the type of the battery module, and the type of the battery module includes a standard battery module or a non-standard battery module.

15. An electronic device, characterized in that, Includes a processor and a memory, the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1-13 are implemented.

16. A computer-readable storage medium, characterized in that, The medium stores a program or instruction, and when the program or instruction is executed, the steps of the method according to any one of claims 1-13 are implemented.