Methods and apparatus for coding energy storage systems
By using the first battery controller in the energy storage system to drive the insulation detection module with power and prohibit the transmission of irrelevant signals, efficient encoding of the insulation detection module is achieved, solving the problem of low encoding efficiency in the prior art and improving the encoding success rate and communication efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
- Filing Date
- 2025-10-28
- Publication Date
- 2026-05-26
AI Technical Summary
The low coding efficiency of insulation detection modules (IMMs) in existing energy storage systems leads to communication disruptions and resource waste.
After encoding is completed, the first battery controller drives the insulation detection module to power it, enabling it to encode simultaneously based on the encoding matching relationship. During communication, the transmission of signals unrelated to encoding is prohibited, and non-volatile memory is used to store the address to ensure successful encoding.
It improves the coding efficiency of the insulation detection module, reduces coding time and signal loss probability, and ensures coding success rate and communication channel load rate.
Smart Images

Figure CN121054832B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of energy storage technology, and in particular to a method and apparatus for coding an energy storage system. Background Technology
[0002] With the promotion and application of new energy sources, energy storage technology has also developed. In energy storage systems, the insulation monitoring module (IMM) is one of the core components to ensure the safe operation of energy storage. It is mainly used to collect the insulation resistance to ground of the positive and negative terminals of each operating battery cell and send the collected information to the control module. However, each control module does not manage only one IMM. In order to better distinguish the collected information sent by each IMM and avoid mutual interference between insulation detections of different IMMs, it is necessary to encode the IMM.
[0003] However, current IMM encoding is inefficient. Summary of the Invention
[0004] This application provides a method and apparatus for coding an energy storage system, which can effectively improve coding efficiency.
[0005] In a first aspect, a method for encoding an energy storage system is provided, the method comprising: a first battery controller encoding itself through a second battery controller; and, upon completion of encoding by the first battery controller, the first battery controller driving an insulation detection module to energize the insulation detection module, and causing different insulation detection modules within the insulation detection module to simultaneously encode based on the encoding matching relationship between the first battery controller and the insulation detection module.
[0006] In this embodiment, after the first battery controller completes its encoding, the insulation detection module is powered on, enabling multiple insulation detection modules to encode simultaneously based on the encoding matching relationship between the first battery controller and the insulation detection module. This means that all insulation detection modules can complete their encoding at the same time, effectively reducing the encoding time of the insulation detection module and thus improving its encoding efficiency.
[0007] In some possible implementations, the method further includes: during the encoding process, the first battery controller prohibits the transmission of signals unrelated to encoding between itself and the second battery controller; and / or the first battery controller prohibits the transmission of signals unrelated to encoding between itself and the insulation detection module.
[0008] In this technical solution, during the encoding process, the transmission of signals unrelated to encoding is prohibited between the second battery controller and the first battery controller. That is, the second battery controller and the first battery controller only transmit signals related to encoding. In this way, the load rate of the communication channel between the second battery controller and the first battery controller can be reduced, thereby effectively improving the probability of encoding signal loss. This not only improves the efficiency of transmitting encoding-related signals between the second battery controller and the first battery controller during the encoding process, but also effectively improves the encoding success rate of the first battery controller.
[0009] Similarly, the transmission of signals unrelated to encoding is prohibited between the first battery controller and the insulation detection module. That is, only signals related to encoding are transmitted between the first battery controller and the insulation detection module. In this way, the load rate of the communication channel between the first battery controller and the insulation detection module can be reduced, thereby effectively improving the probability of encoding signal loss. This not only improves the efficiency of transmitting encoding-related signals between the first battery controller and the insulation detection module during the encoding process, but also effectively improves the encoding success rate of the insulation detection module.
[0010] In some possible implementations, the first battery controller and the second battery controller are connected via a first bus, and the first battery controller and the insulation detection module are connected via a second bus. The first battery controller prohibits the transmission of signals unrelated to encoding between itself and the second battery controller, including: the first battery controller receiving a first start encoding command sent by the second battery controller; in response to the first start encoding command, the first battery controller muting the first bus to prohibit the transmission of signals unrelated to encoding between itself and the second battery controller; and / or the first battery controller prohibits the transmission of signals unrelated to encoding between itself and the insulation detection module, including: the first battery controller receiving a second start encoding command sent by the second battery controller; in response to the second start encoding command, the first battery controller muting the second bus to prohibit the transmission of signals unrelated to encoding between itself and the insulation detection module.
[0011] This technical solution, by silencing the first bus between the second battery controller and the first battery controller, effectively prevents the transmission of signals unrelated to encoding between the two controllers. This approach is not only simple to implement but also easy to operate. Similarly, by silencing the second bus between the first battery controller and the insulation detection module, the transmission of signals unrelated to encoding between the first battery controller and the insulation detection module is also prevented. This approach is not only simple to implement but also easy to operate.
[0012] In some possible implementations, the first battery controller encodes itself via the second battery, including: the first battery controller sending a request encoding instruction to the second battery controller, the request encoding instruction including a first address of the first battery controller and a first matching code of the first battery controller, the first address being used by the second battery controller to determine whether it matches a second address, the first matching code being used by the second battery controller to determine whether it matches a second matching code, the second address and the second matching code being addresses and matching codes stored by the second battery controller, respectively; if they match, the first battery controller receives a confirmation encoding instruction sent by the second battery controller, the confirmation encoding instruction including a third address being an address obtained based on the first address, and a third matching code being a matching code obtained based on the first matching code; in response to the confirmation encoding instruction sent by the second battery controller, the first battery controller encodes itself.
[0013] In this technical solution, the first battery controller sends its address and matching code to the second battery controller. After receiving the code, the second battery controller matches the stored address and matching code. If the match is successful, the first battery controller can then perform encoding. This ensures that the encoding of the first battery controller can proceed smoothly and reduces the probability of errors occurring during the encoding process.
[0014] In some possible implementations, the first battery controller includes a plurality of first battery controllers, including an i-th first battery controller and an (i+1)-th first battery controller; wherein, when the i-th first battery controller has completed encoding, the matching code of the (i+1)-th first battery controller is incremented by 1 so that the (i+1)-th first battery controller is automatically in the encoding state.
[0015] In this technical solution, the matching code of the first battery controller whose encoding output line is not enabled is incremented by 1. In this way, after the previous first battery controller has completed encoding, the first battery controller can automatically perform encoding, thereby effectively improving the encoding efficiency.
[0016] In some possible implementations, the first address is an address in non-volatile memory.
[0017] Since NVM is a type of memory that can retain data even after power failure, this technical solution sets the first address to an address in NVM. That is, storing the code of the first battery controller in NVM can prevent the possibility of re-coding after power failure and power-on.
[0018] In some possible implementations, the method further includes: upon completion of the insulation detection module coding, the first battery controller sends a lock message to the insulation detection module, the lock message being used to lock the insulation detection module. This reduces the possibility of erroneously triggering the insulation detection module coding.
[0019] Secondly, a method for encoding an energy storage system is provided, the method comprising: a second battery controller determining whether a first battery controller and an insulation detection module meet encoding conditions; if the first battery controller and the insulation detection module meet the encoding conditions, the second battery controller controlling the first battery controller to perform encoding according to a first address and / or a first matching code of the first battery controller; after encoding, the first battery controller driving the insulation detection module so that different insulation detection modules in the insulation detection module are encoded simultaneously.
[0020] In this embodiment, before encoding, it is determined whether the first battery controller and insulation detection module meet the encoding conditions. Encoding is only performed if the first battery controller and insulation detection module meet the encoding conditions, which reduces the possibility of encoding being performed even if the first battery controller and insulation detection module do not meet the encoding conditions, thus reducing the probability of duplicate encoding. At this time, by judging the conditions, the encoding process can be automatically entered, that is, one-click encoding can be automatically triggered, thereby improving encoding efficiency. Furthermore, after the first battery controller is encoded, multiple insulation detection modules can be encoded simultaneously, that is, all insulation detection modules are encoded at the same time, thereby effectively reducing the encoding time of the insulation detection modules and thus improving the encoding efficiency of the insulation detection modules.
[0021] In some possible implementations, the second battery controller determines whether the first battery controller and the insulation detection module meet the encoding conditions, including: the second battery controller determines whether the first battery controller and the insulation detection module meet the encoding conditions based on the status parameters of the first battery controller and / or the status parameters of the insulation detection module; wherein, the status parameters of the first battery controller include the number of the first battery controllers and / or the address sequence number of the first battery controllers, and the status parameters of the insulation detection module include the number of the insulation detection modules and / or the address sequence number of the insulation detection module.
[0022] This technical solution, since the state parameters of the first battery controller are closely related to the coding state of the first battery controller, and the state parameters of the insulation detection module are closely related to the coding state of the insulation detection module, can effectively improve the accuracy of judgment and reduce the probability of misjudgment by judging whether the coding conditions are met through the state parameters of the first battery controller and / or the state parameters of the insulation detection module.
[0023] In some possible implementations, the second battery controller determines whether the first battery controller and the insulation detection module meet the encoding conditions based on the status parameters of the first battery controller and / or the status parameters of the insulation detection module. This includes determining that the first battery controller and the insulation detection module meet the encoding conditions if at least one of the following conditions is met: the number of address numbers of the first battery controller is less than the number of first battery controllers; the address numbers of the first battery controllers are not arranged in order; the number of address numbers of the insulation detection module is less than the number of insulation detection modules; and the address numbers of the insulation detection modules are not arranged in order.
[0024] If the number of address numbers for the first battery controller is less than the number of first battery controllers, it indicates that the first battery controller is not encoded or has missing codes. Similarly, if the number of address numbers for the insulation detection modules is less than the number of insulation detection modules, it indicates that the insulation detection modules are not encoded or have missing codes. If the address numbers of the first battery controllers are not arranged in order, or the address numbers of the insulation detection modules are not arranged in order among themselves, it indicates that the encoding sequence numbers of the first battery controllers and insulation detection modules are disordered, and encoding is required in this case. Therefore, this technical solution controls the first battery controller to perform encoding when the encoding conditions are met, which can reduce the possibility of repeated encoding of the first battery controllers and insulation detection modules when they are already encoded, thus saving encoding resources.
[0025] In some possible implementations, the method further includes: the second battery controller sending a first start encoding instruction to the first battery controller, the first start encoding instruction being used to prohibit the transmission of signals unrelated to encoding between the second battery controller and the first battery controller; and / or the second battery controller sending a second start encoding instruction to the first battery controller, the second start encoding instruction being used to prohibit the transmission of signals unrelated to encoding between the first battery controller and the corresponding insulation detection module.
[0026] In some possible implementations, the second battery controller and the first battery controller are connected via a first bus, and the first battery controller is connected to the insulation detection module via a second bus; the first start encoding instruction is used to silence the first bus, and / or the second start encoding instruction is used to silence the second bus.
[0027] In some possible implementations, the method further includes: the second battery controller determining whether the silence duration of the first bus is greater than or equal to a first preset duration, and / or determining whether the silence duration of the second bus is greater than or equal to a second preset duration; the second battery controller controlling the first battery controller to perform encoding includes: when the silence duration of the first bus is greater than or equal to the first preset duration, and / or when the silence duration of the second bus is greater than or equal to the second preset duration, controlling the first battery controller to perform encoding through the second battery controller.
[0028] This technical solution indicates that the first bus is in a truly silent state when its silence duration reaches a certain time. Controlling the first battery controller to perform encoding at this time further improves the encoding efficiency of the first battery controller. Similarly, when the second bus is in a truly silent state when its silence duration reaches a certain time, controlling the first battery controller to perform encoding at this time further improves the encoding efficiency of the first battery controller.
[0029] In some possible implementations, there are multiple first battery controllers, and the method further includes: the second battery controller sequentially pulls up the encoding output lines of multiple first battery controllers to encode the pulled-up first battery controllers sequentially.
[0030] In this technical solution, since one second battery controller corresponds to multiple first battery controllers, during the encoding process of the first battery controllers, the second battery controller sequentially pulls up the encoding output lines of multiple first battery controllers, so that the sequentially pulled-up first battery controllers are energized in sequence, thereby enabling these sequentially pulled-up first battery controllers to perform encoding, thus allowing the encoding of the first battery controllers to proceed smoothly.
[0031] In some possible implementations, the first battery controller pulled high by the second battery controller includes a first sub-battery controller. The step of controlling the first battery controller to perform encoding based on a first address and / or a first matching code of the first battery controller includes: the second battery controller receiving a request encoding instruction sent by the first sub-battery controller, the request encoding instruction including a first address and a first matching code of the first sub-battery controller; the second battery controller determining whether the first address matches a second address and whether the first matching code matches a second matching code, the second address and the second matching code being addresses and matching codes stored by the second battery controller, respectively; if they match, the second battery controller sending a confirmation encoding instruction to the first sub-battery controller, the confirmation encoding instruction including a third address and a third matching code, to cause the first sub-battery controller to encode itself, the third address being an address obtained based on the first address, and the third matching code being a matching code obtained based on the first matching code.
[0032] In some possible implementations, the first sub-battery controller is the i-th first battery controller among the first battery controllers, and the first battery controller further includes the (i+1)-th first battery controller; the second battery controller controls the first battery controller to perform encoding according to the first address and / or the first matching code of the first battery controller, including: after determining whether the first matching code is consistent with the second matching code, the second battery controller increments the second matching code by 1; when the encoding of the first sub-battery controller is completed, the second battery controller automatically encodes the (i+1)-th first battery controller based on the second matching code.
[0033] In some possible implementations, the first address is an address in non-volatile memory.
[0034] Thirdly, an encoding device for an energy storage system is provided. The device is a first battery controller and includes: an encoding unit for encoding itself through a second battery controller; and a driving unit for driving an insulation detection module after the first battery controller has completed encoding, so that the insulation detection module is in a energized state, and that different insulation detection modules in the insulation detection module are simultaneously encoded based on the encoding matching relationship between the first battery controller and the insulation detection module.
[0035] Fourthly, an encoding device for an energy storage system is provided. The device is a second battery controller. The device includes: a processing unit for determining whether a first battery controller and an insulation detection module meet the encoding conditions; and an encoding unit for controlling the first battery controller to perform encoding based on a first address and / or a first matching code when the first battery controller and the insulation detection module meet the encoding conditions. After encoding, the first battery controller is used to drive the insulation detection module so that different insulation detection modules in the insulation detection module are encoded simultaneously.
[0036] Fifthly, an encoding device for an energy storage system is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to execute the methods described in the first aspect or its various implementations.
[0037] In a sixth aspect, an encoding device for an energy storage system is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to execute the methods in the second aspect or its various implementations described above.
[0038] In a seventh aspect, a computer-readable storage medium is provided for storing a computer program that causes a computer to perform the methods described in the first aspect or its implementations.
[0039] Eighthly, a computer-readable storage medium is provided for storing a computer program that causes a computer to perform the methods described in the second aspect or its implementations. Attached Figure Description
[0040] Figure 1 A schematic flowchart illustrating a method for coding an energy storage system according to an embodiment of this application is shown.
[0041] Figure 2 A schematic flowchart illustrating another method for coding an energy storage system according to an embodiment of this application is shown.
[0042] Figure 3 A schematic diagram illustrating the correspondence between MBMU, SBMU, and IMM according to an embodiment of this application is shown.
[0043] Figure 4 A schematic block diagram of a first encoding device for an energy storage system according to an embodiment of this application is shown.
[0044] Figure 5 A schematic block diagram of a second encoding device for an energy storage system according to an embodiment of this application is shown.
[0045] Figure 6A schematic block diagram of a third encoding device for an energy storage system according to an embodiment of this application is shown. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0047] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used in the specification of this application is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, rather than to describe a specific order or hierarchy.
[0048] The directional terms used in the following description refer to the directions shown in the figures and are not intended to limit the specific structure of this application. It should also be noted in the description of this application that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0049] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0050] In this application, "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0051] With the widespread application of new energy sources such as solar and wind power, energy storage technology has developed accordingly. An energy storage system is a device or system capable of storing energy and releasing it when needed. In the field of new energy, energy storage systems typically refer to devices that can store electrical energy and release it during peak electricity demand periods. Energy storage systems play multiple roles in the power system, including load balancing, frequency regulation, backup power, peak-valley pricing management, and improving grid stability. With the rapid development of renewable energy, the importance of energy storage systems is increasing daily.
[0052] Electrochemical energy storage, represented by lithium-ion batteries, is the most widely used energy storage technology. An electrochemical energy storage system consists of battery devices, a battery management system (BMS), an energy management system (EMS), a power conversion system (PCS), and auxiliary equipment.
[0053] In an energy storage system, the battery unit is the energy storage medium, responsible for storing and releasing electrical energy. The Battery Management System (BMS) monitors and manages the battery unit's status, including state of charge, voltage, temperature, and current, to ensure safe operation and prevent over-discharge, overheating, and short circuits, thereby extending battery life. The Energy Management System (EMS) is the control center, responsible for monitoring the entire system's operation and optimizing energy storage and release strategies to meet grid demands or user-defined goals. The Power Control System (PCS) primarily controls the conversion and flow of electrical energy within the system, converting direct current (DC) to alternating current (AC) to meet grid or load requirements. Simultaneously, the PCS can also convert AC to DC to charge the battery units.
[0054] In energy storage systems, the Insulation Resistance Meter (IMM) is one of the core components ensuring the safe operation of energy storage. Its main function is to collect the insulation resistance to ground of the positive and negative electrodes of each operating battery cell and send this information to the control module. However, each control module manages more than one IMM. To better distinguish the collected information sent by each IMM and avoid mutual interference between insulation detections of different IMMs, IMMs need to be encoded. Currently, IMM encoding is achieved through message encoding. Message encoding requires manually sending specific messages (including unlock, calibration, and lock) and manually inputting the encoding information sequentially. Each manual input is required to complete the encoding of one IMM, resulting in low efficiency.
[0055] In view of this, embodiments of this application provide a method for encoding an energy storage system. The method includes: a first battery controller encoding itself via a second battery controller; after the first battery controller completes encoding, the first battery controller drives an Integrated Management Module (IMM) to bring the IMM to a charged state, and different IMMs within the IMM simultaneously encode based on the encoding matching relationship between the first battery controller and the IMM. This method, after the first battery controller completes encoding, drives the IMM to supply power, allowing multiple IMMs to simultaneously encode according to the encoding matching relationship between the first battery controller and the IMM, i.e., completing the encoding of all IMMs at once, thereby effectively reducing the encoding time of the IMMs and improving their encoding efficiency.
[0056] The technical solutions of this application embodiment can be applied to energy storage systems, which can be the electrochemical energy storage systems described above. The energy storage system includes energy storage devices, which can be of various types and sizes. When the energy storage system includes multiple energy storage devices, these devices can be arranged in a parallel distributed or stacked manner. When multiple energy storage devices are arranged in a parallel distributed manner, the energy storage devices in the front row and the energy storage devices in the back row do not need to maintain a certain distance; a side-by-side and back-to-back installation layout can be used.
[0057] Energy storage devices include one or more battery clusters to increase the voltage and capacity of the energy storage device. A battery cluster may include multiple battery units connected in series via a busbar to increase the voltage of the energy storage device. When an energy storage device includes multiple battery clusters, the clusters are connected in parallel to increase the capacity of the energy storage device.
[0058] Energy storage devices can be used in energy storage power stations, wind power generation systems, solar power generation systems, mobile power systems, or temporary power supply systems. Energy storage devices can store electrical energy as needed and output it when appropriate. For example, an energy storage device can store electrical energy during off-peak hours and provide power to relevant users or electrical equipment during peak hours. The energy storage system provided in this application embodiment can be any power system that requires energy storage devices.
[0059] In some embodiments, the energy storage device is an energy storage container or an energy storage cabinet.
[0060] In some embodiments, the energy storage device may include a cabinet and one or more battery clusters housed within the cabinet.
[0061] In some embodiments, the energy storage device may include modules such as a thermal management module, a main control module, a central control module, a power distribution module, and a fire protection module.
[0062] As an example, the thermal management module may include a liquid cooling unit that supplies coolant to each battery device via piping to regulate the temperature of the individual battery cells.
[0063] As an example, the main control module can serve as the battery management unit for the battery cluster, used to monitor and manage the battery cluster. The main control module can monitor information such as the current, voltage, power, or temperature of the battery cluster. For instance, it can control the charging and discharging current and voltage of the battery cluster. The main control module includes modules such as the SBMU and integrated switches.
[0064] As an example, the master control module can serve as the battery management unit for an energy storage device, used to monitor and manage the device. The master control module can monitor information such as the device's current, voltage, power, state of charge, and temperature. For instance, it can control the charging and discharging current and voltage of the energy storage device. As an example, the master control module includes modules such as an IMM, a master battery management unit (MBMU), an Ethernet (etherNet, ETH) module, and a fiber optic conversion module.
[0065] As an example, a fire protection system includes control panels, detectors, alarm devices, etc., used to detect, alarm, or extinguish fires in energy storage systems.
[0066] As an example, the power distribution unit can be used to distribute power to the power modules of the energy storage device.
[0067] Figure 1 A schematic flowchart of a method 100 for encoding an energy storage system according to an embodiment of this application is shown. Method 100 can be executed by a first battery controller and may include at least some of the following.
[0068] S110: The first battery controller encodes itself through the second battery controller.
[0069] S120: When the first battery controller completes the encoding, the first battery controller drives the IMM to put the IMM in a charged state, and causes different IMMs in the IMM to be encoded simultaneously based on the encoding matching relationship between the first battery controller and the IMM.
[0070] In this embodiment, after multiple first battery controllers have completed their encoding, the first battery controllers drive the IMM to supply power, so that multiple IMMs can be encoded simultaneously according to the encoding matching relationship between the first battery controllers and the IMMs. That is, all IMMs are encoded at the same time, thereby effectively reducing the encoding time of the IMMs and improving the encoding efficiency of the IMMs.
[0071] Figure 2A schematic flowchart illustrating another energy storage system coding method 200 according to an embodiment of this application is shown. Method 200 can be executed by a second battery controller and may include at least some of the following.
[0072] S210: The second battery controller determines whether the first battery controller and IMM meet the coding conditions.
[0073] S220: When the first battery controller and IMM meet the encoding conditions, the second battery controller controls the first battery controller to perform encoding according to the first address and / or the first matching code of the first battery controller.
[0074] After encoding, the first battery controller is used to drive the IMM so that different IMMs in the IMM are encoded simultaneously.
[0075] In this embodiment, before encoding, it is determined whether the first battery controller and IMM meet the encoding conditions. Encoding is only performed if the first battery controller and IMM meet the encoding conditions, which reduces the possibility of encoding being performed even if the first battery controller and IMM do not meet the encoding conditions, thus reducing the probability of duplicate encoding. At this time, the encoding process can be automatically entered by judging the conditions, that is, one-click encoding can be automatically triggered, thereby improving encoding efficiency. Furthermore, after the first battery controller is encoded, multiple IMMs can be encoded simultaneously, that is, all IMMs can be encoded at the same time, thereby effectively reducing the encoding time of IMMs and thus improving the encoding efficiency of IMMs.
[0076] It should be noted that S110 can be understood as the first battery controller encoding itself, while the second battery controller needs to complete the encoding of itself.
[0077] The following will combine Figure 1 and Figure 2 The embodiments of this application are described.
[0078] The first battery controller can be a slave battery management unit (SBMU), and the second battery controller can be an MBMU. It should be noted that the embodiments of this application will be described below using an SBMU as the first battery controller and an MBMU as the second battery controller as an example.
[0079] In this embodiment of the application, the SBMU can be multiple SBMUs, and the IMM can be multiple IMMs. For example... Figure 3As shown, one MBMU can correspond to multiple SBMUs, one battery cluster can correspond to one SBMU, and one SBMU corresponds to one IMM. MBMUs and SBMUs can communicate with each other via a controller area network (CAN), for example... Figure 3 As shown, communication is conducted via MCAN. Similarly, the SBMU and IMM can also communicate via CAN (such as MCAN).
[0080] For ease of description, the embodiments of this application will be described below using examples of communication between MBMU and SBMU via MCAN, and communication between SBMU and IMM via MCAN.
[0081] Since one MBMU corresponds to multiple SBMUs, the multiple SBMUs are encoded sequentially. In other words, the first SBMU encodes itself first, and after the first SBMU finishes encoding, the second SBMU encodes itself, and so on, until the last SBMU finishes encoding.
[0082] When SBMU encoding is complete, it can be understood that multiple SBMUs have completed encoding. In other words, when all SBMUs have completed encoding, multiple IMMs will automatically begin encoding.
[0083] The SBMU drives the IMM, which can be understood as: each SBMU among multiple SBMUs drives the corresponding IMM among multiple IMMs. The encoding matching between SBMU and IMM can be understood as: the encoding matching relationship between each SBMU and its corresponding IMM. The encoding matching relationship can be understood as the matching relationship between codes.
[0084] For example, one MBMU corresponds to three SBMUs, namely SBMU1, SBMU2, and SBMU3. SBMU1 corresponds to IMM1, SBMU2 corresponds to IMM2, and SBMU3 corresponds to IMM3. SBMU1, SBMU2, and SBMU3 are encoded sequentially. After SBMU1, SBMU2, and SBMU3 have been encoded, due to the existence of encoding matching relationships, IMM1, IMM2, and IMM3 can determine how much they need to be encoded into, thus IMM1, IMM2, and IMM3 can complete the encoding simultaneously and automatically.
[0085] In the embodiments of this application, multiple SBMUs can be directly encoded through the MBMU, and the IMM can be directly encoded by itself.
[0086] Alternatively, considering that the SBMU and / or IMM may have already been encoded, to prevent duplicate encoding, it can be determined whether multiple SBMUs and multiple IMMs meet the encoding conditions before encoding. In this case, S110 may specifically include: automatically triggering the encoding of the SBMU if multiple SBMUs and multiple IMMs meet the encoding conditions.
[0087] This technical solution determines whether the SBMU and IMM meet certain conditions before encoding. Encoding is only initiated when the SBMU and IMM meet the conditions, reducing the possibility of encoding despite the SBMU and IMM not meeting the conditions, thus lowering the probability of duplicate encoding. Furthermore, by judging the conditions, the encoding process can be automatically initiated, triggering one-click encoding, thereby further improving encoding efficiency.
[0088] As an example, the MBMU can verify whether the host computer has received feedback information sent by the IMM, which indicates that the IMM has been successfully encoded. If the host computer does not receive this feedback information, it can be determined that multiple SBMUs and multiple IMMs meet the encoding conditions.
[0089] As another example, the MBMU can determine whether the SBMU and IMM meet the encoding conditions based on the status parameters of the SBMU and / or the IMM. The status parameters of the SBMU include the number of SBMUs and / or their address numbers, while the status parameters of the IMM include the number of IMMs and / or their address numbers.
[0090] This technical solution, since the state parameters of the SBMU are closely related to the encoding state of the SBMU, and the state parameters of the IMM are closely related to the encoding state of the IMM, can effectively improve the accuracy of judgment and reduce the probability of misjudgment by judging whether the encoding conditions are met through the state parameters of the SBMU and / or the state parameters of the IMM.
[0091] The address sequence number of the SBMU indicates whether the SBMU has been encoded, and similarly, the address sequence number of the IMM indicates whether the IMM has been encoded. If the SBMU has an address sequence number, it means that the SBMU has been encoded; if the SBMU does not have an address sequence number, it means that the SBMU has not been encoded.
[0092] In some embodiments, the MBMU determines whether the SBMU and IMM meet the encoding conditions based on the state parameters of the SBMU and / or the state parameters of the IMM. Specifically, this may include: if at least one of the following conditions is met, the MBMU determines that the SBMU and IMM meet the encoding conditions:
[0093] The number of address numbers for SBMUs is less than the number of SBMUs;
[0094] The address numbers of the SBMU are not in order;
[0095] The number of address sequence numbers in an IMM is less than the number of IMMs;
[0096] The IMM address numbers are not arranged in order.
[0097] If the number of address numbers for SBMUs is less than the number of SBMUs, it indicates that SBMUs are not encoded or have missing codes. Similarly, if the number of address numbers for IMMs is less than the number of IMMs, it indicates that IMMs are not encoded or have missing codes. If the address numbers for SBMUs are not in order, or the address numbers for IMMs are not in order among themselves, it indicates that the encoding sequences for SBMUs and IMMs are disordered, and encoding is required in this case. Therefore, this technical solution controls SBMUs to encode only when they meet the encoding conditions, which reduces the possibility of duplicate encoding of SBMUs and IMMs when they are already encoded, thus saving encoding resources.
[0098] For example, if there are 8 SBMUs and their address numbers are 1, 2, 3, 6, 7, and 8, it can be seen that there are 6 address numbers for the multiple SBMUs. There are cases where SBMU address numbers are missing, so the SBMUs and IMMs can be controlled for encoding.
[0099] For example, if there are 8 SBMUs with address numbers 1, 3, 2, 4, 5, 6, 7, and 8, and the number of SBMUs is the same as the number of their address numbers, but the address numbers are in reverse order, then one-click encoding can be automatically triggered.
[0100] Refer again Figure 3 One MBMU manages multiple SBMUs. When multiple SBMUs are encoding, the MBMU issues encoding commands to each SBMU. Since multiple SBMUs communicate with the MBMU through the same communication method (e.g., via MCAN), this leads to a high bus load rate. This not only makes it easy for encoded signals to be lost, but also causes competition between multiple SBMUs, resulting in some SBMUs successfully encoding while others fail.
[0101] To address this issue, in some embodiments, the present application may further include: during the encoding process, prohibiting the transmission of signals unrelated to encoding between the MBMU and SBMU.
[0102] This technical solution prohibits the transmission of signals unrelated to encoding between the MBMU and SBMU during the encoding process. That is, the MBMU and SBMU only transmit signals related to encoding. In this way, the load rate of the communication channel between the MBMU and SBMU can be reduced, thereby effectively improving the probability of encoding signal loss. It not only improves the efficiency of transmitting encoding-related signals between the MBMU and SBMU during the encoding process, but also effectively improves the encoding success rate of the SBMU.
[0103] As an example, the MBMU and SBMU can each receive a first prohibition message, which is used to prohibit the transmission of signals unrelated to encoding between the MBMU and multiple SBMUs.
[0104] As another example, the MBMU can send a first start encoding command to the SBMU. In response to the first start encoding command, the SBMU prohibits the transmission of signals unrelated to encoding between itself and the MBMU.
[0105] Upon receiving the first start encoding command, the SBMU can determine that encoding will begin. Therefore, the SBMU can prevent the transmission of signals unrelated to encoding between itself and the MBMU.
[0106] Optionally, the MBMU and SBMU are connected via a first bus. In this case, the transmission of signals unrelated to encoding between the MBMU and SBMU can be prevented by silencing the first bus. In other words, the first encoding start command can be used to silence the first bus.
[0107] The first bus may include, for example, the MCAN bus.
[0108] This technical solution silences the first bus between the MBMU and SBMU to prevent the transmission of signals unrelated to encoding between the MBMU and SBMU. It is not only simple to implement, but also easy to operate.
[0109] Similarly, in order to reduce the load rate of the communication channel between the SBMU and the corresponding IMM, embodiments of this application may further include: during the encoding process, the SBMU prohibits the transmission of signals unrelated to encoding between itself and the corresponding IMM.
[0110] This technical solution prohibits the transmission of signals unrelated to encoding between the SBMU and its corresponding IMM during the encoding process. That is, the SBMU and its corresponding IMM only transmit signals related to encoding. In this way, the load rate of the communication channel between the SBMU and its corresponding IMM can be reduced, thereby effectively improving the probability of lost encoded signals. This not only improves the efficiency of transmitting encoding-related signals between the SBMU and its corresponding IMM during the encoding process, but also effectively improves the encoding success rate of the IMM.
[0111] As an example, the SBMU and IMM can each send a second prohibition message, which is used to prohibit the transmission of signals unrelated to encoding between the SBMU and IMM.
[0112] As another example, the MBMU can send a second start encoding command to the SBMU. In response to the second start encoding command, the SBMU prohibits the transmission of signals unrelated to encoding between itself and the IMM. Upon receiving the second start encoding command, the SBMU can determine that encoding will begin, and therefore, the SBMU can prohibit the transmission of signals unrelated to encoding between itself and the IMM.
[0113] Optionally, the first start encoding instruction can be the same as the second start encoding instruction. That is, the MBMU sends the start encoding instruction to multiple SBMUs. After receiving the start encoding instruction, the SBMU not only prohibits the transmission of signals unrelated to encoding with the MBMU, but also prohibits the transmission of signals unrelated to encoding with the IMM.
[0114] Alternatively, the first start encoding command and the second start encoding command can be different commands. When it is necessary to prevent the transmission of signals unrelated to encoding between the SBMU and MBMU, the MBMU sends the first start encoding command to the SBMU. When it is necessary to prevent the transmission of signals unrelated to encoding between the SBMU and IMM, the MBMU sends the second start encoding command to the SBMU.
[0115] Optionally, the SBMU and its corresponding IMM can be connected via a second bus. In this case, the transmission of signals unrelated to encoding between the SBMU and the corresponding IMM can be prevented by silencing the second bus. In other words, the second start encoding command can be used to silence the second bus.
[0116] The first bus and the second bus can be the same or different. The second bus may include, for example, the MCAN bus.
[0117] This technical solution, by silencing the second bus between the SBMU and the corresponding IMM, aims to prevent the transmission of signals unrelated to encoding between the SBMU and the corresponding IMM. It is not only simple to implement, but also easy to operate.
[0118] At times, the first bus may be silent for only a moment or a very short time, and is not truly silent. To reduce the possibility of such problems, the embodiments of this application may further include: the MBMU determining whether the silence duration of the first bus is greater than or equal to a first preset duration; if the silence duration of the first bus is greater than or equal to the first preset duration, the MBMU controls the SBMU to perform encoding.
[0119] This technical solution indicates that the first bus is in a true silent state when the silence duration of the first bus reaches a certain duration. At this time, controlling the SBMU to encode itself can further improve the efficiency of SBMU encoding.
[0120] The embodiments of this application do not specifically limit the first preset duration. The first preset duration can be determined based on specific circumstances. For example, the first preset duration can be the same value under any circumstances, or it can be determined based on parameters such as the number of SBMUs, the current environment of the energy storage system, and the estimated coding duration.
[0121] Optionally, the first preset duration can be in the range of 1 second (s) to 10 seconds. For example, the first preset duration can be 1.5s, 2s, 2.5s, 3s, 4s, 5s, 6s, 7s, 8s, 9s, or 9.5s, etc.
[0122] Optionally, a timer can be configured to determine whether the silence duration of the first bus is greater than or equal to a first preset duration.
[0123] Similarly, embodiments of this application may further include: determining whether the silence duration of the second bus is greater than or equal to a second preset duration; if the silence duration of the second bus is greater than or equal to the second preset duration, the MBMU controls the SBMU to encode itself.
[0124] This technical solution indicates that the second bus is in a true silent state when the silence duration of the second bus reaches a certain duration. At this time, controlling the SBMU to perform encoding can further improve the efficiency of SBMU encoding.
[0125] The embodiments of this application do not specifically limit the second preset duration. The second preset duration can be determined based on specific circumstances. For example, the second preset duration can be the same value under any circumstances, or it can be determined based on parameters such as the state of SBMU, the state of IMM, the current environment of the energy storage system, and the estimated coding duration.
[0126] The second preset duration can be the same as or different from the first preset duration. Optionally, the second preset duration can be in the range of 1 s to 10 s. For example, the second preset duration can be 1.5 s, 2 s, 2.5 s, 3 s, 4 s, 5 s, 6 s, 7 s, 8 s, 9 s, or 9.5 s, etc.
[0127] The following details the process of MBMU controlling multiple SBMU encodings.
[0128] As mentioned above, multiple SBMUs are encoded sequentially. In some embodiments, the present application may further include: the MBMU sequentially pulls up the encoding output lines of multiple SBMUs to encode the pulled-up SBMUs sequentially.
[0129] In this technical solution, since one MBMU corresponds to multiple SBMUs, during the SBMU encoding process, the MBMU sequentially pulls up the encoding output lines of multiple SBMUs, causing the sequentially pulled-up SBMUs to be energized in sequence, so that these sequentially pulled-up SBMUs can be encoded, thus enabling the SBMU encoding to proceed smoothly.
[0130] For example, one MBMU corresponds to three SBMUs, namely SBMU1, SBMU2 and SBMU3. The MBMU first pulls SBMU1 high to enable SBMU1 to encode. Then, the MBMU pulls SBMU2 high to enable SBMU2 to encode. Finally, the MBMU pulls SBMU2 high again to enable SBMU3 to encode.
[0131] Optionally, before the MBMU sequentially pulls the encoding output lines of multiple SBMUs high, the MBMU may disable the encoding output lines of the SBMUs to determine whether the first bus and / or the second bus is in a muted state. Afterwards, the MBMU sends a start encoding command to the multiple SBMUs. Upon receiving the start encoding command, the multiple SBMUs may mute the first and second encoding buses and pull their encoding output lines low.
[0132] If the first bus is confirmed to be in a silent state, the MBMU can be controlled to sequentially pull up the encoding output lines of multiple SBMUs.
[0133] It should be noted that the start encoding instruction mentioned above is both the first start encoding instruction and the second start encoding instruction, and the first start encoding instruction is the same as the second start encoding instruction.
[0134] In addition, after receiving the start encoding command, the SBMU can also set the match code to 1. The match code can be understood as the identifier of the SBMU.
[0135] In some embodiments, the SBMU may include a first SBMU, which may send a request encoding instruction to the MBMU. The request encoding instruction includes a first address of the first SBMU and a first matching code of the first SBMU. When the MBMU receives the request encoding instruction, the MBMU may determine whether the first address is consistent with a second address and whether the first matching code is consistent with a second matching code. If they are consistent, the MBMU sends an acknowledgment encoding instruction to the first SBMU. The acknowledgment encoding instruction includes a third address and a third matching code. In response to the acknowledgment encoding instruction, the first SBMU encodes itself.
[0136] The second address and the second matching code are the address and matching code stored in the MBMU, respectively. The third address is the address obtained based on the first address, and the third matching code is the matching code obtained based on the first matching code.
[0137] In this technical solution, the first SBMU sends its address and matching code to the MBMU. After the MBMU receives the information, it matches the stored address and matching code. If the match is successful, the MBMU can control the SBMU to perform encoding. This allows the SBMU to encode smoothly and reduces the probability of errors during the encoding process.
[0138] For example, if the first matching code is 41, after the MBMU receives the request encoding instruction, it matches its stored second matching code with 41. If the stored second matching code is also 41, it can be determined that the first matching code and the second matching code are consistent.
[0139] The third address can be the same as the first address, and the third matching code can be the same as the first matching code. Since the first address is the same as the second address, and the first matching code is the same as the second matching code, it can also be understood that the third address is the address obtained based on the second address, and the third matching code is the matching code obtained based on the second matching code.
[0140] Alternatively, the third address can be different from the first address, while the third address and the first address have a certain correspondence. Similarly, the third matching code can also be different from the first matching code, while the third matching code and the first matching code have a certain correspondence.
[0141] The matching code can be pre-set, and for the same SBMU, the matching code can be different in different scenarios.
[0142] The first address can be any address. In some embodiments, the first address can be an address in non-volatile memory (NVM). Since NVM is a type of memory that can retain data after power failure, this technical solution sets the first address to an address in NVM, that is, storing the SBMU's encoding in NVM can mitigate the possibility of re-encoding after power failure and subsequent power-on.
[0143] Furthermore, if it is determined that the first matching code is consistent with the second matching code, and the first address is consistent with the second address, the matching code of the MBMU can be incremented by 1 based on the second matching code.
[0144] Furthermore, the first SBMU is the i-th SBMU among the multiple SBMUs, and the multiple SBMUs also include the second SBMU, which is the (i+1)-th SBMU among the multiple SBMUs. After the MBMU determines whether the first matching code is consistent with the second matching code, it can add 1 to the matching code of the second SBMU based on the first matching code. Based on the matching code of the second SBMU, when the first SBMU has completed encoding, the MBMU automatically controls the second SBMU to encode the second SBMU.
[0145] In this technical solution, the matching code of the SBMU whose encoding output line is not enabled is incremented by 1. In this way, after the previous SBMU has completed encoding, the SBMU can automatically perform encoding, thereby effectively improving the encoding efficiency.
[0146] For example, if the matching code of the first SBMU is 41, then the matching code of the second SBMU is 42.
[0147] This process is repeated until all SBMU encodings are completed.
[0148] If the MBMU does not receive the encoding request instruction from the SBMU within a certain time period, it can exit the encoding process and record the reason for the encoding failure. For example, the reason for encoding failure may include SBMU response timeout.
[0149] After all SBMUs have completed their encoding, the SBMU can control the IMMs to encode themselves. Specifically, the SBMU can pull high the power output line of the corresponding IMM to energize it. Then, each IMM encodes itself based on the encoding matching relationship between the SBMU and the IMM.
[0150] After multiple IMMs have been encoded, they can send feedback information to the host computer to indicate that the encoding of multiple IMMs has been completed.
[0151] Alternatively, to prevent accidental triggering of IMM encoding, when multiple IMMs have completed encoding, multiple SBMUs can send locking messages to multiple IMMs. These locking messages are used to lock multiple IMMs. This reduces the possibility of accidental triggering of IMM encoding.
[0152] After locking, multiple IMMs send feedback information to the host computer.
[0153] In this case, the IMM needs to be unlocked before the next control IMM encoding. Optionally, multiple SBMUs can be controlled to send unlock messages to their respective IMMs, and these unlock messages are used to unlock multiple IMMs.
[0154] In the embodiments of this application, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0155] Furthermore, without conflict, the various embodiments and / or technical features described in this application can be arbitrarily combined with each other, and the resulting technical solutions should also fall within the protection scope of this application.
[0156] The method for encoding an energy storage system according to embodiments of this application has been described in detail above. The encoding apparatus for an energy storage system according to embodiments of this application will be described below. It should be understood that the encoding apparatus for an energy storage system in embodiments of this application can execute the method for encoding an energy storage system in embodiments of this application.
[0157] Figure 4 A schematic block diagram of a first encoding device 400 of an energy storage system according to an embodiment of this application is shown. The first encoding device 400 of the energy storage system can be a first battery controller, such as... Figure 4 As shown, the first encoding device 400 of the energy storage system includes:
[0158] The first encoding unit 410 is used to encode itself through the second battery controller.
[0159] The driving unit 420 is used to drive the IMM after the first battery controller has completed encoding, so that the IMM is in a charged state and different IMMs in the IMM are encoded simultaneously based on the encoding matching relationship between the first battery controller and the IMM.
[0160] Optionally, in this embodiment of the application, the first encoding device 400 of the energy storage system further includes: a processing unit, used to prohibit the transmission of signals unrelated to encoding between the system and the second battery controller during the encoding process; and / or to prohibit the transmission of signals unrelated to encoding between the system and the IMM.
[0161] Optionally, in this embodiment, the first battery controller is connected to the IMM via a first bus, and the first battery controller is connected to the IMM via a second bus; the first encoding device 400 of the energy storage system further includes: a communication unit for receiving a first start encoding command sent by the second battery controller; a processing unit for silencing the first bus in response to the first start encoding command to prevent the transmission of signals unrelated to encoding between the first battery controller and the IMM; and / or the communication unit for receiving a second start encoding command sent by the second battery controller; the processing unit for silencing the second bus in response to the second start encoding command to prevent the transmission of signals unrelated to encoding between the first battery controller and the IMM.
[0162] Optionally, in this embodiment, the first encoding device 400 of the energy storage system further includes: a communication unit, configured to send a request encoding instruction to the second battery controller, the request encoding instruction including a first address of the first battery controller and a first matching code of the first battery controller, the first address being used by the second battery controller to determine whether it matches a second address, the first matching code being used by the second battery controller to determine whether it matches a second matching code, the second address and the second matching code being the address and matching code stored by the second battery controller, respectively; if they match, receiving a confirmation encoding instruction sent by the second battery controller, the confirmation encoding instruction including a third address and a third matching code, the third address being an address obtained based on the first address, and the third matching code being a matching code obtained based on the first matching code; the first encoding unit 410 is specifically configured to: encode itself in response to the confirmation encoding instruction sent by the second battery controller.
[0163] Optionally, in this embodiment of the application, the first battery controller includes a plurality of first battery controllers, the plurality of first battery controllers including the i-th first battery controller and the (i+1)-th first battery controller; wherein, when the i-th first battery controller is encoded, the matching code of the (i+1)-th first battery controller is incremented by 1, so that the (i+1)-th first battery controller is automatically in the encoding state.
[0164] Optionally, in this embodiment, the first address is an address in non-volatile memory.
[0165] Optionally, in this embodiment of the application, the first encoding device 400 of the energy storage system further includes: a communication unit, used to send a locking message to the IMM when the IMM encoding is completed, the locking message being used to lock the IMM.
[0166] It should be understood that the first encoding device 400 of the energy storage system can implement the corresponding operations in the encoding method 100 of the energy storage system, which will not be described in detail here for the sake of brevity.
[0167] Figure 5 A schematic block diagram of a second encoding device 500 of an energy storage system according to an embodiment of this application is shown. Figure 5 As shown, the second encoding device 500 of the energy storage system includes:
[0168] The processing unit 510 is used to determine whether the first battery controller and the IMM meet the encoding conditions.
[0169] The second encoding unit 520 is used to control the first battery controller to perform encoding according to the first address and / or the first matching code of the first battery controller when the first battery controller and the IMM meet the encoding conditions. After the encoding is completed, the first battery controller is used to drive the IMM so that different IMMs in the IMM are encoded simultaneously.
[0170] Optionally, in this embodiment of the application, the processing unit 510 is specifically used to: determine whether the first battery controller and the IMM meet the encoding conditions based on the status parameters of the first battery controller and / or the status parameters of the IMM; wherein, the status parameters of the first battery controller include the number of the first battery controllers and / or the address sequence number of the first battery controller, and the status parameters of the IMM include the number of the IMMs and / or the address sequence number of the IMMs.
[0171] Optionally, in this embodiment of the application, the processing unit 510 is specifically configured to: determine that the first battery controller and the IMM satisfy the encoding conditions if at least one of the following conditions is met: the number of address numbers of the first battery controller is less than the number of first battery controllers; the address numbers of the first battery controllers are not arranged in order; the number of address numbers of the IMM is less than the number of IMMs; and the address numbers of the IMMs are not arranged in order.
[0172] Optionally, in this embodiment of the application, the second encoding device 500 of the energy storage system further includes: a communication unit, configured to send a first start encoding command to the first battery controller, the first start encoding command being configured to prohibit the transmission of signals unrelated to encoding between the second battery controller and the first battery controller; and / or send a second start encoding command to the first battery controller, the second start encoding command being configured to prohibit the transmission of signals unrelated to encoding between the first battery controller and the corresponding IMM.
[0173] Optionally, in this embodiment, the second battery controller and the first battery controller are connected via a first bus, and the first battery controller and the IMM are connected via a second bus; the first start encoding instruction is used to silence the first bus, and / or the second start encoding instruction is used to silence the second bus.
[0174] Optionally, in this embodiment, the processing unit 510 is further configured to: determine whether the silence duration of the first bus is greater than or equal to a first preset duration, and / or determine whether the silence duration of the second bus is greater than or equal to a second preset duration; the second encoding unit 520 is specifically configured to: control the first battery controller to perform encoding when the silence duration of the first bus is greater than or equal to the first preset duration, and / or when the silence duration of the second bus is greater than or equal to the second preset duration.
[0175] Optionally, in this embodiment of the application, the number of the first battery controllers is multiple, and the processing unit 510 is further configured to: sequentially pull up the encoding output lines of the multiple first battery controllers to encode the pulled-up first battery controllers in sequence.
[0176] Optionally, in this embodiment, the first battery controller includes a first sub-battery controller, and the second encoding device 500 of the energy storage system further includes: a communication unit, configured to receive a request encoding instruction sent by the first sub-battery controller, the request encoding instruction including a first address of the first sub-battery controller and a first matching code of the first sub-battery controller; a processing unit 510 specifically configured to: determine whether the first address is consistent with a second address, and whether the first matching code is consistent with a second matching code, the second address and the second matching code being the address and matching code stored by the second battery controller, respectively; the communication unit configured to: send a confirmation encoding instruction to the first sub-battery controller if they are consistent, the confirmation encoding instruction including a third address and a third matching code, so that the first sub-battery controller performs encoding, the third address being an address obtained based on the first address, and the third matching code being a matching code obtained based on the first matching code.
[0177] Optionally, in this embodiment of the application, the first sub-battery controller is the i-th first battery controller among the first battery controllers, and the first battery controller further includes the (i+1)-th first battery controller; the second encoding unit 520 is specifically used to: after determining whether the first matching code is consistent with the second matching code, increment the second matching code by 1; and when the encoding of the first sub-battery controller is completed, automatically encode the (i+1)-th first battery controller based on the second matching code.
[0178] Optionally, in this embodiment, the first address is an address in non-volatile memory.
[0179] It should be understood that the second encoding device 500 of the energy storage system can implement the corresponding operations in the encoding method 200 of the energy storage system, which will not be described in detail here for the sake of brevity.
[0180] Figure 6 This is a schematic diagram of the hardware structure of the third encoding device 600 of the energy storage system according to an embodiment of this application. The third encoding device 600 of the energy storage system includes a memory 610, a processor 620, a communication interface 630, and a bus 640. The memory 610, the processor 620, and the communication interface 630 are interconnected via the bus 640.
[0181] The memory 610 may be a read-only memory (ROM), a static storage device, or a random access memory (RAM). The memory 610 may store a program, and when the program stored in the memory 610 is executed by the processor 620, the processor 620 and the communication interface 630 are used to execute the various steps of the energy storage system coding method of the embodiments of this application.
[0182] The processor 620 may be a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), graphics processing unit (GPU), or one or more integrated circuits, used to execute related programs to achieve the functions required by the units in the third encoding device 600 of the energy storage system of this application embodiment, or to execute the energy storage system encoding method of this application embodiment.
[0183] The processor 620 can also be an integrated circuit chip with signal processing capabilities. In implementation, each step of the energy storage system encoding method of this application embodiment can be completed by the integrated logic circuitry in the processor 620 or by software instructions.
[0184] The processor 620 described above can also be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented by the hardware processor, or implemented by a combination of hardware and software modules in the processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 610. The processor 620 reads the information in memory 610 and, in conjunction with its hardware, completes the functions required by the units included in the third encoding device 600 of the energy storage system in the embodiments of this application, or executes the energy storage system encoding method of the embodiments of this application.
[0185] The communication interface 630 uses transceiver devices, such as, but not limited to, transceivers, to enable communication between the third encoding device 600 of the energy storage system and other devices or communication networks.
[0186] Bus 640 may include a pathway for transmitting information between various components of the third encoding device 600 of the energy storage system (e.g., memory 610, processor 620, communication interface 630).
[0187] It should be noted that although the third encoding device 600 of the energy storage system described above only shows a memory, processor, and communication interface, those skilled in the art should understand that in specific implementations, the third encoding device 600 of the energy storage system may also include other devices necessary for normal operation. Furthermore, depending on specific needs, those skilled in the art should understand that the third encoding device 600 of the energy storage system may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the third encoding device 600 of the energy storage system may only include the devices necessary for implementing the embodiments of this application, and may not necessarily include... Figure 6 All the devices shown.
[0188] This application also provides a computer-readable storage medium for storing a computer program for performing the methods described in the various embodiments of this application.
[0189] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0190] This application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the above-described method for encoding the energy storage system.
[0191] Although this application has been described with reference to preferred embodiments, various modifications can be made thereto and components can be replaced with equivalents without departing from the scope of this application. In particular, the technical features mentioned in the various embodiments can be combined in any manner, provided there is no structural conflict. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A method for coding an energy storage system, characterized in that, The method includes: The first battery controller encodes itself through the second battery controller; When the first battery controller completes the encoding, the first battery controller drives the insulation detection module to put the insulation detection module in a energized state, and causes different insulation detection modules in the insulation detection module to encode simultaneously based on the encoding matching relationship between the first battery controller and the insulation detection module; The first battery controller encodes itself through the second battery controller, including: The first battery controller sends a request encoding instruction to the second battery controller. The request encoding instruction includes a first address of the first battery controller and a first matching code of the first battery controller. The first address is used by the second battery controller to determine whether it matches a second address. The first matching code is used by the second battery controller to determine whether it matches a second matching code. The second address and the second matching code are the address and matching code stored by the second battery controller, respectively. Under the condition of consistency, the first battery controller receives the confirmation code instruction sent by the second battery controller. The confirmation code instruction includes a third address and a third matching code. The third address is an address obtained based on the first address, and the third matching code is a matching code obtained based on the first matching code. In response to the confirmation encoding command sent by the second battery controller, the first battery controller encodes itself.
2. The method according to claim 1, characterized in that, The method further includes: During the encoding process, the first battery controller prohibits the transmission of signals unrelated to encoding between itself and the second battery controller; and / or The first battery controller prohibits the transmission of signals unrelated to encoding between itself and the insulation detection module.
3. The method according to claim 2, characterized in that, The first battery controller and the second battery controller are connected via a first bus, and the first battery controller and the insulation detection module are connected via a second bus. The first battery controller prohibits the transmission of signals unrelated to encoding between itself and the second battery controller, including: The first battery controller receives a first start encoding command sent by the second battery controller; In response to the first start encoding command, the first battery controller silences the first bus to prevent the transmission of encoding-independent signals with the second battery controller; and / or The first battery controller prohibits the transmission of signals unrelated to encoding between itself and the insulation detection module, including: The first battery controller receives a second start encoding command sent by the second battery controller; In response to the second start encoding command, the first battery controller silences the second bus to prevent the transmission of signals unrelated to encoding between the insulation detection module and the second bus.
4. The method according to any one of claims 1 to 3, characterized in that, The plurality of first battery controllers includes the i-th first battery controller and the (i+1)-th first battery controller; When the encoding of the i-th first battery controller is completed, the matching code of the (i+1)-th first battery controller is incremented by 1 so that the (i+1)-th first battery controller is automatically in the encoding state.
5. The method according to any one of claims 1 to 3, characterized in that, The first address is an address in non-volatile memory.
6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Once the insulation detection module has been encoded, the first battery controller sends a lock message to the insulation detection module, which is used to lock the insulation detection module.
7. A method for coding an energy storage system, characterized in that, The method includes: The second battery controller determines whether the first battery controller and the insulation detection module meet the coding conditions. The first battery controller includes a first sub-battery controller. When the first battery controller and the insulation detection module meet the encoding conditions, the second battery controller controls the first battery controller to perform encoding according to the first address and / or the first matching code of the first battery controller. After the encoding is completed, the first battery controller is used to drive the insulation detection module so that different insulation detection modules in the insulation detection module can be encoded simultaneously. Wherein, the second battery controller controls the first battery controller to perform encoding based on the first address and / or the first matching code of the first battery controller, including: The second battery controller receives a request encoding instruction sent by the first sub-battery controller, the request encoding instruction including the first address of the first sub-battery controller and the first matching code of the first sub-battery controller; The second battery controller determines whether the first address is consistent with the second address and whether the first matching code is consistent with the second matching code, wherein the second address and the second matching code are the address and matching code stored by the second battery controller, respectively. Under the condition of consistency, the second battery controller sends an acknowledgment encoding instruction to the first sub-battery controller. The acknowledgment encoding instruction includes a third address and a third matching code, so that the first sub-battery controller encodes itself. The third address is an address obtained based on the first address, and the third matching code is a matching code obtained based on the first matching code.
8. The method according to claim 7, characterized in that, The second battery controller determines whether the first battery controller and the insulation detection module meet the coding conditions, including: The second battery controller determines whether the first battery controller and the insulation detection module meet the coding conditions based on the status parameters of the first battery controller and / or the status parameters of the insulation detection module. The status parameters of the first battery controller include the number of first battery controllers and / or the address number of the first battery controller, and the status parameters of the insulation detection module include the number of insulation detection modules and / or the address number of the insulation detection module.
9. The method according to claim 7, characterized in that, The second battery controller determines whether the first battery controller and the insulation detection module meet the coding conditions based on the status parameters of the first battery controller and / or the status parameters of the insulation detection module, including: The second battery controller determines that the first battery controller and the insulation detection module meet the coding conditions if at least one of the following conditions is met: The number of address numbers of the first battery controller is less than the number of the first battery controllers; The address numbers of the first battery controller are not arranged in sequence; The number of address numbers for the insulation detection module is less than the number of insulation detection modules; The address numbers of the insulation detection module are not arranged in order.
10. The method according to any one of claims 7 to 9, characterized in that, The method further includes: The second battery controller sends a first start encoding command to the first battery controller, the first start encoding command being used to prohibit the transmission of signals unrelated to encoding between the second battery controller and the first battery controller; and / or The second battery controller sends a second start encoding command to the first battery controller. The second start encoding command is used to prevent the first battery controller from transmitting signals unrelated to encoding between itself and the corresponding insulation detection module.
11. The method according to claim 10, characterized in that, The second battery controller and the first battery controller are connected via a first bus, and the first battery controller is connected to the insulation detection module via a second bus. The first start encoding instruction is used to silence the first bus, and / or the second start encoding instruction is used to silence the second bus.
12. The method according to claim 11, characterized in that, The method further includes: The second battery controller determines whether the silence duration of the first bus is greater than or equal to a first preset duration, and / or determines whether the silence duration of the second bus is greater than or equal to a second preset duration; The second battery controller controls the first battery controller to perform encoding, including: When the silence duration of the first bus is greater than or equal to the first preset duration, and / or when the silence duration of the second bus is greater than or equal to the second preset duration, the second battery controller controls the first battery controller to perform encoding.
13. The method according to any one of claims 7 to 9, characterized in that, The number of the first battery controllers is multiple, and the method further includes: The second battery controller sequentially pulls up multiple encoding output lines of the first battery controller to encode the pulled-up first battery controllers in sequence.
14. The method according to any one of claims 7 to 9, characterized in that, The first sub-battery controller is the i-th first battery controller in the first battery controller, and the first battery controller also includes the (i+1)-th first battery controller; The second battery controller controls the first battery controller to perform encoding based on the first address and / or first matching code of the first battery controller, including: After determining whether the first matching code matches the second matching code, the second battery controller increments the second matching code by 1; Once the first sub-battery controller has been encoded, the second battery controller automatically encodes the (i+1)th first battery controller based on the second matching code.
15. The method according to any one of claims 7 to 9, characterized in that, The first address is an address in non-volatile memory.
16. An encoding device for an energy storage system, characterized in that, The device is a first battery controller, and the device includes: The encoding unit is used to encode itself through the second battery controller; The driving unit is used to drive the insulation detection module after the first battery controller has completed the encoding, so that the insulation detection module is in a energized state, and that different insulation detection modules in the insulation detection module are encoded simultaneously based on the encoding matching relationship between the first battery controller and the insulation detection module. The device further includes a communication unit for sending a request encoding instruction to the second battery controller. The request encoding instruction includes a first address of the first battery controller and a first matching code of the first battery controller. The first address is used by the second battery controller to determine whether it matches a second address. The first matching code is used by the second battery controller to determine whether it matches a second matching code. The second address and the second matching code are the address and matching code stored by the second battery controller, respectively. The communication unit is further configured to receive a confirmation encoding instruction sent by the second battery controller when there is consistency. The confirmation encoding instruction includes a third address and a third matching code. The third address is an address obtained based on the first address, and the third matching code is a matching code obtained based on the first matching code. The encoding unit is specifically used to encode itself in response to the confirmation encoding command sent by the second battery controller.
17. An encoding device for an energy storage system, characterized in that, The device is a second battery controller, and the device includes: A processing unit is used to determine whether the first battery controller and the insulation detection module meet the coding conditions, wherein the first battery controller includes a first sub-battery controller; The encoding unit is configured to control the first battery controller to perform encoding based on the first address and / or the first matching code of the first battery controller when the first battery controller and the insulation detection module meet the encoding conditions. After the encoding is completed, the first battery controller is used to drive the insulation detection module so that different insulation detection modules in the insulation detection module can be encoded simultaneously. The device further includes a communication unit for receiving a request encoding instruction sent by the first sub-battery controller, the request encoding instruction including a first address of the first sub-battery controller and a first matching code of the first sub-battery controller; The encoding unit is specifically used to determine whether the first address is consistent with the second address and whether the first matching code is consistent with the second matching code, wherein the second address and the second matching code are the address and matching code stored in the second battery controller, respectively. The communication unit is further configured to send an acknowledgment encoding instruction to the first sub-battery controller when there is consistency. The acknowledgment encoding instruction includes a third address and a third matching code, so that the first sub-battery controller encodes itself. The third address is an address obtained based on the first address, and the third matching code is a matching code obtained based on the first matching code.
18. An encoding device for an energy storage system, characterized in that, include: Memory, used to store programs; A processor for executing a program stored in the memory, wherein when the program stored in the memory is executed, the processor is configured to perform a method for encoding an energy storage system according to any one of claims 1 to 6.
19. An encoding device for an energy storage system, characterized in that, include: Memory, used to store programs; A processor for executing a program stored in the memory, wherein when the program stored in the memory is executed, the processor is configured to perform a method for encoding an energy storage system according to any one of claims 7 to 15.
Citation Information
Patent Citations
Energy storage system
CN110896157A