Multi-device protocol dynamic loading access method and system

CN122554545APending Publication Date: 2026-08-11RELIANCE ENERGY STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-19
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0002]储能系统通常由多种不同类型的设备组成,如电池管理系统(BMS)、逆变器、能量管理系统(EMS)等,这些设备来自不同的厂家,采用不同的通信协议,储能系统需要对大量的设备数据进行采集、处理和分析,以实现对系统的监控、控制和优化,不同设备的数据格式和协议不同,传统的固定协议接入方式难以适应这种设备多样

Benefits of technology

本发明能识别不同设备协议,从库中匹配适配协议,确保各类设备顺利接入储能系统,依据总体通信状况部署数据通道,合理分配资源,提升通信效率,动态加载协议,无需重启系统或重编代码就能适应新设备协议,对传输数据统一格式处理,生成标准化数据,便于后续分析与应用,增强了系统的数据处理能力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122554545A_ABST
    Figure CN122554545A_ABST
Patent Text Reader

Abstract

This invention relates to the field of data transmission technology, and more specifically, to a method and system for dynamic loading and accessing multiple device protocols. The method identifies the communication protocols of devices accessing the energy storage system, matches corresponding protocols from a protocol library, obtains the current overall communication status of the system, deploys data channels for the devices, dynamically loads protocols, receives device data through the data channels, and processes the data into standardized formats. This invention enhances system compatibility, allows access to devices with different protocols, allocates resources according to communication status to improve communication efficiency, and the dynamic loading of protocols eliminates the need to restart the system, facilitating expansion. Data standardization facilitates subsequent analysis and utilization, thereby improving the overall management and operation level of the energy storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and more specifically, to a method and system for dynamic loading and access of multi-device protocols. Background Technology

[0002] Energy storage systems typically consist of various types of devices, such as battery management systems (BMS), inverters, and energy management systems (EMS). These devices come from different manufacturers and use different communication protocols. Energy storage systems need to collect, process, and analyze a large amount of device data in order to monitor, control, and optimize the system. Different devices have different data formats and protocols, and traditional fixed protocol access methods are difficult to adapt to this diversity of devices. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a method and system for dynamic loading and access of multiple device protocols to achieve flexible data access for various devices.

[0004] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions: According to one aspect of the present invention, a method for dynamic loading and access of multi-device protocols is provided, comprising: The communication protocol of the devices connected to the energy storage system is identified to obtain device protocol information, and the communication protocol that matches the device protocol information is determined from the device protocol library; Obtain the overall communication status of the energy storage system at the current moment, and deploy the specified data channel for the device based on the overall communication status; The communication protocol is dynamically loaded to receive transmitted data from the device through the data channel, and the transmitted data is processed in a unified format to obtain standardized data.

[0005] According to another aspect of the present invention, a multi-device protocol dynamic loading access system is provided, comprising: The protocol scheduling module is used to identify the communication protocols of the devices connected to the energy storage system, obtain device protocol information, and determine the communication protocol that matches the device protocol information from the device protocol library. The channel deployment module is used to obtain the overall communication status of the energy storage system at the current moment, and deploy a specified data channel for the device based on the overall communication status; The data transmission module is used to dynamically load the communication protocol to receive transmitted data from the device through the data channel and to process the transmitted data in a unified format to obtain standardized data.

[0006] As can be seen from the above technical solutions, the multi-device protocol dynamic loading access method provided by the present invention has the following beneficial effects: This invention can identify different device protocols, match and adapt protocols from the library to ensure that various devices can be smoothly connected to the energy storage system, deploy data channels according to the overall communication status, rationally allocate resources, improve communication efficiency, dynamically load protocols, and adapt to new device protocols without restarting the system or rewriting the code. It also processes transmitted data in a unified format to generate standardized data, which is convenient for subsequent analysis and application, and enhances the system's data processing capabilities. Attached Figure Description

[0007] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort: Figure 1 This is a schematic diagram illustrating the steps of the multi-device protocol dynamic loading access method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a multi-device protocol dynamic loading access system provided in an embodiment of the present invention. Detailed Implementation

[0008] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0009] This invention provides a method for dynamically loading and accessing multiple device protocols, the steps of which are as follows: Figure 1 As shown, it includes: The first step is to identify the communication protocols of the devices connected to the energy storage system, obtain the device protocol information, and determine the communication protocol that matches the device protocol information from the device protocol library.

[0010] Specifically, in the first step of the embodiment provided by the present invention, a specific query command is sent to the device connected to the energy storage system. These commands are usually designed according to certain communication rules and formats, such as following a certain standard communication protocol (such as Modbus, CAN, etc.). After receiving the query command, the device will respond according to its own protocol rules.

[0011] More specifically, when responding to a query command, the device organizes and feeds back information related to the protocol it uses, forming device protocol information. This information includes the protocol name, version, data format, communication rules, etc., and then returns it to the energy storage system.

[0012] More specifically, energy storage systems will connect to various types of devices, which may use different communication protocols. By identifying the device protocols, we can understand the communication characteristics of the devices, ensure that the energy storage system can communicate normally with the devices, accurately identify the device protocols to correctly parse the data sent by the devices, and achieve effective data interaction and processing.

[0013] More specifically, the energy storage system maintains a device protocol library containing various communication protocols. When device protocol information is received, the system compares it with the protocols in the device protocol library. The comparison process is usually completed by matching the key features of the protocol (such as protocol name, version number, data format, etc.). If a protocol that matches the device protocol information is found in the device protocol library, then the protocol is determined to be the communication protocol of the access device.

[0014] More specifically, after determining the matching communication protocol from the device protocol library, the energy storage system can send, receive, and process data according to the rules of that protocol, avoiding communication errors and data loss caused by protocol mismatch, and improving communication efficiency. The existence of the device protocol library enables the energy storage system to uniformly manage the communication protocols of different devices, facilitating protocol updates and maintenance. At the same time, it also facilitates the system to standardize the data of different devices, improving the availability and analyzability of the data.

[0015] The second step is to obtain the overall communication status of the energy storage system at the current moment, and deploy the specified data channel for the device based on the overall communication status.

[0016] Specifically, in the second step of the embodiment provided by the present invention, by performing a comprehensive scan and query of the energy storage system, relevant information of all devices currently connected to the energy storage system is obtained. This can be achieved by using the device management module built into the system to send query requests to each connected device and collect feedback information from the device.

[0017] More specifically, the collected information includes device protocol information, communication data volume, and data content type. Device protocol information is used to understand the communication protocol used by the device so that data can be processed according to the characteristics of the protocol. Communication data volume reflects the scale of data transmission of the device at the current moment. Data content type helps to determine the nature and purpose of the data, such as whether it is real-time monitoring data, control commands, or other types of data.

[0018] More specifically, by obtaining the overall communication status, we can gain a comprehensive understanding of the communication status of each device in the energy storage system, including the device's protocol type, data transmission scale, and data content. This allows us to understand the amount and type of communication data of each device, and to rationally allocate system resources according to actual needs, avoiding resource waste and conflicts.

[0019] More specifically, based on the overall communication status, such as the obtained device protocol information, communication data volume, and data content type, the communication priority of the devices is evaluated. For example, devices with high real-time requirements, small data volume, and criticality to system operation are given higher communication priorities; while some non-critical devices or devices with low data transmission frequency are given lower communication priorities. A preset priority evaluation model or rule is used, combined with the specific situation of the device, to conduct a quantitative evaluation and finally determine the communication priority of each device at the current moment.

[0020] More specifically, different devices have different importance and real-time requirements in energy storage systems. By analyzing communication priorities, the communication needs of critical devices can be prioritized to ensure the stable operation of the system. For example, the data of monitoring devices for energy storage batteries is crucial to the safety and performance of the system and should be given a higher communication priority. Reasonable allocation of communication priorities can avoid the impact of low-priority devices occupying too many resources on the communication of high-priority devices, thereby improving the communication efficiency and performance of the entire system.

[0021] More specifically, based on the communication priority of the device, corresponding transmission efficiency parameters and transmission security parameters are generated for the device. Transmission efficiency parameters may include data transmission rate, bandwidth allocation, etc., to ensure that the device can transmit data efficiently; transmission security parameters may include encryption method, access control, etc., to ensure the security of data transmission. Based on the generated transmission efficiency parameters and transmission security parameters, a dedicated data channel is established for the device.

[0022] More specifically, generating transmission efficiency and security parameters based on the communication priority of the devices can ensure that the devices can meet their transmission efficiency requirements while ensuring data security during data transmission. For example, for devices involving sensitive data, higher-level encryption methods can be used for data transmission, and establishing dedicated data channels can avoid communication interference between different devices, ensuring that the devices can transmit data stably and reliably.

[0023] The third step is to dynamically load the communication protocol to receive the transmitted data from the device through the data channel, and to process the transmitted data in a unified format to obtain standardized data.

[0024] Specifically, in the third step of the embodiment provided by the present invention, a dynamic loading engine is pre-established. This engine has the ability to load protocols at runtime. When needed, the matching communication protocol is loaded into the data channel through the dynamic loading engine. This dynamic loading process does not require restarting the entire energy storage system or rewriting the code. After identifying the protocol of a newly connected device, the engine will obtain the corresponding protocol plugin from the protocol library and load it into the system. After loading the protocol, the data channel will be adjusted according to the rules and requirements of the protocol to adapt to the communication protocol of the connected device, such as adjusting the data frame format, communication rate, error checking method, etc., to ensure that the data channel can correctly receive and process the data transmitted by the device.

[0025] More specifically, energy storage systems can connect to devices with various protocols. Dynamically loading protocols allows the system to quickly adapt to the protocols of new devices without restarting or recoding, enhancing the system's flexibility and scalability. When new types of energy storage devices are connected, there is no need for large-scale system modifications; simply dynamically loading the corresponding protocols is sufficient. This avoids frequent system restarts or code redevelopment due to device protocol changes, reducing the workload and cost of system maintenance.

[0026] More specifically, the data channel receives transmission data sent by the access device according to the loaded communication protocol. During the reception process, the data is initially parsed and verified according to the format and rules specified in the protocol to ensure the integrity and accuracy of the data. The received data is temporarily stored in the first database, which is usually a temporary storage area used to temporarily save the original transmission data for further processing later.

[0027] More specifically, by receiving data through the data channel according to the protocol and performing preliminary parsing and verification, errors in the data transmission process can be detected and handled in a timely manner, ensuring data integrity. The data is temporarily stored in the first database, providing a reliable data source for subsequent data processing. Storing the data in the first database allows subsequent data processing to be carried out independently, unaffected by real-time data transmission. At the same time, it also facilitates data backup and recovery, improving data security.

[0028] More specifically, based on the transmission data temporarily stored in the first database, a unified format data mapping process is performed. This process converts data transmitted by different devices and different protocols into a unified format according to preset mapping rules. For example, the voltage, current and other data of different devices are converted according to a unified unit and format. After the data mapping process, standardized data is generated in the second database. The second database is used to store the processed standardized data. This data has a unified format and structure, which is convenient for subsequent analysis, storage and application.

[0029] More specifically, data transmitted by different devices has different formats and standards. By processing the data in a unified format, the data is converted into a standardized format, which improves the availability and comparability of the data. Standardized data enables energy storage systems to be more easily integrated and exchanged with other systems.

[0030] Furthermore, the steps of identifying the communication protocols of devices connected to the energy storage system, obtaining device protocol information, and determining the communication protocol matching the device protocol information from the device protocol library include: S11: Issue a query command to the device connected to the energy storage system, so as to identify the device protocol used by the device through the query command, and generate device protocol information to return to the energy storage system; S12: Based on the device protocol library, perform matching processing on the device protocol information to determine the communication protocol of the device that matches the device accessing the energy storage system in the device protocol library.

[0031] Specifically, query commands need to be designed according to common communication protocol specifications, such as reading the values ​​of specific registers like the device's protocol version number and device type code. Commands typically include key information such as device address, function code, data start address, and data length to ensure that the device can correctly identify and respond.

[0032] More specifically, the query command is sent to the access device through the communication interface of the energy storage system (such as serial port, Ethernet interface, etc.). After receiving the command, the device parses and processes it according to its own protocol rules and returns a data frame containing the device protocol information to the energy storage system. The communication module of the energy storage system is responsible for receiving this returned data, performing preliminary verification and parsing, further processing the received data, extracting key protocol information such as protocol name, version, data format, communication rate, etc., and integrating this information to generate device protocol information.

[0033] More specifically, different devices use different communication protocols. By querying commands to identify the device protocol, we can accurately understand the device's communication characteristics, providing a foundation for subsequent data interaction and communication adaptation. Energy storage systems need to communicate with various types of devices. Only by clarifying the device's protocol information can we ensure that the system can correctly receive and process the data sent by the device, achieving system compatibility and interoperability.

[0034] More specifically, the device protocol library is a pre-built database containing information on various common communication protocols. It exists in the form of a list of standard protocols and a list of private protocols, and the protocols are encapsulated as independent plugins. The protocol library needs to be updated and maintained regularly to ensure that it contains the latest protocol information.

[0035] More specifically, by using appropriate matching algorithms to compare device protocol information with protocols in the protocol library, it is possible to determine whether there is a match by comparing key features such as protocol name, version number, and data format. For example, a string matching algorithm can be used to perform an exact match on the protocol name and version number; for the data format, it can be determined whether there is a match by parsing and comparing the definition and arrangement order of the data fields.

[0036] More specifically, if a protocol that perfectly matches the device's protocol information is found in the protocol library, then that protocol is determined to be the communication protocol of the access device; if no perfectly matching protocol is found, it can be sorted according to similarity, and the closest protocol can be selected as a candidate protocol for further verification and adjustment.

[0037] More specifically, by matching the device protocol information with the protocols in the protocol library, the device's communication protocol can be quickly determined, avoiding the tedious process of manually configuring the protocol and improving the efficiency of communication configuration. Using the matching communication protocol for data transmission and processing can ensure accurate data parsing and processing, reducing data errors and communication failures caused by protocol mismatch.

[0038] Furthermore, the device protocol library includes a standard protocol list and a private protocol list. The standard protocol list contains several standard protocols, and the private protocol list contains several private protocols. Both the standard protocols and the private protocols are encapsulated as independent plug-ins.

[0039] Specifically, common standard protocols, such as Modbus, CANopen, and Profibus, are collected from industry standards organizations, relevant technical documents, and publicly available protocol specifications. Key information about these protocols, including protocol name, version, data format, and communication rules, is organized and recorded. The collected standard protocol information is stored in the standard protocol list of the device protocol library, with each protocol as an independent entry for easy searching and matching later.

[0040] More specifically, we need to collaborate with equipment manufacturers to obtain information about the proprietary protocols used in their equipment. This information needs to be obtained through business cooperation, technical exchanges, and other means. The proprietary protocols should be encapsulated as independent plug-ins to ensure their good independence and scalability. During the encapsulation process, the interfaces and calling methods of the protocols should be defined so that they can be easily loaded and used when needed.

[0041] More specifically, the standard protocol list and the private protocol list should be checked regularly to see if any new standard protocols have been released or private protocols have been updated. If any new protocols or protocol updates are found, they should be added to the protocol library in a timely manner and the corresponding protocol information should be updated.

[0042] More specifically, standard protocols are universal protocols widely used in the industry, while proprietary protocols are protocols designed by certain equipment manufacturers to meet specific needs. By including both standard protocol lists and proprietary protocol lists, the equipment protocol library can cover more types of protocols, improving the compatibility of energy storage systems with different devices.

[0043] More specifically, standard protocols and proprietary protocols are stored in separate lists and encapsulated as independent plugins, making protocol management and maintenance more convenient. Each protocol can be updated, deleted, or added independently without affecting the normal use of other protocols. The encapsulation as independent plugins makes protocol loading and unloading more flexible. When a new device is connected, the corresponding protocol plugin can be dynamically loaded according to the device's protocol information without requiring large-scale modifications to the entire system.

[0044] More specifically, the design of the plugin structure includes basic protocol information (such as protocol name, version, description, etc.), interface definitions (such as data receiving, sending, parsing interfaces, etc.), and implementation code. The plugin should adhere to a unified interface specification to interact with the energy storage system. Based on the plugin structure design, the protocol plugin should be developed using a suitable programming language (such as C, C++, Python, etc.). After development, it should be compiled and tested to ensure the plugin's correctness and stability.

[0045] More specifically, the energy storage system implements the function of loading and unloading plug-ins. When a certain protocol is needed, the corresponding plug-in is loaded into the system through the plug-in management module; when the protocol is no longer needed, the plug-in is unloaded to release system resources.

[0046] More specifically, the independent plug-in encapsulation decouples the protocol from other parts of the energy storage system, reducing the system's coupling. Modifications and updates to the protocol will not affect other modules of the system, improving the system's maintainability and stability. When a new protocol needs to be added to the system, only a new plug-in needs to be developed and added to the protocol library, without modifying the system's core code.

[0047] Furthermore, when the manufacturer updates or upgrades its proprietary protocols, the proprietary protocols in the proprietary protocol list are updated online.

[0048] Specifically, energy storage system operators establish stable communication channels with equipment manufacturers, such as through regular email communication, dedicated API interfaces, or update notification services provided by the manufacturers, to obtain information on updates to the manufacturers' proprietary protocols in real time. After completing the protocol update and upgrade, the manufacturers will proactively send update prompts to the energy storage system, informing it of key information such as protocol version changes and update content.

[0049] More specifically, within the energy storage system, a version management module is set up to periodically compare the protocol versions in the private protocol list with the latest version officially released by the manufacturer. If the local storage protocol version is found to be lower than the latest version from the manufacturer, the system will trigger a protocol update process.

[0050] More specifically, by using a secure download channel pre-agreed with the manufacturer (such as an encrypted HTTPS connection), the system downloads new proprietary protocol plugins from the manufacturer's designated server. During the download process, the system performs integrity checks on the downloaded data, for example, by using hash algorithms (such as MD5 or SHA-256), to ensure that the downloaded plugin files have not been tampered with or corrupted.

[0051] More specifically, before downloading, the energy storage system sends authentication information to the manufacturer's server to prove its legitimate identity and prevent unauthorized plugin downloads and malicious attacks. At the same time, the manufacturer's server also performs strict permission verification on the request to ensure that only authorized energy storage systems can download the updated protocol plugin.

[0052] Furthermore, the step of obtaining the overall communication status of the energy storage system at the current moment, and deploying a specified data channel for the device based on the overall communication status, includes: S21: Perform a general query on the access devices of the energy storage system to obtain the device protocol information, communication data volume and data content type of all devices accessing the energy storage system at the current time, so as to serve as the overall communication status of the energy storage system. S22: Analyze the communication priority of the device based on the overall communication status to obtain the communication priority of the device at the current moment; S23: Generate corresponding transmission efficiency parameters and transmission security parameters for the device according to the communication priority, so as to establish a data channel for the device based on the transmission efficiency parameters and the transmission security parameters.

[0053] Specifically, the energy storage system sends query commands to all connected devices through its communication management module. These commands can be designed based on a unified communication protocol (such as Modbus, CAN, etc.) to ensure that they can be recognized by various devices. The command content usually includes the protocol information of the requesting device, the current amount of communication data, and the data content type.

[0054] More specifically, after receiving a query command, each device responds according to its own protocol rules and returns the required information to the energy storage system. The system's communication management module is responsible for receiving this returned data, performing preliminary sorting and verification to ensure the accuracy and completeness of the data. It stores the collected protocol information, communication data volume, and data content type of each device in the system's database and integrates them to form the overall communication status data of the energy storage system at the current moment.

[0055] More specifically, by acquiring relevant information from all connected devices, the communication status of the energy storage system can be fully understood. The protocol information of different devices determines their communication methods and rules, the amount of communication data reflects the communication load of the devices, and the data content type is used to determine the importance and real-time requirements of the data.

[0056] More specifically, a comprehensive priority evaluation model is established based on the business needs and operational characteristics of the energy storage system. This model can consider multiple factors, such as the importance of the equipment (e.g., critical energy storage equipment has a higher priority), the real-time requirements of the data (real-time monitoring data has a higher priority than non-real-time data), and the amount of communication data.

[0057] More specifically, the acquired device protocol information, communication data volume, and data content type are input into the priority evaluation model. The model's algorithm is used to calculate the priority score of each device by assigning different weights to each factor and then using a weighted summation method. Based on the calculated priority scores, all access devices are sorted to determine the communication priority of each device at the current moment.

[0058] More specifically, in energy storage systems, different devices have different importance and real-time requirements. By analyzing communication priorities, the communication needs of critical devices can be prioritized to ensure the stable operation of the system. For example, the data from monitoring devices for energy storage batteries is crucial to the safety and performance of the system and should be given a higher communication priority.

[0059] More specifically, based on the communication priority of the devices, corresponding transmission efficiency parameters are generated for them. For high-priority devices, higher bandwidth and faster transmission rates can be allocated to ensure that their data can be transmitted in a timely and efficient manner. For example, higher bandwidth can be allocated to real-time monitoring devices to ensure that their data can be uploaded to the system in real time.

[0060] More specifically, considering the data sensitivity and importance of the equipment, corresponding transmission security parameters are generated for it. For equipment involving sensitive data, higher-level encryption methods and access control are adopted as security measures. The control command data of the energy storage system is transmitted using high-strength encryption algorithms to prevent data from being stolen or tampered with.

[0061] More specifically, based on the generated transmission efficiency and security parameters, a dedicated data channel is established for each device, involving operations such as network resource allocation and communication link configuration, to ensure that the device can transmit data stably and securely through this data channel.

[0062] More specifically, devices with different priorities have different requirements for transmission efficiency and security. By generating corresponding parameters for the devices and establishing data channels, we can meet the personalized communication needs of the devices and improve the quality and reliability of data transmission.

[0063] Furthermore, if the device is a newly added device that is being connected to the energy storage system for the first time, then a protocol communication test is performed on the device to verify the protocol type information of the device.

[0064] Specifically, if the device is a new device that is being connected to the energy storage system for the first time, after obtaining the device's protocol type information for the first time, a temporary communication channel needs to be established to conduct a communication test on the device's protocol type information in order to determine whether the obtained protocol type information is the correct communication protocol.

[0065] More specifically, after verification, the device is recorded, and the device's protocol type information can be directly used in subsequent connections until the device is replaced with a new protocol type information, at which point the newly replaced protocol type information is tested and verified again.

[0066] Furthermore, the steps of dynamically loading the communication protocol to receive transmitted data from the device through the data channel and processing the transmitted data into a unified format to obtain standardized data include: S31: The communication protocol is dynamically loaded into the data channel through a pre-established dynamic loading engine, so that the data channel can be adapted to the communication protocol of the device connected to the energy storage system without restarting the system or re-encoding the code. S32: Receive the transmitted data from the device through the data channel, and temporarily store the transmitted data in the first database; S33: Based on the first database, perform unified format data mapping processing on the temporarily stored transmission data to generate standardized data in the second database.

[0067] Specifically, when the energy storage system starts up, the dynamic loading engine is initialized. This engine has the function of loading and managing protocol plugins. By preloading some necessary system libraries and drivers, it prepares for subsequent protocol loading.

[0068] More specifically, based on the previously determined device protocol information, the corresponding protocol plugin is located from the device protocol library. The protocol library stores plugins for various standard protocols and proprietary protocols. Each plugin has a unique identifier and version information, making it easy to find quickly.

[0069] More specifically, the dynamic loading engine loads the identified protocol plugin into the runtime environment of the data channel. During the loading process, the engine checks the plugin's compatibility and integrity to ensure that the plugin can run normally. At the same time, it allocates necessary system resources to the plugin, such as memory and threads.

[0070] More specifically, after loading the protocol plugin, the data channel will automatically adapt according to the rules and requirements of the protocol, such as adjusting the data frame format, communication rate, and verification method, to ensure that the data channel can correctly receive and process the data transmitted by the device according to the protocol.

[0071] More specifically, energy storage systems will connect to devices with various protocols. Dynamically loading protocols allows the system to quickly adapt to the protocols of new devices without restarting or recoding. In this way, when new devices are connected, there is no need to make large-scale modifications to the entire system. Only the corresponding protocol plugin needs to be loaded, avoiding frequent system restarts or code redevelopment due to device protocol changes, thus reducing the workload and cost of system maintenance.

[0072] More specifically, the data channel receives transmission data sent by the access device according to the loaded communication protocol. During the reception process, it performs preliminary parsing and verification of the data according to the format and rules specified in the protocol, and checks the integrity and accuracy of the data. For example, it checks the length of the data frame and whether the check code is correct.

[0073] More specifically, the received data is temporarily stored in a first database, which is usually a temporary storage area that uses caching technology to ensure fast data storage and retrieval. It can be either an in-memory database or a disk database, depending on the actual system requirements and data volume.

[0074] More specifically, by receiving data through the data channel according to the protocol and performing preliminary parsing and verification, errors in the data transmission process can be detected and handled in a timely manner, ensuring data integrity. The data is temporarily stored in the first database, allowing subsequent data processing to be carried out independently without being affected by real-time data transmission. At the same time, it also facilitates data backup and recovery, improving data security.

[0075] More specifically, based on the business needs and data standards of the energy storage system, unified data mapping rules are defined. These rules describe how to convert transmitted data of different protocols and formats into a unified standard format. For example, the voltage, current and other data of different devices are converted according to a unified unit and format.

[0076] More specifically, the temporarily stored transmission data is extracted from the first database, and the data is transformed according to the defined mapping rules. Data processing scripts can be written using programming languages ​​(such as Python, Java, etc.) to implement data extraction, transformation, and mapping operations. The transformed data is then stored in the second database to form standardized data. The second database is usually a long-term storage database used to store processed data with a unified format and structure, which facilitates subsequent analysis, storage, and application.

[0077] More specifically, data transmitted by different devices has different formats and standards. By processing the data in a unified format, the data is converted into a standardized format, which improves the availability and comparability of the data. For example, when performing data analysis and statistics, standardized data can be processed and analyzed more easily. Standardized data enables energy storage systems to be more easily integrated and interacted with other systems. For example, providing standardized data to energy management systems or monitoring systems enables comprehensive management and monitoring of energy storage systems. At the same time, it also facilitates data sharing and exchange, and promotes the collaborative work of energy storage systems with other related systems.

[0078] Based on the technical content of the multi-device protocol dynamic loading access method described in the above-disclosed embodiments, the present invention provides a multi-device protocol dynamic loading access system, the structure of which is as follows: Figure 2 The method for dynamically loading and accessing multi-device protocols as described in any one of the first aspects includes: The protocol scheduling module is used to identify the communication protocols of the devices connected to the energy storage system, obtain device protocol information, and determine the communication protocol that matches the device protocol information from the device protocol library. The channel deployment module is used to obtain the overall communication status of the energy storage system at the current moment, and deploy a specified data channel for the device based on the overall communication status; The data transmission module is used to dynamically load the communication protocol to receive transmitted data from the device through the data channel and to process the transmitted data in a unified format to obtain standardized data.

[0079] In this embodiment, the specific implementation of each module in the above system embodiment is described in the above method embodiment, and will not be repeated here.

[0080] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0081] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0082] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for dynamically loading and accessing multi-device protocols, characterized in that, include: The communication protocol of the devices connected to the energy storage system is identified to obtain device protocol information, and the communication protocol that matches the device protocol information is determined from the device protocol library; Obtain the overall communication status of the energy storage system at the current moment, and deploy the specified data channel for the device based on the overall communication status; The communication protocol is dynamically loaded to receive transmitted data from the device through the data channel, and the transmitted data is processed in a unified format to obtain standardized data.

2. The multi-device protocol dynamic loading access method as described in claim 1, characterized in that, The steps of identifying the communication protocols of devices connected to the energy storage system, obtaining device protocol information, and determining the communication protocol that matches the device protocol information from the device protocol library include: A query command is issued to the devices connected to the energy storage system to identify the device protocol used by the device through the query command and generate device protocol information to be returned to the energy storage system; The device protocol information is matched based on the device protocol library to determine the communication protocol of the device connected to the energy storage system.

3. The multi-device protocol dynamic loading access method as described in claim 2, characterized in that, The device protocol library includes a standard protocol list and a private protocol list. The standard protocol list contains several standard protocols, and the private protocol list contains several private protocols. Both the standard protocols and the private protocols are encapsulated as independent plug-ins.

4. The multi-device protocol dynamic loading access method as described in claim 3, characterized in that, When a manufacturer updates or upgrades its proprietary protocols, the proprietary protocols in the proprietary protocol list are updated online.

5. The multi-device protocol dynamic loading access method as described in claim 1, characterized in that, The steps of obtaining the overall communication status of the energy storage system at the current moment and deploying a specified data channel for the device based on the overall communication status include: A comprehensive query of the connected devices of the energy storage system is performed to obtain the device protocol information, communication data volume and data content type of all devices connected to the energy storage system at the current moment, which together serve as the overall communication status of the energy storage system; Based on the overall communication status, the communication priority of the device is analyzed to obtain the communication priority of the device at the current moment; Based on the communication priority, corresponding transmission efficiency parameters and transmission security parameters are generated for the device, so as to establish a data channel for the device based on the transmission efficiency parameters and the transmission security parameters.

6. The multi-device protocol dynamic loading access method as described in claim 5, characterized in that, If the device is a newly added device that is being connected to the energy storage system for the first time, then a protocol communication test is performed on the device to verify the protocol type information of the device.

7. The multi-device protocol dynamic loading access method as described in claim 1, characterized in that, The steps of dynamically loading the communication protocol to receive transmitted data from the device through the data channel and processing the transmitted data into a unified format to obtain standardized data include: The communication protocol is dynamically loaded into the data channel through a pre-established dynamic loading engine, so that the data channel can be adapted to the communication protocol of the device connected to the energy storage system without restarting the system or re-encoding the code. The data transmitted by the device is received through the data channel, and the transmitted data is temporarily stored in the first database; Based on the first database, the temporarily stored transmission data is processed using a unified format data mapping to generate standardized data in the second database.

8. A multi-device protocol dynamic loading access system, characterized in that, include: The protocol scheduling module is used to identify the communication protocols of the devices connected to the energy storage system, obtain device protocol information, and determine the communication protocol that matches the device protocol information from the device protocol library. The channel deployment module is used to obtain the overall communication status of the energy storage system at the current moment, and deploy a specified data channel for the device based on the overall communication status; The data transmission module is used to dynamically load the communication protocol to receive transmitted data from the device through the data channel and to process the transmitted data in a unified format to obtain standardized data.