Establishment and configuration method and system of energy storage system
By using communication protocol matching in the energy storage system, the communication protocol is automatically matched and configuration files are generated for the new access equipment, the problem of cumbersome and error-prone configuration of the communication protocol is solved, and the rapid construction and efficient operation of the energy storage system is achieved.
Patent Information
- Application Number
- CN202510170950.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2045-02-17
AI Technical Summary
During the construction of the energy storage system, due to the differences in technical standards and designs of different equipment manufacturers, the equipment adopts diversified communication protocols, which makes it cumbersome to manually configure the communication protocol of the EMS local controller, which takes a long time and is prone to errors, affecting the system operation efficiency and stability.
By using communication protocol matching, the new access device matches the corresponding communication protocol, generates response configuration parameters, and then generates configuration files that can be directly loaded by the local controller of the energy storage system based on the configuration parameters, realizing automated communication configurations.
It reduces the time-consuming and labor-intensive and error-prone problems of manually configuring the communication protocol, realizes the rapid construction and configuration of the energy storage system, and improves the overall operating efficiency and stability of the system.
Smart Images

Figure CN119652749A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of new energy technology, and specifically relates to a method and system for building and configuring an energy storage system. Background Art
[0002] At present, in the process of building energy storage systems, different equipment manufacturers use various communication protocols for their equipment due to differences in technical standards and designs. When it is necessary to update or add new equipment to the EMS (energy storage management system) local controller, it is often necessary to manually perform tedious configuration work on the EMS (energy storage management system) local controller according to the communication protocol provided by the manufacturer. This process is not only time-consuming, but may also cause communication failures due to configuration errors, thereby affecting the overall operating efficiency and stability of the system. Summary of the invention
[0003] The present invention provides a method and system for setting up and configuring an energy storage system. The method matches the corresponding communication protocol for a newly connected device by using a communication protocol matching method, generates corresponding configuration parameters, and then generates a configuration file that can be directly used for loading by a local controller of the energy storage system based on the configuration parameters. The method can reduce the time-consuming, labor-intensive and error-prone problems caused by a large number of simple and cumbersome configurations in the process of manually configuring the communication protocol, and can realize the rapid setting up and configuration of the energy storage system.
[0004] A method for building and configuring an energy storage system, comprising: Periodically obtain configuration information of the data acquisition interface on the local controller of the energy storage system, and send messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain devices connected to the local controller of the energy storage system; the devices include existing devices and newly connected devices; Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and the device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is executed to obtain the response information returned by the newly connected device; Parse the response information returned by the newly connected device, match it with the device information in the local communication protocol library, and find all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; Based on the measuring point data type and the measuring point data access permission, the input measuring point set and the output measuring point set are obtained respectively, and the measuring point data set is constructed; The measurement point data set and the access interface information of the new access device are used as input parameters, and the local controller configuration program of the energy storage system is called to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file.
[0005] By using the communication protocol matching method to match the corresponding communication protocol for the newly connected device, generating the corresponding configuration parameters, and then generating a configuration file that can be directly loaded by the local controller of the energy storage system based on the configuration parameters, it can reduce the time-consuming, labor-intensive and error-prone problems caused by a large number of simple and cumbersome configurations in the manual configuration of the communication protocol, and can realize the rapid construction and configuration of the energy storage system.
[0006] Furthermore, before obtaining the configuration information of the data acquisition interface on the local controller of the energy storage system, the method further includes: Obtain the communication protocols used by different devices, establish a local communication protocol library, and record the configuration information of the read and write parameters of each device under different communication protocols; the read and write parameters of the device include the battery pack power, the battery power of the battery pack, the A-phase voltage of the inverter, the overload warning of the inverter, the charging limit current of the charging pile, and the output voltage of the photovoltaic; The automatic configuration program runs on the local controller of the energy storage system, and regularly obtains the latest communication protocol from the cloud to update the local communication protocol library.
[0007] Further, the configuration information of the data acquisition interface on the local controller of the energy storage system is obtained at regular intervals, and based on the configuration information, a message supported by the current communication configuration is sent to the data acquisition interface to obtain a device connected to the local controller of the energy storage system, including: When the data acquisition interface has been configured with a communication protocol and can obtain device information according to the communication protocol, it is determined that the current data acquisition interface has a device that is normally connected; When the data acquisition interface has been configured with a communication protocol but cannot obtain device information based on the communication protocol, a communication configuration traversal test is performed to detect the device response; When the data acquisition interface is not configured with a communication protocol, a communication configuration traversal test is triggered to detect the device response.
[0008] Furthermore, the communication configuration traversal test to detect the device response includes: Based on the communication protocol type supported by the current data acquisition interface, multiple types of communication configuration parameter information are combined to obtain communication configurations of different combinations; the communication configuration parameter information includes baud rate, data bit, check bit, and stop bit; Based on the communication configuration of each combination, broadcast data or specific instructions are sent respectively, and the device response is monitored; When a device responds during the communication configuration traversal test, it is considered that a new device has been connected and the current communication configuration information is saved; When no device responds during the communication configuration traversal test, it is considered that no new device is connected and the original communication configuration of the data acquisition interface is restored.
[0009] Further, based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and a device identification instruction is constructed in combination with the communication protocol and the device type, and a query operation is performed to obtain the response information returned by the newly connected device, including: Obtain communication parameter information of newly connected devices; Based on the acquired communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface on the local controller of the energy storage system, the corresponding communication protocol is searched from the local communication protocol library; Obtain a list of device types supported by the communication protocol found from the local communication protocol library, parse the data packets sent by the newly connected device, and distinguish and determine the device type of the newly connected device; Based on the determined communication protocol and device type, construct a device identification instruction; The constructed device identification instruction is sent traversally, the query operation is performed, and the response information returned by the newly connected device is received.
[0010] Furthermore, the parsing of the response information returned by the newly connected device, matching and identifying it with the device information in the local communication protocol library, and searching for all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access rights include: Parsing the response information returned by the newly connected device based on the normal response format according to the response frame format corresponding to the device identification instruction to obtain the parsed response information returned by the newly connected device; Based on the parsed response information returned by the newly connected device, the response information is matched and identified with the device information corresponding to the current device identification instruction in the local communication protocol library to obtain a matching identification result; When the response information returned by the parsed newly connected device matches the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all the measurement points of the newly connected device are searched in the local communication protocol library to obtain the measurement point data type and measurement point data access permission; When the response information returned by the newly accessed device after parsing does not match the device information bound to the current device identification instruction in the local communication protocol library, the newly accessed device is considered to be incorrectly identified, and matching and identification are performed in sequence based on other device identification instructions in the local communication protocol library. When the response information returned by the newly accessed device after parsing does not match the device information bound to other device identification instructions in the local communication protocol library, the automatic configuration processing is considered to have failed, the matching identification results are recorded, and a manual processing prompt is sent to the administrator simultaneously.
[0011] Furthermore, based on the measuring point data type and the measuring point data access permission, the input measuring point set and the output measuring point set are obtained respectively, and the measuring point data set is constructed, including: When the current measuring point data type is analog, and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog input measuring point set is saved; When the current measuring point data type is analog, and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog output measuring point set is saved; When the current measuring point data type is discrete quantity and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete quantity input measuring point set; When the current measuring point data type is discrete and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete output measuring point set; Combine the analog input measurement point set, analog output measurement point set, discrete input measurement point set, and discrete output measurement point set to build a measurement point data set, and export and log the internal measurement point data.
[0012] Furthermore, the measurement point data set and the access interface information of the new access device are used as input parameters, and the energy storage system local controller configuration program is called to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file, including: The measurement point data set and the access interface information of the new access device are used as input parameters, the local controller configuration program of the energy storage system is called, the measurement point data set information is automatically read, and it is applied to the specified access interface to perform automatic communication configuration and obtain the automatic communication configuration result; Based on the successful communication configuration of automatic communication configuration, a specific test instruction is sent to the newly connected device, and the data received by the local controller of the energy storage system is verified and identified with the expected data to obtain the data verification and identification result; Based on the communication configuration that has been successfully verified by data, the final communication configuration information and device information are used to generate a configuration file and saved in the local communication protocol library.
[0013] Furthermore, when the automatic communication configuration result or the data verification result is a failure, the failure reason is recorded in the log, and a manual processing prompt is simultaneously sent to the administrator.
[0014] A system for building and configuring an energy storage system, comprising: A device information acquisition module, which is used to periodically acquire the configuration information of the data acquisition interface on the local controller of the energy storage system, and send messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the device connected to the local controller of the energy storage system; the device includes existing devices and newly connected devices; and based on the communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library, the type of newly connected device is distinguished, and the device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is executed to obtain the response information returned by the newly connected device; The measuring point data acquisition module is used to parse the response information returned by the newly connected device, match and identify it with the device information in the local communication protocol library, and find all the measuring points of the newly connected device to obtain the measuring point data type and the measuring point data access permission; and based on the measuring point data type and the measuring point data access permission, respectively obtain the input measuring point set and the output measuring point set, and construct the measuring point data set; The configuration file generation module is used to take the measurement point data set and the access interface information of the new access device as input parameters, call the energy storage system local controller configuration program to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file.
[0015] The beneficial effects of the present invention are: The present invention matches the corresponding communication protocol for the newly connected device by adopting the communication protocol matching method, generates the corresponding configuration parameters, and then generates the configuration file which can be directly used for loading by the local controller of the energy storage system according to the configuration parameters. It can reduce the time-consuming, labor-intensive and error-prone problems caused by a large number of simple and cumbersome configurations in the process of manually configuring the communication protocol, and can realize the rapid construction and configuration of the energy storage system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of the present invention; Figure 2 Generate a flow chart for the configuration file; Figure 3 It is a schematic diagram of the system structure; Figure 4 It is a schematic diagram of the system module flow; Figure 5 A schematic diagram of the structure of a computer device. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0019] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples, and a person skilled in the art can understand the specific meanings of the above terms in this application under specific circumstances.
[0020] Example 1 Figure 1 The figure shows a method for setting up and configuring an energy storage system. By matching the corresponding communication protocol for the newly connected device using the communication protocol matching method, the corresponding configuration parameters are generated, and then the configuration file that can be directly used for loading by the local controller of the energy storage system is generated based on the configuration parameters. This can reduce the time-consuming, labor-intensive and error-prone problems caused by a large number of simple and cumbersome configurations in the process of manually configuring the communication protocol, and can realize the rapid construction and configuration of the energy storage system. Specifically, it includes: S1: regularly obtain the configuration information of the data acquisition interface on the local controller of the energy storage system, and send messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the devices connected to the local controller of the energy storage system; the devices include existing devices and newly connected devices; S11: When the data acquisition interface has been configured with a communication protocol and the device information can be obtained according to the communication protocol, it is determined that the current data acquisition interface has a device normally connected; S12: When the data acquisition interface has been configured with a communication protocol but the device information cannot be obtained according to the communication protocol, a communication configuration traversal test is performed to detect the device response; S13: When the data acquisition interface is not configured with a communication protocol, a communication configuration traversal test is triggered to detect the device response.
[0021] Among them, when the device information cannot be obtained according to the communication protocol, there are two situations, namely, one is that the original normal communication device is in a shutdown state and cannot respond to data, and the other is that the current data acquisition interface has replaced a new access device, resulting in the original communication configuration being unable to obtain data. Then, the communication configuration is traversed and tested to detect the device response to determine the reason why the device information cannot be obtained. Specifically, it includes: A1: Based on the communication protocol type supported by the current data acquisition interface, multiple types of communication configuration parameter information are combined to obtain different combinations of communication configurations; the communication configuration parameter information includes baud rate, data bit, check bit, and stop bit; A12: Based on the communication configuration of each combination, broadcast data or specific instructions are sent respectively, and the device response is monitored; A121: When a device responds during the communication configuration traversal test, it is considered that a new device is connected and the current communication configuration information is saved; A122: When no device responds during the communication configuration traversal test, it is considered that no new device is connected, and the original communication configuration of the data acquisition interface is restored.
[0022] Before obtaining the configuration information of the data acquisition interface on the local controller of the energy storage system, the following steps are also included: B1: Obtain the communication protocols used by different devices, establish a local communication protocol library, and record the configuration information of the read and write parameters of each device under different communication protocols; the read and write parameters of the device include the battery pack power, the battery power of the battery pack, the A-phase voltage of the inverter, the overload warning of the inverter, the charging limit current of the charging pile, and the output voltage of the photovoltaic; In this embodiment, methods for obtaining the communication protocols used by different devices include cooperating with cooperative manufacturers, collecting public information, etc.
[0023] B2: The automatic configuration program runs on the local controller of the energy storage system, and regularly obtains the latest communication protocol from the cloud to update the local communication protocol library.
[0024] S2: Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and a device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is executed to obtain the response information returned by the newly connected device; S21: Obtain communication parameter information of the newly connected device; S22: Based on the acquired communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface on the local controller of the energy storage system, searching for a corresponding communication protocol from the local communication protocol library; In this embodiment, the communication protocol types supported by the data acquisition interface on the local controller of the energy storage system include Modbus, CAN, Ethernet, etc.
[0025] S23: Obtaining a list of device types supported by the found communication protocol from the local communication protocol library, parsing a data packet sent by the newly connected device, and distinguishing and determining a device type of the newly connected device; In this embodiment, the device types include inverters, heat pumps, charging piles, etc.
[0026] S24: constructing a device identification instruction based on the determined communication protocol and device type; In this embodiment, the device unique identifier, device model, and device firmware version of the newly connected device are obtained through the constructed device identification instruction.
[0027] S25: traverse and send the constructed device identification instruction, execute the query operation, and receive the response information returned by the newly connected device.
[0028] In this embodiment, traversing and sending the constructed device identification instruction, executing the query operation, and receiving the response information returned by the device include: S251: Based on the constructed device identification instruction, a broadcast query method is used to send a query operation to all devices in the network, and response information returned by all devices is received; S252: Based on the constructed device identification instruction, a specific address query method is used to send a query operation to a known new access device address, and a response information returned by the new access device is received.
[0029] S3: parse the response information returned by the newly connected device, match it with the device information in the local communication protocol library, and find all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; S31: parsing the response information returned by the newly connected device based on the normal response format according to the response frame format corresponding to the device identification instruction to obtain the parsed response information returned by the newly connected device; In this embodiment, the normal response format means that the beginning of the response data matches the expectation; for example, if the device identification instruction of the inverter is [01,04,12,21,10,69,A1], the beginning of the response data under the normal corresponding format is [01,04].
[0030] S32: Based on the parsed response information returned by the newly connected device, match it with the device information corresponding to the current device identification instruction in the local communication protocol library to obtain a matching identification result; S321: When the response information returned by the parsed newly connected device matches the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all the measurement points of the newly connected device are searched in the local communication protocol library to obtain the measurement point data type and measurement point data access permission; S322: When the response information returned by the newly accessed device after parsing does not match the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly accessed device is incorrectly identified, and matching and identification are performed in sequence based on other device identification instructions in the local communication protocol library. When the response information returned by the newly accessed device after parsing does not match the device information bound to other device identification instructions in the local communication protocol library, it is considered that the automatic configuration processing has failed, the matching identification results are recorded, and a manual processing prompt is sent to the administrator simultaneously.
[0031] S4: Based on the measurement point data type and the measurement point data access permission, an input measurement point set and an output measurement point set are obtained respectively, and a measurement point data set is constructed; S41: When the current measuring point data type is analog, and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, measuring point value type, and conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog input measuring point set is saved; S42: When the current measuring point data type is analog, and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, measuring point value type, and conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog output measuring point set is saved; S43: When the current measuring point data type is discrete quantity and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, and bit information are obtained, and a unique label name containing the measuring point data type information is generated, and the discrete quantity input measuring point set is obtained by saving; S44: When the current measuring point data type is discrete quantity and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, and bit information are obtained, and a unique tag name containing the measuring point data type information is generated, and the discrete quantity output measuring point set is obtained by saving; S45: Combine the analog input measurement point set, the analog output measurement point set, the discrete input measurement point set, and the discrete output measurement point set to construct a measurement point data set, and export and log the measurement point data inside the set.
[0032] In this embodiment, the read function code defaults to 03, and the write function code defaults to 06.
[0033] In this embodiment, the types of the measurement point values include unsigned integer, signed integer, floating point, etc.
[0034] In this embodiment, the measuring point data set also needs to be judged as not empty. When the measuring point data set is not empty, the measuring point configuration content in the measuring point data set is exported in EXCEL format, and the program records the relevant operation log, and the exported EXCEL format file can be used for manual configuration.
[0035] S5: taking the measurement point data set and the access interface information of the new access device as input parameters, calling the energy storage system local controller configuration program to automatically apply the communication configuration, obtaining the final communication configuration information and device information, and generating a configuration file; S51: using the measurement point data set and the access interface information of the new access device as input parameters, calling the energy storage system local controller configuration program, automatically reading the measurement point data set information, and applying it to the designated access interface, performing automatic communication configuration, and obtaining the automatic communication configuration result; S52: Based on the successful communication configuration of the automatic communication configuration, a specific test instruction is sent to the newly connected device, and data verification and identification is performed on the data received by the local controller of the energy storage system and the expected data to obtain a data verification and identification result; S53: Based on the communication configuration that has been successfully verified by the data, a configuration file is generated using the final communication configuration information and device information, and is saved in a local communication protocol library.
[0036] When automatic communication configuration fails or data verification fails, the log records the reason for the failure and simultaneously sends a manual processing prompt to the administrator.
[0037] It should be noted that in this embodiment, the communication configuration of one data acquisition interface is processed. When the communication configuration of multiple data acquisition interfaces needs to be processed, the same method is used to process the communication configuration of multiple data acquisition interfaces in the data acquisition interface set in turn to complete the construction and configuration of the entire energy storage system.
[0038] Example 2 like Figure 2 As shown, in this embodiment, a method for building and configuring an energy storage system is provided, which specifically includes: T1: Establish a local communication protocol library and update the local communication protocol library based on the communication protocol data obtained regularly; T11: Obtain the communication protocols used by different devices, establish a local communication protocol library, and record the configuration information of the read and write parameters of each device under different communication protocols; T12: The automatic configuration program runs on the EMS local controller and periodically obtains the latest communication protocol from the cloud to update the local communication protocol library; T2: Regularly obtain the configuration information of the current data acquisition interface on the EMS local controller, and send messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain existing devices or newly connected devices connected to the EMS local controller; T21: Regularly obtain the configuration information of the current data acquisition interface on the EMS local controller, and determine whether the current data acquisition interface is configured with a communication protocol; T211: When the current data acquisition interface has been configured with a communication protocol, a message supported by the current communication configuration is sent to the data acquisition interface based on the configuration information to determine whether the device information can be obtained; T2111: When the data acquisition interface has been configured with a communication protocol and the device information can be obtained according to the communication protocol, it is determined that the current data acquisition interface has a device connected normally, and T3 is executed; T2112: When the data acquisition interface has been configured with a communication protocol but cannot obtain device information based on the communication protocol, a communication configuration traversal test is performed to detect the device response; T21121: Based on the communication protocol types supported by the current data acquisition interface, multiple types of communication configuration parameter information are combined to obtain different combinations of communication configurations; T21122: Based on the communication configuration of each combination, broadcast data or specific instructions are sent and the device response is monitored; T211221: When a device responds during the communication configuration traversal test, it is considered that a new device is connected, the current communication configuration information is saved, and T3 is executed; T211222: If no device responds during the communication configuration traversal test, it is considered that no new device is connected, and the original communication configuration of the data acquisition interface is restored, and T3 is executed; T22: When the data acquisition interface is not configured with a communication protocol, a communication configuration traversal test is triggered to detect the device response; T221: Based on the communication protocol types supported by the current data acquisition interface, multiple types of communication configuration parameter information are combined to obtain different combinations of communication configurations; T222: Based on the communication configuration of each combination, broadcast data or specific instructions are sent and the device response is monitored; T2221: When a device responds during the communication configuration traversal test, it is considered that a new device is connected, the current communication configuration information is saved, and T3 is executed; T2222: If no device responds during the communication configuration traversal test, it is considered that no new device is connected, the original communication configuration of the data acquisition interface is restored, and a manual processing prompt is sent to the administrator simultaneously; T3: Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface of the EMS local controller, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and the device identification instruction is constructed in combination with the communication protocol and device type, and the query operation is executed to obtain the response information returned by the newly connected device; T31: Obtain the communication parameter information of the newly connected device; T32: Based on the acquired communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface on the EMS local controller, search for the corresponding communication protocol from the local communication protocol library; T33: Obtain a list of device types supported by the communication protocol found from the local communication protocol library, parse the data packets sent by the newly connected device, and distinguish and determine the device type of the newly connected device; T34: Construct device identification instructions based on the determined communication protocol and device type; T35: traverse and send the constructed device identification instruction, execute the query operation, and receive the response information returned by the newly connected device; T351: Based on the constructed device identification instruction, a broadcast query method is used to send a query operation to all devices in the network, and response information returned by all devices is received, and T4 is executed; T352: Based on the constructed device identification instruction, a specific address query method is used to send a query operation to the known address of the newly connected device, and a response information returned by the newly connected device is received, and T4 is executed; T4: Parse the response information returned by the newly connected device, match it with the device information in the local communication protocol library, and find all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; T41: based on the response information returned by the newly connected device, determining whether the response format of the response information returned by the newly connected device matches the expected response format; T411: When the response format of the response information returned by the newly connected device does not match the expected response format, it is considered that the response format of the response information returned by the newly connected device is incorrect, that is, it is considered that there is no configuration information of the current newly connected device in the local communication protocol library, and a manual processing prompt is sent to the administrator synchronously; T412: When the response format of the response information returned by the newly connected device matches the expected response format, it is considered that the response format of the response information returned by the newly connected device is correct, and the response information returned by the newly connected device based on the normal response format is parsed according to the response frame format corresponding to the device identification instruction to obtain the parsed response information returned by the newly connected device; and based on the parsed response information returned by the newly connected device, it is matched and identified with the device information corresponding to the current device identification instruction in the local communication protocol library to obtain a matching identification result; T4121: When the response information returned by the parsed newly connected device matches the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all the measurement points of the newly connected device are searched in the local communication protocol library to obtain the measurement point data type and measurement point data access permission, and then execute T5; T4122: When the response information returned by the parsed newly connected device does not match the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is incorrectly identified, and matching identification is performed in sequence based on other device identification instructions in the local communication protocol library to obtain a matching identification result; T41221: When the response information returned by the parsed newly connected device does not match the device information bound to other device identification instructions in the local communication protocol library, the automatic configuration process is considered to have failed, the matching identification result is recorded, and a manual processing prompt is sent to the administrator simultaneously; T41222: When the response information returned by the parsed new access device matches the device information bound to other device identification instructions in the local communication protocol library, the new access device is correctly identified, and all the measurement points of the new access device are searched in the local communication protocol library to obtain the measurement point data type and measurement point data access permission, and then execute T5; T5: Based on the measurement point data type and measurement point data access permission, the input measurement point set and the output measurement point set are obtained respectively, and the measurement point data set is constructed; T51: When the current measuring point data type is analog, and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog input measuring point set is saved; T52: When the current measuring point data type is analog, and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog output measuring point set is saved; T53: When the current measuring point data type is discrete and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete input measuring point set; T54: When the current measuring point data type is discrete and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete output measuring point set; T55: Combine the analog input measurement point set, analog output measurement point set, discrete input measurement point set, and discrete output measurement point set to construct a non-empty measurement point data set, and export and log the internal measurement point data, and execute T6; T6: Take the measurement point data set and the access interface information of the new access device as input parameters, call the EMS local controller configuration program to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file; T61: Take the measurement point data set and the access interface information of the new access device as input parameters, call the EMS local controller configuration program, automatically read the measurement point data set information, and apply it to the specified access interface to perform automatic communication configuration and obtain the automatic communication configuration result; T611: When automatic communication configuration fails, the log records the reason for the configuration failure and simultaneously sends a manual processing prompt to the administrator; T612: When the automatic communication configuration is successful, a specific test instruction is sent to the newly connected device to perform data verification and identification on the data received by the EMS local controller and the expected data to obtain the data verification and identification result; T6121: When data verification fails, the log records the cause of the error and simultaneously sends a manual processing prompt to the administrator; T6122: When the data verification succeeds, the final communication configuration information and device information are generated into a configuration file, saved in the local communication protocol library, and T7 is executed; T7: Determine whether the data acquisition interface of the current EMS local controller is the last data acquisition interface in the data acquisition set; T71: When the data acquisition interface of the current EMS local controller is the last data acquisition interface in the data acquisition set, the process ends; T72: When the data acquisition interface of the current EMS local controller is not the last data acquisition interface in the data acquisition set, return to execute T2.
[0039] Example 3 Based on the same technical concept, Figure 3 As shown, this embodiment also provides a system for building and configuring an energy storage system, including a device information acquisition module, a measurement point data acquisition module, and a configuration file generation module.
[0040] Specifically, the device information acquisition module is used to periodically acquire the configuration information of the data acquisition interface on the local controller of the energy storage system, and send the message supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the device connected to the local controller of the energy storage system; the device includes an existing device and a newly connected device; and based on the communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library, the type of newly connected device is distinguished, and the device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is executed to obtain the response information returned by the newly connected device; Specifically, the measuring point data acquisition module is used to parse the response information returned by the newly connected device, match and identify it with the device information in the local communication protocol library, and find all the measuring points of the newly connected device to obtain the measuring point data type and the measuring point data access permission; and based on the measuring point data type and the measuring point data access permission, respectively obtain the input measuring point set and the output measuring point set, and construct the measuring point data set; Specifically, the configuration file generation module is used to take the measurement point data set and the access interface information of the new access device as input parameters, call the energy storage system local controller configuration program to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file.
[0041] On the other hand, Figure 4 As shown, from the perspective of system structure design, the energy storage system construction and configuration system includes a local communication protocol library, a collector module, and an automatic configuration program module.
[0042] Specifically, the local communication protocol library is used to store the communication configuration data of each device; and the communication configuration data is bound to the device type, device model, manufacturer and other information; Specifically, the collector module includes multiple collector interfaces for inputting device information when the device is connected; Specifically, the automatic configuration program module includes a protocol matching module and a configuration generation module; the protocol matching module searches for a matching communication protocol in the local communication protocol library based on device information; the configuration generation module generates a corresponding communication configuration list based on the communication protocol found by the protocol matching module, and loads the configuration content on the EMS local controller to complete the automatic configuration of the collector interface.
[0043] Example 4 Based on the same technical concept, the embodiment of the present application also provides a computer device, including a memory 1 and a processor 2, such as Figure 5 As shown, the memory 1 stores a computer program, and the processor 2 implements any of the above-mentioned methods when executing the computer program.
[0044] Among them, the memory 1 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 1 can be an internal storage unit of the construction configuration system of the energy storage system, such as a hard disk. In other embodiments, the memory 1 can also be an external storage device of the construction configuration system of the energy storage system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 1 can also include both an internal storage unit and an external storage device of the construction configuration system of the energy storage system. The memory 1 can not only be used to store application software and various types of data installed in the construction configuration system of the energy storage system, such as the code of the construction configuration system program of the energy storage system, but also can be used to temporarily store data that has been output or is to be output.
[0045] In some embodiments, the processor 2 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 1, such as executing a system program for setting up and configuring an energy storage system.
[0046] The disclosed embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method described in the above method embodiment. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0047] The computer program product of the method for building and configuring an energy storage system provided in the embodiment disclosed in the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0048] The disclosed embodiment of the present invention further provides a computer program, which implements any one of the methods of the aforementioned embodiments when executed by a processor. The computer program product can be implemented in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium, and in another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0049] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0050] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0051] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0052] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0053] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0054] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0055] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0056] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0057] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for constructing and configuring an energy storage system, characterized in that: include: Periodically obtain configuration information of the data acquisition interface on the local controller of the energy storage system, and send messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain devices connected to the local controller of the energy storage system; the devices include existing devices and newly connected devices; Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and the device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is executed to obtain the response information returned by the newly connected device; Parse the response information returned by the newly connected device, match it with the device information in the local communication protocol library, and find all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; Based on the measuring point data type and the measuring point data access permission, the input measuring point set and the output measuring point set are obtained respectively, and the measuring point data set is constructed; The measurement point data set and the access interface information of the new access device are used as input parameters, and the local controller configuration program of the energy storage system is called to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file.
2. A method for building and configuring an energy storage system according to claim 1, characterized in that: Before obtaining the configuration information of the data acquisition interface on the local controller of the energy storage system, the method further includes: Obtain the communication protocols used by different devices, establish a local communication protocol library, and record the configuration information of the read and write parameters of each device under different communication protocols; the read and write parameters of the device include the battery pack power, the battery power of the battery pack, the A-phase voltage of the inverter, the overload warning of the inverter, the charging limit current of the charging pile, and the output voltage of the photovoltaic; The automatic configuration program runs on the local controller of the energy storage system, and regularly obtains the latest communication protocol from the cloud to update the local communication protocol library.
3. The method for constructing and configuring an energy storage system according to claim 1, characterized in that: The method of periodically acquiring configuration information of a data acquisition interface on a local controller of the energy storage system, and sending a message supported by the current communication configuration to the data acquisition interface based on the configuration information, to obtain a device connected to the local controller of the energy storage system, includes: When the data acquisition interface has been configured with a communication protocol and can obtain device information according to the communication protocol, it is determined that the current data acquisition interface has a device that is normally connected; When the data acquisition interface has been configured with a communication protocol but cannot obtain device information based on the communication protocol, a communication configuration traversal test is performed to detect the device response; When the data acquisition interface is not configured with a communication protocol, a communication configuration traversal test is triggered to detect the device response.
4. A method for constructing and configuring an energy storage system according to claim 3, characterized in that: The communication configuration traversal test is performed to detect the device response, including: Based on the communication protocol type supported by the current data acquisition interface, multiple types of communication configuration parameter information are combined to obtain communication configurations of different combinations; the communication configuration parameter information includes baud rate, data bit, check bit, and stop bit; Based on the communication configuration of each combination, broadcast data or specific instructions are sent respectively, and the device response is monitored; When a device responds during the communication configuration traversal test, it is considered that a new device has been connected and the current communication configuration information is saved; When no device responds during the communication configuration traversal test, it is considered that no new device is connected and the original communication configuration of the data acquisition interface is restored.
5. The method for constructing and configuring an energy storage system according to claim 1, characterized in that: Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and the device identification instruction is constructed in combination with the communication protocol and the device type. The query operation is performed to obtain the response information returned by the newly connected device, including: Obtain communication parameter information of the newly connected device; Based on the acquired communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface on the local controller of the energy storage system, the corresponding communication protocol is searched from the local communication protocol library; Obtain a list of device types supported by the communication protocol found from the local communication protocol library, parse the data packets sent by the newly connected device, and distinguish and determine the device type of the newly connected device; Based on the determined communication protocol and device type, construct a device identification instruction; The constructed device identification instruction is sent traversally, the query operation is performed, and the response information returned by the newly connected device is received.
6. The method for constructing and configuring an energy storage system according to claim 1, characterized in that: The parsing of the response information returned by the newly connected device, matching and identifying it with the device information in the local communication protocol library, and searching for all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access rights include: Parsing the response information returned by the newly connected device based on the normal response format according to the response frame format corresponding to the device identification instruction to obtain the parsed response information returned by the newly connected device; Based on the parsed response information returned by the newly connected device, the response information is matched and identified with the device information corresponding to the current device identification instruction in the local communication protocol library to obtain a matching identification result; When the response information returned by the parsed newly connected device matches the device information bound to the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all the measurement points of the newly connected device are searched in the local communication protocol library to obtain the measurement point data type and measurement point data access permission; When the response information returned by the newly accessed device after parsing does not match the device information bound to the current device identification instruction in the local communication protocol library, the newly accessed device is considered to be incorrectly identified, and matching and identification are performed in sequence based on other device identification instructions in the local communication protocol library. When the response information returned by the newly accessed device after parsing does not match the device information bound to other device identification instructions in the local communication protocol library, the automatic configuration processing is considered to have failed, the matching identification results are recorded, and a manual processing prompt is sent to the administrator simultaneously.
7. The method for constructing and configuring an energy storage system according to claim 1, characterized in that: The step of obtaining an input measuring point set and an output measuring point set based on the measuring point data type and the measuring point data access permission, and constructing a measuring point data set, includes: When the current measuring point data type is analog, and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog input measuring point set is saved; When the current measuring point data type is analog, and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, measuring point value type, conversion factor information are obtained, and a unique tag name containing the measuring point data type information is generated, and the analog output measuring point set is saved; When the current measuring point data type is discrete quantity and the measuring point data access permission is read-only or read-write, the measuring point name, read function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete quantity input measuring point set; When the current measuring point data type is discrete and the measuring point data access permission is write-only or read-write, the measuring point name, write function code, register address, bit information are obtained, and a unique tag name containing the measuring point data type information is generated and saved to obtain the discrete output measuring point set; Combine the analog input measurement point set, analog output measurement point set, discrete input measurement point set, and discrete output measurement point set to build a measurement point data set, and export and log the internal measurement point data.
8. The method for constructing and configuring an energy storage system according to claim 2, characterized in that: The measurement point data set and the access interface information of the new access device are used as input parameters, and the energy storage system local controller configuration program is called to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file, including: The measurement point data set and the access interface information of the new access device are used as input parameters, the local controller configuration program of the energy storage system is called, the measurement point data set information is automatically read, and it is applied to the specified access interface to perform automatic communication configuration and obtain the automatic communication configuration result; Based on the successful communication configuration of automatic communication configuration, a specific test instruction is sent to the newly connected device, and the data received by the local controller of the energy storage system is verified and identified with the expected data to obtain the data verification and identification result; Based on the communication configuration that has been successfully verified by data, the final communication configuration information and device information are used to generate a configuration file and saved in the local communication protocol library.
9. A method for constructing and configuring an energy storage system according to claim 8, characterized in that: When the automatic communication configuration result or the data verification result is a failure, the failure reason is recorded in the log, and a manual processing prompt is simultaneously sent to the administrator.
10. A system for the method for building and configuring the energy storage system according to claim 1, characterized in that: include: A device information acquisition module, which is used to periodically acquire the configuration information of the data acquisition interface on the local controller of the energy storage system, and send a message supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the device connected to the local controller of the energy storage system; the device includes existing devices and newly connected devices; Based on the communication parameter information of the newly connected device and the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched from the local communication protocol library to distinguish the type of the newly connected device, and the device identification instruction is constructed in combination with the communication protocol and the device type, and the query operation is performed to obtain the response information returned by the newly connected device; The measurement point data acquisition module is used to parse the response information returned by the newly connected device, match it with the device information in the local communication protocol library, and find all the measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; and based on the measuring point data type and the measuring point data access permission, respectively obtaining the input measuring point set and the output measuring point set, and constructing the measuring point data set; The configuration file generation module is used to take the measurement point data set and the access interface information of the new access device as input parameters, call the energy storage system local controller configuration program to automatically apply the communication configuration, obtain the final communication configuration information and device information, and generate a configuration file.
Citation Information
Patent Citations
Method for configuring and calling webservice interface, computer equipment and storage program
CN115733747A
MES-based specification range automatic matching method and system, and medium
CN119202755A
Name server property tracking
US8819209B1
Cited By
Energy storage system data acquisition method and energy storage system
CN120186215A
Real-time anesthesia parameter adjustment and medical analysis method and system
CN121040863A
Distributed energy storage equipment data acquisition method, system, equipment and medium
CN121239713A
Data acquisition methods, systems, equipment and media for distributed energy storage devices
CN121239713B