Energy storage high-voltage box device, energy storage charging and discharging control method and electronic equipment
Patent Information
- Application Number
- CN202611136032.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-09-15
Smart Images

Figure CN122763697A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of energy storage systems, and in particular to an energy storage high-voltage box device, an energy storage charging and discharging control method, and an electronic device. Background Technology
[0002] With the rapid development of energy storage technology, various high-voltage box products with integrated functions have emerged in order to save space and reduce costs. The "energy storage two-in-one high-voltage box" is one such example, which usually integrates the functions of the high-voltage distribution unit (PDU) of two battery clusters into a single physical box.
[0003] However, such two-in-one high-voltage boxes typically contain two relatively independent high-voltage circuits, each corresponding to the charging and discharging management of two battery clusters. In related technologies, to ensure safety and functional independence, two independent main controllers are commonly used to drive and control the two high-voltage circuits respectively, executing their respective power-on and power-off timing logic. However, this dual-main-controller architecture has the following significant drawbacks: 1) High cost: It requires two main control chips and two complete sets of peripheral circuits (such as power management, crystal oscillator, communication interface, etc.), which significantly increases the material cost.
[0004] 2) Large size: The two main control units and their connectors occupy a large amount of space inside the high-voltage box, which goes against the development trend of miniaturization and integration of high-voltage boxes.
[0005] 3) System complexity: The two master controllers need to communicate with each other via buses such as CAN to coordinate status and synchronize operations, which increases the complexity of the software architecture and communication load, and introduces potential communication failure risks.
[0006] 4) Diagnostic redundancy: Both systems need to independently implement fault diagnosis functions, resulting in low resource utilization. Cross-controller fault diagnosis and linkage protection are not direct and efficient enough, and there is a response delay.
[0007] 5) Insufficient security coordination: When a serious fault occurs in a certain loop, it is necessary to notify another controller to perform linkage protection through bus communication. Communication delay may affect the overall security of the system. Summary of the Invention
[0008] Therefore, the purpose of this application is to propose an energy storage high-voltage box device, an energy storage charging and discharging control method, and an electronic device, which uses a single main control unit to realize the charging and discharging control of two sets of battery clusters, thereby reducing costs and significantly reducing the volume of the high-voltage box.
[0009] This application provides an energy storage high-voltage box device, which includes: two independent relay circuits connected to two battery clusters respectively; and a main control unit connected to the two independent relay circuits, wherein the main control unit is configured to control the on / off state of the relay circuits to achieve charging and discharging control of the corresponding battery clusters.
[0010] For example, the main control unit includes a shared memory region for storing a global interlock flag. In the case of mutual exclusion between the charging and discharging of the two battery clusters, the main control unit is further configured to: read the global interlock flag when a charging or discharging command for the first battery cluster is received; enter a waiting state when the global interlock flag indicates that the second battery cluster is in a charging or discharging state, and execute the charging or discharging command after the global interlock flag indicates an idle state.
[0011] For example, the main control unit includes a communication interface, which includes at least two independent CAN communication circuits. Each CAN communication circuit corresponds to one of the battery clusters, and the main control unit communicates with the slave control units of the corresponding battery clusters through the CAN communication circuits.
[0012] For example, the energy storage high-voltage box device further includes a signal acquisition circuit, which corresponds one-to-one with the relay circuit. The signal acquisition circuit is used to acquire the operating signals of the relay circuit. The main control unit is also used to receive multiple operating signals and perform fault diagnosis and inter-cluster status assessment on the relay circuit based on the multiple operating signals.
[0013] For example, the operating signal includes a voltage signal, and the main control unit is also used to calculate the inter-cluster voltage difference based on the voltage signals of the two battery clusters, and to stop powering on when the inter-cluster voltage difference is greater than a voltage difference threshold.
[0014] For example, the main control unit is further configured to determine the fault level based on the operating signal and implement a fault strategy corresponding to the fault level; if the absolute value of the operating signal is greater than a first threshold and less than or equal to a second threshold, the fault level is determined to be a first level, and the fault strategy is determined to issue a first prompt message to trigger an alarm; if the absolute value of the operating signal is greater than the second threshold and less than or equal to a third threshold, the fault level is determined to be a second level, and the fault strategy is determined to issue a second prompt message to trigger an alarm and determine whether to escalate the process based on the changing trend of the operating signal; if the absolute value of the operating signal is greater than the third threshold, the fault level is determined to be a third level, and the fault strategy is determined to shut down the corresponding relay circuit.
[0015] For example, the main control unit is also configured to: control the two sets of relay circuits to shut down when the fault level of a single battery cluster is the third level.
[0016] For example, the operating signal includes at least one of voltage signal, current signal, communication signal, and temperature signal.
[0017] Another embodiment of this application provides a control method for charging and discharging energy storage. The method is applied to the main control unit in the above-mentioned energy storage high-voltage box device. The main control unit is connected to two independent relay circuits. The method includes: controlling the on / off state of the relay circuits to realize the charging and discharging control of the corresponding battery clusters.
[0018] For example, the main control unit includes a shared memory region for storing a global interlock flag. In the case of mutual exclusion between the charging and discharging of the two battery clusters, the method further includes: upon receiving a charging or discharging command for the first battery cluster, reading the global interlock flag; when the global interlock flag indicates that the second battery cluster is in a charging or discharging state, entering a waiting state until the global interlock flag indicates an idle state, and then executing the charging or discharging command.
[0019] Another embodiment of this application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described energy storage charging and discharging control method.
[0020] Another embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described energy storage charging and discharging control method.
[0021] In the above embodiments, the energy storage high-voltage box device includes: two independent circuits, each connected to one of two battery clusters; and a main control unit connected to the two independent circuits, configured to control the on / off state of the circuits to achieve charging and discharging control of the corresponding battery clusters. This invention uses a single main control unit to achieve charging and discharging control of two battery clusters, reducing costs and significantly decreasing the size of the high-voltage box. Attached Figure Description
[0022] Figure 1 A schematic diagram of the architecture of a conventional two-in-one high-voltage box provided for implementation of related technologies; Figure 2 A schematic diagram of the energy storage high-voltage box device provided in the embodiments of this application; Figure 3 A block diagram of the integrated main control hardware provided for the embodiments of this application; Figure 4Software logic control flowchart provided for embodiments of this application; Figure 5 A block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0024] To facilitate understanding of the high-voltage box structure of this application, the architecture of a traditional two-in-one high-voltage box will be briefly described below.
[0025] As an example, such as Figure 1 As shown, a traditional two-in-one high-voltage enclosure includes two main control units, which can be referred to as main control unit 1 and main control unit 2. Main control unit 1 and main control unit 2 are used to control corresponding relay circuits composed of multiple relays. These relay circuits include components such as pre-charge relays, main positive relays, main negative relays, and circuit breakers. Power-on and power-off control of the corresponding battery clusters can be achieved by controlling the on / off states of these relays. However, in traditional two-in-one high-voltage enclosures, the main control units are separate, each managing its corresponding battery cluster. Even when performing joint control, main control unit 1 and main control unit 2 communicate via a CAN bus, making cross-battery cluster fault diagnosis and linkage protection less direct and efficient, resulting in response delays.
[0026] Based on this, this application addresses the problems of high cost, large size, system complexity, and insufficient safety coordination caused by the use of dual master controllers in traditional technologies. It proposes a highly integrated single-chip master controller solution, which aims to realize all the functions of the original two master controllers with a single master controller chip in the high-voltage box and optimize the safety control logic.
[0027] Figure 2 This is a schematic diagram of an energy storage high-voltage box device according to an embodiment of this application.
[0028] As an example, such as Figure 2 As shown, the energy storage high-voltage box device 100 includes Two independent relay circuits 10 are connected to two battery packs respectively; The main control unit 20 is connected to two independent relay circuits and is configured to control the on / off state of the relay circuits to achieve charging and discharging control of the corresponding battery clusters.
[0029] For example, such as Figure 2As shown, the main control unit 20 is the only main control chip in the high-voltage box device 100. There is no second main control chip in the high-voltage box device 100. The computing power, storage resources (e.g., Flash and RAM) and peripheral interface resources of the main control unit 20 are sufficient to handle the drive control of two sets of high-voltage relays and two independent power-on and power-off logics at the same time.
[0030] For example, a main control unit 20 is used to control two independent relay circuits 10. Each relay circuit 10 corresponds to a battery cluster; for example, battery cluster 1 corresponds to one relay circuit, and battery cluster 2 corresponds to one relay circuit. The two independent relay circuits each have corresponding relay drive circuits, which are also independent of each other and integrated on the same main control board. They receive two independent control signals from a single main control chip and are used to drive the relay coils of cluster 1 and cluster 2, respectively.
[0031] For example, at the software level, within a single main control unit, two independent software logic state machines (or tasks / threads) are run through software architecture design, which strictly correspond to the power-on and power-off timing and control strategies of battery cluster 1 and battery cluster 2, respectively. That is, these two logic state machines maintain complete isolation and independence at the software level, and each executes the preset power-on and power-off timing logic independently without interfering with each other.
[0032] For example, at the hardware resource level, the hardware resources of a single main control unit, such as the MCU core, timers, and ADC, are time-division multiplexed through an embedded operating system or real-time scheduler to efficiently serve two independent control logics.
[0033] The energy storage high-voltage box structure of this application saves the cost of a main control chip, a complete set of peripheral circuits (power supply, crystal oscillator, reset circuit, etc.) and related structural components and connectors, resulting in good economic benefits. Moreover, the single main control board design greatly saves the internal space of the high-voltage box, freeing up space for other components in the container, or directly making the high-voltage box smaller in size.
[0034] As an example, the main control unit includes a communication interface, which includes at least two independent CAN communication circuits. Each CAN communication circuit corresponds to a battery cluster, and the main control unit communicates with the slave control unit of the corresponding battery cluster through the CAN communication circuit.
[0035] For example, the main control unit 20 includes multiple communication interfaces, such as a CAN communication interface. A single main control unit 20 communicates with the slave control units of the corresponding battery clusters through the multiple CAN communication interfaces. In addition, the single main control unit 20 also communicates with the battery stack controller (BAU) through the CAN communication interface to receive BAU commands and report status, eliminating the need for point-to-point communication between internal controllers.
[0036] This application eliminates the need for communication between the two main controllers and the complex coordination logic, reduces the complexity and development difficulty of the system's hardware and software, and improves the system's reliability.
[0037] As an example, the energy storage high-voltage box device also includes a signal acquisition circuit, which corresponds one-to-one with the relay circuit. The signal acquisition circuit is used to acquire the operating signals of the relay circuit. The main control unit is also used to receive multiple operating signals and perform fault diagnosis and inter-cluster status assessment on the relay circuit based on the multiple operating signals.
[0038] For example, the signal acquisition circuit corresponds one-to-one with the relay circuit, and is used to simultaneously acquire the operating signals of the two clusters of relay circuits. These operating signals include, but are not limited to: status feedback (auxiliary contact) signals of each relay in both clusters, total voltage and total current sampling signals of both clusters, and insulation detection signals of both clusters. All these signals are input to a single main control unit. The single main control unit acquires and processes all signals from the two high-voltage circuits in real time and in parallel, performing unified fault diagnosis and status monitoring. The signal acquisition circuit can be a high-precision ADC module.
[0039] The energy storage high-voltage box of this application centrally processes all operating signals, and fault diagnosis does not require cross-controller communication, which facilitates a more comprehensive and rapid cross-system linkage fault diagnosis and protection strategy.
[0040] As an example, the main control unit includes a shared memory region used to store global interlock flags. In cases where the charging and discharging of the two battery clusters are mutually exclusive, the main control unit is also used for: Upon receiving a charge / discharge command for the first battery cluster, read the global interlock flag. When the global interlock flag indicates that the second battery cluster is in a charging or discharging state, it enters a waiting state until the global interlock flag indicates an idle state, at which point it executes the charging and discharging command.
[0041] For example, under normal circumstances, the two battery clusters charge and discharge according to their respective timing sequences, meaning they can operate simultaneously. If hardware resources are limited or demanding, a mutual exclusion function for charging and discharging the two battery clusters can be enabled. The main control unit includes a shared memory area used to store a global interlock flag. When the two battery clusters are mutually exclusive in charging and discharging, when one battery cluster is powered on, the global interlock flag needs to be read to designate the battery cluster to be powered on as the first battery cluster. If, at this time, the global interlock flag indicates that the second battery cluster is in a charging or discharging state, it enters a waiting state until the global interlock flag indicates an idle state, at which point the charging and discharging command is executed.
[0042] For example, in the shared memory region of a single master control unit, a global interlock flag (e.g., uint8_t charge_discharge_lock) is defined, and its value can be defined as follows: a value of 0x00 indicates an idle state, allowing any loop to initiate a charge / discharge operation. A value of 0x01 indicates that cluster 1 is charging or discharging, and cluster 2 is prohibited from operating. A value of 0x02 indicates that cluster 2 is charging or discharging, and cluster 1 is prohibited from operating.
[0043] For example, taking the power-on of battery cluster 1 as an example, when the software logic state machine corresponding to battery cluster 1 needs to perform a charging or discharging operation, it first reads the value of charge_discharge_lock. If the value is 0x00, charge_discharge_lock is atomically set to 0x01, and then the charging and discharging operation of cluster 1 is executed. If the value is 0x02 (indicating that cluster 2 is charging or discharging), cluster 1 waits until the flag bit is restored to 0x00 before attempting to acquire the lock again. If the value is 0x01 (indicating that it is already occupied by cluster 1 itself), it continues to execute normally. After the operation of cluster 1 is completed, charge_discharge_lock is reset to 0x00, releasing the mutex lock. The execution logic of cluster 2 is symmetrical.
[0044] It should be noted that, to ensure the atomicity of the mutual exclusion check (i.e., the "read-check-write" process is not interrupted), the main control unit disables interrupts (e.g., _disable_irq()) when performing the above operations, and then restores interrupts (e.g., _enable_irq()) after completing the flag read / write. If ordinary global variables are used directly without critical section protection, interrupts may interrupt the main program's flag operations at any time, leading to data races and interlock failures.
[0045] The charge / discharge interlock management of this application determines the interlock by using a global flag bit or shared memory within a single master control unit when two clusters need to be prevented from charging and discharging simultaneously. The decision time is in the microsecond range, which is far superior to the bus communication method of traditional dual master control schemes.
[0046] As an example, the operating signals include voltage signals. The main control unit is also used to calculate the inter-cluster voltage difference based on the voltage signals of the two sets of battery clusters, and to stop powering on if the inter-cluster voltage difference is greater than the voltage difference threshold.
[0047] For example, a single main control unit uniformly acquires the voltage, temperature, insulation, and other status information of the two clusters and performs safety condition judgments such as inter-cluster voltage difference. When two clusters (e.g., cluster 1 and cluster 2) are connected in parallel to the DC bus, if the voltage difference between the two clusters is too large, a huge inrush circulating current will be formed at the moment of parallel connection, which may damage relay contacts, fuses, and even the battery itself. Therefore, this application sets an inter-cluster voltage difference threshold U1 (e.g., U1=5V, the specific value is determined according to the rated voltage of the battery clusters and the system design). The main control unit acquires the voltage values V1 and V2 of the two clusters in real time and calculates the voltage difference ΔV=|V1-V2|. When ΔV>U1, it is determined that the inter-cluster voltage difference exceeds the limit, an inter-cluster voltage difference fault is reported, and the power-on process is terminated. When ΔV≤U1, the inter-cluster voltage difference is determined to be safe, and the power-on process is allowed to continue.
[0048] As an example, the state machines of the two battery clusters execute power-on logic independently. For instance, the software logic state machine corresponding to cluster 1 executes the cluster 1 power-on logic according to a preset timing sequence (closing the negative relay → closing the pre-charge relay → detecting pre-charge completion → closing the main positive relay → opening the pre-charge relay); simultaneously, the software logic state machine corresponding to cluster 2 executes the cluster 2 power-on logic independently. The two sets of logic do not interfere with each other and execute in parallel.
[0049] As an example, the main control unit is also used to determine the fault level based on the operating signals and implement the fault strategy corresponding to the fault level; If the absolute value of the running signal is greater than the first threshold and less than or equal to the second threshold, the fault level is determined to be the first level, and the fault strategy is to issue the first prompt message to trigger an alarm. If the absolute value of the operating signal is greater than the second threshold and less than or equal to the third threshold, the fault level is determined to be the second level, the fault strategy is to issue a second prompt message to trigger an alarm, and determine whether to escalate the handling based on the changing trend of the operating signal. If the absolute value of the operating signal is greater than the third threshold, the fault level is determined to be the third level, and the fault strategy is to shut down the corresponding relay circuit.
[0050] For example, during the normal operation of the two battery clusters, the main control unit continuously monitors all acquired signals. Once the ADC of a certain loop detects a fault such as overcurrent, abnormal voltage, or decreased insulation resistance, the corresponding software logic state machine immediately triggers the protection process of that loop. The fault level is determined based on the acquired operating signals, and a fault strategy corresponding to the fault level is implemented.
[0051] For example, the fault levels can be divided into three levels, and the operating signals include at least one of voltage signals, current signals, communication signals, and temperature signals. The three fault levels are described in detail below.
[0052] For example, if the absolute value of the operating signal is greater than a first threshold and less than or equal to a second threshold, the fault level is determined to be Level 1, and the fault strategy is to issue a first alert message to trigger an alarm. It can be understood that the absolute value of the operating signal is the absolute value of the operating signal parameter, such as the absolute value of voltage or current. The first threshold can be the normal value of the parameter, and the second threshold can be a warning threshold. When the parameter deviates from the normal value but does not exceed the warning threshold, it does not affect the circuit function. For example, slight voltage fluctuations or occasional communication errors can be identified as Level 1, and the corresponding fault strategy is to issue a first alert message to trigger an alarm, i.e., only recording and alarming are performed, without any disconnection.
[0053] For example, the third threshold can be a protection threshold. It can be understood that if the absolute value of the operating signal is greater than the second threshold and less than or equal to the third threshold, it means that the parameter exceeds the warning threshold but does not exceed the protection threshold. For example, in scenarios such as high current, decreased insulation resistance, or increased temperature, the single-circuit performance deteriorates, and the fault level is determined to be the second level. The corresponding fault strategy is to issue a second prompt message to alarm and determine whether to upgrade the processing based on the changing trend of the operating signal. That is, to issue a warning and continuously monitor, and decide whether to upgrade the processing based on the trend.
[0054] For example, if the absolute value of the operating signal is greater than the third threshold, that is, the parameter exceeds the protection threshold, such as in the case of short circuit, overcurrent, insulation failure, thermal runaway, etc., this scenario will directly threaten the safety of equipment or personnel. The fault level is determined to be the third level, and the corresponding fault strategy is to shut down the corresponding relay circuit.
[0055] For example, this application proposes a global security collaborative protection mechanism to achieve cross-loop linkage protection. When a serious fault occurs in any loop, the main control unit utilizes the high-speed data path inside the chip (without needing to go through an external communication bus) to complete fault identification and decision-making within microseconds. Furthermore, it makes graded decisions based on the severity of the fault. When a fault occurs in a certain loop, the main control unit executes differentiated protection strategies based on the above fault level determination results.
[0056] As an example, the main control unit is also used to control the shutdown of two sets of relay circuits when the fault level of a single battery cluster is level three.
[0057] For example, the fault strategies for the two battery clusters can be executed separately or jointly. The separate execution strategy is as follows: If only the Cluster 1 circuit experiences a serious fault, all relays in the Cluster 1 circuit will be disconnected, while the Cluster 2 circuit will continue to operate normally.
[0058] If only the cluster 2 circuit experiences a serious fault, all relays in the cluster 2 circuit will be disconnected, while the cluster 1 circuit will continue to operate normally.
[0059] If both Cluster 1 and Cluster 2 circuits experience a serious fault at the same time, all relays in both circuits will be disconnected simultaneously.
[0060] For example, of course, since the battery clusters are adjacent, a failure in one battery cluster may also affect the other battery cluster. For instance, if a battery cluster overheats and catches fire, the main control unit can control both sets of relay circuits to shut down in order to protect the other battery cluster in advance.
[0061] As an example, after the fault circuit is cleared, the main control unit can only close the relay to resume operation after confirming that the parameters are normal through self-test. That is, after the global shutdown, power can only be restored after external confirmation of safety.
[0062] The global fault cutoff decision of this application can be completed inside the chip, reducing the response time from milliseconds to microseconds, which significantly improves the overall security of the system.
[0063] Figure 3 This is a block diagram of the integrated main control hardware according to an embodiment of this application.
[0064] like Figure 3 As shown, the single master control chip can be a 32-bit multi-core MCU, with one core dedicated to real-time control tasks (such as relay drive timing, ADC signal acquisition and processing), and another core dedicated to communication and diagnostic tasks (such as CAN communication protocol stack, system self-diagnosis, fault logging, etc.), ensuring sufficient performance and task isolation. The single master control chip integrates two sets of relay drive circuits, used to drive relay circuits consisting of a main negative relay, a pre-charge relay, a main positive relay, and a pre-charge relay. The relay drive circuits can use multi-channel intelligent high-side drive chips, allowing a single chip to drive multiple relay coils, further saving PCB area and simplifying wiring. The signal acquisition circuit may include a high-precision ADC module for real-time sampling of voltage, current signals, and insulation status of the two high-voltage circuit clusters; the sampled data is directly sent to the single master control chip for processing. The communication interface includes at least two independent CAN communication circuits, one for communication with the slave control units of the two battery clusters, and one for communication with the battery stack controller (BAU).
[0065] At the software level, this application may adopt a layered software architecture based on AutoSAR or similar standards. Two isolated software components are created in the application layer to independently manage the power-on and power-off logic of the charging and discharging circuits for cluster 1 and cluster 2, respectively. The runtime environment and embedded operating system are responsible for scheduling the tasks of these two software components and managing the time-sharing access to hardware resources.
[0066] Figure 4 This is a software logic control flowchart of one embodiment of this application.
[0067] like Figure 4 As shown, system initialization is performed first. After the main control chip powers on, it performs hardware initialization, peripheral self-test, and communication link detection. After passing the self-test, it enters the ready state. Then, a ready judgment is performed to determine if there is a fault state that prohibits high voltage. If not, it enters the waiting state for power-on command. The single main control chip uniformly obtains the voltage, temperature, insulation and other status information of the two clusters and performs safety condition judgment such as inter-cluster voltage difference. If the inter-cluster voltage difference is greater than U1, an inter-cluster voltage difference fault is reported. If the inter-cluster voltage difference is less than or equal to U1, the dual logic state machine independently executes the power-on. Before power-on, it is also necessary to check that the combiner cabinet isolating switch and the high-voltage box circuit breaker are closed. Cluster 1 first closes the negative relay and pre-charge relay to check whether the pre-charge of Cluster 1 is completed. If the current is less than the preset current within a certain period of time, it means that the pre-charge of Cluster 1 is completed. Then Cluster 1 closes the main positive relay and opens the pre-charge relay. At the same time, the software logic state machine corresponding to Cluster 2 independently executes the power-on logic of Cluster 2. The two sets of logic do not interfere with each other and execute in parallel. Cluster 2 first closes the negative relay and the pre-charge relay to check whether the pre-charge of Cluster 2 is completed. If the current is less than the preset current within a certain period of time, it means that the pre-charge of Cluster 2 is completed. Then Cluster 2 closes the main positive relay and opens the pre-charge relay.
[0068] Verification shows that the single master control chip of the energy storage high-voltage box device of this application can successfully drive two clusters of 12 relays and execute complex power-on and power-off logic. The dual logic state machines can operate independently without conflict, with a task switching time of less than 100 microseconds and a global fault cutoff response time of less than 50 microseconds. This is two orders of magnitude better than the dual master control solution (about 5~10 milliseconds), with hardware costs reduced by about 25% and PCB area reduced by more than 20%.
[0069] This application also proposes a control method for energy storage charging and discharging.
[0070] As an example, the energy storage charging and discharging control method is applied to the main control unit 20 in the energy storage high-voltage box device 100 described above. The main control unit is connected to two independent relay circuits. The energy storage charging and discharging control method includes: controlling the relay circuits to achieve charging and discharging control of the corresponding battery clusters.
[0071] As an example, the main control unit includes a shared memory region used to store global interlock flags. In cases where the charging and discharging of the two battery clusters are mutually exclusive, the energy storage charging and discharging control method also includes: Upon receiving a charge / discharge command for the first battery cluster, read the global interlock flag. When the global interlock flag indicates that the second battery cluster is in a charging or discharging state, it enters a waiting state until the global interlock flag indicates an idle state, at which point it executes the charging and discharging command.
[0072] This application also proposes a computer-readable storage medium.
[0073] In this embodiment, a computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, it implements the steps of the above-described energy storage charging and discharging control method.
[0074] Figure 5 A block diagram of an electronic device provided in an embodiment of this application.
[0075] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described energy storage charging and discharging control method.
[0076] like Figure 5 As shown, for ease of understanding, embodiments of this application illustrate a specific electronic device.
[0077] Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0078] like Figure 5 As shown, the device includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the electronic device. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0079] Multiple components in the electronic device are connected to the I / O interface 505. These components include: an input unit 506, such as a keyboard or mouse; an output unit 507, such as various types of displays or speakers; a storage unit 508, such as a disk or optical disk; and a communication unit 509, such as a network interface card (NIC), a modem, or a wireless transceiver. The communication unit 509 allows the electronic device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0080] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods described above, such as the energy storage charging and discharging control method. For example, in some embodiments, the energy storage charging and discharging control method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, the energy storage charging and discharging control method described above can be executed. Alternatively, in other embodiments, the computing unit 501 can be configured to perform the energy storage charging and discharging control method by any other suitable means (e.g., by means of firmware).
[0081] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this application, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0082] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0083] In the description of this application, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this application, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0084] In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0085] Furthermore, the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of technical features indicated in this embodiment. Therefore, features defined with terms such as "first" and "second" in the embodiments of this application can explicitly or implicitly indicate that the embodiment includes at least one of those features. In the description of this application, the word "multiple" means at least two or more, such as two, three, four, etc., unless otherwise explicitly and specifically defined in the embodiments.
[0086] In this application, unless otherwise explicitly specified or limited in the embodiments, the terms "installation," "connection," "joining," and "fixing" appearing in the embodiments should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral part; it can also be a mechanical connection, an electrical connection, etc. Of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication between two components, or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific implementation.
[0087] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0088] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. An energy storage high voltage tank apparatus, characterized by, The energy storage high-voltage box device includes: Two independent relay circuits are connected to two battery packs respectively; The main control unit is connected to the two independent relay circuits and is configured to control the on / off state of the relay circuits to achieve charging and discharging control of the corresponding battery clusters.
2. The energy storage high voltage tank device of claim 1, wherein, The main control unit includes a shared memory region for storing global interlock flags. In the event of mutual exclusion during charging and discharging of the two battery clusters, the main control unit is also used for: Upon receiving a charge / discharge command for the first battery cluster, read the global interlock flag bit; When the global interlock flag indicates that the second battery cluster is in a charging or discharging state, it enters a waiting state until the global interlock flag indicates an idle state, and then executes the charging and discharging command.
3. The energy storage high-voltage box device according to claim 1, characterized in that, The main control unit includes a communication interface, which includes at least two independent CAN communication circuits. Each CAN communication circuit corresponds to one of the battery clusters. The main control unit communicates with the slave control units of the corresponding battery clusters through the CAN communication circuits.
4. The energy storage high-voltage box device according to claim 1, characterized in that, The energy storage high-voltage box device also includes a signal acquisition circuit, which corresponds one-to-one with the relay circuit. The signal acquisition circuit is used to acquire the operating signals of the relay circuit. The main control unit is also used to receive multiple operating signals and perform fault diagnosis and inter-cluster status assessment on the relay circuit based on the multiple operating signals.
5. The energy storage high-voltage box device according to claim 4, characterized in that, The operating signals include voltage signals. The main control unit is also used to calculate the inter-cluster voltage difference based on the voltage signals of the two battery clusters, and to stop powering on when the inter-cluster voltage difference is greater than the voltage difference threshold.
6. The energy storage high-voltage box device according to claim 4, characterized in that, The main control unit is also used to determine the fault level based on the operating signal and implement the fault strategy corresponding to the fault level; If the absolute value of the operating signal is greater than a first threshold and less than or equal to a second threshold, the fault level is determined to be the first level, and the fault strategy is determined to issue a first prompt message to trigger an alarm. If the absolute value of the operating signal is greater than the second threshold and less than or equal to the third threshold, the fault level is determined to be the second level, and the fault strategy is determined to issue a second prompt message to alarm and determine whether to upgrade the processing based on the changing trend of the operating signal. If the absolute value of the operating signal is greater than the third threshold, the fault level is determined to be the third level, and the fault strategy is determined to be to shut down the corresponding relay circuit.
7. The energy storage high-voltage box device according to claim 6, characterized in that, The main control unit is also used to: control the two sets of relay circuits to shut down when the fault level of a single battery cluster is the third level.
8. The energy storage high-voltage box device according to claim 4, characterized in that, The operating signal includes at least one of voltage signal, current signal, communication signal, and temperature signal.
9. A method for controlling the charging and discharging of energy storage, characterized in that, The method is applied to the main control unit of the energy storage high-voltage box device according to any one of claims 1-7, wherein the main control unit is connected to two independent relay circuits, and the method includes: The relay circuit is switched on and off to control the charging and discharging of the corresponding battery cluster.
10. The energy storage charging and discharging control method according to claim 9, characterized in that, The main control unit includes a shared memory region for storing global interlock flags. In cases where the charging and discharging of the two battery clusters are mutually exclusive, the method further includes: Upon receiving a charge / discharge command for the first battery cluster, read the global interlock flag bit; When the global interlock flag indicates that the second battery cluster is in a charging or discharging state, it enters a waiting state until the global interlock flag indicates an idle state, and then executes the charging and discharging command.
11. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the energy storage charging and discharging control method according to any one of claims 9-10.
12. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the steps of the energy storage charging and discharging control method according to any one of claims 9-10.