Battery management system and control method thereof
By combining modular design with encryption algorithms, the problem of poor compatibility between high-voltage and low-voltage modules in the battery management system is solved, thereby improving the versatility and security of the battery management system.
Patent Information
- Application Number
- CN202511150164.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-15
- Publication Date
- 2025-11-11
AI Technical Summary
In existing battery management systems, poor compatibility between high-voltage and low-voltage modules leads to complex connections, poor versatility, and poor communication security.
The system adopts a modular design, with the main control module and functional modules connected by detachable connectors. It uses preset random number verification and encryption algorithms to verify legitimacy and match identities, thereby achieving encrypted transmission.
It improves the versatility and communication security of the battery management system, simplifies the disassembly and assembly process of functional modules, and enhances the reliability of communication between modules.
Smart Images

Figure CN120934141A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery control technology, and in particular to a battery management system and its control method. Background Technology
[0002] The Battery Management System (BMS) is the core control unit of a battery pack, responsible for monitoring, protecting, and optimizing battery performance, and ensuring the safe operation of the battery pack.
[0003] In existing battery management systems, various functional modules are integrated into one or two circuit boards. For example, the high-voltage module is integrated into one circuit board and the low-voltage module is integrated into another circuit board. Due to the poor compatibility between the high-voltage and low-voltage modules, the connection between the various functional modules of the battery management system is complicated, the versatility of the battery management system is poor, and the communication security of the various functional modules is poor. Summary of the Invention
[0004] Based on this, a battery management system and its control method are provided.
[0005] In a first aspect, this application provides a battery management system, comprising: The main control module has multiple first connectors. The functional module includes multiple functional modules, each functional module is provided with a second connector, and the second connector is detachably connected to a corresponding first connector; each functional module includes at least one functional processing module. The main control module is configured to perform legal verification of the function processing module based on a preset random number verification algorithm, and determine the corresponding function processing module as a legal function processing module when the verification is successful; the main control module is also configured to match the first identity information of the legal function processing module, and call a preset encryption algorithm for encrypted transmission when the first identity information is successfully matched.
[0006] In one embodiment, the first connector is provided with a first magnetic interface and a first connecting contact point group; the second connector is provided with a second magnetic interface and a second connecting contact point group. The first magnetic interface is attracted and connected to the corresponding second magnetic interface so that the first contact point group and the corresponding second contact point group are electrically connected.
[0007] In one embodiment, the first connected contact group includes a first power supply contact, a first communication contact, and a first data transmission contact; the second connected contact group includes a second power supply contact, a second communication contact, and a second data transmission contact. When the first magnetic interface is magnetically connected to the corresponding second magnetic interface, the first power supply contact is connected to the corresponding second power supply contact, the first communication contact is connected to the corresponding second communication contact, and the first data transmission contact is connected to the corresponding second data transmission contact.
[0008] In one embodiment, each functional module further includes at least one non-processing module; The main control module is configured to acquire the power supply signal of the non-processing module and, based on the power supply signal, query a preset mapping table to obtain the second identity information of the non-processing module; the main control module is also configured to establish communication transmission with the non-processing module based on the second identity information.
[0009] In one embodiment, the main control module is further configured to acquire a request signal transmitted by the function processing module, generate initial random data according to the request signal, and transmit the initial random data to the corresponding function processing module; the function processing module is configured to encrypt the initial random data with a preset private key to obtain first data, and transmit the first data to the main control module. The main control module is also configured to decrypt the first data based on a preset public key to obtain the target random data, and when the target random data successfully matches the initial random data, the corresponding function processing module is identified as a legitimate function processing module.
[0010] In one embodiment, the main control module is further configured to obtain the first identity information of the corresponding function processing module according to the request signal; the legitimate function processing module is further configured to encrypt its own identity information based on a first preset encryption algorithm to obtain second data, and transmit the second data to the main control module. The main control module is also configured to, when the target random data successfully matches the initial random data, decrypt the second data based on the second preset encryption algorithm to obtain the target identity information, and when the target identity information successfully matches the first identity information, call the first preset encryption algorithm or the second preset encryption algorithm for encrypted transmission.
[0011] Secondly, this application also provides a control method for a battery management system, applied to a main control module as described in any of the above; comprising the following steps: Based on a preset random number verification algorithm, the functional processing module is verified to be legitimate, and when the functional processing module is successfully verified, the corresponding functional processing module is determined to be a legitimate functional processing module. The first identity information of the legitimate function processing module is matched, and when the first identity information is successfully matched, the preset encryption algorithm corresponding to the first identity information is invoked for encrypted transmission.
[0012] In one embodiment, the step of verifying the legitimacy of a functional processing module based on a preset random number verification algorithm, and determining the corresponding functional processing module as a legitimate functional processing module when the verification is successful, includes: Obtain the request signal transmitted by the corresponding functional processing module; Based on the request signal, generate initial random data and transmit the initial random data to the corresponding functional processing module; Based on the preset public key, the first data transmitted by the function processing module is decrypted to obtain the target random data; the first data is obtained by the function processing module encrypting the initial random data with the preset private key. When the target random data successfully matches the initial random data, the corresponding functional processing module is determined as a legitimate functional processing module.
[0013] In one embodiment, the step of matching the first identity information of the legitimate function processing module and, when the first identity information is successfully matched, calling a preset encryption algorithm for encrypted transmission includes: Based on the request signal, the first identity information of the corresponding functional processing module is obtained; When the target random data successfully matches the initial random data, the second data transmitted by the legitimate function processing module is decrypted based on the second preset encryption algorithm to obtain the target identity information; the second data is obtained by the legitimate function processing module encrypting its own identity information based on the first preset encryption algorithm. When the target identity information successfully matches the first identity information, the first preset encryption algorithm or the second preset encryption algorithm is invoked for encrypted transmission.
[0014] In one embodiment, the control method for the battery management system further includes the step of: Obtain the power supply signal from the non-processing module; Based on the power supply signal, the second identity information of the non-processing module is obtained by querying the preset mapping relationship table. Based on the second identity information, establish communication transmission with the functional non-processing module.
[0015] Thirdly, this application also provides a control method for a battery management system, applied to a functional processing module as described in any of the above; comprising the following steps: When establishing an electrical connection with the main control module, a request signal is transmitted to the main control module; the request signal is used to instruct the main control module to generate initial random data. The system acquires the initial random data transmitted by the main control module, encrypts the initial random data with a preset private key to obtain the first data, and transmits the first data to the main control module so that the main control module can decrypt the acquired first data based on the preset public key to obtain the target random data. When the target random data and the initial random data are successfully matched, the system determines the legitimate function processing module.
[0016] One of the above technical solutions has the following advantages and beneficial effects: The aforementioned battery management system includes a main control module and functional modules. The main control module is equipped with multiple first connectors. The functional modules include multiple functional modules, each equipped with a second connector, which is detachably connected to a corresponding first connector. Each functional module includes at least one functional processing module. The main control module is configured to perform legal verification on the functional processing modules based on a preset random number verification algorithm, and determine the corresponding functional processing module as a legitimate functional processing module when the verification is successful. The main control module is also configured to match the first identity information of the legitimate functional processing modules, and when the first identity information is successfully matched, call a preset encryption algorithm for encrypted transmission, thereby realizing the functional modularization of the battery management system and improving the versatility and security of the battery management system. This application adopts a modular design for the main control module and various functional modules, which allows for the assembly of battery management systems with different functional modules according to product requirements, thereby improving the versatility of the battery management system. Each functional module is connected to the main control module in a detachable manner, simplifying the assembly and disassembly of the various functional modules of the battery management system. By verifying the legitimacy of the functional processing modules and matching their identities, an encrypted transmission is established between the main control module and the functional processing modules, thereby improving the communication security of the corresponding functional modules. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the first circuit structure of the battery management system in an embodiment of this application; Figure 2 This is a schematic diagram of the second circuit structure of the battery management system in an embodiment of this application; Figure 3 This is a schematic diagram of the third circuit structure of the battery management system in an embodiment of this application; Figure 4 This is a schematic diagram of the fourth circuit structure of the battery management system in an embodiment of this application; Figure 5 This is a flowchart illustrating the control method of the battery management system applied to the main control module in an embodiment of this application; Figure 6 This is a flowchart illustrating the legality verification steps of the functional processing module in an embodiment of this application. Figure 7This is a flowchart illustrating the identity matching steps of the legitimate function processing module in an embodiment of this application. Figure 8 This is a flowchart illustrating the communication matching steps of the non-processing modules in an embodiment of this application. Figure 9 This is a flowchart illustrating the control method of the battery management system applied to the functional processing module in this application embodiment.
[0018] Figure label: 10. Main control module; 110. First connector; 112. First magnetic interface; 114. First contact group; 1142. First power supply contact; 1144. First communication contact; 1146. First data transmission contact; 20. Functional module; 200. Functional module; 210. Functional processing module; 220. Functional non-processing module; 230. Second connector; 232. Second magnetic interface; 234. Second connecting contact group; 2342. Second power supply contact; 2344. Second communication contact; 2346. Second data transmission contact. Detailed Implementation
[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] In addition, the term "multiple" should mean two or more.
[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0023] In one embodiment, such as Figure 1 and Figure 2 As shown, a battery management system is provided, including a main control module 10 and a functional module 20. The main control module 10 is provided with a plurality of first connectors 110. The functional module 20 includes a plurality of functional modules 200, and each functional module 200 is provided with a second connector 230, which is detachably connected to the corresponding first connector 110. Each functional module 200 includes at least one functional processing module 210. The main control module 10 is configured to perform legal verification on the functional processing module 210 based on a preset random number verification algorithm, and when the functional processing module 210 is successfully verified, determine that the corresponding functional processing module 210 is a legal functional processing module. The main control module 10 is also configured to match the first identity information of the legal functional processing module, and when the first identity information is successfully matched, call a preset encryption algorithm for encrypted transmission.
[0024] The battery management system connects to battery modules, which may include several individual cells connected in series and / or parallel. These individual cells may be, but are not limited to, lithium-ion batteries. The main control module 10 refers to a processing module 210 with functions such as data acquisition, data processing, and data transmission. For example, the main control module 10 may include a processor, a power supply module, a voltage acquisition module, and a temperature acquisition module. The power supply module, voltage acquisition module, and temperature acquisition module are connected to the processor. The power supply module supplies power to the processor, the voltage acquisition module acquires voltage data from the battery module or corresponding individual cells, and the temperature acquisition module acquires temperature data from the battery module or corresponding individual cells.
[0025] The main control module 10 is equipped with a first circuit board, on which components corresponding to the processor, power supply module, voltage acquisition module, and temperature acquisition module are respectively arranged. The first circuit board also has multiple first connectors 110, which can be soldered onto the first circuit board; the first connectors 110 are connected to the processor. For example, the first circuit board can be a square circuit board, and each first connector 110 can be distributed adjacent to the four sides of the first circuit board.
[0026] Functional module 20 may include multiple functional modules 200, the number of which can be increased or decreased according to actual product requirements. For example, functional module 200 may be a current sampling module, a current limiting module, a communication module, a switch protection module, or a data storage module, etc. It should be noted that the communication module may be, but is not limited to, an RS485 communication module, a CAN communication module, an RS232 communication module, a LIN communication module, or an Ethernet communication module, etc. The switch protection module may be, but is not limited to, a MOSFET array, a relay, or a gallium nitride transistor array, etc.
[0027] Functional module 200 is provided with a second circuit board, on which components corresponding to the functional module 200 are disposed. The second circuit board also includes a second connector 230, which can be soldered onto the second circuit board. The second connector 230 is used for detachable connection with a corresponding first connector 110, thereby enabling a detachable connection between the corresponding functional module 200 and the main control module 10. For example, the second circuit board can be a square circuit board, and the first connector 110 can be disposed adjacent to one side of the second circuit board.
[0028] Each functional module 200 can be divided into functional modules 200 with processing functions (i.e., functional processing modules 210) and functional modules 200 without processing functions (i.e., functional non-processing modules 220) according to their processing functions. Each functional module 200 has at least one functional processing module 210; the functional processing module 210 refers to the functional module 200 equipped with a processing chip (MCU), such as a data storage module, a communication module, or a protection module.
[0029] The main control module 10 can compare and verify the randomly generated random number with the random number processed by the corresponding functional processing module 210 based on a preset random number verification algorithm. If the verification is successful, the corresponding functional processing module 210 is determined to be a legitimate functional processing module. The preset encryption algorithm can be a symmetric encryption algorithm (such as AES (Advanced Encryption Standard) algorithm) or an asymmetric encryption algorithm (such as RSA (Rivest Shamir Adleman algorithm) algorithm).
[0030] For example, the main control module 10 establishes a physical connection with the second connection 230 of each corresponding functional module 200 through the first connector 110. That is, when the main control module 10 establishes an electrical connection with each corresponding functional module 200, the main control module 10 can perform random number comparison processing on the functional processing module 210 in each functional module 200 based on a preset random verification algorithm to verify the legitimacy of the corresponding functional processing module 210. If the verification of the corresponding functional processing module 210 is successful, then the corresponding functional processing module 210 is determined to be a legitimate functional processing module. The main control module 10 can obtain the first identity information of the legitimate functional processing module in both the encrypted and unencrypted stages, and then perform matching processing on the first identity information obtained by the legitimate functional processing module in different stages. If the matching is successful, a preset encryption algorithm is invoked to perform encrypted transmission with the corresponding successfully matched legitimate functional processing module, thereby improving the communication security and reliability between the corresponding functional processing module 210 and the main control module 10. It should be noted that the first identity information is the identification code of the corresponding functional processing module 210.
[0031] In the above embodiments, the main control module 10 is provided with multiple first connectors 110; the functional module 200 is provided with second connectors 230, and the second connectors 230 are detachably connected to the corresponding first connectors 110; each functional module 200 includes at least one functional processing module 210; the main control module 10 is configured to perform legal verification on the functional processing module 210 based on a preset random number verification algorithm, and when the functional processing module 210 is successfully verified, determine the corresponding functional processing module 210 as a legal functional processing module; the main control module 10 is also configured to match the first identity information of the legal functional processing module, and when the first identity information is successfully matched, call a preset encryption algorithm for encrypted transmission, thereby realizing the functional module 200 of the battery management system and improving the versatility and security of the battery management system. This application adopts a modular design for the main control module 10 and each functional module 200, which allows for the assembly of battery management systems with different functional modules 200 according to product requirements, thereby improving the versatility of the battery management system. Each functional module 200 is detachably connected to the main control module 10, simplifying the assembly and disassembly of each functional module 200 in the battery management system. By verifying the legitimacy of the functional processing module 210 and performing identity matching on the functional processing module 210, encrypted transmission between the main control module 10 and the functional processing module 210 is established, thereby improving the communication security of the corresponding functional modules 200.
[0032] In one embodiment, such as Figure 2 and Figure 3 As shown, the first connector 110 is provided with a first magnetic interface 112 and a first connecting contact point group 114; the second connector 230 is provided with a second magnetic interface 232 and a second connecting contact point group 234; the first magnetic interface 112 and the corresponding second magnetic interface 232 are magnetically connected to each other so that the first connecting contact point group 114 and the corresponding second connecting contact point group 234 are electrically connected.
[0033] The first magnetic interface 112 is equipped with a magnet, and the second magnetic interface 232 is equipped with a corresponding magnet, which can be a permanent magnet. The shape of the first magnetic interface 112 corresponds to the shape of the corresponding second magnetic interface 232. When the first magnetic interface 112 and the corresponding second magnetic interface 232 are close to each other, they can automatically magnetically connect, so that the first connecting contact point group 114 and the corresponding second connecting contact point group 234 come into contact, thereby establishing an electrical connection between the first connector 110 and the corresponding second connector 230.
[0034] For example, the first contact point group 114 can be an elastic contact group; the second contact point group 234 can be a corresponding elastic contact group; the first connector 110 has a first interface housing, the first interface housing is provided with a corresponding magnet, and the first contact point group 114 is disposed inside the first interface housing; the second connector 230 has a second interface housing, the second interface housing is provided with a corresponding magnet, and the second contact point group 234 is disposed inside the second interface housing; when the connector approaches the corresponding second connector 230, based on the magnetic attraction of the magnet, the first interface housing and the second interface housing are automatically attracted and connected, thereby making the first contact point group 114 inside the first interface housing and the second contact point group 234 inside the second interface housing abut against each other based on elasticity, realizing the establishment of an electrical connection between the first connector 110 and the corresponding second connector 230, thereby facilitating the disassembly and assembly of the various functional modules 200 of the battery management system, without the need for screws and clips for fastening, making the installation flexible and reliable, reducing the cost incurred due to the need to adapt to different project requirements, reducing development time, and improving product output efficiency.
[0035] In one embodiment, such as Figure 2 and Figure 3 As shown, the first contact group 114 includes a first power supply contact 1142, a first communication contact 1144, and a first data transmission contact 1146; the second contact group 234 includes a second power supply contact 2342, a second communication contact 2344, and a second data transmission contact 2346; when the first magnetic interface 112 is magnetically connected to the corresponding second magnetic interface 232, the first power supply contact 1142 is in contact with the corresponding second power supply contact 2342, the first communication contact 1144 is in contact with the corresponding second communication contact 2344, and the first data transmission contact 1146 is in contact with the corresponding second data transmission contact.
[0036] Among them, the first power supply contact 1142, the second power supply contact 2342, the first communication contact 1144, the second communication contact 2344, the first data transmission contact 1146, and the second data transmission contact 2346 can be contacts with corresponding elastic structures.
[0037] The first power supply contact 1142 may include a positive power supply contact (such as a first V+ contact) and a negative power supply contact (such as a first V- contact); the second power supply contact 2342 may include a corresponding positive power supply contact (such as a second V+ contact) and a corresponding negative power supply contact (such as a second V- contact). When the first magnetic interface 112 is magnetically connected to the corresponding second magnetic interface 232, the first power supply contact 1142 is in contact with the corresponding second power supply contact 2342.
[0038] The first communication contact 1144 can be a first CAN bus communication contact, a first RS485 bus communication contact, a first SPI bus communication contact, or a first IIC bus communication contact; the second communication contact 2344 can be a second CAN bus communication contact, a second RS485 bus communication contact, a second SPI bus communication contact, or a second IIC bus communication contact. When the first magnetic interface 112 is magnetically connected to the corresponding second magnetic interface 232, the first communication contact 1144 is in contact with the corresponding second communication contact 2344.
[0039] The first data transmission contact 1146 may include a first input contact (such as a first DI contact) and a first output contact (such as a first DO contact); the second data transmission contact 2346 may include a second input contact (such as a second DI contact) and a second output contact (such as a second DO contact). When the first magnetic interface 112 is connected to the corresponding second magnetic interface 232 by magnetic attraction, the first data transmission contact 1146 is connected to the corresponding second data transmission contact, thereby establishing an electrical connection between the main control module 10 and the second connector 230 of the corresponding functional module 200 through the corresponding first connector 110. This facilitates the disassembly and assembly of each functional module 200 of the battery management system, making installation flexible and reliable, reducing the cost incurred due to the need to adapt to different project requirements, facilitating the assembly of functional modules 200 with different functions, and improving the versatility of the battery management system.
[0040] It should be noted that corresponding contacts can be added or removed according to the functional requirements of the functional module 200. The first contact group 114 and the corresponding second contact group 234 support hot-swapping, further improving the ease of connection between the main control module 10 and each functional module 200.
[0041] In one embodiment, the main control module 10 is further configured to acquire a request signal transmitted by the function processing module 210, generate initial random data according to the request signal, and transmit the initial random data to the corresponding function processing module 210; the function processing module 210 is configured to encrypt the initial random data with a preset private key to obtain first data, and transmit the first data to the main control module 10; the main control module 10 is further configured to decrypt the first data based on a preset public key to obtain target random data, and determine the corresponding function processing module 210 as a legitimate function processing module when the target random data and the initial random data are successfully matched.
[0042] The request signal can be a PWM signal. When the main control module 10 establishes an electrical connection with the corresponding functional processing module 210, the corresponding functional processing module 210 transmits a request signal to the main control module 10, and the main control module 10 then obtains the corresponding request signal. For example, when the second connector 230 of the corresponding functional processing module 210 is attached to and connected to the corresponding first connector 110 of the main control module 10, the corresponding functional processing module 210 performs a power-on self-test, and after completing the self-test, transmits a PWM signal to the main control module 10 through the corresponding second data transmission contact 2346, and the main control module 10 then obtains the corresponding PWM signal.
[0043] The main control module 10 generates initial random data based on the request signal and transmits the initial random data to the corresponding functional processing module 210 through the corresponding first communication contact 1144. The corresponding functional processing module 210 obtains the initial random data, encrypts it with a preset private key to obtain first data, and then transmits the first data to the main control module 10. The main control module 10 obtains the first data and decrypts it based on a preset public key to obtain the target random data. The main control module 10 matches the target random data with the initial random data. If the match is successful, the corresponding functional processing module 210 is determined to be legitimate, thus verifying the legitimacy of the corresponding functional processing module 210 and improving the communication security between the corresponding functional processing module 210 and the main control module 10.
[0044] In one example, when the target random data fails to match the initial random data, the main control module 10 determines that the corresponding functional processing module 210 is invalid, and then controls the main control module 10 to disconnect the power and exit the communication with the corresponding functional processing module 210.
[0045] It should be noted that the first data refers to the encrypted data of the corresponding functional processing module 210. A preset private key can be pre-loaded into the corresponding functional processing module 210. A preset public key can be pre-loaded into the main control module 10. The initial random data can be obtained based on a preset random number generator. The preset random number generator can be a pseudo-random number generator or a true random number generator. The main control module 10 is equipped with a memory, and the initial random data generated by the main control module 10 is stored in the corresponding memory so that subsequent steps can retrieve the corresponding initial random data from the memory to verify the legitimacy of the corresponding functional processing module 210.
[0046] In one embodiment, the main control module 10 is further configured to obtain the first identity information of the corresponding function processing module 210 according to the request signal; the legitimate function processing module is further configured to encrypt its own identity information based on the first preset encryption algorithm to obtain the second data, and transmit the second data to the main control module 10; the main control module 10 is further configured to decrypt the second data based on the second preset encryption algorithm to obtain the target identity information when the target random data and the initial random data are successfully matched, and to call the first preset encryption algorithm or the second preset encryption algorithm for encrypted transmission when the target identity information and the first identity information are successfully matched.
[0047] The request signal may include the identity information of the corresponding functional processing module 210. The first identity information refers to the identity information of the corresponding functional processing module 210, the self-identity information refers to the identity information of the corresponding functional processing module 210, and the target identity information refers to the identity information obtained by encrypting the self-identity information using the functional processing module 210 and decrypting it using the main control module 10. The preset encryption algorithm may include a first preset encryption algorithm and a second preset encryption algorithm. The first preset encryption algorithm may be pre-loaded into the corresponding functional processing module 210, and the second preset encryption algorithm may be pre-loaded into the main control module 10. For example, the first preset encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm; the second preset encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm.
[0048] The main control module 10 can parse and process the request signals of the corresponding functional processing module 210 to obtain the first identity information of the corresponding functional processing module 210. The corresponding functional processing module 210 obtains its own identity information and encrypts it based on the first preset encryption algorithm to obtain second data, and transmits the second data to the main control module 10. When the target random data matches the initial random data, that is, when the main control module 10 determines that the corresponding functional processing module 210 is a legitimate functional processing module, it decrypts the second data based on the second preset encryption algorithm to obtain the target identity information. The main control module 10 can match the target identity information with the first identity information. If the target identity information matches the first identity information, it calls the first preset encryption algorithm or the second preset encryption algorithm for encrypted transmission, thereby realizing encrypted transmission between the main control module 10 and the corresponding compliant functional processing module 210, improving the communication security and reliability between the main control module 10 and the corresponding functional processing module 210.
[0049] In one example, when the target identity information fails to match the first identity information, the main control module 10 determines that the identity of the corresponding legitimate function processing module is abnormal, and then controls the main control module 10 to disconnect the power and exit the communication with the corresponding legitimate function processing module.
[0050] In one embodiment, such as Figure 4 As shown, each functional module 200 also includes at least one non-processing module 220; the main control module 10 is configured to acquire the power supply signal of the non-processing module 220, and according to the power supply signal, query a preset mapping table to obtain the second identity information of the non-processing module 220; the main control module 10 is also configured to establish communication transmission with the non-processing module 220 according to the second identity information.
[0051] Each functional module 200 may include at least one non-processing module 220. A non-processing module 220 refers to a functional module 200 that does not have a processing chip (MCU). For example, a non-processing module 220 may be a current sampling module or a current limiting module.
[0052] The power supply signal can be a voltage signal (such as a Vid signal). The second identity information refers to the identity information of the corresponding non-processing module 220, for example, the second identity information is the corresponding identification code. The preset mapping table includes the voltage value of the voltage signal and the second identity information of the corresponding voltage value; the preset mapping table can be established based on historical second identity information and historical voltage values. For example, if the voltage value is 2.2V, the corresponding second identity information is 0x0001, where 0x0001 is the identity information of the current module.
[0053] For example, when the second connector 230 of the corresponding non-processing module 220 establishes an electrical connection with the corresponding first connector 110 of the main control module 10, the main control module 10 supplies power to the non-processing module 220 through the corresponding first power supply contact 1142 and reads the voltage value of the power supply signal of the non-processing module 220 through the corresponding first communication contact 1144. The main control module 10 queries a preset mapping table to obtain the second identity information of the corresponding voltage value, and then obtains the second identity information of the non-processing module 220, thereby realizing the identification of the non-processing module 220. Based on the second identity information, the main control module 10 sends corresponding instructions to the corresponding non-processing module 220 through the first communication contact 1144 (such as a CAN bus communication contact, SPI bus communication contact, or IIC bus communication contact, etc.) to control and perform data transmission and reception operations on the non-processing module 220, thereby establishing communication transmission with the non-processing module 220. It should be noted that the main control module 10 can also send corresponding instructions to the non-processing module 220 to identify whether the non-processing module 220 is functioning properly.
[0054] For example, the preset mapping table may also include corresponding communication method information, communication IC information, control command set, etc. For example, the voltage value is 2.2V, the corresponding power supply signal for the voltage value is 2730, the corresponding second identity information is 0x0001, the corresponding communication method information is SPI, the corresponding communication IC information is manufacturer A model, and the corresponding control command set includes 0xA5 and 0x5A control instructions.
[0055] In the above embodiments, by modularly designing the main control module 10 and each functional module 200, a battery management system with different functional modules 200 can be assembled according to product requirements, improving the versatility of the battery management system. Each functional module 200 is detachably connected to the main control module 10, simplifying the assembly and disassembly of each functional module 200 in the battery management system. According to the safety requirements and importance of the functional modules 200, the functional modules 200 can be divided into functional processing modules 210 and functional non-processing modules 220. By performing security authentication on the functional processing module 210 and establishing encrypted transmission between the main control module 10 and the functional processing module 210, the legitimacy of the corresponding functional module 200 is ensured, improving the communication security of the corresponding functional module 200. By identifying the power supply signal of the functional non-processing module 220, and then identifying the identity information of the corresponding functional non-processing module 220 based on the power supply signal, a communication connection between the main control module 10 and the functional non-processing module is established, thereby improving the communication connection efficiency of the functional non-processing module 220.
[0056] In one embodiment, such as Figure 5 As shown, a control method for a battery management system is also provided, applied to the main control module as described in any of the above; including the following steps: Step S510: Based on the preset random number verification algorithm, the function processing module is verified to be legitimate, and when the function processing module is successfully verified, the corresponding function processing module is determined to be a legitimate function processing module.
[0057] The main control module can compare and verify randomly generated numbers with random numbers processed by the corresponding functional processing modules based on a preset random number verification algorithm. If the verification is successful, the corresponding functional processing module is determined to be a legitimate functional processing module. The preset encryption algorithm can be a symmetric encryption algorithm or an asymmetric encryption algorithm.
[0058] For example, when the main control module establishes an electrical connection with the second connector of each corresponding functional module through the first connector, the main control module can perform random number comparison processing on the functional processing modules in each functional module based on a preset random verification algorithm to verify the legitimacy of the corresponding functional processing module. If the corresponding functional processing module is successfully verified, the corresponding functional processing module is determined to be a legitimate functional processing module.
[0059] Step S520: Match the first identity information of the legitimate function processing module, and when the first identity information is successfully matched, call the preset encryption algorithm corresponding to the first identity information for encrypted transmission.
[0060] The first identity information is the identification code of the corresponding functional processing module.
[0061] The main control module can obtain the first identity information of the legitimate function processing module in the encrypted and unencrypted stages respectively, and then match the first identity information obtained by the legitimate function processing module in different stages. If the match is successful, the preset encryption algorithm is called to perform encrypted transmission with the corresponding successfully matched legitimate function processing module, thereby improving the communication security and reliability between the corresponding function processing module and the main control module.
[0062] In the above embodiments, the main control module verifies the legitimacy of the functional processing modules based on a preset random number verification algorithm. When a functional processing module is successfully verified, it is determined to be a legitimate functional processing module. The first identity information of the legitimate functional processing modules is matched, and when the first identity information matches successfully, a preset encryption algorithm is invoked for encrypted transmission. This achieves modularization of the battery management system's functions, improving its versatility and security. This application, through modular design and detachable connection of the main control module and various functional modules, allows for the assembly of battery management systems with different functional modules according to product requirements, improving the versatility of the battery management system and simplifying the assembly and disassembly of its functional modules. By verifying the legitimacy of the functional processing modules and matching their identities, encrypted transmission between the main control module and the functional processing modules is established, enhancing the communication security of the corresponding functional modules.
[0063] In one embodiment, such as Figure 6 As shown, the steps for validating a functional processing module based on a preset random number verification algorithm, and determining the corresponding functional processing module as a valid functional processing module when the verification is successful, include: Step S610: Obtain the request signal transmitted by the corresponding function processing module.
[0064] When the main control module establishes an electrical connection with the corresponding functional processing module, the corresponding functional processing module transmits a request signal to the main control module, and then the main control module obtains the corresponding request signal.
[0065] Step S620: Generate initial random data according to the request signal and transmit the initial random data to the corresponding functional processing module.
[0066] The initial random data can be obtained by processing a preset random number generator. The preset random number generator can be a pseudo-random number generator or a true random number generator. The main control module is equipped with a memory, and the initial random data generated by the main control module is stored in the corresponding memory so that the corresponding initial random data can be retrieved from the memory in subsequent steps to verify the validity of the corresponding functional processing modules.
[0067] The main control module generates initial random data based on the request signal and transmits the initial random data to the corresponding functional processing module through the corresponding first communication contact. The initial random data is then transmitted to the corresponding functional processing module, which obtains the initial random data and encrypts it with a preset private key to obtain the first data, which is then transmitted to the main control module.
[0068] Step S630: Based on the preset public key, decrypt the first data transmitted by the function processing module to obtain the target random data; the first data is obtained by the function processing module encrypting the initial random data and the preset private key.
[0069] It should be noted that the first data refers to the encrypted data of the corresponding functional processing module. The preset private key can be pre-loaded in the corresponding functional processing module; the preset public key can be pre-loaded in the main control module.
[0070] The main control module acquires the corresponding first data and decrypts it based on a preset public key to obtain the target random data.
[0071] Step S640: When the target random data successfully matches the initial random data, the corresponding functional processing module is determined as a legal functional processing module.
[0072] The main control module matches the target random data with the initial random data. If the match is successful, the corresponding functional processing module is determined to be legitimate. This verifies the legitimacy of the corresponding functional processing module and improves the communication security between the corresponding functional processing module and the main control module.
[0073] In one example, when the main control module fails to match the target random data with the initial random data, it determines that the corresponding functional processing module is invalid, and then controls the main control module to disconnect the power and exit communication with the corresponding functional processing module.
[0074] In one embodiment, such as Figure 7 As shown, the steps of matching the first identity information of the legitimate function processing module and, upon successful matching of the first identity information, invoking a preset encryption algorithm for encrypted transmission include: Step S710: Obtain the first identity information of the corresponding functional processing module based on the request signal.
[0075] The request signal may include the identity information of the corresponding functional processing module. The first identity information refers to the identity information of the corresponding functional processing module.
[0076] The main control module can parse and process the request signals of the corresponding functional processing module, and then obtain the first identity information of the corresponding functional processing module.
[0077] Step S720: When the target random data and the initial random data are successfully matched, the second data transmitted by the legitimate function processing module is decrypted based on the second preset encryption algorithm to obtain the target identity information; the second data is obtained by the legitimate function processing module encrypting its own identity information based on the first preset encryption algorithm.
[0078] Here, "self-identity information" refers to the identity information of the corresponding functional processing module, and "target identity information" refers to the identity information obtained by encrypting the self-identity information using the functional processing module and decrypting it using the main control module. The preset encryption algorithm may include a first preset encryption algorithm and a second preset encryption algorithm. The first preset encryption algorithm may be pre-loaded into the corresponding functional processing module, and the second preset encryption algorithm may be pre-loaded into the main control module. For example, the first preset encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm; the second preset encryption algorithm may also be a symmetric encryption algorithm or an asymmetric encryption algorithm. The corresponding functional processing module can obtain its own identity information, encrypt it based on the first preset encryption algorithm to obtain second data, and transmit the second data to the main control module.
[0079] For example, when the target random data successfully matches the initial random data, that is, when the corresponding functional processing module is determined to be a legitimate functional processing module, the main control module decrypts the second data based on the second preset encryption algorithm, thereby obtaining the target identity information.
[0080] In one example, when the target identity information fails to match the first identity information, the main control module determines that the identity of the corresponding legitimate function processing module is abnormal, and then controls the main control module to disconnect the power and exit communication with the corresponding legitimate function processing module.
[0081] Step S730: When the target identity information is successfully matched with the first identity information, the first preset encryption algorithm or the second preset encryption algorithm is invoked for encrypted transmission.
[0082] The main control module can match the target identity information with the first identity information. If the target identity information matches the first identity information successfully, it calls the first preset encryption algorithm or the second preset encryption algorithm for encrypted transmission, thereby realizing encrypted transmission between the main control module and the corresponding compliance function processing module, which improves the communication security and reliability between the main control module and the corresponding function processing module.
[0083] In one embodiment, such as Figure 8 As shown, the control method of the battery management system also includes the following steps: Step S810: Obtain the power supply signal of the non-processing module.
[0084] The power supply signal can be a voltage signal (such as the Vid signal).
[0085] For example, when the first connector of the main control module establishes an electrical connection with the second connector of the corresponding non-processing module, the main control module supplies power to the non-processing module and reads the power supply signal of the corresponding non-processing module.
[0086] Step S820: Based on the power supply signal, query the preset mapping relationship table to obtain the second identity information of the non-processing module.
[0087] The second identity information refers to the identity information of the corresponding non-processing module, such as the corresponding identification code. The preset mapping table includes the voltage value of the voltage signal and the corresponding second identity information for that voltage value; the preset mapping table can be established based on historical second identity information and historical voltage values. For example, if the voltage value is 2.2V, the corresponding second identity information is 0x0001, where 0x0001 is the identity information of the current module.
[0088] The main control module queries the preset mapping table to obtain the second identity information of the corresponding voltage value, and then obtains the second identity information of the non-processing module, thereby realizing the identification of the non-processing module.
[0089] Step S830: Based on the second identity information, establish communication transmission with the functional non-processing module.
[0090] Based on the second identity information, the main control module sends corresponding instructions to the relevant non-processing modules to control and perform data transmission and reception operations, thereby establishing communication with the non-processing modules. It should be noted that the main control module can also send corresponding instructions to the non-processing modules to identify whether they are functioning correctly.
[0091] In the above embodiments, by identifying the power supply signal of the non-processing module, and then identifying the identity information of the corresponding non-processing module based on the power supply signal, a communication connection between the main control module and the non-processing module is established, thereby improving the communication connection efficiency of the non-processing module.
[0092] In one embodiment, such as Figure 9 As shown, this application also provides a control method for a battery management system, applied to a functional processing module as described in any of the above claims; comprising the following steps: Step S910: When establishing an electrical connection with the main control module, a request signal is transmitted to the main control module; the request signal is used to instruct the main control module to generate initial random data.
[0093] The request signal can be a PWM signal.
[0094] For example, when the second connector of the corresponding functional processing module is attached to and connected to the corresponding first connector of the main control module, the corresponding functional processing module performs a power-on self-test. After completing the self-test, it transmits a PWM signal to the main control module through the corresponding second data transmission contact. The main control module then obtains the corresponding PWM signal so that it can generate initial random data based on the PWM signal.
[0095] Step S920: Obtain the initial random data transmitted by the main control module, encrypt the initial random data with the preset private key to obtain the first data, and transmit the first data to the main control module so that the main control module can decrypt the obtained first data based on the preset public key to obtain the target random data. When the target random data and the initial random data are successfully matched, the legitimate function processing module is determined.
[0096] The function processing module obtains the initial random data transmitted by the main control module, encrypts the initial random data with a preset private key to obtain the first data, and then transmits the first data to the main control module. The main control module decrypts the first data transmitted by the function processing module based on the preset public key to obtain the target random data, and performs matching processing between the target random data and the initial random data. If the matching is successful, the corresponding function processing module is determined to be legitimate, that is, the corresponding function processing module is identified as a legitimate function processing module, thereby realizing the legitimacy verification of the corresponding function processing module and improving the communication security between the corresponding function processing module and the main control module.
[0097] It should be understood that, although Figures 5 to 9 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 5 to 9At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0098] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the above-described battery management system control methods.
[0099] For example, when a computer program is executed by a processor, it performs the following steps: Based on a preset random number verification algorithm, the function processing module is verified to be legitimate. When the function processing module is successfully verified, the corresponding function processing module is determined to be a legitimate function processing module. The first identity information of the legitimate function processing module is matched, and when the first identity information is successfully matched, the preset encryption algorithm corresponding to the first identity information is called for encrypted transmission.
[0100] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the division operations described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), direct memory bus RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0101] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A battery management system, characterized in that, include: The main control module is provided with multiple first connectors; A functional module, comprising multiple functional modules, each functional module being provided with a second connector, the second connector being detachably connected to a corresponding first connector; each functional module includes at least one functional processing module; The main control module is configured to perform legal verification on the function processing module based on a preset random number verification algorithm, and determine the corresponding function processing module as a legal function processing module when the verification is successful; the main control module is also configured to match the first identity information of the legal function processing module, and call a preset encryption algorithm for encrypted transmission when the first identity information is successfully matched.
2. The battery management system according to claim 1, characterized in that, The first connector is provided with a first magnetic interface and a first connecting contact point group; the second connector is provided with a second magnetic interface and a second connecting contact point group. The first magnetic interface is magnetically connected to the corresponding second magnetic interface so that the first connecting contact group and the corresponding second connecting contact group are electrically connected.
3. The battery management system according to claim 2, characterized in that, The first connection contact group includes a first power supply contact, a first communication contact, and a first data transmission contact; the second connection contact group includes a second power supply contact, a second communication contact, and a second data transmission contact. When the first magnetic interface is magnetically connected to the corresponding second magnetic interface, the first power supply contact is connected to the corresponding second power supply contact, the first communication contact is connected to the corresponding second communication contact, and the first data transmission contact is connected to the corresponding second data transmission contact.
4. The battery management system according to claim 1, characterized in that, Each of the aforementioned functional modules also includes at least one non-processing module; The main control module is configured to acquire the power supply signal of the non-processing module and, based on the power supply signal, query a preset mapping table to obtain the second identity information of the non-processing module; the main control module is also configured to establish communication transmission with the non-processing module based on the second identity information.
5. The battery management system according to any one of claims 1 to 4, characterized in that, The main control module is also configured to acquire the request signal transmitted by the function processing module, generate initial random data according to the request signal, and transmit the initial random data to the corresponding function processing module. The functional processing module is configured to encrypt the initial random data with a preset private key to obtain first data, and transmit the first data to the main control module. The main control module is also configured to decrypt the first data based on a preset public key to obtain target random data, and when the target random data successfully matches the initial random data, determine the corresponding function processing module as a legitimate function processing module.
6. The battery management system according to claim 5, characterized in that, The main control module is further configured to obtain the first identity information corresponding to the function processing module based on the request signal; the legitimate function processing module is configured to encrypt its own identity information based on a first preset encryption algorithm to obtain second data, and transmit the second data to the main control module. The main control module is also configured to, when the target random data and the initial random data are successfully matched, decrypt the second data based on the second preset encryption algorithm to obtain the target identity information, and when the target identity information and the first identity information are successfully matched, call the first preset encryption algorithm or the second preset encryption algorithm for encrypted transmission.
7. A control method for a battery management system, characterized in that, Applied to the main control module as described in any one of claims 1 to 6; comprising the following steps: Based on a preset random number verification algorithm, the functional processing module is verified to be legitimate, and when the functional processing module is successfully verified, the corresponding functional processing module is determined to be a legitimate functional processing module. The first identity information of the legitimate function processing module is matched, and when the first identity information is successfully matched, the preset encryption algorithm corresponding to the first identity information is invoked for encrypted transmission.
8. The control method for the battery management system according to claim 7, characterized in that, The step of verifying the validity of the functional processing module based on a preset random number verification algorithm, and determining the corresponding functional processing module as a valid functional processing module when the verification is successful, includes: Obtain the request signal transmitted by the corresponding functional processing module; Based on the request signal, generate initial random data and transmit the initial random data to the corresponding functional processing module; Based on a preset public key, the first data transmitted by the functional processing module is decrypted to obtain target random data; the first data is obtained by the functional processing module encrypting the initial random data with a preset private key. When the target random data successfully matches the initial random data, the corresponding functional processing module is determined as the legitimate functional processing module.
9. The control method for the battery management system according to claim 8, characterized in that, The step of matching the first identity information of the legitimate function processing module, and calling a preset encryption algorithm for encrypted transmission when the first identity information is successfully matched, includes: Based on the request signal, the first identity information corresponding to the functional processing module is obtained; When the target random data successfully matches the initial random data, the second data transmitted by the legitimate function processing module is decrypted based on the second preset encryption algorithm to obtain the target identity information; the second data is obtained by the legitimate function processing module encrypting its own identity information based on the first preset encryption algorithm. When the target identity information successfully matches the first identity information, the first preset encryption algorithm or the second preset encryption algorithm is invoked for encrypted transmission.
10. The control method for the battery management system according to any one of claims 7 to 9, characterized in that, It also includes the following steps: Obtain the power supply signal from the non-processing module; Based on the power supply signal, a preset mapping relationship table is queried to obtain the second identity information of the non-processing module. Based on the second identity information, establish communication transmission with the non-processing module.
11. A control method for a battery management system, characterized in that, Applied to the functional processing module as described in any one of claims 1 to 6; Includes the following steps: When establishing an electrical connection with the main control module, a request signal is transmitted to the main control module; the request signal is used to instruct the main control module to generate initial random data. The system acquires the initial random data transmitted by the main control module, encrypts the initial random data with a preset private key to obtain first data, and transmits the first data to the main control module so that the main control module decrypts the acquired first data based on a preset public key to obtain target random data. When the target random data and the initial random data are successfully matched, the system determines the legitimate function processing module.