Battery pack verification processing method, system, storage medium, backup power supply
By verifying the consistency between the battery pack's factory key and the encoder's factory key in the backup power supply, a first key is generated and stored, solving the problem that the backup power supply cannot manage the battery sales area and realizing automated management and security assurance of the battery pack and backup power supply.
Patent Information
- Application Number
- CN202511292618.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-09-11
AI Technical Summary
The existing backup power supply cannot effectively manage the sales area of batteries, which may lead to the use of battery packs from non-original manufacturers, posing a safety hazard.
By setting an encoder in the backup power supply, the consistency between the battery pack's factory key and the encoder's factory key is verified, a first key is generated and stored to ensure the compatibility between the battery pack and the power control board, and encrypted data is compared when the battery pack is replaced to determine whether the battery pack and the backup power supply belong to the same sales area.
It enables automated management of battery pack and backup power supply manufacturers and sales regions, avoids safety hazards caused by the use of non-original battery packs, ensures the stable operation of backup power supply, and facilitates manufacturers to trace the source of non-compliant battery packs.
Smart Images

Figure CN120810876B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of backup power supply, in particular to a battery pack verification processing method and system, a storage medium and a backup power supply. BACKGROUND
[0002] The backup power supply is generally composed of a power supply control board and a battery. The battery is often a product that needs to be replaced regularly. The parameters of the battery and the power supply control board are properly set at the factory. For the backup power supply, the corresponding battery of the corresponding manufacturer should be used. If a battery that is not from the corresponding manufacturer is used when replacing the battery, safety hazards may occur.
[0003] The existing backup power supply involves the management of the sales area of the battery manufacturer. The existing means can only verify whether the battery is produced by the corresponding manufacturer and cannot achieve the function of sales area management. SUMMARY
[0004] The application solves the technical problem that the existing backup power supply involves the management of the sales area of the battery manufacturer. The existing means can only verify whether the battery is produced by the corresponding manufacturer and cannot achieve the function of sales area management.
[0005] In order to solve the above problems, in order to solve the above technical problems or at least partially solve the above technical problems, the application provides a battery pack verification processing method and system, a storage medium and a backup power supply.
[0006] In a first aspect, the application discloses a battery pack verification processing method, which comprises the following steps:
[0007] The backup power supply is initially loaded with a battery pack. An encoder verifies the consistency of the factory secret key of the battery pack and the factory secret key of the encoder.
[0008] The factory secret key of the battery pack and the factory secret key of the encoder are verified to be consistent. The encoder generates a first secret key, which is updated in the battery pack, the power supply control board and the encoder respectively, to obtain a battery pack secret key, a power supply control board secret key and an encoder secret key.
[0009] After the first battery pack is replaced in the backup power supply, the power supply control board generates a set of verification random numbers. Based on the verification random numbers, the battery pack secret key of the first battery pack and the power supply control board secret key generate a piece of ciphertext data respectively. The consistency comparison result is obtained by comparing the ciphertext data generated by the battery pack secret key of the first battery pack with the ciphertext data generated by the power supply control board secret key.
[0010] When the ciphertext data generated by the battery pack secret key of the first battery pack is consistent with the ciphertext data generated by the power supply control board secret key, the first battery pack and the backup power supply have the same sales area.
[0011] Preferably, the factory key of the battery pack is inconsistent with the factory key of the encoder, and the encoder does not react.
[0012] Preferably, the factory key of the battery pack is consistent with the factory key of the encoder, and then the following steps are included:
[0013] The power control board sends a state detection request message to the battery pack, and the battery pack sends the current state parameters of the battery pack to the power control board in a fixed protocol format;
[0014] Based on the state parameters of the battery pack and the preset parameter threshold, the power control board judges the safety condition of the battery pack;
[0015] The battery pack state is safe, and the consistency of the sales area of the battery pack and the sales area of the backup power source loaded is judged;
[0016] The battery pack state is not safe, and the power control board sends an alarm signal.
[0017] Preferably, the state parameters of the battery pack include the voltage, current, temperature and abnormal situation of each battery in the battery pack.
[0018] Preferably, the backup power source is initially loaded into the battery pack, and the encoder verifies the consistency of the factory key of the battery pack and the factory key of the encoder, specifically including the following steps:
[0019] The battery pack is loaded with the backup power source, and the encoder of the backup power source sends a first key write request to the battery pack;
[0020] The battery pack generates a set of random numbers and sends them to the encoder;
[0021] Based on the factory key of the battery pack and the encryption algorithm, the battery pack encrypts the random numbers to obtain the first write ciphertext;
[0022] Based on the factory key of the encoder and the encryption algorithm, the encoder encrypts the random numbers to obtain the second write ciphertext;
[0023] Compare the consistency of the first write ciphertext and the second write ciphertext, and judge whether the factory keys are the same through the consistency comparison result.
[0024] Preferably, when the encoder generates the second write ciphertext, the encoder also generates the first key, and the encoder sends the second write ciphertext and the first key to the power control board and the battery pack at the same time. When the consistency comparison result is the same, the battery pack, the power control board and the encoder perform the first key storage operation.
[0025] Preferably, after the backup power supply replaces the first battery pack, the power control board generates a set of verification random numbers. Based on the verification random numbers, the battery pack key of the first battery pack and the power control board key respectively generate encrypted data. The encrypted data generated by the battery pack key of the first battery pack and the encrypted data generated by the power control board key are compared to obtain a consistency comparison result. This specifically includes the following steps:
[0026] The backup power supply performs a battery pack replacement operation, installing the first battery pack;
[0027] The power control board generates a set of verification random numbers. The power control board encrypts the generated verification random numbers and the power control board key to generate the first verification ciphertext.
[0028] The power control board sends a verification random number to the first battery pack. The first battery pack encrypts the generated verification random number and the battery pack key of the first battery pack, and the first battery pack generates a second verification ciphertext.
[0029] The consistency comparison result is obtained by comparing the first and second verification ciphertexts.
[0030] Secondly, the present invention discloses a battery pack verification processing system, including a battery pack verification processing method.
[0031] Thirdly, the present invention discloses a backup power supply, including a battery pack, a power control board, and an encoder. The battery pack, the power control board, and the encoder are each equipped with a microcontroller. The microcontrollers are equipped with communication interfaces, and the communication interfaces communicate with each other through a communication bus.
[0032] The microcontroller stores the program in its memory, and executes the stored program to implement the steps of the above method.
[0033] Fourthly, the present invention discloses a readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described method.
[0034] The technical solution provided in this application has the following advantages compared with the prior art:
[0035] This application provides a battery pack verification processing method, system, storage medium, and backup power supply. The battery pack verification processing method involves the following steps: Upon initial installation of the backup power supply into the battery pack, the backup power supply is connected to an encoder. The encoder verifies the consistency between the battery pack's factory key and the encoder's factory key to determine if they belong to the same manufacturer. This mitigates safety hazards such as short circuits and overcurrents caused by using original manufacturer battery packs, ensuring stable operation of the backup power supply. After confirming the consistency of the factory keys, the encoder generates a new first key, which is stored in both the battery pack and the power control board for verification after subsequent battery pack replacements. Then, during battery pack replacement operations in the backup power supply, the battery key of the first battery pack and the power control board's power control board key are verified to determine if they belong to the same sales region. This facilitates subsequent traceability and management by the manufacturer in case of battery pack problems, allowing the manufacturer to promptly understand the situation and trace the source of non-compliant battery packs. The backup power supply mentioned herein uses the battery pack verification processing method to verify the battery pack, determine whether the battery pack and the backup power supply belong to the same manufacturer, and verify whether the battery pack and the backup power supply belong to the same sales region. This avoids safety hazards such as short circuits and overcurrents caused by using original battery packs from the source, and also helps manufacturers to understand the situation in a timely manner and trace the source of non-compliant battery packs.
[0036] Furthermore, during the verification process, the battery pack status is detected. The battery pack sends its status parameters to the power control board, which compares the status parameters with preset parameter thresholds to detect any abnormalities in the battery pack. This helps prevent safety issues with the inserted battery pack and issues timely warning signals when safety problems are detected, allowing users to check the status of the battery pack. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0038] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 A flowchart illustrating a battery pack verification process provided in this application;
[0040] Figure 2 A schematic diagram illustrating the specific process of step S1 in a battery pack verification processing method provided in this application;
[0041] Figure 3 A schematic diagram illustrating the specific process of step S3 in a battery pack verification processing method provided in this application;
[0042] Figure 4 This application provides a structural block diagram of a backup power supply.
[0043] Explanation of reference numerals in the attached figures:
[0044] 1. Backup power supply; 11. Battery pack; 12. Power control board; 13. Microcontroller; 2. Encoder. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] Firstly, see Figures 1-4 This invention discloses a battery pack verification processing method, which includes the following steps:
[0047] Step S1: When the backup power supply is first installed into the battery pack, the encoder verifies that the factory key of the battery pack is consistent with the factory key of the encoder.
[0048] Step S2: Verify that the factory key of the battery pack and the factory key of the encoder are consistent. The encoder generates the first key and updates the keys stored in the battery pack, power control board and encoder respectively, to obtain the battery pack key, power control board key and encoder key.
[0049] Step S3: After replacing the first battery pack in the backup power supply, the power control board generates a set of verification random numbers. Based on the verification random numbers, the battery pack key of the first battery pack and the power control board key respectively generate a ciphertext data. The ciphertext data generated by the battery pack key of the first battery pack and the ciphertext data generated by the power control board key are compared to obtain a consistency comparison result.
[0050] Step S4: When the encrypted data generated by the battery pack key of the first battery pack is consistent with the encrypted data generated by the power control board key, the sales area of the first battery pack and the backup power supply is the same.
[0051] Specifically, in step S1, the backup power supply includes a power control board and a battery compartment. The backup power supply can only be used after a battery pack is installed in the battery compartment. Upon initial installation of the battery pack at the factory, the backup power supply needs to write a first key. This first key is an anti-counterfeiting key used to verify the manufacturer's and sales region's authenticity for both the battery pack and the backup power supply. The backup power supply connects to an encoder to perform the key writing operation. The encoder and power control board communicate via a communication interface. The encoder transmits electrical signals to both the battery pack and the power control board through the communication interface. Both the battery pack and power control board have built-in encryption algorithms and factory keys after leaving the factory. The encoder also stores the manufacturer's factory key and encryption algorithm. The encoder sends a factory key verification request to the battery pack, which includes sending a random number (the byte length can be customized). The battery pack generates a ciphertext based on its built-in encryption algorithm and factory key, and compares it with the ciphertext generated by the encoder based on its built-in encryption algorithm and factory key to determine whether the factory key in the encoder matches the factory key in the battery pack. If the encrypted verification matches, it can be determined that the battery pack and encoder are from the same manufacturer; if the encrypted verification does not match, it can be determined that the battery pack and encoder are not from the same manufacturer.
[0052] Specifically, the encoder stores the manufacturer's factory key and encryption algorithm, as well as all the first keys that have been generated.
[0053] In this embodiment, the communication interface between the backup power supply and the encoder adopts a UART interface.
[0054] As one embodiment, the encoder can send a factory key verification request to the power control board to verify the factory key verification between the power control board and the encoder. This verifies whether the power control board and encoder in the backup power supply are from the same manufacturer, preventing the replacement of the power control board or encoder within the backup power supply and avoiding safety issues caused by different parameter specifications due to component replacement from other manufacturers. Specifically, in step S2, after verifying the battery pack's factory key and confirming that the encoder and backup power supply are from the same manufacturer, the encoder generates a first key and sends it to the battery pack and power control board. The battery pack, power control board, and encoder each store the first key in their own microcontrollers, forming a battery pack key, a power control board key, and an encoder key, respectively, for subsequent battery pack verification operations after battery pack replacement. Furthermore, the encoder, power control board, and battery pack need to store a record of each first key storage operation, which can record the battery pack's usage. After completing the first key writing, the encoder disconnects from the backup power supply.
[0055] Specifically, the communication protocol for the first key transmission is shown in Table 1 below.
[0056] Table 1
[0057]
[0058] Specifically, in step S3, when the user replaces the first battery pack with the backup power supply, the power control board initiates the verification process. The power control board sends a set of verification random numbers and generates a set of ciphertext based on its own stored power control board key and encryption algorithm. This ciphertext is then compared with the ciphertext generated by the encryption algorithm of the battery pack key or factory key set stored in the first battery pack. The power control board determines that the two sets of ciphertext are consistent. If they are consistent, the power control board can consider that the backup power supply and the first battery pack belong to the same sales area.
[0059] As one embodiment, the battery pack is located within the backup power supply. The backup power supply can verify and test the battery pack installed in it at any time to determine whether the battery pack and the backup power supply are from the same sales region. This can be done when the battery pack is installed in the backup power supply or when the battery pack is supplying power to the backup power supply. Verification and testing can be performed at any time to prevent the battery pack from bypassing fixed testing and verification steps and to ensure that the battery pack and the backup power supply belong to the same sales region.
[0060] Specifically, in step S4, if the ciphertext data generated using the battery pack key of the first battery pack is the same as the ciphertext data generated using the power control board key, it can be assumed that the first battery pack and the backup power supply come from the same sales region, allowing the backup power supply to use the first battery pack normally. By directly linking regional legitimacy through ciphertext consistency, the hardware compatibility (such as voltage and protection logic adaptation) of the battery pack and backup power supply is indirectly ensured, reducing the risk of failures due to mismatch. There is no need for manual verification of the battery pack's sales region; the system automatically completes the judgment and execution, reducing the manufacturer's management costs.
[0061] Specifically, the battery pack, encoder, and power control board each contain a microcontroller. The microcontroller stores encryption algorithms and keys. Encrypting input data requires both an encryption algorithm and a key to produce encrypted data. Different encryption algorithms yield different encrypted data. Furthermore, even with the same encryption algorithm, different keys will output different encrypted data. Therefore, by using the corresponding key during encryption and comparing the output encrypted data, it is possible to determine whether the manufacturer and sales region are consistent.
[0062] Specifically, when the backup power supply is initially installed with the battery pack, it connects to an encoder. The encoder verifies the consistency between the battery pack's factory key and the encoder's factory key to determine if they belong to the same manufacturer. This avoids potential safety hazards such as short circuits and overcurrents caused by using original factory battery packs, ensuring the stable operation of the backup power supply. After confirming the consistency of the factory keys, the encoder generates a new first key, which is stored on both the battery pack and the power control board for verification after subsequent battery pack replacements. Then, during battery pack replacement operations, the backup power supply verifies the consistency between the first battery pack's battery key and the power control board's key to determine if the battery pack and backup power supply belong to the same sales region. This facilitates subsequent traceability and management by the manufacturer in case of battery pack problems, allowing the manufacturer to promptly understand the situation and trace the source of non-compliant battery packs.
[0063] When the backup power supply leaves the factory, a factory key verification process is required between the backup power supply and the encoder to determine if they are from the same manufacturer before sales can commence. To determine if the battery packs being replaced in the backup power supply come from the same sales region, the power control board within the backup power supply verifies and checks if the battery packs belong to the same sales region. This ensures that the battery packs are manufactured by the backup power supply's own manufacturer, while eliminating the need for manual verification of the battery packs' sales region. The system automatically completes the determination and execution, reducing the manufacturer's management costs, enabling sales region management of battery packs, preventing the installation of battery packs with different specifications into the backup power supply, and ensuring electrical safety.
[0064] As one embodiment, in step S1, if the factory key of the battery pack does not match the factory key of the encoder, the encoder will not respond. This means that legitimacy verification is completed at the initial stage of battery pack connection to prevent unauthorized battery packs from entering subsequent processes, thus reducing security risks at the source, such as short circuits and overcurrent risks from non-original batteries.
[0065] Step S1 is followed by the following steps:
[0066] Step S5: The power control board performs status detection on the battery pack to determine whether the battery pack is safe.
[0067] Specifically, when the battery pack is installed in the backup power supply, the power control board detects the status of the battery pack through signal transmission and determines its health level, so as to detect problematic battery packs before use and avoid potential safety hazards.
[0068] Step S5 specifically includes the following steps:
[0069] Step S51: The power control board sends a status detection request to the battery pack, and the battery pack sends its current status parameters to the power control board in a fixed protocol format.
[0070] Step S52: Based on the state parameters of the battery pack and the preset parameter thresholds, the power control board determines the safety status of the battery pack.
[0071] Step S53: The battery pack is in a safe state. Check that the sales area of the battery pack is consistent with that of the backup power supply.
[0072] Step S54: The battery pack is in an unsafe state, and the power control board sends an alarm signal.
[0073] In step S51, the power control board sends a status detection request to the battery pack. This request is sent by the power control board's microcontroller via the UART interface, using a 9600 baud rate to transmit byte data, as detailed in the table below. The battery pack then feeds back its status data parameters to the power control board according to the communication protocol. The protocol for sending status parameters by the battery pack is shown in Table 2 below.
[0074] Table 2
[0075]
[0076] Then, based on the status parameters and preset parameter thresholds, the current safety status of the battery pack is determined. If an abnormality occurs in the battery pack, the power control board cuts off the electrical connection. The power control board can transmit the abnormality to the server via its built-in wireless module, notifying the user to remove and inspect the battery pack. In addition, by comparing thresholds, faulty battery packs, such as those with short circuits, overvoltage, or overheating, are identified in advance, preventing faulty batteries from entering the subsequent regional consistency judgment process. This prevents safety accidents caused by battery malfunctions from the source, such as short circuits causing backup power to burn out. Safety is transformed into a quantifiable parameter threshold comparison, avoiding the subjectivity of manual judgment.
[0077] Specifically, in step S51, the battery pack status parameters sent to the power control board include the voltage, current, temperature, and abnormal conditions of each battery within the pack. More specifically, the signals sent by the battery pack to the power control board include the battery's voltage, current, temperature, status, and byte summation. Furthermore, the specific byte length of the data transmitted from the battery pack to the power control board is related to the actual number of battery cells installed in the pack, and the data byte length is not fixed. The specific communication protocol between the battery pack and the power control board is shown in Table 3 below.
[0078] Table 3
[0079]
[0080] As shown in the table above, the length is the number of bytes from the value to the end of the first frame, and the sum is the sum of the values from the length to the value before the sum.
[0081] In the data, the voltage value of the nth battery is 2 bytes long and is an unsigned integer with the least significant byte first. For example, the data 3348 represents 3348mV.
[0082] The current value is 2 bytes long and is a signed integer, with the least significant byte first. For example, 130 indicates a charging current of 1.3A, and -130 indicates a discharging current of 1.3A.
[0083] The MOS temperature value, battery negative electrode temperature value 1, and battery pack temperature value 2 are each represented by 1 byte, and the values are signed integers. For example, the data 12 represents 12℃, and -12 represents -12℃.
[0084] The status value consists of 2 bytes, with a value of an unsigned integer. The first byte of the status value data conveys the abnormal conditions of the battery pack, including short circuit, overcurrent discharge, overcurrent charging, overvoltage, undervoltage, exceeding the high temperature threshold, falling below the low temperature threshold, and AFE communication failure. This is a total of 8 bits, with each bit representing either 1 or 0, where 1 indicates the occurrence of the abnormal condition and 0 indicates its absence. The second byte of the status value conveys the battery's operating status, including whether the discharge MOSFET is on, whether the charging MOSFET is on, whether charging is in progress, whether a load is connected, and whether it is connected to the charger. This is also a total of 8 bits, with each bit representing either 1 or 0, where 1 indicates the occurrence of the abnormal condition and 0 indicates its absence.
[0085] Step S1 specifically includes the following steps:
[0086] Step S11: The battery pack is installed into the backup power supply for the first time, the encoder is connected to the backup power supply, and the encoder sends the first key writing request to the battery pack.
[0087] Step S12: The battery pack generates a set of random numbers and sends them to the encoder;
[0088] Step S13: Based on the battery pack's factory key and encryption algorithm, the battery pack encrypts the random number to obtain the first ciphertext.
[0089] Step S14: Based on the encoder's factory key and encryption algorithm, the encoder encrypts the random number to obtain the second ciphertext.
[0090] Step S15: Compare whether the first written ciphertext and the second written ciphertext are consistent, and determine whether the factory key is the same based on the consistency comparison result.
[0091] Specifically, when the backup power supply is installed into the battery pack for the first time at the factory, the backup power supply is connected to the encoder to write the first key. The encoder detects the battery pack connection signal and sends a set of first key writing request information to the battery pack. The sending protocol is shown in Table 4 below.
[0092] Table 4
[0093]
[0094] The length is the number of bytes from the first byte after the length to the first 0x23 data, and the sum is the sum of the values from the length to the data before the sum. Then, the battery pack's microcontroller receives the write request information sent by the encoder, generates a set of random numbers, a total of 10 bytes, and sends them to the encoder. The sending protocol is shown in Table 5 below.
[0095] Table 5
[0096]
[0097] The battery pack encrypts the random number, and the encoder also encrypts the random number, resulting in a first ciphertext and a second ciphertext. The encoder compares the first and second ciphertexts. If the two ciphertexts match, it is determined that the factory key is the same. If the two ciphertexts do not match, it is determined that the factory key is different, the encoder terminates the first key writing process, and triggers a writing failure message.
[0098] Understandably, the entire verification process is automated, requires no manual intervention, and has high security and accuracy, efficiently determining whether the factory key in the encoder matches the factory key of the battery pack.
[0099] As one embodiment, in steps S14 and S15, when the encoder generates the second ciphertext, it simultaneously generates the first key. The encoder sends the second ciphertext and the first key to the power control board and the battery pack simultaneously. If the consistency comparison result is the same, the battery pack, power control board, and encoder perform the first key storage operation. If the two ciphertexts are inconsistent, it is determined that the factory key is different. The encoder terminates the first key writing process, invalidates the sent first key, sends corresponding information, and triggers a key input failure prompt. The encoder's first key sending protocol is shown in Table 6 below.
[0100] Table 6
[0101]
[0102] Step S3 specifically includes the following steps:
[0103] Step S31: The backup power supply performs a battery pack replacement operation and installs the first battery pack;
[0104] Step S32: The power control board generates a set of verification random numbers. The power control board encrypts the generated verification random numbers and the power control board key, and the power control board generates the first verification ciphertext.
[0105] Step S33: The power control board sends a verification random number to the first battery pack. The first battery pack encrypts the generated verification random number and the battery pack key of the first battery pack, and the first battery pack generates a second verification ciphertext.
[0106] Step S34: Compare the first verification ciphertext with the second verification ciphertext to obtain a consistency comparison result.
[0107] Specifically, during battery pack replacement in the backup power supply, the first battery pack is installed. The power control board detects the battery installation and sends a verification random number, which consists of 10 bytes. The verification random number sending protocol is shown in Table 7 below.
[0108] Table 7
[0109]
[0110] The power control board encrypts the random number to obtain the first verification ciphertext, and the first battery pack encrypts the random number to obtain the second verification ciphertext. The second verification ciphertext transmission protocol is shown in Table 8 below.
[0111] Table 8
[0112]
[0113] The first verification ciphertext is a random number encrypted by the power control board using its own regional key. The second verification ciphertext is the same random number encrypted by the first battery pack using its own key. Comparing these two ciphertexts directly reflects whether the battery pack key and the power control board key are consistent. If all bytes are identical, the consistency comparison result is considered the same; if any byte is different, the consistency comparison result is considered different. The battery pack does not need to send its own key; it only needs to generate ciphertext by encrypting random numbers to complete the verification, preventing the key from being stolen during transmission and ensuring key security. In other words, the entire comparison process only involves ciphertext and does not expose the keys of the power control board or battery pack. Even if the comparison result is intercepted, the key cannot be reverse-engineered, ensuring the long-term security of the system.
[0114] Secondly, this invention discloses a battery pack verification processing system, including a battery pack verification processing method. The method involves initially installing a battery pack into a backup power supply. The backup power supply is connected to an encoder, which verifies the consistency between the battery pack's factory key and the encoder's factory key to determine if they belong to the same manufacturer. This avoids potential safety hazards such as short circuits and overcurrents caused by using original manufacturer battery packs, ensuring the stable operation of the backup power supply. After confirming the consistency of the factory keys, the encoder generates a new first key, which is stored in both the battery pack and the power control board for verification after subsequent battery pack replacements. Then, during battery pack replacement operations in the backup power supply, the system verifies the consistency between the battery key of the first battery pack and the power control board key to determine if the battery pack and backup power supply belong to the same sales region. This facilitates subsequent traceability and management by the manufacturer in case of battery pack problems, allowing the manufacturer to promptly understand the situation and trace the source of non-compliant battery packs.
[0115] Thirdly, see Figure 4 This invention discloses a backup power supply 1, including a battery pack 11 and a power control board 12. At the factory, the backup power supply 1 is connected to an encoder 2 for first key writing. The battery pack 11 and the power control board 12 are each equipped with a microcontroller 13. Each microcontroller 13 has a communication interface, and communication between these interfaces is achieved via a communication bus. When the backup power supply 1 is writing the first key, the microcontroller of the encoder 2 accesses the microcontrollers 13 of the battery pack 11 and the power control board 12, and transmits information through the communication interfaces. The microcontroller 13 stores a program and executes the stored program to implement the steps of the method mentioned in the first aspect above.
[0116] It is understandable that the battery pack 11 verification process mentioned in the first aspect is adopted to verify the battery pack 11, determine whether the battery pack 11 and the encoder 2 belong to the same manufacturer, and verify whether the battery pack 11 and the backup power supply 1 belong to the same sales area. This avoids safety hazards such as short circuits and overcurrents caused by using the original battery pack 11 from the source, and also helps the manufacturer to understand the situation in a timely manner and trace the source of the non-compliant battery pack 11.
[0117] As one embodiment, the communication interface adopts a UART interface, and the battery pack 11, power control board 12, and encoder 2 all transmit signals through this type of interface.
[0118] Fourthly, the present invention discloses a readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method disclosed in the first aspect above.
[0119] Specifically, a computer program stored in a readable storage medium is executed by a processor to implement a battery pack verification process. The method involves initially installing the battery pack into the backup power supply. The backup power supply is connected to an encoder, which verifies the consistency between the battery pack's factory key and the encoder's factory key to determine if they belong to the same manufacturer. This avoids potential safety hazards such as short circuits and overcurrents caused by using original factory battery packs, ensuring the stable operation of the backup power supply. After confirming the consistency of the factory keys, the encoder generates a new first key, which is stored in both the battery pack and the power control board for verification after subsequent battery pack replacements. Then, during battery pack replacement operations in the backup power supply, the battery key of the first battery pack and the power control board's key are verified to determine if they belong to the same sales region. This facilitates subsequent traceability and management by the manufacturer in case of battery pack problems, allowing the manufacturer to promptly understand the situation and trace the source of non-compliant battery packs.
[0120] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0121] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0122] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0123] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0124] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0125] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. The illustrative expressions of the above terms in this specification should not be construed as necessarily referring to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0126] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.
[0127] The above description describes specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A battery pack verification processing method, characterized in that, Includes the following steps: When the backup power supply is first installed into the battery pack, the encoder verifies that the factory key of the battery pack is consistent with the factory key of the encoder. The factory key of the battery pack is verified to be consistent with the factory key of the encoder. The encoder generates the first key and updates the keys stored in the battery pack, power control board and encoder respectively, to obtain the battery pack key, power control board key and encoder key. After the first battery pack is replaced in the backup power supply, the power control board generates a set of verification random numbers. Based on the verification random numbers, the battery pack key of the first battery pack and the power control board key are respectively generated into encrypted data. The encrypted data generated by the battery pack key of the first battery pack and the encrypted data generated by the power control board key are compared to obtain a consistency comparison result. When the encrypted data generated by the battery pack key of the first battery pack is consistent with the encrypted data generated by the power control board key, the sales area of the first battery pack and the backup power supply is the same.
2. The method according to claim 1, characterized in that, The battery pack's factory key does not match the encoder's factory key, so the encoder does not respond.
3. The method according to claim 1, characterized in that, The encoder verifies the consistency between the battery pack's factory key and the encoder's factory key, and then includes the following steps: The power control board sends a status detection request to the battery pack, and the battery pack sends its current status parameters to the power control board in a fixed protocol format. Based on the battery pack's state parameters and preset parameter thresholds, the power control board determines the battery pack's safety status. The battery pack is in a safe condition. It is determined that the sales region of the battery pack is consistent with the sales region of the installed backup power supply. The battery pack is in an unsafe state, and the power control board sends an alarm signal.
4. The method according to claim 3, characterized in that, The status parameters of the battery pack include the voltage, current, temperature, and abnormal conditions of each cell in the battery pack.
5. The method according to claim 1, characterized in that, When the backup power supply is initially installed in the battery pack, the encoder verifies that the factory key of the battery pack is consistent with the factory key of the encoder. This specifically includes the following steps: When the battery pack is first installed in the backup power supply, the encoder is connected to the backup power supply and sends the first key writing request to the battery pack. The battery pack generates a set of random numbers and sends them to the encoder; Based on the battery pack's factory key and encryption algorithm, the battery pack encrypts random numbers to obtain the first ciphertext. Based on the encoder's factory key and encryption algorithm, the encoder encrypts the random number to obtain the second ciphertext. Compare the first and second ciphertexts to see if they are consistent, and use the consistency comparison results to determine if the factory key is the same.
6. The method according to claim 5, characterized in that, When the encoder generates the second ciphertext, it simultaneously generates the first key. The encoder sends the second ciphertext and the first key to the power control board and the battery pack at the same time. When the consistency comparison results are the same, the battery pack, power control board and encoder perform the first key storage operation.
7. The method according to claim 1, characterized in that, After the first battery pack is replaced in the backup power supply, the power control board generates a set of verification random numbers. Based on the verification random numbers, the battery pack key of the first battery pack and the power control board key are respectively generated into encrypted data. The encrypted data generated by the battery pack key of the first battery pack and the encrypted data generated by the power control board key are compared to obtain a consistency comparison result. The specific steps include: The backup power supply performs a battery pack replacement operation, installing the first battery pack; The power control board generates a set of verification random numbers. The power control board encrypts the generated verification random numbers and the power control board key to generate the first verification ciphertext. The power control board sends a verification random number to the first battery pack. The first battery pack encrypts the generated verification random number and the battery pack key of the first battery pack, and the first battery pack generates a second verification ciphertext. The consistency comparison result is obtained by comparing the first and second verification ciphertexts.
8. A battery pack verification processing system, characterized in that, The method includes a battery pack verification process as described in any one of claims 1-7.
9. A backup power supply, characterized in that, It includes a battery pack, a power control board, and an encoder. Each of the battery pack, power control board, and encoder is equipped with a microcontroller. The microcontrollers are equipped with communication interfaces, and the communication interfaces communicate with each other through a communication bus. The microcontroller stores a program in its memory, and executes the stored program to implement the steps of the method described in any one of claims 1-7.
10. A readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Terminal battery authentication method and device and storage medium
CN116205660A
Battery authentication system, electronic device, battery, and battery charger
US20090256717A1