An algorithm-based communication switching method between inverter and battery pack

By adopting an algorithm-based communication switching system in the energy storage and power supply system, using asymmetric encryption technology and flexible communication protocol switching mechanism, the security and reliability problems of communication switching between multiple users and battery modules are solved, and the communication switching problem is realized. Efficient and secure communication switching, adapting to complex energy storage and power supply system environments.

CN118400397BActive Publication Date: 2024-11-29GUANGZHOU FELICITY SOLAR TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410822476.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-11-29
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

There are challenges in achieving efficient and secure communication switching between multi-users and battery modules, especially in complex energy storage and power supply systems, traditional communication protocols and verification mechanisms are difficult to meet security needs.

Method used

The algorithm-based communication switching system is adopted, and the security and reliability of the inverter communication with the battery pack is ensured through asymmetric encryption technology and flexible communication protocol switching mechanism. The system obtains the user's switching instructions, confirms the communication protocol type of the battery management system, cuts into the communication protocol of the target battery pack, and ensures the security of the connection through the handshake process.

Benefits of technology

It realizes the security and reliability of battery module switching in a multi-user environment, prevents unauthorized access and operation, supports battery management systems of different communication protocol types, adapts to complex multi-user sharing environments, and improves energy storage and power supply. The overall system operation efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400397B_ABST
    Figure CN118400397B_ABST
Patent Text Reader

Abstract

The present invention relates to an algorithm-based inverter and battery pack communication switching method, and a switching system to which the switching method is applied includes a power conversion system, an energy management system, and a plurality of battery modules managed by the battery management system. The switching system obtains a user's switching instruction, which includes the numbers of a connected battery pack and a target battery pack. After the processor confirms the communication protocol type of the battery management systems of the two, it instructs the power conversion system to switch to the communication protocol of the target battery pack and starts the handshake process. The handshake message adopts asymmetric encryption technology, is encrypted by the private key of the power conversion system, and is decrypted by the public key of the target energy management system to ensure that only legitimate devices can generate valid messages. After the handshake is successful, the system disconnects the current connection and switches to the target battery pack communication. This scheme uses encryption and timestamp mechanisms to ensure the security and reliability of battery module switching in a multi-user environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automation control technology, and in particular, relates to an algorithm-based communication switching method between an inverter and a battery pack. Background Art

[0002] With the rapid development of renewable energy and electric vehicles, energy storage technology is becoming increasingly important in modern power systems. The total energy storage power supply system usually contains multiple battery modules, which are managed by a battery management system (BMS) to ensure their safety, stability and efficiency. However, battery modules of different users may share the same power conversion system (PCS) and energy management system (EMS). How to achieve efficient and safe switching between multiple users and battery modules has become a key issue.

[0003] Traditional battery management and switching systems usually rely on fixed communication protocols and simple verification mechanisms, which are difficult to meet the security requirements in complex multi-user environments. In order to improve the security and flexibility of the system, the introduction of an algorithm-based communication switching system has become an effective solution. Through advanced encryption technology and flexible communication protocol switching mechanisms, precise control and management of battery modules for different users can be achieved, ensuring that the system operates efficiently while avoiding unauthorized access and operation.

[0004] According to the relevant public technologies, publication number CN118042014A proposes a method for managing multiple battery chips in a system, which provides sufficiently large compatibility for the BMS management chip through an integrated circuit design integrating multiple ports and BMIC; publication number CA2674680A1 proposes a secure access communication system and communication method for a distribution system, which uses a secure communication method with multiple identity authentication to ensure a high degree of confidentiality in the communication in the distribution system; announcement number US08441233B2 proposes a protocol for reporting power status through multiple buses, and by providing a statistical automatic power report, multiple users in the system can access the power devices of other users and borrow power devices.

[0005] The above technical solutions all propose various ways and methods to implement switching of the communication protocol between the inverter and the battery. However, for the current large-scale application of energy storage battery modules, which involves the communication protocol switching problem of multiple manufacturers, there is still a need to provide a safer and more convenient communication protocol switching technical solution.

[0006] The foregoing discussion of the background art is intended only to facilitate an understanding of the present invention. This discussion does not acknowledge or admit that any of the material referred to is part of the common general knowledge. Summary of the invention

[0007] The purpose of the present invention is to provide an algorithm-based inverter and battery pack communication switching method, aiming to optimize battery management in the total energy storage power supply system. The system includes a power conversion system, an energy management system, and a plurality of battery modules managed by the battery management system. The switching system obtains the user's switching instruction, which contains the numbers of the connected battery pack and the target battery pack. After the processor confirms the communication protocol type of the battery management systems of the two, it instructs the power conversion system to switch to the communication protocol of the target battery pack and start the handshake process. The handshake message adopts asymmetric encryption technology, is encrypted by the private key of the power conversion system, and is decrypted by the public key of the target battery management system to ensure that only legitimate devices can generate valid messages. After the handshake is successful, the system disconnects the current connection and switches to the target battery pack communication. This scheme uses encryption and timestamp mechanisms to ensure the security and reliability of battery module switching in a multi-user environment.

[0008] The present invention adopts the following technical solution:

[0009] An algorithm-based inverter and battery pack communication switching system, wherein the switching system is configured in a total energy storage and power supply system; the total energy storage and power supply system also includes a power conversion system, an energy management system, at least one battery management system, and a plurality of battery modules managed by the battery management system;

[0010] The switching system is communicatively connected to the battery management system and includes:

[0011] at least one processor; and

[0012] A non-transitory computer-readable medium storing machine-readable instructions; the machine-readable instructions causing the processor to execute:

[0013] Obtaining a switching instruction from a user, wherein the switching instruction at least includes a number of a connected battery pack and a number of a target battery pack to be connected;

[0014] Confirming the communication protocol type of a connected battery management system that manages the connected battery pack and a target battery management system that manages the target battery pack;

[0015] and sending instructions to the power conversion system to cause the power conversion system to execute:

[0016] Switching into the communication protocol of the battery management system corresponding to the target battery pack;

[0017] Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message;

[0018] After confirming a successful handshake with the battery management system of the target battery pack, disconnecting from the connected battery management system and switching to communication with the target battery management system;

[0019] Preferably, the handshake message includes a ciphertext generated by the first verification code and the second verification code, a target battery pack address code, a register address code of a target battery management system, a CRC check code, and a timestamp;

[0020] Preferably, the first verification code is generated by the connected battery management system; the secondary verification code is generated by the target battery management system; and the first verification code and the secondary verification code are periodically updated and sent by each of the battery management systems to the power conversion system;

[0021] Preferably, the machine-readable instructions further include instructions for causing the processor to perform the following operations:

[0022] Generate a pair of keys based on asymmetric encryption for the power conversion system; the pair of keys includes a public key and a private key; the private key is stored by the power conversion system;

[0023] Sending the public key to a plurality of battery management systems including at least the target battery management system, and having the plurality of battery management systems store the public key;

[0024] Preferably, the machine-readable instructions further include instructions for causing the processor to perform the following operations:

[0025] Sending instructions to the target battery management system so that the target battery management system executes:

[0026] B100: read the handshake message, and use the public key to decrypt the ciphertext to obtain the first verification code and the secondary verification code;

[0027] B200: Verify whether the secondary verification code obtained after decryption is consistent with the secondary verification code of the corresponding timestamp;

[0028] B300: returning the verification result to the switching system; if the verification is successful, allowing the power conversion system to switch to the target battery management system;

[0029] Furthermore, an algorithm-based inverter and battery pack communication switching method is proposed, and the switching method is applied to the algorithm-based inverter and battery pack communication switching system; the switching method includes the following steps:

[0030] S100: Obtaining a switching instruction from a user; the switching instruction at least includes the number of the connected battery pack and the number of the target battery pack to be connected;

[0031] S200: confirming the communication protocol types of the connected battery management system that manages the connected battery pack and the target battery management system that manages the target battery pack;

[0032] S300: enabling the power conversion system to perform a handshake process with the target battery management system;

[0033] Preferably, step S300 further includes the following sub-steps:

[0034] S310: switching to a communication protocol of a battery management system corresponding to the target battery pack;

[0035] S320: Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message;

[0036] S330: After confirming a successful handshake with the battery management system of the target battery pack, disconnect the connected battery management system and switch to communication with the target battery management system.

[0037] The beneficial effects achieved by the present invention are:

[0038] The switching system of this technical solution ensures data security during the communication between the inverter and the battery pack by adopting asymmetric encryption technology; the power conversion system uses a private key to encrypt the handshake message, and the battery management system of the target battery pack uses a public key to decrypt it, thereby effectively preventing illegal devices from generating and sending forged handshake messages; the encryption mechanism not only protects the integrity and confidentiality of the data, but also prevents replay attacks through timestamps and CRC checksums, further improving the security of the system;

[0039] The switching system of this technical solution supports battery management systems (BMS) with different communication protocol types, and can flexibly switch communication protocols according to user needs. After receiving the user's switching instruction, the system can automatically identify and switch to the communication protocol type of the target battery pack, and start the communication handshake with the target BMS. This flexible protocol switching mechanism enables the system to be compatible with multiple types of battery modules and management systems, adapt to complex multi-user sharing environments, and meet the needs of various application scenarios.

[0040] The switching system of the present technical solution ensures the accuracy and reliability of data transmission by using a handshake message containing user-specific information, battery module code, timestamp and CRC check code; after confirming a successful handshake with the BMS of the target battery pack, the currently connected battery pack is disconnected and switched to the target battery pack, ensuring a smooth and efficient battery module switching process, and improving the operating efficiency and stability of the entire energy storage power supply system;

[0041] The software and hardware parts of the switching system of the present technical solution adopt a modular design. The various working modules and components of the hardware part of the system, as well as the instructions, parameters, and algorithms of the software part can be conveniently replaced and / or upgraded later, thereby reducing the construction cost and maintenance cost of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.

[0043] Description of the accompanying drawings: 100-energy storage power supply system; 110-power conversion system; 120-energy management system; 130-battery management system; 140-battery module; 150-switching system; 201-battery pack; 202-battery layer; 203-battery rack; 210-interlayer material; 310-connected battery management system; 320-target battery management system; 500-computer system; 502-bus; 504-processor; 506-main memory; 508-read-only memory; 510-storage device; 512-display; 514-input device; 516-cursor control device; 518-network device;

[0044] Figure 1 A schematic diagram of the application layout of the switching system described in an embodiment of the present invention;

[0045] Figure 2 is a step diagram of the switching method described in an embodiment of the present invention;

[0046] Figure 3 is a schematic structural diagram of a battery module according to an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of the composition of a handshake message in an embodiment of the present invention;

[0048] Figure 5 It is a schematic diagram of the framework of the computer system used by the switching system in the embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with its embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. For those skilled in the art, after reviewing the following detailed description, other systems, methods and / or features of the present embodiment will become apparent. It is intended that all such additional systems, methods, features and advantages are included in this specification. Included within the scope of the present invention and protected by the appended claims. Additional features of the disclosed embodiments are described in the following detailed description, and these features will be apparent from the following detailed description.

[0050] The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "left", "right" and the like indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or component referred to must have a specific orientation. The invention is constructed and operated in a specific orientation, so the terms describing the positional relationship in the drawings are only used for exemplary description and cannot be understood as limiting the invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0051] Embodiment 1: For example, an algorithm-based inverter and battery pack communication switching system is proposed, as shown in the attached Figure 1 As shown, the switching system is configured in a total energy storage and power supply system; the total energy storage and power supply system also includes a power conversion system, an energy management system, at least one battery management system, and a plurality of battery modules managed by the battery management system;

[0052] The switching system is communicatively connected to the battery management system and includes:

[0053] at least one processor; and

[0054] A non-transitory computer-readable medium storing machine-readable instructions; the machine-readable instructions causing the processor to execute:

[0055] Obtaining a switching instruction from a user, wherein the switching instruction at least includes a number of a connected battery pack and a number of a target battery pack to be connected;

[0056] Confirming the communication protocol type of a connected battery management system that manages the connected battery pack and a target battery management system that manages the target battery pack;

[0057] and sending instructions to the power conversion system to cause the power conversion system to execute:

[0058] Switching into the communication protocol of the battery management system corresponding to the target battery pack;

[0059] Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message;

[0060] After confirming a successful handshake with the battery management system of the target battery pack, disconnecting from the connected battery management system and switching to communication with the target battery management system;

[0061] Preferably, the handshake message includes a ciphertext generated by the first verification code and the second verification code, a target battery pack address code, a register address code of a target battery management system, a CRC check code, and a timestamp;

[0062] Preferably, the first verification code is generated by the connected battery management system; the secondary verification code is generated by the target battery management system; and the first verification code and the secondary verification code are periodically updated and sent by each of the battery management systems to the power conversion system;

[0063] Preferably, the machine-readable instructions further include instructions for causing the processor to perform the following operations:

[0064] Generate a pair of keys based on asymmetric encryption for the power conversion system; the pair of keys includes a public key and a private key; the private key is stored by the power conversion system;

[0065] Sending the public key to a plurality of battery management systems including at least the target battery management system, and having the plurality of battery management systems store the public key;

[0066] Preferably, the machine-readable instructions further include instructions for causing the processor to perform the following operations:

[0067] Sending instructions to the target battery management system so that the target battery management system executes:

[0068] B100: read the handshake message, and use the public key to decrypt the ciphertext to obtain the first verification code and the secondary verification code;

[0069] B200: Verify whether the secondary verification code obtained after decryption is consistent with the secondary verification code of the corresponding timestamp;

[0070] B300: returning the verification result to the switching system; if the verification is successful, allowing the power conversion system to switch to the target battery management system;

[0071] Furthermore, an algorithm-based inverter and battery pack communication switching method is proposed, and the switching method is applied to the algorithm-based inverter and battery pack communication switching system; as shown in the attached Figure 2 As shown, the switching method includes the following steps:

[0072] S100: Obtaining a switching instruction from a user; the switching instruction at least includes the number of the connected battery pack and the number of the target battery pack to be connected;

[0073] S200: confirming the communication protocol types of the connected battery management system that manages the connected battery pack and the target battery management system that manages the target battery pack;

[0074] S300: enabling the power conversion system to perform a handshake process with the target battery management system;

[0075] Preferably, step S300 further includes the following sub-steps:

[0076] S310: switching to a communication protocol of a battery management system corresponding to the target battery pack;

[0077] S320: Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message;

[0078] S330: After confirming that the handshake with the battery management system of the target battery pack is successful, disconnecting the connected battery management system and switching to communicate with the target battery management system;

[0079] In an exemplary embodiment, returning to the attached Figure 1 The total energy storage and power supply system 100 includes a battery module 140, a battery management system 130, a power conversion system 110 and an energy management system 120; the battery module 140 may include a plurality of battery packs, which are arranged in a single layer in horizontal and vertical directions to form a battery layer, and a plurality of battery layers are arranged in a stacked structure to form a battery rack, and a plurality of battery racks are arranged to form a battery module 140; optionally, the battery type constituting the battery module 140 may be a nickel-cadmium battery, a nickel-metal hydride battery, a nickel-zinc battery, a lithium battery, etc.;

[0080] As attached Figure 3As shown, the structure of a battery module 140 is exemplarily shown; wherein, it includes a plurality of battery packs 201; exemplarily, the plurality of battery packs 201 can be arranged in the vertical and horizontal directions respectively to form a battery layer 202; the plurality of battery layers 202 are arranged in a stacked structure to form a battery rack 203, and the two adjacent battery layers 202 are separated and protected by an interlayer material 210; the plurality of battery racks 203 are arranged to form a battery module 140; preferably, the plurality of battery packs 201 are respectively communicated and connected with the battery management system 130, so that the battery management system 130 can directly manage each battery pack 201; preferably, each battery pack 201 has a unique code, so that each battery pack 201 can be identified by each working system of the total energy storage and power supply system;

[0081] Exemplarily, the battery module 140 uses the battery management system 130 to safely manage the battery packs in the battery module 140; the battery management system 130 is mainly responsible for real-time monitoring and management of the status of the battery cells, and ensures that the battery operates within a safe range by monitoring the battery's voltage, current, temperature and other parameters to prevent damage or safety accidents caused by overcharging, over-discharging, over-temperature and the like; the battery management system 130 also maintains the consistency of power of all battery packs by balancing charging and discharging, thereby improving the overall performance and service life of the battery pack; by collecting and transmitting battery status data, the battery management system 130 realizes data sharing and collaborative work with other subsystems in the total energy storage power supply system to ensure efficient operation of the system;

[0082] Among them, one or more battery packs 201 in a battery module 140 can be connected to the same battery management system 130, and the one or more connected battery packs 201 can be managed by the battery management system 130; alternatively, multiple battery management systems 130 can be configured in the energy storage and power supply system, and multiple battery management systems 130 can be configured to manage their own battery layers 202, or their own battery racks 203, so as to form a large-scale energy storage and power supply system; based on different manufacturers and specifications, each battery management system 130 can use the same or different communication protocols to communicate with the power conversion system 110; illustratively, it can be the common FLS protocol and the Payne protocol, or other more communication protocols; the communication protocol of the battery management system 130 mainly includes realizing battery status monitoring, data transmission and processing, and protecting and optimizing battery performance; through standardized communication protocols, the battery management system 130 can collect the voltage of the battery module 140 in real time, The battery management system 130 communication protocol specifies the format and transmission method of the data packet, ensuring that the battery status data can be accurately and timely transmitted to other system components; based on the standardized communication protocol, each system in the energy storage power supply system can achieve unified control commands, such as charging and discharging instructions, balancing control instructions, etc.; the protocol ensures that these commands can be reliably transmitted and executed, optimizes the battery charging and discharging process, and improves the overall efficiency of the system; it also includes the implementation of various safety protection measures, including overcharging, over-discharging, over-temperature protection, etc.; through the communication protocol, the communication of each subsystem is reliable and robust, and the communication protocol usually contains error detection and correction mechanisms, such as CRC checksum, to ensure the integrity and accuracy of data during transmission; at the same time, the protocol also supports redundant communication paths and fault recovery mechanisms; and the communication protocol usually integrates multi-level security mechanisms, including data encryption, identity authentication and access control, to prevent unauthorized access and operation, and protect the energy storage system from network attacks and data leakage;

[0083] Furthermore, the power conversion system (PCS) plays a key role in power conversion in the battery energy storage system; PCS can convert direct current (DC) into alternating current (AC), or convert AC into DC to meet the needs of different devices and power grids; PCS is not only responsible for controlling the charging and discharging process of the battery to ensure that the battery operates in the best condition, but also can adjust the power factor, frequency and voltage of the power output to ensure compatibility with the power grid and load; through efficient power management, PCS ensures high-quality power output and optimizes the overall performance of the battery energy storage system;

[0084] The Energy Management System (EMS) is the global optimization and dispatching center of the battery energy storage system. EMS takes into account energy production, storage and consumption, and achieves global optimization of the system and maximizes energy efficiency through real-time data analysis and intelligent decision-making. EMS adjusts according to real-time power demand to ensure the stability and economy of power supply, and coordinates the operation between battery energy storage systems, renewable energy systems and power grids.

[0085] Embodiment 2: This embodiment should be understood to include at least all the features of any of the above embodiments, and further improve upon them;

[0086] In a preferred exemplary embodiment, the handshake message is encoded in binary format; binary coding can represent data in the most compact form, thereby reducing the amount of data transmission and improving communication efficiency; at the same time, binary coding is widely used in various communication protocols and systems, and can ensure the compatibility and interoperability of handshake message communication without establishing a communication protocol between the battery management system and the PCS; at the same time, binary coding simplifies the data processing and parsing process, and since the binary system only contains 0 and 1, the possibility of error is reduced and the reliability of data transmission is enhanced; now the hardware design of computers and communication equipment is optimized for binary data, and can more efficiently process and transmit binary-coded data;

[0087] In a preferred exemplary embodiment, an encoding method of the handshake message is as follows:

[0088] As attached Figure 4 As shown, the handshake message consists of four parts, namely the first verification code, the encrypted original data combination, the second verification code and the CRC check code;

[0089] Preferably, the first verification code is generated by the connected battery management system 310 and is used to preliminarily verify the legitimacy of the current connection;

[0090] Preferably, the secondary verification code is generated by the target battery management system 320 and is used to verify the legitimacy of the target connection;

[0091] Preferably, the encrypted original data combination is obtained by encrypting the original data combination;

[0092] Preferably, the original data combination is formed by combining the following data parts: {battery module code, user ID, timestamp};

[0093] Exemplarily, the battery module code may include a battery pack code, a battery column code, and a battery rack code of each battery; optionally, it may also include a module code;

[0094] In an exemplary embodiment, the battery module code includes a 2-digit battery pack code, a 4-digit battery column code, a 4-digit battery rack code, and a 4-digit module code;

[0095] An exemplary battery module code is as follows: [01 0011 0011 0101];

[0097] The binary module code is interpreted in decimal, which means: No. 5 battery module-No. 3 battery rack-No. 3 battery row-No. 1 battery pack;

[0098] Preferably, a 16-digit user ID code may also be included, for example:

[0099] [0001 0010 0100 0101],

[0100] This means that the user ID is 1245;

[0101] Furthermore, a 44-bit timestamp code may be included, for example

[0102] [0111 1110 1000 0101 0001 1011 1000 0001 1110 0010 1101],

[0103] This means that the sending time is 8:30:45 on May 27, 2024;

[0104] The original data combination is used to ensure that the system can safely and accurately identify and verify the information of the target battery pack when switching the battery pack; the original data combination includes the code, user ID and timestamp of the target battery management system. Through the encryption and transmission of this information, it is ensured that the system can achieve efficient and safe communication switching in a multi-user and multi-battery module environment; wherein, the code of the target battery management system is used to uniquely identify the target battery pack, so that the system can accurately find and connect to the target battery pack, and according to the target battery pack coding information, it can determine the communication protocol to be switched from the database, and help the switching system confirm the communication protocol of the target battery pack;

[0105] Exemplarily, the user ID is a unique identifier of the user, which is used to verify the identity of the user who initiates the switching request; ensure that only authorized users can perform the switching operation of the battery pack; through the user ID, access control of different users to different battery packs can be implemented, preventing unauthorized users from accessing and operating other users' battery packs, thereby enhancing the security of the system;

[0106] For example, the timestamp records the specific time when the handshake message is generated. By checking the validity of the timestamp, the system can prevent replay attacks and ensure that each request is new and valid. In addition, as part of the data, the timestamp can help the receiver confirm the real-time and accuracy of the data and ensure that the data has not been tampered with or delayed during transmission.

[0107] Furthermore, an asymmetric encryption operation is performed on the original data combination to further improve the security of the switching communication protocol process; asymmetric encryption is an encryption method that uses a pair of keys to encrypt and decrypt data, one of which is called a public key (Public Key) and the other is called a private key (Private Key); the public key is used to encrypt data and can be published publicly; the private key is used to decrypt data and is kept privately by the data owner; the core of asymmetric encryption is that data encrypted with a public key can only be decrypted by the corresponding private key, and vice versa. This feature ensures the security and privacy of data transmission;

[0108] Asymmetric encryption is used to protect the original data combination in the handshake message to ensure the security of data during transmission; the specific process is as follows:

[0109] The switching system generates a pair of keys for the power conversion system 110, including a public key and a private key; the public key is distributed to all battery management systems, and the private key is properly kept by the power conversion system 110;

[0110] The raw data combination in the generated handshake message includes information such as battery module code, user ID and timestamp; this information is organized and arranged in a standard coding format;

[0111] The power conversion system 110 uses its private key to encrypt the original data combination; the encrypted data ensures that only the battery management system holding the corresponding public key can decrypt and read it, preventing illegal devices from generating and sending forged handshake messages;

[0112] After receiving the handshake message, the target battery management system uses its public key to decrypt the encrypted original data combination; after successful decryption, the battery management system verifies the validity and integrity of the original data to ensure that the data has not been tampered with;

[0113] Finally, the handshake message includes a 16-bit CRC checksum, for example [1010 1010 1010 1010];

[0115] The CRC check code (cyclic redundancy check code) is a commonly used data verification method, which is used to detect whether errors occur in data transmission or storage. It generates a check value of fixed length by performing a specific algorithm operation on the data, and this check value is attached to the end of the data for transmission or storage. The receiver uses the same algorithm to check the received data to determine whether the data is complete and accurate. The CRC check code can efficiently detect common errors in data transmission, such as bit flips and burst errors, thereby improving the reliability of data transmission and storage.

[0116] In the switching method of the present technical solution, the CRC check code is used to ensure that the handshake message is not tampered with or damaged during the transmission process; the original data combination includes the battery module code, user ID, timestamp and other information, and the CRC check code is calculated and attached to the end of the data and encrypted; the receiver, that is, the target battery management system, decrypts the data and verifies the data integrity by checking the CRC check code; this method effectively ensures the security and reliability of the handshake message and prevents system failures and safety problems caused by data errors.

[0117] Embodiment 3: This embodiment should be understood to include at least all the features of any of the above embodiments, and further improve upon them;

[0118] For example, as shown in the attached Figure 5 As shown, an implementation of a computer system 500 used in the switching system is described; the computer system 500 can be applied to the data storage, calculation and result output process of each working module in the identification and judgment system;

[0119] Illustratively, computer system 500 includes a bus 502 or other communication mechanism for communicating information, one or more processors 504 coupled to bus 502 for processing information; processor 504 may be, for example, one or more general-purpose microprocessors;

[0120] The computer system 500 also includes a main memory 506, such as a random access memory (RAM), a cache, and / or other dynamic storage device, coupled to the bus 502 for storing information and instructions to be executed by the processor 504; the main memory 506 may also be used to store temporary variables or other intermediate information during the execution of instructions to be executed by the processor 504; these instructions, when stored in a storage medium accessible to the processor 504, present the computer system 500 as a special-purpose machine customized to perform the operations specified in the instructions;

[0121] The computer system 500 may also include a read-only memory (ROM) 508 or other static storage device coupled to the bus 502 for storing static information and instructions for the processor 504; a storage device 510 such as a disk, an optical disk, or a USB drive (flash drive) will be coupled to the bus 502 for storing information and instructions;

[0122] And further, coupled to the bus 502 may also include a display 512 for displaying various information, data, media, etc., an input device 514 for allowing a user of the computer system 500 to control, manipulate, and / or interact with the computer system 500;

[0123] A preferred way to interact with the management system may be through a cursor control device 516, such as a computer mouse or similar control / navigation mechanism;

[0124] Furthermore, the computer system 500 may also include a network device 518 coupled to the bus 502; wherein the network device 518 may include, for example, a wired network card, a wireless network card, a switching chip, a router, a switch, and other components;

[0125] In general, the terms "engine", "component", "system", "database", etc., as used herein, may refer to logic embodied in hardware or firmware, or to a collection of software instructions, possibly with entry and exit points, written in a programming language such as Java, C, or C++; software components may be compiled and linked into executable programs, installed in a dynamic link library, or may be written in an interpreted programming language (e.g., BASIC, Perl, or Python); it should be understood that software components may be called from other components or from themselves, and / or may be called in response to detected events or interrupts;

[0126] Software components configured to execute on a computing device may be provided on a computer-readable medium, such as a compact disc, digital video disc, flash drive, diskette, or any other tangible medium, or as a digital download (and may be initially stored) in a compressed or installable format that requires installation, decompression, or decryption prior to execution); such software code may be stored in part or in whole on a memory device of the executing computing device for execution by the computing device; software instructions may be embedded in firmware, such as an EPROM; it is also understood that hardware components may be composed of connected logic units (such as gates and flip-flops), and / or may be composed of programmable units (such as programmable gate arrays or processors);

[0127] Computer system 500 includes the techniques described herein that may be implemented using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that, in combination with the computer system, renders computer system 500 a special-purpose computing device;

[0128] According to one or more embodiments, the techniques herein may be performed by computer system 500 in response to processor 504 executing one or more sequences of one or more instructions contained in main memory 506; such instructions may be read into main memory 506 from another storage medium, such as storage device 510; execution of the sequences of instructions contained in main memory 506 causes processor 504 to perform the process steps described herein; in alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions;

[0129] As used herein, the term "non-transitory media" and similar terms refer to any media that store data and / or instructions that cause a machine to operate in a specific manner; such non-transitory media may include non-volatile media and / or volatile media; non-volatile media include, for example, optical or magnetic disks, such as storage device 510; volatile media include dynamic memory, such as main memory 506;

[0130] Among them, common forms of non-transitory media include, for example, floppy disks, diskettes, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage medium, CD-ROMs, any other optical data storage medium, any physical medium having a pattern of holes, RAM, PROM and EPROM, FLASH-EPROM, NVRAM, any other memory chip or cartridge, and networked versions thereof;

[0131] Non-transient media are distinct from transmission media but may be used in conjunction with transmission media; transmission media participate in the transmission of information between non-transient media; for example, transmission media include coaxial cables, copper wires, and optical fibers, including the wires that make up bus 502; transmission media may also take the form of sound waves or light waves, such as radio waves and infrared data communications.

[0132] Although the present invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the present invention. That is, the methods, systems and devices discussed above are examples. Various configurations may appropriately omit, replace or add various processes or components. For example, in alternative configurations, the method may be performed in an order different from the order described, and / or various components may be added, omitted and / or combined. Moreover, the features described with respect to certain configurations may be combined in various other configurations, such as different aspects and elements of the configurations may be combined in a similar manner. In addition, the elements therein may be updated as the technology develops, i.e., many elements are examples and do not limit the scope of the present disclosure or claims.

[0133] Specific details are given in the specification to provide a thorough understanding of the exemplary configurations including implementations. However, the configurations may be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary details to avoid obscuring the configurations. This description provides only example configurations and does not limit the scope, applicability, or configurations of the claims. On the contrary, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes may be made to the functions and arrangements of the elements without departing from the spirit or scope of the present disclosure.

[0134] In summary, it is intended that the above detailed description is considered to be illustrative rather than restrictive, and it should be understood that the above embodiments should be understood to be only used to illustrate the present invention and not to limit the scope of protection of the present invention. After reading the contents of the present invention, the technician can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.

Claims

1. An algorithm-based inverter and battery pack communication switching method, characterized in that: The switching method is applied to an algorithm-based inverter and battery pack communication switching system, wherein the switching system is configured in a total energy storage and power supply system; the total energy storage and power supply system also includes a power conversion system, an energy management system, at least one battery management system, and a plurality of battery modules managed by the battery management system; The switching system is communicatively connected to the battery management system and includes: at least one processor; and a non-transitory computer-readable medium having stored thereon machine-readable instructions; The switching method comprises: the machine-readable instructions cause the processor to execute: Obtaining a switching instruction from a user, wherein the switching instruction at least includes a number of a connected battery pack and a number of a target battery pack to be connected; Confirming the communication protocol type of a connected battery management system that manages the connected battery pack and a target battery management system that manages the target battery pack; and sending instructions to the power conversion system to cause the power conversion system to execute: Switching into the communication protocol of the battery management system corresponding to the target battery pack; Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message; After confirming a successful handshake with the battery management system of the target battery pack, disconnecting from the connected battery management system and switching to communication with the target battery management system; The handshake message includes a ciphertext generated by a primary verification code and a secondary verification code, a target battery pack address code, a register address code of a target battery management system, a CRC check code, and a timestamp; The first verification code is generated by the connected battery management system; the second verification code is generated by the target battery management system; and the first verification code and the second verification code are periodically updated and sent to the power conversion system by each of the battery management systems; The machine-readable instructions also include instructions that cause the processor of the switching system to: Generate a pair of keys based on asymmetric encryption for the power conversion system; the pair of keys includes a public key and a private key; the private key is stored by the power conversion system; Sending the public key to a plurality of battery management systems including at least the target battery management system, and having the plurality of battery management systems store the public key; The machine-readable instructions also include instructions for causing the processor to: Sending instructions to the target battery management system so that the target battery management system executes: B100: read the handshake message, and use the public key to decrypt the ciphertext to obtain the first verification code and the secondary verification code; B200: Verify whether the secondary verification code obtained after decryption is consistent with the secondary verification code of the corresponding timestamp; B300: Return the verification result to the switching system; if the verification is successful, allow the power conversion system to switch to the target battery management system.

2. The switching method according to claim 1; the switching method comprising the following steps: S100: Obtaining a switching instruction from a user; the switching instruction at least includes the number of the connected battery pack and the number of the target battery pack to be connected; S200: confirming the communication protocol types of the connected battery management system that manages the connected battery pack and the target battery management system that manages the target battery pack; S300: enabling the power conversion system to perform a handshake process with the target battery management system.

3. The switching method according to claim 2, characterized in that: In step S300, the following sub-steps are also included: S310: switching to a communication protocol of a battery management system corresponding to the target battery pack; S320: Initiate a communication handshake with the battery management system of the target battery pack and send a handshake message; S330: After confirming a successful handshake with the battery management system of the target battery pack, disconnect the connected battery management system and switch to communication with the target battery management system.

Citation Information

Patent Citations

  • Battery management system and related equipment

    CN118042014A

  • Protocols for reporting power status over multiple buses

    US8441233B2

  • Method and system for self-adaption of multiple communication protocols of energy storage system

    CN111385300A

  • Method for producing battery management system and method for starting battery management system

    CN115828250A