WIFI-based energy storage control system and remote upgrading method thereof

By introducing WIFI modules into the energy storage system, point-to-point wireless communication is realized, and the problems of inefficient and poor security of firmware updates in traditional energy storage systems are solved, efficient and secure remote firmware upgrades are achieved, and the usability and user experience of the system are improved.

CN120075049APending Publication Date: 2025-05-30FOSHAN HECHU ENERGY TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510223400.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

Traditional energy storage systems have low efficiency and poor security, high maintenance costs, affect the normal operation of the system, and the software update cycle is too long to quickly respond to security vulnerabilities or performance problems.

Method used

The energy storage control system based on WIFI is adopted to complete firmware updates through point-to-point WIFI wireless communication, realize contactless software updates, and use the WIFI module to establish a wireless connection with the upper computer, transmit upgrade instructions and data, and perform downlink transmission through the communication link of the energy storage system, realizing remote upgrades of the cluster controller and PACK controller.

Benefits of technology

It greatly improves the efficiency of firmware updates, reduces maintenance costs, improves operational security, shortens system downtime, realizes rapid response to security vulnerabilities and performance issues, and improves user experience and system availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075049A_ABST
    Figure CN120075049A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of energy storage control systems, and discloses a WIFI-based energy storage control system and a remote upgrading method thereof.In the system, an upper computer sends an upgrading instruction and upgrading data to a WIFI module, and the WIFI module receives the received upgrading instruction and upgrading data through a serial port in a transparent transmission mode and transmits the received upgrading instruction and upgrading data to a heap controller in a transparent transmission mode; after reading the received upgrading instruction and upgrading data, the heap controller analyzes the instruction and stores the upgrading data into an EMMC (Embedded Multi Media Card) memory; and when the heap controller issues upgrade data to the cluster controller or the PACK controller, the upgrade data is read from the corresponding area in the EMMC memory and is forwarded through the downlink communication link. According to the method, firmware updating is completed through point-to-point WIFI wireless communication, non-contact software updating is achieved, the upgrading efficiency is greatly improved, and the maintenance cost is reduced; and meanwhile, the personnel are prevented from directly contacting the energy storage equipment, and the operation safety of the personnel is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy storage control systems, and particularly to a WIFI-based energy storage control system and a remote upgrade method thereof. Background Art

[0002] An electrochemical energy storage system includes monomer cells, battery modules, battery clusters and battery stacks. The control of the entire system is relatively complex and involves a variety of devices, such as a power conversion system (PCS), a battery management system (BMS), etc. Multiple types of boards and multiple processors (such as ARM, FPGA, and DSP, etc.) are required for coordinated control, involving a stack controller, a cluster controller, a battery PACK controller, etc. There are many inconveniences and limitations in the firmware update method of traditional energy storage systems: (1) High maintenance cost: Different boards use different interfaces, dedicated burning software and tools. Operation and maintenance personnel need to install a lot of software, be familiar with different interface wiring, and master complex software operation steps. The operation is cumbersome and error-prone. And when personnel arrive at the site for operation, they often need to open the cabinet door, remove the shell, connect cables and connect proprietary tools. Disassembling components is very likely to cause equipment damage, which puts high requirements on on-site operations and greatly reduces the safety of the system. In addition, there are a large number of energy storage system control boards. Upgrading each board manually not only takes time and effort, but also increases labor costs; (2) Affect the normal operation of the system: For general firmware upgrades, the energy storage system needs to be in a stopped working state. When performing large-scale firmware upgrades, the system needs to be shut down for a long time. Therefore, the upgrade of the energy storage system needs to be carried out at a specific time node, which brings additional complexity and inconvenience; (3) The software update cycle is too long: For the situation where security vulnerabilities or performance problems may be found during the operation of the energy storage system and the software needs to be updated in a timely manner, it is impossible to respond quickly.

[0003] Therefore, how to solve the problems of low firmware update efficiency and poor security of traditional energy storage systems has become a technical problem that needs to be solved urgently in this field. Summary of the Invention

[0004] The purpose of the present invention is to provide a WIFI-based energy storage control system and a remote upgrade method thereof, which complete firmware updates through point-to-point WIFI wireless communication, realize non-contact software updates, greatly improve the upgrade efficiency, and reduce the maintenance cost; at the same time, it avoids direct contact between personnel and energy storage equipment, effectively improving the safety of personnel operations.

[0005] To achieve the above object, the present invention provides the following solution:

[0006] A WIFI-based energy storage control system includes a WIFI module, a battery stack control layer, a battery cluster control layer, and a battery module control layer;

[0007] The battery stack control layer includes a stack controller, and the stack controller includes an FPGA processor 1 and an EMMC memory. The FPGA processor 1 is communicatively connected to the WIFI module through a serial port. Different storage areas are partitioned in the EMMC memory for storing the upgrade data corresponding to the cluster controller and the PACK controller respectively;

[0008] The battery cluster control layer includes multiple cluster controllers, with one cluster controller provided for each battery cluster. The cluster controller is communicatively connected to the stack controller of the battery stack where it is located;

[0009] The battery module control layer includes multiple PACK controllers, with one PACK controller connected to each battery PACK. The PACK controller is communicatively connected to the cluster controller of the battery cluster where it is located;

[0010] The WIFI module is wirelessly communicatively connected to the upper computer;

[0011] Data interaction occurs between the upper computer and the WIFI module. The data interaction includes: the upper computer sends an upgrade instruction and upgrade data to the WIFI module. The WIFI module adopts a transparent transmission mode, receives the received upgrade instruction and upgrade data through the serial port and transparently transmits them to the stack controller; the stack controller is used to read the received upgrade instruction and upgrade data, perform instruction parsing, and store the upgrade data into the EMMC memory; when the stack controller sends the upgrade data to the cluster controller or the PACK controller, it reads the upgrade data from the corresponding area in the EMMC memory and forwards it through the downlink communication link.

[0012] Further, the FPGA processor 1 includes a UART interface module, a FIFO module 1, a CTRLLOGIC module 1, and an INTER FACE interface module connected in sequence; the UART interface module is communicatively connected to the WIFI module through a serial port, and the INTER FACE interface module is connected to the EMMC memory;

[0013] The CTRL LOGIC module 1 is further connected to a FIFO module 2, and the FIFO module 2 is connected to a UART SC interface module 1;

[0014] The FPGA processor 1 receives the upgrade instruction and upgrade data from the WIFI module through the UART interface module and caches them in the FIFO module 1. The CTRLLOGIC module 1 reads the upgrade instruction and determines the upgrade type, and stores the upgrade data into the EMMC memory through the INTERFACE interface module; the FIFO module 2 receives and caches the upgrade data parsed by the CTRLLOGIC module 1, and then transfers the upgrade data to the UART SC interface module 1 for parallel-to-serial conversion and downlink transmission to the cluster controller.

[0015] Further, the cluster controller includes an FPGA processor II, a DDR3 memory, and a FLASH memory. The FPGA processor II includes a UART SC interface module II, a DN DATA module I, a DMA module, a CTRL LOGIC module II, a QSPI module, and a UART PACK interface module I. The DMA module is connected to the DDR3 memory, and the QSPI module is connected to the FLASH memory.

[0016] The FPGA processor II receives the upgrade instruction and upgrade data sent by the heap controller through the UART SC interface module II. The DN DATA module I parses the upgrade instruction and upgrade data. Then, the upgrade data is cached in the DDR3 memory through the DMA module. The CTRL LOGIC module II controls according to the upgrade type, reads the upgrade data from the DDR3 memory through the DMA module, and transmits it to the QSPI module or the UART PACK interface module I. The upgrade types include cluster controller upgrade and PACK controller upgrade.

[0017] The QSPI module is used to receive the upgrade data corresponding to the cluster controller, erase and write it into the FLASH memory, and realize the remote upgrade of the cluster controller.

[0018] The UART PACK interface module I is used to receive the upgrade data corresponding to the PACK controller and transmit it to all PACK controllers subordinate to the battery cluster.

[0019] Further, the PACK controller includes a CPLD processor. The CPLD processor includes a UART PACK interface module II, a DN DATA module II, a RAM memory, a CTRL LOGIC module III, an SPI module, and an INTFLASH memory connected in sequence.

[0020] The UART PACK interface module II is used for communication connection with the cluster controller, receives the upgrade instruction and upgrade data sent by the cluster controller. The DN DATA module II parses the upgrade instruction and upgrade data, and then caches the upgrade data in the RAM memory.

[0021] The CTRL LOGIC module III reads the upgrade data corresponding to the PACK controller from the RAM memory, checks the upgrade password and version number, forwards the upgrade data to the SPI module, and then erases and writes it into the INT FLASH memory to realize the remote upgrade of the PACK controller.

[0022] Further, RS422 communication or optical fiber communication is adopted between the cluster controller and the stack control, and between the PACK controller and the cluster control.

[0023] The present invention also provides a method for online program upgrade of an energy storage control system based on WIFI, which is applied to the above-mentioned energy storage control system based on WIFI, and includes the following steps:

[0024] Before the system is powered on and runs, update the firmware of the WIFI module, set the WIFI module to the transparent transmission mode, and burn the firmware into the internal FLASH of the WIFI module.

[0025] After the system is powered on, the WIFI module is automatically initialized to the transparent transmission mode, and a point-to-point wireless communication link is established with the upper computer.

[0026] The upper computer sends an upgrade instruction and upgrade data to the WIFI module. The WIFI module adopts the transparent transmission mode, receives the upgrade instruction and upgrade data through the serial port, and transparently transmits them to the stack controller.

[0027] The stack controller is used to read the received upgrade instruction and upgrade data, perform instruction parsing, judge the upgrade type, that is, judge whether the upgrade instruction sent by the upper computer is for the cluster controller or the PACK controller, and store the upgrade data into the corresponding storage area of the EMMC memory.

[0028] According to the timing regulations of the system time slot, when the remote upgrade time slot arrives, the stack controller sends an upgrade instruction and upgrade data to the cluster controller according to the result of instruction parsing.

[0029] After receiving the upgrade instruction and upgrade data sent by the stack controller, the cluster controller judges whether the upgrade instruction is for the cluster controller or the PACK controller. If it is an upgrade instruction for the cluster controller, the cluster controller performs remote upgrade of the cluster controller according to the upgrade data. If it is an upgrade instruction for the PACK controller, the upgrade instruction and upgrade data are forwarded to all PACK controllers subordinate to the cluster controller through the downlink.

[0030] After receiving the upgrade instruction sent by the cluster controller, the PACK controller performs remote upgrade of the PACK controller according to the upgrade data.

[0031] Further, the data formats of the upgrade instruction and upgrade data are organized according to double words of 32 bits, including:

[0032] The packet header HEAD is used to distinguish the type of this frame format and is divided into two subclasses: head_a is used to identify the type of data in this frame. When head_a is 10, it means that the data in this frame is an upgrade instruction and upgrade data. When head_a is other values, it means that the data in this frame is other running data and has nothing to do with the remote upgrade function; head_b is used to distinguish the online upgrade object. Among them, 01 means cluster controller upgrade, 10 means PACK controller upgrade, and other values mean nothing to do with remote upgrade; the heap controller determines the upgrade type according to the parsing of the packet header HEAD.

[0033] Password, which represents the password for remote upgrade. This password is a 32-bit hexadecimal value and is a fixed password set in advance; the heap controller will transparently transmit this fixed password through the downlink. After receiving this fixed password, the cluster controller or PACK controller will confirm whether the password is correct. Only after verification can the next upgrade operation be carried out;

[0034] Verison, which represents the version number of the program that needs to be upgraded currently; after receiving this version number, the cluster controller or PACK controller will compare it with the version number currently running. If the two version numbers are exactly the same, there is no need to upgrade. Otherwise, the upgrade operation can be carried out;

[0035] byte_num represents the number of bytes of the upgrade data data0~datan. The heap controller receives and caches the upgrade data of the corresponding length according to the number of bytes of byte_num.

[0036] Furthermore, after receiving the upgrade instruction and upgrade data sent by the heap controller, the cluster controller performs the following steps:

[0037] Judge whether the upgrade instruction is for the cluster controller or the PACK controller according to the packet header HEAD. If it is an upgrade instruction for the cluster controller, check the upgrade password and the version number of the program to be upgraded according to Password and Verison. If the password is correct and the version number currently running in the cluster controller is the same as the version number of the program to be upgraded, then perform the remote upgrade of the cluster controller;

[0038] The remote upgrade of the cluster controller includes: caching the upgrade data and performing verification. After the data verification is correct, write it into the internal FLASH memory of the cluster controller through the QSPI module, update the original upgrade program of the cluster controller, and perform a restart after the update is completed. The FPGA processor of the cluster controller can then independently load the updated upgrade program from the FLASH memory to achieve the remote upgrade of the cluster controller.

[0039] Further, when the cluster controller determines that the received upgrade instruction is for the PACK controller, it forwards the upgrade instruction and upgrade data to all PACK controllers subordinate to the cluster controller through the downlink;

[0040] After receiving the upgrade instruction sent by the cluster controller, the PACK controller verifies the upgrade password and the version number of the upgrade program according to the Password and Verison. If the password is correct and the version number of the currently running PACK controller is the same as the version number of the upgrade program, the remote upgrade of the PACK controller is performed;

[0041] The remote upgrade of the PACK controller includes:

[0042] Write the upgrade data into the built-in INT FLASH memory of the CPLD processor of the PACK controller, update the original CPLD program, restart after the update is completed, and the CPLD processor can independently load the updated PACK controller upgrade program in the INT FLASH memory to achieve remote upgrade.

[0043] Further, if it is an upgrade instruction for the cluster controller, the remote upgrade of the cluster controller is performed according to the upgrade data. If it is an upgrade instruction for the PACK controller, the upgrade instruction and upgrade data are forwarded to all PACK controllers subordinate to the cluster controller through the downlink, specifically including:

[0044] If it is an upgrade instruction for the cluster controller, the cluster controller reads the corresponding upgrade data of the cluster controller from the DDR3 memory through the DMA module, verifies the upgrade password and version number, and then forwards the upgrade data to the QSPI module, and then erases and writes it into the FLASH memory to achieve the remote upgrade of the cluster controller;

[0045] If it is an upgrade instruction for the PACK controller, the CTRL LOGIC module 2 reads the corresponding upgrade data of the PACK controller from the DDR3 memory through the DMA module, then transfers it to the UARTPACK interface module 1, and issues it to all PACK controllers subordinate to the cluster controller.

[0046] According to the specific embodiments provided by the present invention, the WIFI-based energy storage control system and its remote upgrade method provided by the present invention add a WIFI module to the energy storage control system, establish a local point-to-point wireless link through the WIFI module, receive and store all the instructions and data that need to be remotely upgraded by the host computer in the EMMC memory, and then perform downlink transmission using the original communication link of the energy storage system. The downlink transmission is carried out in stages, including the cluster controller and the PACK controller; the following technical effects are specifically disclosed:

[0047] First, improve the system maintenance efficiency

[0048] Reduce on-site maintenance costs: Traditional firmware updates usually require technicians to go on-site for manual operations, which is not only time-consuming and laborious but also increases labor costs. The WIFI-based remote online upgrade function allows technicians to remotely complete firmware updates wirelessly, greatly improving maintenance efficiency and reducing maintenance costs.

[0049] Shorten downtime: On-site maintenance often requires system downtime for operations, while remote online upgrades can be carried out during off-peak hours, reducing the impact on system operation, shortening downtime, and improving system availability.

[0050] Second, enhance system security

[0051] Fix vulnerabilities in a timely manner: Security vulnerabilities or performance issues may be discovered during the operation of the energy storage system. The remote online upgrade function can push repair patches in a timely manner to ensure that the system is always in the best state and reduce security risks.

[0052] Prevent malicious attacks: Through remote online upgrades, security measures can be quickly deployed to guard against potential malicious attacks and protect the security and stability of the system.

[0053] Third, improve user experience

[0054] Seamless update experience: Users can obtain the latest functions and optimizations without interrupting system operation or performing complex operations, enhancing the user experience.

[0055] Continuous improvement: Manufacturers can continuously introduce new functions and optimizations based on user feedback and technological progress. Through the remote online upgrade function, it is ensured that users can enjoy these improvements in a timely manner.

[0056] Fourth, adapt to technological development

[0057] Flexibly respond to technological changes: Energy storage technologies are constantly evolving, with new algorithms and functions emerging in an endless stream. The remote online upgrade function enables the system to flexibly adapt to these changes and maintain technological leadership.

[0058] Prolong the product life cycle: Through continuous firmware updates, the service life of the product can be extended, the frequency of replacing new equipment can be reduced, and the overall cost can be lowered.

[0059] Fifth, standardized management

[0060] Unified management: For large-scale energy storage systems or distributed energy storage systems, the remote online upgrade function can achieve centralized management and batch updates to ensure that the firmware versions of all devices are consistent, facilitating maintenance and management.

[0061] Standardized process: Through remote online upgrade, the process of firmware update can be standardized, reducing human errors and improving the success rate and reliability of the update.

[0062] In summary, the present invention realizes the wireless connection between the energy storage system and the host computer through the WIFI wireless communication network, without complex wiring and interface adaptation, making the firmware upgrade process of the energy storage system more efficient, reducing the equipment downtime, and improving the availability and reliability of the energy storage system. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0064] Figure 1 It is a schematic structural diagram of the energy storage control system based on WIFI according to an embodiment of the present invention;

[0065] Figure 2 It is a schematic diagram of the internal hard topology of the energy storage control system according to an embodiment of the present invention;

[0066] Figure 3 It is a schematic structural diagram of the cluster controller according to an embodiment of the present invention;

[0067] Figure 4 It is a schematic structural diagram of the PACK controller according to an embodiment of the present invention;

[0068] Figure 5 It is a flowchart of the remote upgrade method of the energy storage control system based on WIFI according to an embodiment of the present invention;

[0069] Figure 6 It is a schematic diagram of the system time slot according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0070] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0071] The object of the present invention is to provide a WIFI-based energy storage control system and its remote upgrade method. By applying WIFI wireless communication technology to the energy storage system, it solves problems such as low software update efficiency and poor security of traditional energy storage systems. It can not only improve the maintenance efficiency and security of the system, but also enhance the user experience, adapt to technological development, and extend the product life cycle. Through remote online upgrade, the energy storage system can better meet user needs and enhance market competitiveness.

[0072] Compared with the upgrade solution based on the cloud platform, the remote upgrade solution of the WIFI-based energy storage system software provided by the present invention has the following advantages:

[0073] 1) Low latency:

[0074] Local response: The WIFI module can directly communicate with local devices, with fast response speed and low latency. This is particularly important for application scenarios that require real-time response (such as smart home and industrial automation).

[0075] Reduced dependence: It is not affected by the network status of the cloud platform. Even if the cloud platform fails or there is network latency, local devices can still work normally.

[0076] 2) Data privacy and security:

[0077] Local processing: Data can be processed and stored locally, reducing the risk of data transmission to the cloud and improving data privacy and security.

[0078] Reduced data leakage: Sensitive data does not have to leave the local network, reducing the risk of being intercepted or leaked by a third party.

[0079] 3) Cost-effectiveness:

[0080] Reduced cloud service fees: Using the WIFI module for local communication can reduce dependence on cloud services, thus saving the subscription fees for cloud services.

[0081] Low hardware cost: The hardware cost of the WIFI module is relatively low, suitable for large-scale deployment.

[0082] 4) Offline working ability:

[0083] Independent operation: The WIFI module can operate independently without an Internet connection, ensuring that the system can still work normally when the network is disconnected or unstable.

[0084] Emergency situation: In case of an emergency, such as a natural disaster causing network interruption, the WIFI module can still ensure the operation of basic functions.

[0085] 5) Simple to use:

[0086] Simple configuration: The configuration of the WIFI module is relatively simple, and users can complete network connection and device pairing through simple steps.

[0087] Easy development: WIFI modules usually provide rich development resources and sample codes, enabling developers to quickly get started and shortening the development cycle.

[0088] 6) Real-time performance:

[0089] Real-time data transmission: The WIFI module can achieve real-time data transmission, which is suitable for applications that require instant feedback, such as sensor data acquisition and control.

[0090] Low power consumption: Modern WIFI modules have low power consumption characteristics, which are suitable for battery-powered devices and extend the battery life of the devices.

[0091] It can be seen that the WIFI-based online upgrade solution has obvious advantages in terms of low latency, data privacy and security, cost-effectiveness, offline working ability, simplicity and ease of use, flexibility, and real-time performance. These advantages make it an indispensable part of many application scenarios, especially in occasions that require real-time response and high reliability. The WIFI-based remote online upgrade function has important application value for energy storage systems.

[0092] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0093] Embodiment 1

[0094] The internal topology of the energy storage control system is as Figure 2 shown, and the meanings of each controller are as follows:

[0095] Stack controller (SC): A battery stack-level controller that coordinates and controls the charge and discharge of each battery cluster.

[0096] Cluster controller (CC): A cluster-level controller that coordinates the work of each controller within the battery cluster.

[0097] PACK controller (PC): A battery PACK-level controller that controls the charge and discharge of the battery PACK and also has functions such as battery voltage and temperature acquisition.

[0098] The output terminal of each battery PACK is connected to a PACK controller (PC); a cluster controller (CC) is provided for each battery cluster, and the PACK controller (PC) is communicatively connected to the cluster controller (CC) of the battery cluster where it is located; multiple battery clusters are combined to form a battery stack, and a stack controller (SC) and a power conversion system (PCS) for energy storage are provided for each battery stack. The cluster controller (CC) is communicatively connected to the stack controller (SC) of the battery stack where it is located, and the stack controller (SC) controls the charging and discharging of each battery cluster in the battery stack through the power conversion system (PCS) for energy storage.

[0099] Each PACK controller communicates with the corresponding cluster controller (CC) through a communication network. Multiple cluster controllers (CC) communicate with a stack controller (SC). RS422 communication or optical fiber communication can be used. The communication link includes an uplink and a downlink communication link. The upgrade instruction and upgrade data can be forwarded from the stack controller to the cluster controller and PACK controller through the downlink communication link.

[0100] As Figures 1-4 shown, the energy storage control system based on WIFI provided by the embodiment of the present invention includes a WIFI module, a battery stack control layer, a battery cluster control layer, and a battery module control layer;

[0101] The battery stack control layer includes a stack controller (SC). The stack controller (SC) includes an FPGA processor I and an EMMC memory. The FPGA processor I is communicatively connected to the WIFI module through a serial port. Different storage areas are divided in the EMMC memory for storing the upgrade data corresponding to the cluster controller (CC) and the PACK controller (PC) respectively;

[0102] The battery cluster control layer includes multiple cluster controllers (CC). A cluster controller (CC) is provided for each battery cluster. The cluster controller (CC) is communicatively connected to the stack controller (SC) of the battery stack where it is located;

[0103] The battery module control layer includes multiple PACK controllers (PC). A PACK controller (PC) is connected to each battery PACK. The PACK controller (PC) is communicatively connected to the cluster controller of the battery cluster where it is located;

[0104] The WIFI module is wirelessly communicatively connected to the upper computer;

[0105] Data interaction occurs between the host computer and the WIFI module. The data interaction includes: the host computer sends an upgrade instruction and upgrade data to the WIFI module. The WIFI module adopts a transparent transmission mode, receives the received upgrade instruction and upgrade data through the serial port and transparently transmits them to the stack controller; the stack controller (SC) is used to read the received upgrade instruction and upgrade data, perform instruction parsing, and store the upgrade data into the EMMC memory; when the stack controller (SC) sends the upgrade data to the cluster controller (CC) or PACK controller (PC), it reads the upgrade data from the corresponding area in the EMMC memory and forwards it through the downlink communication link.

[0106] Specifically, as Figure 1 shown, the core device of the stack controller (SC) is the FPGA. In addition, it also includes an EMMC memory for storing remote upgrade data. The FPGA processor 1 includes a UART interface module, a FIFO module 1, a CTRLLOGIC module 1, and an INTER FACE interface module connected in sequence; the UART interface module is connected to the WIFI module through serial port communication, and the INTER FACE interface module is connected to the EMMC memory;

[0107] The CTRL LOGIC module 1 is also connected to the FIFO module 2, and the FIFO module 2 is connected to the UART SC interface module 1;

[0108] The FPGA processor 1 receives the upgrade instruction and upgrade data from the WIFI module through the UART interface module and caches them in the FIFO module 1. The CTRL LOGIC module 1 reads the upgrade instruction and judges the upgrade type, and stores the upgrade data into the EMMC memory through the INTERFACE interface module; the FIFO module 2 receives and caches the upgrade data parsed by the CTRL LOGIC module 1, and then transfers the upgrade data to the UART SC interface module 1 for parallel-to-serial conversion and downlink transmission to the cluster controller.

[0109] Exemplarily, the UART SC interface module 1 is communicatively connected to the cluster controller (CC) through the RS422_SC interface.

[0110] According to the different upgrade types of the cluster controller (CC) or PACK controller (PC), corresponding areas are divided in the EMMC memory to store the upgrade data of the cluster controller (CC) and PACK controller (PC) respectively. Subsequently, when the stack controller (SC) sends the upgrade data to the cluster controller (CC) or PACK controller (PC), it can read the upgrade data from the corresponding area in the EMMC and forward it through the downlink.

[0111] Such as Figure 3As shown, the cluster controller (CC) includes an FPGA processor II, a DDR3 memory, and a FLASH memory. The FPGA processor II includes a UART SC interface module II, a DN DATA module I, a DMA module, a CTRL LOGIC module II, a QSPI module, and a UART PACK interface module I. The DMA module is connected to the DDR3 memory, and the QSPI module is connected to the FLASH memory.

[0112] Exemplarily, the UART SC interface module II communicates with the stack controller (SC) through the RS422_SC interface.

[0113] The FPGA processor II receives the upgrade instruction and upgrade data sent by the stack controller through the UART SC interface module II. The DN DATA module I parses the upgrade instruction and upgrade data. Then, the upgrade data is cached in the DDR3 memory through the DMA module. The CTRL LOGIC module II controls according to the upgrade type, reads the upgrade data from the DDR3 memory through the DMA module, and transmits it to the QSPI module or the UART PACK interface module I. The upgrade types include cluster controller upgrade and PACK controller upgrade.

[0114] The QSPI module is used to receive the upgrade data corresponding to the cluster controller, erase and write it into the FLASH memory to achieve the remote upgrade of the cluster controller.

[0115] The UART PACK interface module I is used to receive the upgrade data corresponding to the PACK controller and transmit it to all PACK controllers under the battery cluster.

[0116] Among them, the CTRL LOGIC module II controls according to the upgrade type. If the current upgrade is a cluster controller upgrade, it reads the cluster controller upgrade data from the DDR3, checks the upgrade password and version number, and then forwards the upgrade data to the QSPI module. After that, it erases and writes it into the FLASH memory to achieve the remote upgrade of the cluster controller.

[0117] If the current upgrade is a PACK controller upgrade, the CTRL LOGIC module II reads the PACK upgrade data from the DDR3 module through the DMA module, and then transfers it to the UART PACK interface module I and issues it to all PACK controllers under the cluster through the RS422_PACK interface.

[0118] Such as Figure 4As shown, the PACK controller (PC) includes a CPLD processor, and the CPLD processor includes a UART PACK interface module 2, a DN DATA module 2, a RAM memory, a CTRL LOGIC module 3, an SPI module, and an INTFLASH memory that are connected in sequence;

[0119] The UART PACK interface module 2 is communicatively connected to the cluster controller through the RS422_PACK interface, receives the upgrade instruction and upgrade data sent by the cluster controller, and the DN DATA module 2 parses the upgrade instruction and upgrade data, and then caches the upgrade data in the RAM memory;

[0120] The CTRL LOGIC module 3 reads the upgrade data corresponding to the PACK controller from the RAM memory, checks the upgrade password and version number, and then forwards the upgrade data to the SPI module, and then erases and writes to the INT FLASH memory to achieve remote upgrade of the PACK controller.

[0121] Embodiment 2

[0122] As Figure 5 shown, the present invention also provides a method for online program upgrade of a WIFI-based energy storage control system, which is applied to the above-mentioned WIFI-based energy storage control system, and includes the following steps:

[0123] Before the system is powered on and runs, update the WIFI module firmware, set the WIFI module to the transparent transmission mode, and burn the firmware into the FLASH built into the WIFI module;

[0124] After the system is powered on, the WIFI module is automatically initialized to the transparent transmission mode, and a point-to-point wireless communication link is established with the upper computer;

[0125] The upper computer sends an upgrade instruction and upgrade data to the WIFI module, and the WIFI module adopts the transparent transmission mode, receives the received upgrade instruction and upgrade data through the serial port and transparently transmits them to the stack controller;

[0126] The stack controller is used to read the received upgrade instruction and upgrade data, perform instruction parsing, judge the upgrade type, that is, judge whether the upgrade instruction sent by the upper computer is for the cluster controller or the PACK controller, and store the upgrade data in the corresponding storage area of the EMMC memory;

[0127] The stack controller sends an upgrade instruction and upgrade data to the cluster controller according to the result of the instruction parsing when the remote upgrade time slot arrives according to the timing regulations of the system time slot; wherein, by way of example, the timing regulations of the system time slot are as Figure 6As shown in the figure, within 330 ns after power-on is the system power-on buffer time. After that, the entire system starts a control loop with a period of 100 us. Among them, 38 us and 88 us time slots are used for waveform recording services; 40 us time slot is used for uplink data; 90 us time slot is used for transmitting downlink data. If the heap controller receives and parses the remote upgrade instruction and data during this 100 us cycle, the upgrade instruction and data will be transmitted through the downlink during this 90 us time slot.

[0128] After the cluster controller receives the upgrade instruction and upgrade data sent by the heap controller, it determines whether the upgrade instruction is for the cluster controller or the PACK controller. If it is an upgrade instruction for the cluster controller, the cluster controller will perform a remote upgrade of the cluster controller according to the upgrade data. If it is an upgrade instruction for the PACK controller, the upgrade instruction and upgrade data will be forwarded to all PACK controllers subordinate to the cluster controller through the downlink. Specifically, it includes:

[0129] If it is an upgrade instruction for the cluster controller, the cluster controller reads the upgrade data corresponding to the cluster controller from the DDR3 memory through the DMA module. After verifying the upgrade password and version number, the upgrade data is forwarded to the QSPI module, and then the FLASH memory is erased and written to achieve the remote upgrade of the cluster controller.

[0130] If it is an upgrade instruction for the PACK controller, the CTRL LOGIC module 2 reads the upgrade data corresponding to the PACK controller from the DDR3 memory through the DMA module, and then passes it to the UARTPACK interface module 1 and issues it to all PACK controllers subordinate to this cluster controller.

[0131] After the PACK controller receives the upgrade instruction sent by the cluster controller, it performs a remote upgrade of the PACK controller according to the upgrade data.

[0132] Table 1 Upgrade Instruction and Upgrade Data Format

[0133]

[0134] Specifically, the data formats of the upgrade instruction and upgrade data are organized in double words of 32 bits. As shown in Table 1, it includes:

[0135] The HEAD of the packet header is used to distinguish the type of this frame format and is divided into two subclasses: head_a is used to identify the type of data in this frame. When head_a is 10, it indicates that the data in this frame is an upgrade instruction and upgrade data. When head_a is other values, it indicates that the data in this frame is other running data and has nothing to do with the remote upgrade function; head_b is used to distinguish the online upgrade object. Among them, 01 indicates the upgrade of the cluster controller, 10 indicates the upgrade of the PACK controller, and other values indicate that it has nothing to do with the remote upgrade; the heap controller determines the upgrade type according to the parsing of the packet header HEAD.

[0136] Password, which represents the password for remote upgrade. This password is a 32-bit hexadecimal value and is a fixed password set in advance. For example, 0xaaaabbbb; the heap controller will transparently transmit this fixed password through the downlink. After receiving this fixed password, the cluster controller or PACK controller will confirm whether the password is correct, and only after verification can the next upgrade operation be carried out;

[0137] Verison, which represents the version number of the program that needs to be upgraded currently; after receiving this version number, the cluster controller or PACK controller will compare it with the version number currently running. If the two version numbers are exactly the same, there is no need to upgrade, otherwise the upgrade operation can be carried out;

[0138] byte_num represents the number of bytes of the upgrade data data0~datan. The heap controller receives and caches the upgrade data of the corresponding length according to the number of bytes of byte_num.

[0139] In the program online upgrade method of the WIFI-based energy storage control system, after receiving the upgrade instruction and upgrade data sent by the heap controller, the cluster controller performs the following steps:

[0140] Judge whether the upgrade instruction is for the cluster controller or the PACK controller according to the packet header HEAD. If it is an upgrade instruction for the cluster controller, then check the upgrade password and the version number of the program to be upgraded according to Password and Verison. If the password is correct and the version number currently running in the cluster controller is the same as the version number of the program to be upgraded, then perform the remote upgrade of the cluster controller;

[0141] The remote upgrade of the cluster controller includes: caching the upgrade data and performing verification. After the data verification is correct, write it into the internal FLASH memory of the cluster controller through the QSPI module, update the original upgrade program of the cluster controller, and perform a restart after the update is completed. The FPGA processor of the cluster controller can then autonomously load the updated upgrade program from the FLASH memory to achieve the remote upgrade of the cluster controller.

[0142] Further, when the cluster controller determines that the received upgrade instruction is for the PACK controller, it forwards the upgrade instruction and upgrade data to all PACK controllers subordinate to the cluster controller through the downlink;

[0143] After receiving the upgrade instruction sent by the cluster controller, the PACK controller checks the upgrade password and the version number of the upgrade program according to the Password and Verison. If the password is correct and the version number of the currently running PACK controller is the same as the version number of the upgrade program, the remote upgrade of the PACK controller is performed;

[0144] The remote upgrade of the PACK controller includes:

[0145] Write the upgrade data into the built-in INT FLASH memory of the CPLD processor of the PACK controller, update the original CPLD program, and perform a restart after the update. The CPLD processor can then independently load the updated PACK controller upgrade program in the INT FLASH memory to achieve remote upgrade. The remote upgrade uniformly upgrades the programs for all PACKs in the system without distinguishing a single PACK. After the upgrade is successful, all PACK programs are updated to the latest programs.

[0146] The present invention establishes a local point-to-point wireless link through the WIFI module, receives and stores all the instructions and data that need to be remotely upgraded by the host computer in the EMMC memory, and then performs downlink transmission using the original communication link of the energy storage system. The downlink transmission is carried out in a hierarchical manner, including the cluster controller and the PACK controller. Sending the upgrade instructions and data also needs to follow the time slot requirements specified by the energy storage system and is sent during the specified remote upgrade time slot without affecting the normal operation of the energy storage system.

[0147] Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A WIFI-based energy storage control system, characterized in that: include: WIFI module, battery stack control layer, battery cluster control layer, battery module control layer; The battery stack control layer includes a stack controller, and the stack controller includes an FPGA processor 1 and an EMMC memory. The FPGA processor 1 is connected to the WIFI module via a serial port communication, and the EMMC memory is divided into different storage areas, which are respectively used to store the upgrade data corresponding to the cluster controller and the PACK controller; The battery cluster control layer includes a plurality of cluster controllers, one cluster controller is provided for each battery cluster, and the cluster controller is communicatively connected to the stack controller of the battery stack in which it is located; The battery module control layer includes a plurality of PACK controllers, each battery PACK is connected to a PACK controller, and the PACK controller is communicatively connected to the cluster controller of the battery cluster in which it is located; The WIFI module is connected to the host computer via wireless communication; The host computer and the WIFI module perform data interaction, and the data interaction includes: the host computer sends upgrade instructions and upgrade data to the WIFI module, and the WIFI module adopts a transparent transmission mode to receive the received upgrade instructions and upgrade data through the serial port and transparently transmit them to the stack controller; the stack controller is used to read the received upgrade instructions and upgrade data, parse the instructions, and store the upgrade data in the EMMC memory; when the stack controller sends the upgrade data to the cluster controller or the PACK controller, the upgrade data is read from the corresponding area in the EMMC memory and forwarded through the downlink communication link.

2. The WIFI-based energy storage control system according to claim 1, characterized in that: The FPGA processor 1 includes a UART interface module, a FIFO module 1, a CTRL LOGIC module 1 and an INTER FACE interface module which are connected in sequence; the UART interface module is connected to the WIFI module via serial communication, and the INTER FACE interface module is connected to the EMMC memory; The CTRL LOGIC module 1 is also connected to the FIFO module 2, and the FIFO module 2 is connected to the UART SC interface module 1; The FPGA processor 1 receives the upgrade instruction and upgrade data from the WIFI module through the UART interface module and caches them in the FIFO module 1. The CTRL LOGIC module 1 reads the upgrade instruction and determines the upgrade type, and stores the upgrade data in the EMMC memory through the INTER FACE interface module; the FIFO module 2 receives and caches the upgrade data parsed by the CTRL LOGIC module 1, and then passes the upgrade data to the UART SC interface module 1 for parallel-to-serial conversion, and sends it downstream to the cluster controller.

3. The WIFI-based energy storage control system according to claim 1, characterized in that: The cluster controller includes a second FPGA processor, a DDR3 memory, and a FLASH memory. The second FPGA processor includes a second UART SC interface module, a first DNDATA module, a DMA module, a second CTRL LOGIC module, a QSPI module, and a first UART PACK interface module. The DMA module is connected to the DDR3 memory, and the QSPI module is connected to the FLASH memory. The FPGA processor 2 receives the upgrade instruction and upgrade data sent by the stack controller through the UART SC interface module 2, and the DN DATA module 1 parses the upgrade instruction and the upgrade data, and then caches the upgrade data into the DDR3 memory through the DMA module. The CTRL LOGIC module 2 controls according to the upgrade type, reads the upgrade data from the DDR3 memory through the DMA module, and transmits it to the QSPI module or the UART PACK interface module 1; The QSPI module is used to receive the upgrade data corresponding to the cluster controller, erase and write the FLASH memory, and realize the remote upgrade of the cluster controller; The UART PACK interface module 1 is used to receive the upgrade data corresponding to the PACK controller and transmit it to all the PACK controllers under the battery cluster.

4. The WIFI-based energy storage control system according to claim 1, characterized in that: The PACK controller includes a CPLD processor, and the CPLD processor includes a UART PACK interface module 2, a DN DATA module 2, a RAM memory, a CTRL LOGIC module 3, a SPI module and an INT FLASH memory connected in sequence; The UART PACK interface module 2 is used to communicate with the cluster controller, receive the upgrade instruction and upgrade data issued by the cluster controller, and the DN DATA module 2 performs the upgrade instruction and upgrade data analysis, and then caches the upgrade data into the RAM memory; The CTRL LOGIC module 3 reads the upgrade data corresponding to the PACK controller from the RAM memory, and after verifying the upgrade password and version number, forwards the upgrade data to the SPI module, and then erases and writes the INT FLASH memory to realize the remote upgrade of the PACK controller.

5. The WIFI-based energy storage control system according to claim 1, characterized in that: RS422 communication or optical fiber communication is used between the cluster controller and the stack controller, and between the PACK controller and the cluster controller.

6. A method for online program upgrade of a WIFI-based energy storage control system, applied to the WIFI-based energy storage control system according to any one of claims 1 to 5, characterized in that: The steps include: Before the system is powered on, update the WIFI module firmware, set the WIFI module to transparent transmission mode, and burn the firmware to the FLASH inside the WIFI module; After the system is powered on, the WIFI module automatically initializes to transparent transmission mode and establishes a point-to-point wireless communication link with the host computer; The host computer sends upgrade instructions and upgrade data to the WIFI module. The WIFI module adopts transparent transmission mode, receives the received upgrade instructions and upgrade data through the serial port and transparently transmits them to the stack controller; The stack controller is used to read the received upgrade instructions and upgrade data, parse the instructions, determine the upgrade type, that is, determine whether the upgrade instruction issued by the host computer is for the cluster controller or the PACK controller, and store the upgrade data in the corresponding storage area of ​​the EMMC memory; The stack controller follows the timing regulations of the system time slot and sends the upgrade instruction and upgrade data to the cluster controller according to the result of instruction parsing when the remote upgrade time slot arrives; After receiving the upgrade instruction and upgrade data sent by the stack controller, the cluster controller determines whether the upgrade instruction is for the cluster controller or the PACK controller. If it is an upgrade instruction of the cluster controller, the cluster controller is remotely upgraded according to the upgrade data. If it is an upgrade instruction of the PACK controller, the upgrade instruction and upgrade data are forwarded to all PACK controllers under the cluster controller through the downlink. After the PACK controller receives the upgrade instruction sent by the cluster controller, it remotely upgrades the PACK controller according to the upgrade data.

7. The method for online program upgrade of the energy storage control system based on WIFI according to claim 6, characterized in that: The data format of the upgrade instruction and upgrade data is organized as a double word 32 bit, including: The packet header HEAD is used to distinguish the type of the frame format and is divided into two subcategories: head_a is used to identify the type of data in this frame. When head_a is 10, it means that the data in this frame is upgrade instructions and upgrade data. When head_a is other values, it means that the data in this frame is other operating data and has nothing to do with the remote upgrade function; head_b is used to distinguish online upgrade objects, where 01 indicates cluster controller upgrade, 10 indicates PACK controller upgrade, and other values ​​indicate nothing to do with remote upgrade; the heap controller determines the upgrade type based on the packet header HEAD analysis; Password, indicating the remote upgrade password, which is a 32-bit hexadecimal value and a pre-set fixed password. The stack controller will transparently transmit the fixed password through the downlink. After receiving the fixed password, the cluster controller or PACK controller will confirm whether the password is correct. Only after the password is confirmed, the next upgrade operation can be carried out. Verison, which indicates the version number of the program that needs to be upgraded. After receiving the version number, the cluster controller or PACK controller compares it with the currently running version number. If the two version numbers are exactly the same, there is no need to upgrade. Otherwise, the upgrade operation can be performed. byte_num indicates the number of bytes of the upgrade data data0 to datan. The heap controller receives and caches the upgrade data of the corresponding length according to the number of bytes of byte_num.

8. The method for online program upgrade of the energy storage control system based on WIFI according to claim 7, characterized in that: After receiving the upgrade instruction and upgrade data sent by the stack controller, the cluster controller performs the following steps: According to the packet header HEAD, determine whether the upgrade instruction is for the cluster controller or the PACK controller. If it is an upgrade instruction for the cluster controller, check the upgrade password and the version number of the upgraded program according to Password and Version. If the password is correct and the version number of the cluster controller currently running is consistent with the version number of the upgraded program, perform remote upgrade of the cluster controller. The remote upgrade of the cluster controller includes: caching the upgrade data and verifying it. After the data is verified to be correct, it is written into the internal FLASH memory of the cluster controller through the QSPI module, and the upgrade program of the original cluster controller is updated. After the update is completed, it is restarted. The FPGA processor of the cluster controller can autonomously load the updated upgrade program from the FLASH memory to realize the remote upgrade of the cluster controller.

9. The method for online program upgrade of the energy storage control system based on WIFI according to claim 8, characterized in that: When the cluster controller determines that the received upgrade instruction is an upgrade instruction for the PACK controller, it forwards the upgrade instruction and upgrade data to all PACK controllers under the cluster controller through the downlink; After the PACK controller receives the upgrade command from the cluster controller, it checks the upgrade password and the version number of the upgraded program according to Password and Version. If the password is correct and the version number currently running in the PACK controller is consistent with the version number of the upgraded program, the remote upgrade of the PACK controller is performed; The remote upgrade of the PACK controller includes: The upgrade data is written into the built-in INT FLASH memory of the CPLD processor of the PACK controller, and the original CPLD program is updated. After the update is completed, the CPLD processor is restarted, and the CPLD processor can autonomously load the updated PACK controller upgrade program in the INT FLASH memory to realize remote upgrade.

10. The method for online program upgrade of the energy storage control system based on WIFI according to claim 7, characterized in that: If it is an upgrade instruction of the cluster controller, the cluster controller is remotely upgraded according to the upgrade data. If it is an upgrade instruction of the PACK controller, the upgrade instruction and the upgrade data are forwarded to all the PACK controllers under the cluster controller through the downlink, specifically including: If it is an upgrade instruction of the cluster controller, the cluster controller reads the upgrade data corresponding to the cluster controller from the DDR3 memory through the DMA module, and after checking the upgrade password and version number, forwards the upgrade data to the QSPI module, and then erases and writes the FLASH memory to realize the remote upgrade of the cluster controller; If it is an upgrade instruction of the PACK controller, the CTRL LOGIC module 2 reads the upgrade data corresponding to the PACK controller from the DDR3 memory through the DMA module, and then passes it to the UARTPACK interface module 1, and sends it to all PACK controllers under the cluster controller.

Citation Information

Patent Citations

  • Common direct current bus energy storage system inter-cluster equalization system and method

    CN117713314A

  • Remote upgrading method and device for energy storage system and medium

    CN118473929A

  • Program upgrading method and device, computer equipment, storage medium and program product

    CN119013654A

  • FPGA multi-mirror upgrade loading method and device based on soft core processor

    WO2017041567A1