A method and system for building and configuring an energy storage system
By using communication protocol matching in the energy storage system, configuration parameters and configuration files are generated for new access devices, and the problem of manual configuration of communication protocols is solved, and the rapid construction and efficient configuration of the energy storage system are achieved.
Patent Information
- Application Number
- CN202510170950.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-05-30
- 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 a diversified communication protocol, which requires manual configuration of the communication protocol when updating or adding new equipment to the EMS local controller, which is time-consuming and error-prone, 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 for the local controller of the energy storage system based on the configuration parameters, reducing the time-consuming, labor-intensive and error-prone problems of manual configuration.
It realizes the rapid construction and configuration of the energy storage system, reduces the time and labor during manual configuration, reduces the risk of configuration errors, and improves the overall operating efficiency and stability of the system.
Smart Images

Figure CN119652749B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of new energy, and particularly relates to a method and system for building and configuring an energy storage system. Background Art
[0002] At present, during the construction of an energy storage system, due to technical standards and design differences among different equipment manufacturers, the equipment produced uses a variety of communication protocols. When it is necessary to update or add equipment and connect it to the local controller of the EMS (Energy Storage Management System), it is often necessary to manually perform cumbersome configuration work on the local controller of the EMS (Energy Storage Management System) according to the communication protocol provided by the manufacturer. This process not only takes a long time, but may also cause communication failures due to configuration errors, thereby affecting the overall operation efficiency and stability of the system. Summary of the Invention
[0003] The present invention aims to provide a method and system for building and configuring an energy storage system. By using the method of matching communication protocols, the corresponding communication protocol is matched for newly connected devices, and the corresponding configuration parameters are generated. Then, based on the configuration parameters, a configuration file that can be directly used for loading by the local controller of the energy storage system is generated. This can reduce the time-consuming, laborious, and error-prone problems caused by a large number of simple and cumbersome configurations during the manual configuration of communication protocols, and can achieve the rapid construction and configuration of the energy storage system.
[0004] A method for building and configuring an energy storage system includes:
[0005] Regularly obtain the configuration information of the data acquisition interface on the local controller of the energy storage system, and based on the configuration information, send the messages supported by the current communication configuration to the data acquisition interface to obtain the devices connected to the local controller of the energy storage system; the devices include existing devices and newly connected devices;
[0006] Based on the communication parameter information of the newly connected device, according to the type of communication protocol supported by the data acquisition interface, find the corresponding communication protocol in the local communication protocol library, distinguish the types of newly connected devices, and combine the communication protocol and device type to construct a device identification instruction, execute a query operation, and obtain the response information returned by the newly connected device;
[0007] Analyze 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 measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission;
[0008] Based on the measurement point data type and measurement point data access permission, obtain the input measurement point set and the output measurement point set respectively, and construct a measurement point data set;
[0009] Taking the measured point data set and the access interface information of the newly connected device as input parameters, calling the communication configuration automatic application program of the energy storage system local controller, obtaining the final communication configuration information and device information, and generating a configuration file.
[0010] By adopting the method of matching communication protocols for the newly connected device to match the corresponding communication protocol, generating the corresponding configuration parameters, and then generating a configuration file that can be directly used for loading by the energy storage system local controller according to the configuration parameters, it can reduce the time-consuming, laborious and error-prone problems caused by a large number of simple and cumbersome configurations in the process of manually configuring communication protocols, and can realize the rapid construction and configuration of the energy storage system.
[0011] Further, before obtaining the configuration information of the data acquisition interface on the energy storage system local controller, it also includes:
[0012] Obtaining the communication protocols adopted by different devices, establishing a local communication protocol library, and recording 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 power of the battery pack, the battery power of the battery pack, the phase A 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.
[0013] The automatic configuration program runs on the energy storage system local controller and regularly obtains the latest communication protocol from the cloud to update the local communication protocol library.
[0014] Further, the step of regularly obtaining the configuration information of the data acquisition interface on the energy storage system local controller and sending 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 energy storage system local controller includes:
[0015] When the data acquisition interface is already configured with a communication protocol and can obtain device information according to the communication protocol, it is determined that there is a device connected normally to the current data acquisition interface;
[0016] When the data acquisition interface is already configured with a communication protocol but cannot obtain device information according to the communication protocol, a communication configuration traversal test is performed to detect the device response situation;
[0017] When the data acquisition interface is not configured with a communication protocol, a communication configuration traversal test is triggered to detect the device response situation.
[0018] Further, the step of performing a communication configuration traversal test to detect the device response situation includes:
[0019] Based on the type of communication protocol supported by the current data acquisition interface, combining multi-type communication configuration parameter information to obtain different combinations of communication configurations; the communication configuration parameter information includes baud rate, data bits, parity bits, and stop bits.
[0020] Based on the communication configuration of each combination, broadcast data or specific instructions are sent respectively, and the device response situation is monitored;
[0021] When there is a device response during the communication configuration traversal test, it is considered that a new device has been accessed, and the current communication configuration information is saved;
[0022] When there is no device response during the communication configuration traversal test, it is considered that no new device has been accessed, and the original communication configuration of the data acquisition interface is restored.
[0023] Furthermore, based on the communication parameter information of the newly accessed device, according to the communication protocol type supported by the data acquisition interface, the corresponding communication protocol is searched for in the local communication protocol library to distinguish the type of the newly accessed device, and a device identification instruction is constructed by combining the communication protocol and the device type, and a query operation is executed to obtain the response information returned by the newly accessed device, including:
[0024] Obtain the communication parameter information of the newly accessed device;
[0025] Based on the obtained communication parameter information of the newly accessed 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 for in the local communication protocol library;
[0026] Obtain the list of device types supported by the found communication protocol from the local communication protocol library, analyze the data packet sent by the newly accessed device, distinguish and determine the device type of the newly accessed device;
[0027] Construct a device identification instruction based on the determined communication protocol and device type;
[0028] Traverse and send the constructed device identification instruction, execute the query operation, and receive the response information returned by the newly accessed device.
[0029] Furthermore, analyze the response information returned by the newly accessed device, match and identify it with the device information in the local communication protocol library, and search for all measurement points of the newly accessed device to obtain the measurement point data type and measurement point data access permission, including:
[0030] Based on the response information returned by the newly accessed device in the normal response format, it is analyzed according to the response frame format corresponding to the device identification instruction to obtain the analyzed response information returned by the newly accessed device;
[0031] Based on the analyzed response information returned by the newly accessed 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 the matching and identification result;
[0032] When the response information returned by the newly connected device after parsing 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 measurement points of the newly connected device are searched based on the local communication protocol library to obtain the measurement point data type and the measurement point data access permission;
[0033] When the response information returned by the newly connected 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 connected device is misidentified, and sequential matching identification is performed based on other device identification instructions in the local communication protocol library. And when the response information returned by the newly connected 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 process fails, the matching identification result is recorded, and a manual processing prompt is sent to the administrator synchronously.
[0034] Further, 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, including:
[0035] When the current measurement point data type is analog quantity and the measurement point data access permission is read-only or read-write, the measurement point name, read function code, register address, measurement point value type, and conversion factor information are obtained, and a unique label name containing the measurement point data type information is generated, and the analog quantity input measurement point set is saved;
[0036] When the current measurement point data type is analog quantity and the measurement point data access permission is write-only or read-write, the measurement point name, write function code, register address, measurement point value type, and conversion factor information are obtained, and a unique label name containing the measurement point data type information is generated, and the analog quantity output measurement point set is saved;
[0037] When the current measurement point data type is discrete quantity and the measurement point data access permission is read-only or read-write, the measurement point name, read function code, register address, bit position information are obtained, and a unique label name containing the measurement point data type information is generated, and the discrete quantity input measurement point set is saved;
[0038] When the current measurement point data type is discrete quantity and the measurement point data access permission is write-only or read-write, the measurement point name, write function code, register address, bit position information are obtained, and a unique label name containing the measurement point data type information is generated, and the discrete quantity output measurement point set is saved;
[0039] Combine the analog quantity input measurement point set, analog quantity output measurement point set, discrete quantity input measurement point set, and discrete quantity output measurement point set to construct a measurement point data set, and export and log the measurement point data inside it.
[0040] Further, taking the measurement point data set and the access interface information of the newly connected device as input parameters, calling the communication configuration automatic application of the energy storage system local controller configuration program, obtaining the final communication configuration information and device information, and generating a configuration file, including:
[0041] Taking the measurement point data set and the access interface information of the newly connected 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 specified access interface for automatic communication configuration to obtain the automatic communication configuration result;
[0042] Based on the communication configuration with successful automatic communication configuration, sending a specific test instruction to the newly connected device, and performing data verification and identification on the data received by the energy storage system local controller and the expected data to obtain the data verification and identification result;
[0043] Based on the communication configuration with successful data verification, generating a configuration file for the final communication configuration information and device information and saving it to the local communication protocol library.
[0044] Further, when the automatic communication configuration result or the data verification result is a failure, record the failure reason in the log and synchronously send a manual processing prompt to the administrator.
[0045] A system for the construction and configuration method of an energy storage system, including:
[0046] A device information acquisition module, which is used to regularly acquire the configuration information of the data acquisition interface on the energy storage system local controller, and send the message supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the devices connected to the energy storage system local controller; the devices include 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, find the corresponding communication protocol in the local communication protocol library, distinguish the types of newly connected devices, and construct a device identification instruction in combination with the communication protocol and device type to execute a query operation to obtain the response information returned by the newly connected device;
[0047] A measurement point data acquisition module, which is used to analyze 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 measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission; and based on the measurement point data type and measurement point data access permission, respectively obtain the input measurement point set and the output measurement point set, and construct a measurement point data set;
[0048] A configuration file generation module, which takes the measurement point data set and the access interface information of newly connected devices as input parameters, calls the communication configuration automatic application of the energy storage system local controller configuration program, obtains the final communication configuration information and device information, and generates a configuration file.
[0049] The beneficial effects of the present invention are as follows:
[0050] By adopting the method of communication protocol matching, the present invention matches the corresponding communication protocol for newly connected devices, generates the corresponding configuration parameters, and then generates a configuration file that can be directly used for loading by the energy storage system local controller based on the configuration parameters. It can reduce the time-consuming, laborious 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. Description of the Drawings
[0051] Figure 1 is the flowchart of the present invention;
[0052] Figure 2 is the schematic diagram of the configuration file generation process;
[0053] Figure 3 is the schematic diagram of the system structure;
[0054] Figure 4 is the schematic diagram of the system module process;
[0055] Figure 5 is the schematic diagram of the structure of the computer device. Detailed Embodiments
[0056] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0057] It should be noted that the following description relates to various aspects of embodiments within the scope of the appended claims. 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 this disclosure, those skilled in the art should understand that one 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 the aspects described herein can be used to implement a device and / or practice a method. In addition, this device can be implemented and this method can be practiced using other structures and / or functions in addition to one or more of the aspects described herein.
[0058] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0059] Embodiment 1
[0060] Figure 1 Shown is a method for building and configuring an energy storage system. By adopting a communication protocol matching method, a corresponding communication protocol is matched for newly connected devices, and corresponding configuration parameters are generated. Then, a 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, laborious, and error-prone problems caused by a large number of simple and cumbersome configurations during the manual configuration of communication protocols, and can achieve the rapid construction and configuration of the energy storage system. Specifically, it includes:
[0061] S1: Regularly obtain the configuration information of the data acquisition interface on the local controller of the energy storage system, and based on the configuration information, send the messages supported by the current communication configuration to the data acquisition interface to obtain the devices connected to the local controller of the energy storage system; the devices include existing devices and newly connected devices;
[0062] S11: When the data acquisition interface is already configured with a communication protocol and can obtain device information based on the communication protocol, it is determined that the existing devices of the current data acquisition interface are normally connected;
[0063] S12: When the data acquisition interface is already 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 situation;
[0064] 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 situation.
[0065] Among them, when device information cannot be obtained based on the communication protocol, there are two situations. One is that the original devices that could communicate normally are in a shutdown state and cannot respond to data, and the other is that the current data acquisition interface has a newly connected device, resulting in the inability to obtain data with the original communication configuration. Then, a communication configuration traversal test is performed to detect the device response situation to determine the reason for the inability to obtain device information. Specifically, it includes:
[0066] A1: Based on the communication protocol types supported by the current data acquisition interface, combine multi-type communication configuration parameter information to obtain different combinations of communication configurations; the communication configuration parameter information includes baud rate, data bits, parity bits, and stop bits;
[0067] A12: Based on each combination of communication configurations, broadcast data or specific instructions are sent respectively, and the device response situation is monitored;
[0068] A121: When there is a device response during the communication configuration traversal test, it is considered that a new device has been connected, and the current communication configuration information is saved.
[0069] A122: When there is no device response during the communication configuration traversal test, it is considered that no new device has been connected, and the original communication configuration of the data acquisition interface is restored.
[0070] Among them, before obtaining the configuration information of the data acquisition interface on the local controller of the energy storage system, it also includes:
[0071] B1: Obtain the communication protocols adopted 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 level of the battery pack, 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.
[0072] In this embodiment, the method for obtaining the communication protocols adopted by different devices includes cooperating with partner manufacturers, collecting public information, etc.
[0073] 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.
[0074] S2: Based on the communication parameter information of the newly connected device, according to the communication protocol type supported by the data acquisition interface, search for the corresponding communication protocol in the local communication protocol library, distinguish the type of the newly connected device, and construct a device identification instruction in combination with the communication protocol and the device type to execute a query operation to obtain the response information returned by the newly connected device.
[0075] S21: Obtain the communication parameter information of the newly connected device.
[0076] S22: Based on the obtained 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, search for the corresponding communication protocol in the local communication protocol library.
[0077] 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.
[0078] S23: Obtain the device type list supported by the found communication protocol from the local communication protocol library, analyze the data packet sent by the newly connected device, and distinguish and determine the device type of the newly connected device.
[0079] In this embodiment, the device types include inverters, heat pumps, charging piles, etc.
[0080] S24: Construct a device identification instruction based on the determined communication protocol and device type;
[0081] In this embodiment, through the constructed device identification instruction, obtain the device unique identifier, device model, and device firmware version of the newly connected device.
[0082] S25: Traverse and send the constructed device identification instruction, execute the query operation, and receive the response information returned by the newly connected device.
[0083] In this embodiment, traverse and send the constructed device identification instruction, execute the query operation, and receive the response information returned by the device, including:
[0084] S251: Based on the constructed device identification instruction, use the broadcast query method to send the execution query operation to all devices in the network and receive the response information returned by all devices;
[0085] S252: Based on the constructed device identification instruction, use the specific address query method to send the execution query operation to the known address of the newly connected device and receive the response information returned by the newly connected device.
[0086] S3: Analyze 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 measurement points of the newly connected device to obtain the measurement point data type and measurement point data access permission;
[0087] S31: Based on the response information returned by the newly connected device in the normal response format, parse it according to the response frame format corresponding to the device identification instruction to obtain the parsed response information returned by the newly connected device;
[0088] 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 in the normal response format is [01,04].
[0089] S32: Based on the parsed response information returned by the newly connected device, match and identify it with the device information corresponding to the current device identification instruction in the local communication protocol library to obtain the matching and identification result;
[0090] S321: When the response information returned by the newly connected device after parsing matches the device information bound by the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all measurement points of the newly connected device are found based on the local communication protocol library to obtain the measurement point data type and measurement point data access permission;
[0091] S322: When the response information returned by the newly connected 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 connected device is misidentified, and sequential matching and identification are performed based on other device identification instructions in the local communication protocol library. When the response information returned by the newly connected 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 process fails, the matching and identification results are recorded, and a manual processing prompt is sent to the administrator synchronously.
[0092] S4: Based on the measurement point data type and the measurement point data access permission, obtain the input measurement point set and the output measurement point set respectively, and construct a measurement point data set.
[0093] S41: When the current measurement point data type is analog quantity and the measurement point data access permission is read-only or read-write, obtain the measurement point name, read function code, register address, measurement point value type, conversion factor information, and generate a unique label name containing the measurement point data type information, and save to obtain the analog quantity input measurement point set.
[0094] S42: When the current measurement point data type is analog quantity and the measurement point data access permission is write-only or read-write, obtain the measurement point name, write function code, register address, measurement point value type, conversion factor information, and generate a unique label name containing the measurement point data type information, and save to obtain the analog quantity output measurement point set.
[0095] S43: When the current measurement point data type is discrete quantity and the measurement point data access permission is read-only or read-write, obtain the measurement point name, read function code, register address, bit information, and generate a unique label name containing the measurement point data type information, and save to obtain the discrete quantity input measurement point set.
[0096] S44: When the current measurement point data type is discrete quantity and the measurement point data access permission is write-only or read-write, obtain the measurement point name, write function code, register address, bit information, and generate a unique label name containing the measurement point data type information, and save to obtain the discrete quantity output measurement point set.
[0097] S45: Combine the analog quantity input measurement point set, the analog quantity output measurement point set, the discrete quantity input measurement point set, and the discrete quantity output measurement point set to construct a measurement point data set, and export and log the measurement point data inside it.
[0098] In this embodiment, the read function code is defaulted to 03, and the write function code is defaulted to 06.
[0099] In this embodiment, the types of measurement point values include unsigned integer type, signed integer type, floating-point type, etc.
[0100] In this embodiment, it is also necessary to determine whether the measured point data set is empty. When the measured point data set is not empty, the measured point configuration content in the measured point data set is exported in the form of EXCEL, and the program records the relevant operation logs. Moreover, the exported EXCEL file can be used for manual configuration.
[0101] S5: Use the measured point data set and the access interface information of the newly connected device as input parameters, call the communication configuration automatic application program of the energy storage system local controller, obtain the final communication configuration information and device information, and generate a configuration file.
[0102] S51: Use the measured point data set and the access interface information of the newly connected device as input parameters, call the communication configuration program of the energy storage system local controller, automatically read the information of the measured point data set, and apply it to the specified access interface for automatic communication configuration to obtain the automatic communication configuration result.
[0103] S52: Based on the communication configuration with successful automatic communication configuration, send a specific test instruction to the newly connected device, and perform data verification and identification on the data received by the energy storage system local controller and the expected data to obtain the data verification and identification result.
[0104] S53: Based on the communication configuration with successful data verification, generate a configuration file for the final communication configuration information and device information and save it to the local communication protocol library.
[0105] Among them, when the automatic communication configuration fails or the data verification fails, the reason for the failure is logged, and a manual processing prompt is sent to the administrator synchronously.
[0106] It should be noted that in this embodiment, the communication configuration of a data acquisition interface is processed. When it is necessary to process the communication configuration of multiple data acquisition interfaces, the same method is used to process the communication configuration of multiple data acquisition interfaces in the data acquisition interface set in sequence to complete the construction and configuration of the entire energy storage system.
[0107] Embodiment 2
[0108] As Figure 2 shown, in this embodiment, a method for building and configuring an energy storage system is provided, which specifically includes:
[0109] T1: Establish a local communication protocol library and update the local communication protocol library according to the communication protocol data obtained regularly.
[0110] T11: Obtain the communication protocols adopted 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.
[0111] 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.
[0112] T2: Periodically obtain the configuration information of the current data acquisition interface on the EMS local controller, and send the messages supported by the current communication configuration to the data acquisition interface based on the configuration information to obtain the existing devices or newly connected devices connected to the EMS local controller.
[0113] T21: Periodically 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.
[0114] T211: When the current data acquisition interface is already configured with a communication protocol, send the messages supported by the current communication configuration to the data acquisition interface based on the configuration information, and determine whether device information can be obtained.
[0115] T2111: When the data acquisition interface is already configured with a communication protocol and device information can be obtained according to the communication protocol, it is determined that the existing devices of the current data acquisition interface are normally connected, and T3 is executed.
[0116] T2112: When the data acquisition interface is already configured with a communication protocol but device information cannot be obtained according to the communication protocol, perform a communication configuration traversal test to detect the device response.
[0117] T21121: Based on the communication protocol types supported by the current data acquisition interface, combine the multi-type communication configuration parameter information to obtain different combinations of communication configurations.
[0118] T21122: Based on each combination of communication configurations, send broadcast data or specific instructions respectively, and monitor the device response.
[0119] T211221: When there is a device response during the communication configuration traversal test, it is considered that a new device has been connected, save the current communication configuration information, and execute T3.
[0120] T211222: When there is no device response during the communication configuration traversal test, it is considered that no new device has been connected, restore the original communication configuration of the data acquisition interface, and execute T3.
[0121] T22: When the data acquisition interface is not configured with a communication protocol, trigger a communication configuration traversal test to detect the device response.
[0122] T221: Based on the communication protocol types supported by the current data acquisition interface, combine the multi-type communication configuration parameter information to obtain different combinations of communication configurations.
[0123] T222: Based on the communication configuration of each combination, send broadcast data or specific instructions respectively, and monitor the device response situation;
[0124] T2221: When there is a device response during the communication configuration traversal test, it is considered that a new device has been accessed, save the current communication configuration information, and execute T3;
[0125] T2222: When there is no device response during the communication configuration traversal test, it is considered that no new device has been accessed, restore the original communication configuration of the data acquisition interface, and synchronously send a manual processing prompt to the administrator;
[0126] T3: Based on the communication parameter information of the newly accessed device, according to the communication protocol type supported by the data acquisition interface of the EMS local controller, find the corresponding communication protocol from the local communication protocol library, distinguish the type of the newly accessed device, and construct a device identification instruction in combination with the communication protocol and the device type, execute a query operation, and obtain the response information returned by the newly accessed device;
[0127] T31: Obtain the communication parameter information of the newly accessed device;
[0128] T32: Based on the obtained communication parameter information of the newly accessed device, according to the communication protocol type supported by the data acquisition interface on the EMS local controller, find the corresponding communication protocol from the local communication protocol library;
[0129] T33: Obtain the list of device types supported by the found communication protocol from the local communication protocol library, analyze the data packet sent by the newly accessed device, distinguish and determine the device type of the newly accessed device;
[0130] T34: Based on the determined communication protocol and device type, construct a device identification instruction;
[0131] T35: Traverse and send the constructed device identification instruction, execute a query operation, and receive the response information returned by the newly accessed device;
[0132] T351: Based on the constructed device identification instruction, use the broadcast query method to send an execution query operation to all devices in the network, and receive the response information returned by all devices, and execute T4;
[0133] T352: Based on the constructed device identification instruction, use the specific address query method to send an execution query operation to the known address of the newly accessed device, and receive the response information returned by the newly accessed device, and execute T4;
[0134] T4: Analyze the response information returned by the newly accessed device, match and identify it with the device information in the local communication protocol library, and find all the measurement points of the newly accessed device to obtain the measurement point data type and the measurement point data access permission;
[0135] T41: Determine whether the response format of the response information returned by the newly connected device matches the expected response format based on the response information returned by the newly connected device;
[0136] 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;
[0137] 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 based on the response information returned by the newly connected device with the normal response format, it 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;
[0138] T4121: When the parsed response information returned by the newly connected device matches the device information bound by the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is correctly identified, and all measuring points of the newly connected device are found based on the local communication protocol library to obtain the measuring point data type and the measuring point data access permission, and execute T5;
[0139] T4122: When the parsed response information returned by the newly connected device does not match the device information bound by the current device identification instruction in the local communication protocol library, it is considered that the newly connected device is misidentified, and it is sequentially matched and identified based on other device identification instructions in the local communication protocol library to obtain a matching identification result;
[0140] T41221: When the parsed response information returned by the newly connected device does not match the device information bound by other device identification instructions in the local communication protocol library, it is considered that the automatic configuration process fails, the matching identification result is recorded, and a manual processing prompt is sent to the administrator synchronously;
[0141] T41222: When the parsed response information returned by the newly connected device can match the device information bound by other device identification instructions in the local communication protocol library, the newly connected device is correctly identified, and all measuring points of the newly connected device are found based on the local communication protocol library to obtain the measuring point data type and the measuring point data access permission, and execute T5;
[0142] T5: Based on the measurement point data type and the measurement point data access permission, obtain the input measurement point set and the output measurement point set respectively, and construct the measurement point data set;
[0143] T51: When the current measurement point data type is analog quantity and the measurement point data access permission is read-only or read-write, obtain the measurement point name, read function code, register address, measurement point value type, conversion factor information, and generate a unique tag name containing the measurement point data type information, and save to obtain the analog quantity input measurement point set;
[0144] T52: When the current measurement point data type is analog quantity and the measurement point data access permission is write-only or read-write, obtain the measurement point name, write function code, register address, measurement point value type, conversion factor information, and generate a unique tag name containing the measurement point data type information, and save to obtain the analog quantity output measurement point set;
[0145] T53: When the current measurement point data type is discrete quantity and the measurement point data access permission is read-only or read-write, obtain the measurement point name, read function code, register address, bit information, and generate a unique tag name containing the measurement point data type information, and save to obtain the discrete quantity input measurement point set;
[0146] T54: When the current measurement point data type is discrete quantity and the measurement point data access permission is write-only or read-write, obtain the measurement point name, write function code, register address, bit information, and generate a unique tag name containing the measurement point data type information, and save to obtain the discrete quantity output measurement point set;
[0147] T55: Combine the analog quantity input measurement point set, the analog quantity output measurement point set, the discrete quantity input measurement point set, and the discrete quantity output measurement point set to construct a non-empty measurement point data set, and export and log the measurement point data inside it, and execute T6;
[0148] T6: Use the measurement point data set and the new access device access interface information as input parameters, call the EMS local controller configuration program for automatic application of communication configuration, obtain the final communication configuration information and device information, and generate a configuration file;
[0149] T61: Use the measurement point data set and the new access device access interface information 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 for automatic communication configuration to obtain the automatic communication configuration result;
[0150] T611: When the automatic communication configuration fails, log the reason for the configuration failure and synchronously send a manual processing prompt to the administrator;
[0151] T612: When the automatic communication configuration is successful, a specific test instruction is sent to the newly connected device, and the data received by the EMS local controller is compared with the expected data for data verification and identification to obtain a data verification and identification result.
[0152] T6121: When the data verification fails, the reason for the error is logged and a manual processing prompt is sent to the administrator synchronously.
[0153] T6122: When the data verification is successful, the final communication configuration information and device information are generated into a configuration file and saved in the local communication protocol library, and T7 is executed.
[0154] T7: Determine whether the data acquisition interface of the current EMS local controller is the last data acquisition interface in the data acquisition set.
[0155] 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.
[0156] 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.
[0157] Embodiment 3
[0158] Based on the same technical concept, as Figure 3 shown, this embodiment also provides a construction and configuration system for an energy storage system, including a device information acquisition module, a measurement point data acquisition module, and a configuration file generation module.
[0159] Specifically, the device information acquisition module is used to regularly acquire the configuration information of the data acquisition interfaces on the energy storage system local controller, and based on the configuration information, send the messages supported by the current communication configuration to the data acquisition interfaces to obtain the devices connected to the energy storage system local controller; the devices include existing devices and newly connected devices; and based on the communication parameter information of the newly connected devices, according to the communication protocol types supported by the data acquisition interfaces, search for the corresponding communication protocols in the local communication protocol library, distinguish the types of newly connected devices, and construct device identification instructions in combination with the communication protocols and device types, and execute query operations to obtain the response information returned by the newly connected devices.
[0160] Specifically, the measurement point data acquisition module is used to analyze the response information returned by the newly connected devices, match and identify it with the device information in the local communication protocol library, and search for all the measurement points of the newly connected devices to obtain the measurement point data types and measurement point data access permissions; and based on the measurement point data types and measurement point data access permissions, respectively obtain the input measurement point set and the output measurement point set, and construct a measurement point data set.
[0161] Specifically, the configuration file generation module uses the measured point data set and the new access device access interface information as input parameters, calls the energy storage system local controller configuration program for automatic communication configuration application, obtains the final communication configuration information and device information, and generates a configuration file.
[0162] On the other hand, as Figure 4 shown, from the perspective of system structure design, the construction and configuration system of the energy storage system includes a local communication protocol library, a collector module, and an automatic configuration program module.
[0163] 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 information such as device type, device model, and manufacturer.
[0164] Specifically, the collector module includes multiple collector interfaces for passing in device information when the device is accessed.
[0165] 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 the 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.
[0166] Embodiment 4
[0167] Based on the same inventive concept, an embodiment of the present application further provides a computer device, including a memory 1 and a processor 2, as Figure 5 shown, the memory 1 stores a computer program, and when the processor 2 executes the computer program, the method described in any one of the above is implemented.
[0168] Among them, the memory 1 at least includes one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. The memory 1 can be an internal storage unit of the building configuration system of the energy storage system in some embodiments, such as a hard disk. The memory 1 can also be an external storage device of the building configuration system of the energy storage system in other embodiments, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, FlashCard, etc. Further, the memory 1 can also include both an internal storage unit and an external storage device of the building configuration system of the energy storage system. The memory 1 can be used not only to store application software installed in the building configuration system of the energy storage system and various types of data, such as the code of the building configuration system program of the energy storage system, etc., but also to temporarily store data that has been output or will be output.
[0169] The processor 2 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chips in some embodiments, and is used to run the program code stored in the memory 1 or process data, such as executing the building configuration system program of the energy storage system, etc.
[0170] The disclosed embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, it executes the steps of the method described in the above method embodiments. Among them, the storage medium can be a volatile or non-volatile computer-readable storage medium.
[0171] The computer program product of the building configuration method of the energy storage system provided by the disclosed embodiments of 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 embodiments. For details, please refer to the above method embodiments and will not be elaborated here.
[0172] The disclosed embodiments of the present invention also provide a computer program, which implements any one of the methods in the foregoing embodiments when executed by a processor. The computer program product can be specifically implemented in a manner of hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.
[0173] It can be understood that the same or similar parts in the above embodiments can be referred to each other, and for the content not described in detail in some embodiments, reference can be made to the same or similar content in other embodiments.
[0174] It should be noted that in the description of the present invention, terms such as "first" and "second" 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 "a plurality of" refers to at least two.
[0175] Any process or method description shown in the flowchart or described in other ways herein can be understood to represent a module, segment, or part of code including one or more executable instructions for implementing a specific logical function or process. The scope of the preferred embodiments of the present invention includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed. This should be understood by those skilled in the technical field to which the embodiments of the present invention belong.
[0176] 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 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, any one of the following well-known technologies in the art or a combination thereof can be used: discrete logic circuits with logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits with appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0177] Those of ordinary skill in the technical field of the present invention can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0178] In addition, each functional unit in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0179] The above-mentioned storage medium can be a read-only memory, a magnetic disk, an optical disc, etc.
[0180] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.
[0181] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to 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