Energy storage EMS system communication configuration method

By designing the communication system configuration interface and configuration files, building communication objects and data structures, and using multi-threading to process communication tasks, the adaptability and efficiency problems of the EMS system when communicating with equipment from different manufacturers are solved, and an efficient and easy-to-maintenance communication method is realized.

CN120528945APending Publication Date: 2025-08-22HEBEI XUHUI ELECTRIC

Patent Information

Application Number
CN202510969080.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-15
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

When EMS systems communicate with equipment from different manufacturers, they need to modify the program according to the communication protocols of different manufacturers, resulting in high software development costs and extended equipment joint debugging time, which affects the equipment commissioning cycle.

Method used

Design the communication system configuration interface, define communication parameters and commands through configuration files, build communication objects and data structures, and use multi-threaded parallel processing of communication tasks to realize the interaction between the device and EMS memory data, and support dynamic addition and decrease of communication objects and commands.

Benefits of technology

It improves the universality and adaptability of the EMS system, reduces software development costs, shortens the equipment joint debugging time, and ensures data consistency and communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120528945A_ABST
    Figure CN120528945A_ABST
Patent Text Reader

Abstract

The invention discloses an energy storage EMS system communication configuration method comprising the following steps: S1, designing a communication system configuration interface, completing the construction of a communication object through the communication system configuration interface in combination with a communication protocol of each device in a communication system, and carrying out communication parameter configuration and communication instruction configuration on the constructed communication object; s2, establishing a communication configuration file, and storing the configuration information in the communication configuration file; s3, compiling EMS communication software, reading the information of the communication configuration file by the EMS communication software, and constructing a data structure according to the content of the communication configuration file; s4, performing data access configuration according to the data structure constructed in the step S3; and S5, starting a communication thread for each communication object, circularly polling all communication commands of the object in the communication thread, and storing data read back from the equipment into a data memory table or issuing information read from the data memory table to corresponding equipment according to uplink or downlink characteristics of the communication commands. The universality and adaptability of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of energy storage technology, and in particular to a communication configuration method for an energy storage EMS system. Background Art

[0002] With the rapid development of the electrochemical energy storage industry, energy storage technologies and products have experienced explosive growth. Energy management systems (EMS) play a key role in energy storage systems, including real-time monitoring and alarming, intelligent control, and optimization, ensuring their safe and reliable operation.

[0003] Typically, EMS needs to communicate with BMS, PCS, fire and environmental control systems, back-end systems, etc. Each type of system may contain multiple communication devices. The communication content of each communication device is essentially similar, but the communication protocols and communication point tables used by different manufacturers are not the same. When EMS is used with equipment from different manufacturers, it is often necessary to modify the program according to the communication protocols of different manufacturers and equipment, which increases software development costs, prolongs equipment coordination time, and delays the equipment commissioning cycle. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a communication configuration method for an energy storage EMS system, which can decouple the communication process from the underlying program and improve the system versatility and adaptability.

[0005] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.

[0006] A communication configuration method for an energy storage EMS system includes the following steps: S1. Design the communication system configuration interface, complete the construction of the communication object through the communication system configuration interface combined with the communication protocol of each device in the communication system, and configure the communication parameters and communication instructions of the constructed communication object; S2 establishes a communication profile and stores the above configuration information in the communication profile; S3 write EMS communication software, EMS communication software reads the communication profile information, builds a data structure based on the contents of the communication profile; the data structure includes communication objects and communication commands; S4. The data structure constructed according to step S3 is configured for data access, that is, a data memory table allocated in the EMS communication software for storing communication data; S5. Start a communication thread for each communication object, and cyclically poll all communication commands of this object in the communication thread. According to the uplink or downlink characteristics of the communication command, store the data read back from the device into the data memory table or send the information read from the data memory table to the corresponding device to complete the interaction between the device and the EMS memory data.

[0007] Preferably, the data access configuration in step S4 includes positioning and access attributes in the data memory table.

[0008] Preferably, the process of data access configuration in step S4 includes: S41. Call up the communication command definition window; S42. Fill in the instruction description, select the function number, and fill in the register address; S43. Fill in the number of registers, the number of registers is the number of data read by the communication command; S44. Select data type; S45. Fill in the data storage address, which is the storage location of the data read in the data memory table; S46. Check the data memory table and select the storage address of this communication command, set the address increment to identify the read data and the memory table data address correspondence; S47. Set the data control word, which indicates whether the read data is valid and stored in the data memory table. 0 indicates invalid and 1 indicates valid.

[0009] Preferably, the execution process of the communication command in step S5 includes: Determine the uplink and downlink functions of the command; If it is a downlink function, read data from the data memory table and construct a communication data frame; If it is an uplink function, directly construct the communication data frame.

[0010] Preferably, the execution process of the communication thread in step S5 includes: Send data frame; Delay according to the delay parameters; Read back the data frame returned by the communication device: when it is a downlink function, the communication is completed; when it is an uplink function, the returned data is stored in the data memory table to complete the communication command.

[0011] Preferably, the EMS software includes a communication object and communication command construction module and a communication protocol stack module; the communication object and communication command construction module constructs all communication objects into a linked list, and the communication command of each communication object is constructed as a sub-linked list of the communication object.

[0012] Preferably, the EMS software calls the corresponding communication protocol in the communication protocol stack module for each communication object to start a communication thread process; the communication protocol stack interacts with the external communication interface and the data memory table for communication information to complete the communication process.

[0013] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is as follows.

[0014] The present invention has high versatility: communication parameters and commands are defined through configuration files, and new devices or protocols can be adapted without modifying the underlying code.

[0015] The present invention has strong scalability: it supports dynamic addition and reduction of communication objects and commands, and adapts to changes in the scale of the energy storage system.

[0016] The present invention is easy to maintain: communication configuration is separated from program logic, and when the device or protocol is changed, only the configuration file needs to be updated.

[0017] The present invention has high efficiency: multi-threaded parallel processing of communication tasks, combined with delay control to optimize polling efficiency.

[0018] The present invention can ensure data consistency: a unified data memory table realizes seamless interaction between communication data and EMS functional modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a principle block diagram of the present invention; Figure 2 A schematic diagram of the communication objects and communication commands of the present invention; Figure 3 The communication thread software flow chart of the present invention; Figure 4 This is a first screenshot of the communication system configuration interface according to the first embodiment of the present invention; Figure 5 This is a second screenshot of the communication system configuration interface according to the first embodiment of the present invention; Figure 6 This is a screenshot of the communication command definition interface in the communication system configuration interface of Example 1 of the present invention; Figure 7 for Figure 6 Screenshot of the location of the communication command in the data memory table; Figure 8 for Figure 6 Screenshot of an excerpt from the communication configuration file for the communication command; Figure 9 This is a screenshot of the communication command definition interface in the communication system configuration interface of Example 2 of the present invention; Figure 10 for Figure 9 Screenshot of selected content of PCS basic information in the communication command; Figure 11 for Figure 9 Screenshot of the location of the communication command in the data memory table; Figure 12 for Figure 9 Screenshot of an excerpt from the communication configuration file for the communication command. DETAILED DESCRIPTION

[0020] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] A communication configuration method for energy storage EMS system, combined with Figure 1 As shown, the following steps are included: S1. Design the communication system configuration interface, complete the construction of the communication object through the communication system configuration interface combined with the communication protocols of each device in the communication system, and configure the communication parameters and communication instructions of the constructed communication object.

[0022] For example: The communication system involved in the EMS system includes the PCS subsystem, BMS subsystem, fire protection and environmental control subsystem and background subsystem, etc. Each subsystem contains a number of communication devices. The communication system configuration interface of this application can construct each communication device under each subsystem as a communication object and configure its communication parameters and communication instructions.

[0023] The communication system configuration interface is used for human-computer interaction, which can construct communication objects and configure the communication parameters and communication instructions of communication objects.

[0024] S2. Create a communication configuration file and store the above configuration information in the communication configuration file.

[0025] The communication configuration file is used to store the configuration information of each communication object, including communication parameters and communication instructions.

[0026] S3. Write EMS communication software, which reads the communication configuration file information and constructs a data structure according to the content of the communication configuration file; the data structure includes a communication object and a communication command.

[0027] The EMS software includes a communication object and communication command building module and a communication protocol stack module, and a memory area is allocated in the EMS software memory as a data memory table to store communication data. The schematic diagram of the EMS software building communication objects and communication commands through the communication object and communication command building module is as follows Figure 2 As shown, the communication object and communication command construction module constructs all communication objects into a linked list, and the communication commands of each communication object are constructed as a sub-linked list of the communication object. For example: the communication command sub-chain under communication object 1 includes communication command 1-1, communication command 1-2, ..., communication command 1-x; the communication command sub-chain under communication object 2 includes communication command 2-1, communication command 2-2, ..., communication command 2-y; the communication command sub-chain under communication object 3 includes communication command 3-1, communication command 3-2, ..., communication command 3-z; ...; the communication command sub-chain under communication object N includes communication command N-1, communication command N-2, ..., communication command Nm.

[0028] S4. Perform data access configuration based on the data structure constructed in step S3, that is, allocate a data memory table for storing communication data in the EMS communication software.

[0029] Data access configuration includes the location and access attributes of the data memory table.

[0030] The process of data access configuration includes: S41. Call up the communication command definition window.

[0031] S42. Fill in the instruction description, select the function number, and fill in the register address.

[0032] S43. Fill in the number of registers. The number of registers is the number of data read by the communication command.

[0033] S44. Select a data type.

[0034] S45. Fill in the data storage address, which is the storage location of the read data in the data memory table.

[0035] S46. Check the data memory table and select the storage address of this communication command, and set the address increment to identify the correspondence between the read data and the memory table data address.

[0036] Specifically, the address increment can be set according to the actual data length.

[0037] S47. Set the data control word, which indicates whether the read data is valid and stored in the data memory table. 0 indicates invalid and 1 indicates valid.

[0038] S5. Start a communication thread for each communication object, and cyclically poll all communication commands of this object in the communication thread. According to the uplink or downlink characteristics of the communication command, store the data read back from the device into the data memory table or send the information read from the data memory table to the corresponding device to complete the interaction between the device and the EMS memory data.

[0039] like Figure 3 As shown, the process of cyclically polling each communication command of each communication object in the communication thread is as follows: initialize the communication link according to the communication parameters of the communication object; if the initialization of the communication link fails, exit the thread; if the initialization of the communication link succeeds, poll the communication command of the communication object and introduce the error counter ErrCnt, and increase ErrCnt each time the communication fails. When ErrCnt is greater than the set value, exit the thread.

[0040] The EMS software calls the corresponding communication protocol in the communication protocol stack module for each communication object to start a communication thread process.

[0041] The execution process of the communication command includes: Determine the uplink and downlink functions of the command.

[0042] If it is a downlink function, read data from the data memory table and construct a communication data frame.

[0043] If it is an uplink function, directly construct the communication data frame.

[0044] The execution process of the communication thread includes: Send data frame.

[0045] Delay according to the delay parameters.

[0046] Read back the data frame returned by the communication device: when it is a downlink function, the communication is completed; when it is an uplink function, the returned data is stored in the data memory table to complete the communication command.

[0047] The EMS software reads the communication configuration file information, constructs the communication object and communication command through the communication object and communication command construction module, calls the corresponding communication protocol stack module, starts each communication protocol stack thread, and the communication protocol stack interacts with the external communication interface and data memory table to complete the communication process.

[0048] When the communication equipment, communication protocol, communication point table, etc. of the energy storage EMS system change, the communication parameters can be reconfigured through the communication system configuration interface without the need to redesign the underlying communication program. This increases the versatility of the EMS and can effectively improve the adaptability of the EMS to different peripheral devices.

[0049] The method of the present invention is described in detail below with reference to specific embodiments. Example 1

[0050] First, a communication object is constructed for each device based on the number of devices that the EMS needs to communicate with; then, it is decomposed into several communication instructions based on the specific communication content of the device.

[0051] like Figures 4 and 5 As shown in the figure, on the communication system configuration interface, by selecting the communication device corresponding to the communication object, read the established communication object information, and use the interface buttons and drop-down menus to add, delete, and modify operations. The available protocol types include ModBus RTU, ModBus TCP, IEC103, IEC104, etc. Depending on the selected protocol, the interface information of the relevant protocol can be displayed for configuration, such as Figure 4 Select the communication protocol as ModBus RTU, and its interface configuration information will display the serial port number, baud rate, etc. Figure 5 Select ModBus TCP as the communication protocol. The interface configuration information will display the server IP, port number, etc.

[0052] The lower half of the communication system configuration interface is for communication command related operations. By selecting the corresponding communication command function button, you can add, delete, and modify the communication command to complete the configuration analysis of the communication point table.

[0053] Each communication command corresponds to a Figure 6 The communication command definition interface shown in the figure can be used to select the protocol function number, register quantity, data storage address configuration, etc. Figure 6 As shown, by configuring the data storage address to view the data table function, the data memory table can be called out. Figure 6 The screenshot of the communication command location in the data memory table is as follows Figure 7 shown.

[0054] The communication information configured in the communication system configuration interface is saved in the communication configuration file, such as Figure 8 As shown in the excerpted screenshot, this embodiment uses an .ini file for the communication configuration file. The communication object corresponds to a section, and the communication information description of the corresponding communication object corresponds to multiple keys. The communication object X set in the communication system configuration interface corresponds to AppComObjX, the protocol type, serial port number, and baud rate correspond to ComType, ComAddr, BpsPort, and AsduAddr, and the offset address of communication command X in the data memory table corresponds to ComCmdX.dAddr.

[0055] When the EMS software is running, it reads the communication configuration information from the .ini communication configuration file and constructs a communication object list and a communication command sub-list. The communication object structure and communication command structure constructed in this embodiment are as follows: Communication object data structure definition: typedef struct SHAppCom_Object { char ComNote

[64] ; / / Brief description of communication object / / Protocol type / / #0:MODBUS / / #1:MODBUSTCP / / #2:MODBUS transparent transmission / / #3:IEC103 / / #4:IEC104 / / #5:IEC61850 BYTE byComType; / / communication protocol type DWORD dwComAddr; / / IPV4 address or serial port number DWORD dwWarnAdr; / / The location of the communication failure alarm information in the single point information WORD wdBpsPort; / / TCP port number or serial port baud rate WORD wdAsduAdr; / / ASDU address WORD wdTxRxDlyTm; / / Communication delay time in milliseconds / / Allow the number of communication errors. If the number exceeds, the communication thread will be exited and restarted. WORD wdEnErrCnt; WORD wdComCmdCnt; / / Communication command quantity / / Communication command list (array) first address BYTE bConnect; / / Connection status with the server BYTE RConnect; / / Number of reconnection failures SOCKET fd; / / Network socket or serial port handle WORD wdSendCnt; WORD wdRecvCnt; / / The storage location of the data in the memory data table

[0056] / / CWinThread object pointer returned by AfxBeginThread BYTE RxBuf

[8192] ; / / Communication object receiving buffer BYTE TxBuf

[8192] ; / / Communication object sending buffer }SHAppCom_Object; Communication command data structure definition: typedef struct SHAppCom_CMD { char CmdNote

[32] ; / / Command introduction BYTE byComCmd; / / command word WORD wdRegAdr; / / register address WORD wdRegCnt; ​​ / / register number BYTE byDatTyp; / / remote signal 0, remote control 1, telemetry 2, remote adjustment 3 DWORD dwDatAdr; / / Data offset in the data table DWORD dwAdrInc; / / each data address step DWORD dwDatEnBit[4]; / / Data enable bit }SHAppCom_Cmd; According to the communication object linked list and the communication command sub-linked list, the corresponding communication thread is started, the communication thread is executed, and the communication is completed. Example 2

[0057] The configuration process of "PCS and EMS Communication Protocol and Communication Point Table" is taken as an example to illustrate the decomposition of the communication protocol and communication point table in the method of the present invention.

[0058] like Figure 5 As shown, configure the communication parameters in the communication system configuration window according to the "PCS and EMS Communication Protocol and Communication Point Table". Set the basic communication parameters of PCS according to the communication protocol, mainly including protocol type, port number, server IP, etc. Figure 5 30 communication commands in .

[0059] The establishment of the communication command is explained by taking the establishment of the 0th communication instruction as an example.

[0060] The establishment of the telemetry communication command No. 0 "Read PCS basic information 1": Click "New Communication Command" to call up Figure 9 In the communication command definition window shown, fill in the instruction description, select function number 04H, fill in the register address with the first address 0 according to the communication point table, fill in the number of data read by the communication command 25 according to the register quantity, select telemetry as the data type, fill in the data storage address with the storage location of the read telemetry value in the data memory table, click View Data Table to open the data memory table where the telemetry value is stored, and select the storage address of this communication command. Set the address increment to 1 to identify the correspondence between the read data and the memory table data address. The data control word indicates whether the read data is valid and stored in the data memory table. 0 indicates invalid and 1 indicates valid.

[0061] This command reads Figure 9 The basic information of PCS in the communication command is as follows Figure 10 The addresses 0 to 24 shown in the figure have a total of 25 telemetry values, which are stored in the following order: Figure 11 The data memory table shown is in telemetry data addresses 55 to 79.

[0062] The basic communication parameters and communication command parameters configured through the communication system configuration window are stored in the communication configuration file XhEmsComm.ini. Figure 12 Parameters of PCS communication equipment are stored in the configuration file.

Claims

1. A communication configuration method for an energy storage EMS system, characterized by: The following steps are involved: S1. Design the communication system configuration interface, complete the construction of the communication object through the communication system configuration interface combined with the communication protocol of each device in the communication system, and configure the communication parameters and communication instructions of the constructed communication object; S2 establishes a communication profile and stores the above configuration information in the communication profile; S3 write EMS communication software, EMS communication software reads the communication profile information, builds a data structure based on the contents of the communication profile; the data structure includes a communication object and a communication command; S4. The data structure constructed according to step S3 is configured for data access, that is, data memory table allocated in the EMS communication software for storing communication data; S5. Start a communication thread for each communication object, and cyclically poll all communication commands of this object in the communication thread. According to the uplink or downlink characteristics of the communication command, store the data read back from the device into the data memory table or send the information read from the data memory table to the corresponding device to complete the interaction between the device and the EMS memory data.

2. The energy storage EMS system communication configuration method according to claim 1, characterized in that: The data access configuration in step S4 includes the location and access attributes in the data memory table.

3. The energy storage EMS system communication configuration method according to claim 1, characterized in that: The process of step S4 data access configuration includes: S41. Call up the communication command definition window; S42. Fill in the instruction description, select the function number, and fill in the register address; S43. Fill in the number of registers, the number of registers is the number of data read by the communication command; S44. Select data type; S45. Fill in the data storage address, which is the storage location of the data read in the data memory table; S46. Check the data memory table and select the storage address of this communication command, set the address increment to identify the read data and the memory table data address correspondence; S47. Set the data control word, which indicates whether the read data is valid and stored in the data memory table. 0 indicates invalid and 1 indicates valid.

4. The energy storage EMS system communication configuration method according to claim 1, characterized in that: The execution process of the communication command in step S5 includes: Determine the uplink and downlink functions of the command; If it is a downlink function, read data from the data memory table and construct a communication data frame; If it is an uplink function, directly construct the communication data frame.

5. The energy storage EMS system communication configuration method according to claim 4, characterized in that: The execution process of the communication thread in step S5 includes: Send data frame; Delay according to the delay parameters; Read back the data frame returned by the communication device: when it is a downlink function, the communication is completed; when it is an uplink function, the returned data is stored in the data memory table to complete the communication command.

6. The energy storage EMS system communication configuration method according to claim 1, characterized in that: The EMS software includes a communication object and communication command construction module and a communication protocol stack module; the communication object and communication command construction module constructs all communication objects into a linked list, and the communication command of each communication object is constructed as a sub-linked list of the communication object.

7. The energy storage EMS system communication configuration method according to claim 6, characterized in that: The EMS software calls the corresponding communication protocol in the communication protocol stack module for each communication object to start a communication thread process; The communication protocol stack interacts with the external communication interface and the data memory table to complete the communication process.

Citation Information

Patent Citations

  • Energy management device and system and light storage charge system

    CN107968429A

  • Energy storage EMS system supported by multi-protocol equipment

    CN113762923A

  • Configured execution control system and method

    CN113791636A

  • PLC module configuration management method and system, electronic equipment and storage medium

    CN119292651A

Cited By

  • Method for automatically identifying industrial equipment based on configurable protocol of EMS

    CN121486157A

  • Communication method, device and system applied to energy terminal, and medium

    CN121887750A

  • A communication method and device, system and medium applied to an energy terminal

    CN121887750B