Middleware adaptive to multiple communication protocols and oriented to electric power internet-of-things operating system
By introducing multi-communication protocol adaptation middleware into the power IoT operating system and using protocol feature analysis, matching and dynamic adaptation sub-modules, the problem of low communication efficiency between the power IoT operating system and multiple communication objects is solved. It achieves efficient integration and flexible adaptation to different communication protocols, improving communication efficiency and system performance.
Patent Information
- Application Number
- CN202410876287.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
The existing power IoT operating system cannot achieve efficient integration between multiple communication objects, resulting in low communication efficiency and limited by the diversity of different communication protocols.
Design a multi-communication protocol adaptation middleware, including a protocol feature analysis sub-module, a protocol library matching sub-module and a dynamic protocol adaptation sub-module. By extracting key features in communication data, it matches and loads the corresponding protocol processing logic. Realize the adaptation and processing of different communication protocols and improve communication efficiency.
Quickly identify and adapt to different communication protocols in the complex power IoT environment, achieve efficient integration between the power IoT operating system and multiple communication objects, and improve communication efficiency and system flexibility and scalability.
Smart Images

Figure CN118740952A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of electric power technology, and in particular to a middleware for multi-communication protocol adaptation for an electric power Internet of Things operating system. Background Art
[0002] With the rapid development of smart grid and Internet of Things technologies, the power industry is undergoing an unprecedented digital transformation. As the hub connecting various smart devices, sensors, control systems and application software (hereinafter collectively referred to as communication objects), the power Internet of Things operating system is responsible for the collection, processing and exchange of massive data.
[0003] It should be noted that the communication protocols used by different communication objects may be different, such as IEC60870-5-104 and DL / T 634.5104, as well as the general TCP / IP protocol. The diversity of communication protocols has brought severe challenges to the communication between the power Internet of Things operating system and multiple communication objects.
[0004] At present, it is impossible to achieve efficient integration of communications between the power Internet of Things operating system and multiple communication objects, which directly affects the communication efficiency and needs to be solved urgently. Summary of the invention
[0005] An embodiment of the present invention provides a middleware for multi-communication protocol adaptation for a power Internet of Things operating system to improve the communication efficiency between the power Internet of Things operating system and multiple communication objects.
[0006] According to one aspect of the present invention, a middleware for multi-communication protocol adaptation for an electric power Internet of Things operating system is provided. The middleware is integrated in the electric power Internet of Things operating system. The middleware includes a core communication module. The core communication module includes a protocol feature analysis submodule, a protocol library matching submodule, and a dynamic protocol adaptation submodule; wherein,
[0007] The protocol feature analysis submodule is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0008] The protocol library matching submodule is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0009] The dynamic protocol adapter submodule is used to load the protocol processing logic corresponding to the communication protocol characterized by the matching protocol feature, so as to process the communication data by running the protocol processing logic and realize the communication with the communication object sending the communication data.
[0010] The middleware described in the embodiment of the present invention can quickly and accurately identify and adapt to different communication protocols in a complex power Internet of Things environment through the collaborative work of the protocol feature analysis submodule, the protocol library matching submodule and the dynamic protocol adaptation submodule. That is, through the communication protocol adaptation mechanism, efficient integration of communications between the power Internet of Things operating system and multiple communication objects is achieved, thereby improving communication efficiency.
[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 This is a structural block diagram of a middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided according to an embodiment of the present invention;
[0014] Figure 2 It is a structural block diagram of another middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided according to an embodiment of the present invention;
[0015] Figure 3 This is a structural block diagram of another middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided according to an embodiment of the present invention;
[0016] Figure 4 This is a structural block diagram of a middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided in accordance with an embodiment of the present invention;
[0017] Figure 5 It is a structural block diagram of a middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0019] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0020] Figure 1 This is a structural block diagram of a middleware for multi-communication protocol adaptation for a power Internet of Things operating system provided by an embodiment of the present invention. This embodiment is applicable to the case where communication is performed between a power Internet of Things operating system and multiple communication objects in a power system.
[0021] See also Figure 1 The middleware for multi-communication protocol adaptation for the power Internet of Things operating system according to the embodiment of the present invention is integrated in the power Internet of Things operating system. The middleware includes a core communication module 10. The core communication module 10 includes a protocol feature analysis submodule 101, a protocol library matching submodule 102, and a dynamic protocol adaptation submodule 103; wherein,
[0022] The protocol feature analysis submodule 101 is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0023] The protocol library matching submodule 102 is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0024] The dynamic protocol adapter submodule 103 is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic and realize the communication with the communication object sending the communication data.
[0025] The core communication module 10 may be understood as a module for providing connection and communication between a client and a server and / or a client and an application layer, and integrates a variety of communication protocols used in the power industry.
[0026] The core communication module 10 may include an intelligent protocol identification submodule, which can automatically select the most appropriate communication protocol from a variety of communication protocols to respond according to the key features of the received communication data, thereby improving communication efficiency. In practical applications, the specific functions of the intelligent protocol identification submodule can be implemented through the protocol feature analysis submodule 101, the protocol library matching submodule 102, and the dynamic protocol adaptation submodule 103.
[0027] Specifically, when communication data sent by any one of the multiple communication objects in the power system is received through the protocol feature analysis submodule 101, key features can be extracted from the communication data. Exemplarily, the header information and specific fields of the data packet of the received communication data can be parsed to extract key features, which can be, for example, at least one of a port number and a protocol identifier, etc., which is the basis for identifying the communication protocol, or the protocol type of the communication protocol.
[0028] The protocol database containing protocol features corresponding to various communication protocols is maintained through the protocol library matching submodule 102 to obtain protocol features matching the key features from the protocol database so that the protocol type corresponding to the protocol features is used as the most matching protocol type.
[0029] Through the dynamic protocol adapter submodule 103, for the communication protocol represented by the matched protocol feature, the protocol processing logic corresponding to the communication protocol is loaded, that is, support for the communication protocol is implemented, and then the communication data is processed by running the protocol processing logic, that is, responding to the communication data to achieve communication with the communication object that sends the communication data. The dynamic protocol adapter submodule 103 ensures the flexibility and efficiency of the power Internet of Things operating system, and can adapt to different communication protocols without restarting. In actual applications, the above-mentioned protocol processing logic may optionally include a codec and a session manager, etc., which are not limited here.
[0030] In this integration, optionally, the core communication module 10 may also include a protocol priority decision submodule; wherein the protocol priority decision submodule is used to determine the final protocol from at least two communication protocols according to a preset communication protocol decision strategy when the number of matched communication protocols is at least two, so that the dynamic protocol adaptation submodule processes the final protocol, which helps to optimize communication efficiency and ensure communication quality. In practical applications, optionally, the above-mentioned communication protocol decision strategy can be at least one of the security, transmission efficiency and system preference of the communication protocol, which is not specifically limited here.
[0031] Optionally, the core communication module 10 may also include a protocol adaptive learning and optimization submodule, which analyzes historical communication data through a machine learning algorithm, continuously optimizes the protocol recognition model, learns newly emerging protocol variants or custom protocol features, improves recognition accuracy, and can self-update the protocol database to enable the system to adapt to new communication standards that may emerge in the future or communication protocols for special scenarios.
[0032] The middleware described in the embodiment of the present invention can quickly and accurately identify and adapt to different communication protocols in a complex power Internet of Things environment through the collaborative work of the protocol feature analysis submodule, the protocol library matching submodule and the dynamic protocol adaptation submodule. That is, through the communication protocol adaptation mechanism, efficient integration of communications between the power Internet of Things operating system and multiple communication objects is achieved, thereby improving communication efficiency.
[0033] An optional technical solution, in the case where the core communication module supports the distributed deployment of communication nodes in the power Internet of Things operating system, the core communication module may also include at least one submodule of a cluster management submodule, a load balancing submodule, a message queue submodule, a data replication and synchronization submodule, a fault detection and recovery submodule, and a configuration management submodule: wherein,
[0034] The cluster management submodule is used to monitor the node status of each communication node in the distributed multiple communication nodes to provide the real-time node status of each communication node for communication task allocation. In practical applications, the node status may include at least one of health status, resource usage, and network connection status. Optionally, the cluster management submodule may also support dynamic addition and removal of communication nodes to ensure flexible expansion of the cluster.
[0035] The load balancing submodule is used to allocate communication tasks to communication nodes that meet the preset load requirements based on the node status provided by the cluster management submodule. In practical applications, optionally, polling, least connection or other advanced algorithms can be used to dynamically allocate communication tasks; optionally, the communication node that meets the preset load requirements can be a communication node with a lower load to ensure the overall communication efficiency and maximize resource utilization.
[0036] The message queue submodule is used to use distributed message queues as a buffer and scheduling center for communication tasks to achieve asynchronous processing and decoupling of communication tasks. This ensures that communication tasks can flow smoothly when there is high concurrency or network fluctuations, thereby improving the response speed and stability of the system.
[0037] The data replication and synchronization submodule is used to synchronize the communication status between multiple communication nodes so that each communication node has the same information view. In practical applications, a consistency protocol can be optionally used to ensure data consistency, so that even if a communication node fails, it will not affect the continuity of the service.
[0038] The fault detection and recovery submodule is used to monitor the health status of communication nodes and network links, and when a fault is detected based on the health status, it initiates a recovery mechanism, such as task redirection, faulty node elimination, and spare node activation, thereby reducing service interruption time.
[0039] The configuration management submodule is used to centrally manage the configuration information of multiple communication nodes so that the configuration information of multiple communication nodes is consistent. In practical applications, the configuration management submodule can optionally support dynamic configuration push to ensure the configuration consistency and instant update of all communication nodes, simplify the complexity of operation and maintenance, and improve the efficiency and accuracy of configuration changes.
[0040] On this basis, the core communication module may optionally include a security authentication and authorization sub-module, which, in a distributed deployment environment, prevents data leakage through technologies such as identity authentication and access control list (ACL), ensures the security of communication between communication nodes, and maintains the security boundary of the system.
[0041] In the above technical solution, the core communication module is distributedly deployed among multiple communication nodes to dynamically allocate communication tasks, which can enhance the scalability and fault tolerance of the system; on this basis, further, through the collaborative work of the above sub-modules, the core communication module can operate efficiently and stably under the distributed deployment architecture, which not only improves the processing power and flexibility of the power system, but also lays a solid foundation for the long-term evolution and complex environment adaptability of the power Internet of Things operating system.
[0042] Figure 2It is a structural block diagram of another middleware for multi-communication protocol adaptation for the power Internet of Things operating system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the above-mentioned middleware also includes a bridging module; wherein the bridging module is used to establish a data exchange channel between different application services and different databases, wherein the application services and the databases are associated with the power Internet of Things operating system. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0043] For details, see Figure 2 The middleware for multi-communication protocol adaptation for the power Internet of Things operating system described in this embodiment is integrated in the power Internet of Things operating system. The middleware includes a core communication module 10 and a bridge module 20. The core communication module 10 includes a protocol feature analysis submodule 101, a protocol library matching submodule 102, and a dynamic protocol adaptation submodule 103; wherein,
[0044] The protocol feature analysis submodule 101 is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0045] The protocol library matching submodule 102 is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0046] The dynamic protocol adapter submodule 103 is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic, and realize the communication with the communication object sending the communication data;
[0047] The bridge module 20 is used to establish a data exchange channel between different application services and different databases, wherein the application services and the databases are both associated with the power Internet of Things operating system.
[0048] The technical solution of the embodiment of the present invention takes into account that application services in the power Internet of Things environment need to frequently interact with the database and process large amounts of data in real time. Therefore, by setting up a bridge module, an efficient and secure data exchange channel is established, thereby speeding up data processing and improving system response speed.
[0049] An optional technical solution, the bridge module has a transaction consistency guarantee mechanism, and the transaction consistency guarantee mechanism is implemented through the following sub-modules:
[0050] The atomicity control submodule is responsible for executing all operations in a transaction or not executing them at all;
[0051] The consistency check submodule is used to check whether the data meets the preset business rules and constraints before and after the transaction is executed, so that the database has a consistent state after the transaction is executed;
[0052] The isolation management submodule is used to control concurrent access between different transactions by implementing transaction isolation levels;
[0053] The persistence guarantee submodule is used to save the execution results of the transaction in the database after the transaction is committed through the mechanism of logging and / or synchronous writing to disk.
[0054] Among them, the atomicity control submodule is responsible for ensuring that all operations in the transaction are successfully completed or not executed at all, so as to maintain the indivisibility of the operations. On this basis, optional technologies such as rollback logs and two-phase commit can be used to restore to the state before the transaction starts even if an error occurs during the operation, thereby ensuring data integrity.
[0055] Through the consistency check submodule, before and after the transaction is executed, check whether the data meets the preset business rules and constraints to ensure the consistency of the database state after the transaction is completed. Data verification and correction can be implemented through triggers, stored procedures or application logic to maintain the correctness of business logic.
[0056] Through the isolation management submodule, transaction isolation levels (such as read uncommitted, read committed, repeatable read, and serialization) are implemented to control concurrent access between different transactions, thereby avoiding dirty reads, non-repeatable reads, and phantom reads. In practical applications, the isolation management submodule can optionally ensure the independence of operations between transactions by using lock mechanisms or multiversion concurrency control (MVCC) and other technologies.
[0057] The persistence guarantee submodule ensures that once a transaction is committed, its impact should be permanently saved in the database even if the system fails. Specifically, the mechanism of logging and synchronous writing to disk can restore transaction operations from the log even if the system crashes, ensuring the non-volatility of data.
[0058] In practical applications, the transaction consistency guarantee mechanism can also be implemented through a distributed transaction coordination submodule. In a distributed system involving multiple database nodes, the distributed transaction coordination submodule can coordinate transaction operations on different nodes to ensure the consistency of global transactions. Through the XA protocol or distributed transaction coordination algorithms (such as two-phase commit, three-phase commit, or modern distributed transaction solutions based on consensus algorithms), cross-database transaction processes are managed to overcome the challenges brought by network delays and node failures.
[0059] The above technical solution, by integrating the above sub-modules, the bridge module can effectively maintain the consistency of transactions in the complex network environment of the power Internet of Things operating system, that is, to ensure that data operations in the complex power network environment meet atomicity (A), consistency (C), isolation (I) and persistence (D), thereby ensuring the correctness and reliability of data operations.
[0060] In another optional technical solution, the bridge module includes at least one of the following sub-modules to support hybrid deployment of at least two databases:
[0061] The database connection management submodule may be used to dynamically manage the connection pools of at least two databases, so as to determine the database of the target connection from the at least two databases according to the connection pools;
[0062] A data model conversion submodule, which can be used to automatically convert data models between at least two databases to simplify data interaction between application services and different databases;
[0063] A query optimization and routing submodule, which can be used to determine the execution path of at least part of at least two databases based on the query statement and the data access mode;
[0064] The transaction consistency guarantee submodule can be used to coordinate transactions between at least two databases through a preset transaction management logic so that operations of at least two databases have transaction consistency;
[0065] The performance monitoring and tuning submodule can be used to monitor the access performance indicators of at least two databases and adjust the configuration of at least two databases according to the access performance indicators.
[0066] Among them, in combination with the application scenarios that may be involved in the embodiments of the present invention, at least two databases may include structured query language (SQL) and NoSQL (Not only SQL) representing a non-relational database. Of course, other database combinations may also be used, which are not specifically limited here. It should be noted that for the sake of convenience, SQL and NoSQL are used as examples for explanation, but this is not a specific limitation on the at least two databases.
[0067] The database connection management submodule is responsible for dynamically managing the connection pools of different types of databases (such as SQL such as MySQL and PostgreSQL and NoSQL such as MongoDB and Cassandra, etc.). This submodule can automatically select the most appropriate database connection based on the application request to ensure efficient data access.
[0068] The data model conversion submodule converts data models between SQL and NoSQL, for example, including the mapping between relational table structures and non-relational data structures such as documents, key-value pairs, and graphs. Through automatic conversion, data interaction between application services and different databases is simplified to ensure data compatibility.
[0069] The query optimization and routing submodule can intelligently select the best database execution path based on the query statement and data access mode. For complex queries, which may need to be executed across multiple databases, this submodule is responsible for optimizing the query plan, minimizing data movement and processing costs, and improving query efficiency.
[0070] Through the transaction consistency guarantee submodule, in a hybrid deployment environment, operations across SQL and NoSQL databases are guaranteed to be transactionally consistent. Through preset transaction management logic, such as two-phase commit (2PC) or compensating transaction mode, transactions between different databases are coordinated to maintain data consistency.
[0071] Through the performance monitoring and tuning sub-module, the database access performance indicators are continuously monitored, such as response time, throughput, and resource usage, and optimization suggestions are provided or the database configuration is automatically adjusted based on the monitoring data to ensure performance optimization and effective resource utilization of the hybrid deployment architecture.
[0072] The above technical solution can meet the diversified data storage needs of the power system through the hybrid deployment of at least two databases; on this basis, further, through the integration of the above sub-modules, not only the seamless integration of at least two databases is achieved, but also the data access path is optimized, ensuring the compatibility of data models, as well as transaction consistency and high performance in complex data processing scenarios, thereby providing a highly flexible and powerful data storage solution for the power system.
[0073] Figure 3 It is a structural block diagram of another middleware for multi-communication protocol adaptation for the power Internet of Things operating system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the above-mentioned middleware also includes a hardware abstraction and operating system compatibility layer; wherein the hardware abstraction and operating system compatibility layer is used to provide a unified application interface to run in a variety of power Internet of Things devices and operating system environments associated with the power Internet of Things operating system. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0074] For details, see Figure 3The middleware for multi-communication protocol adaptation for the power Internet of Things operating system described in this embodiment is integrated in the power Internet of Things operating system. The middleware includes a core communication module 10 and a hardware abstraction and operating system compatibility layer 30. The core communication module 10 may include a protocol feature analysis submodule 101, a protocol library matching submodule 102, and a dynamic protocol adaptation submodule 103; wherein,
[0075] The protocol feature analysis submodule 101 is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0076] The protocol library matching submodule 102 is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0077] The dynamic protocol adapter submodule 103 is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic, and realize the communication with the communication object sending the communication data;
[0078] The hardware abstraction and operating system compatibility layer 30 is used to provide a unified application program interface to run in a variety of power Internet of Things devices and operating system environments associated with the power Internet of Things operating system.
[0079] The technical solution of the embodiment of the present invention takes into account the fact that there are many types of power Internet of Things devices and they run on different operating systems. Therefore, a hardware abstraction and operating system compatibility layer is set to provide a unified application programming interface (API), thereby shielding the differences in underlying hardware, operating system and network, and ensuring that the middleware can run seamlessly in a variety of power Internet of Things devices and operating system environments, greatly simplifying the development and deployment process.
[0080] An optional technical solution is that the hardware abstraction and operating system compatibility layer is integrated with a device driver manager, which dynamically loads and unloads device drivers through the following submodules:
[0081] The device identification and classification submodule is used to identify the device information of the power Internet of Things device connected to the power Internet of Things operating system, where the device information includes the device type and the required driver;
[0082] A driver library management submodule is used to maintain a driver library containing various device drivers;
[0083] The dynamic loading submodule is used to select a target driver from the driver library according to the device information and load the target driver into the memory for execution;
[0084] The resource management and optimization submodule is used to monitor the running status of the target driver, and uninstall the target driver when it is determined according to the monitoring result that the target driver is no longer in use.
[0085] Among them, the device identification and classification submodule can identify the device type, device model, required driver and other device information of the power Internet of Things devices connected to the power Internet of Things operating system. By reading the identification information of the power Internet of Things device or conducting handshake communication with it, this submodule can quickly determine the device type and provide necessary information for subsequent device driver loading.
[0086] The driver library management submodule maintains a driver library containing various device drivers to support multiple operating system platforms. This submodule can be updated regularly to include the latest device drivers and compatible with old device drivers to ensure the availability and compatibility of device drivers.
[0087] By dynamically loading the submodule, the appropriate target driver is dynamically selected and loaded into the memory from the driver library according to the device information provided by the device identification and classification submodule, making the power IoT device immediately available without restarting the system or service. In the case of multiple device drivers involved, this submodule needs to handle the dependencies between the device drivers to ensure the correct loading order.
[0088] The resource management and optimization submodule monitors the running status and resource consumption of the target driver, thereby optimizing the target driver's memory usage and central processing unit (CPU) usage to ensure the effective use of system resources. If necessary, the submodule can also uninstall the target driver that is no longer in use to release resources for other processes or devices.
[0089] In actual applications, the device driver manager may optionally include an exception handling and recovery submodule. When a device driver fails to load or has problems during operation, this submodule is responsible for recording error logs, attempting automatic recovery, or providing troubleshooting suggestions. For serious errors, it can roll back to a safe state, uninstall the failed device driver, and try to reload it or replace it with a spare to ensure system stability.
[0090] The above technical solution can dynamically load and unload device drivers through the device driver manager to adapt to the diverse access requirements of power Internet of Things devices; on this basis, further, through the close collaboration of the above sub-modules, the device driver manager provides a flexible, efficient and reliable driver management solution for the power Internet of Things operating system, effectively responding to the challenges brought by the diversity of power Internet of Things devices and improving the compatibility and response speed of the system.
[0091] Another optional technical solution, the hardware abstraction and operating system compatibility layer, can provide a cross-platform graphical user interface (GUI) development toolkit through the following sub-modules, making it easier for developers to build a unified and user-friendly operating interface:
[0092] UI Control Library Submodule: Contains a rich set of graphical interface elements, such as buttons, text boxes, sliders, tables, and charts. These controls are optimized to ensure consistent appearance and behavior across different operating systems and hardware platforms.
[0093] Layout engine submodule: provides a flexible layout manager that supports various layout modes (such as flow layout, grid layout, and absolute layout, etc.), allowing developers to easily design interfaces that adapt to different screen sizes and resolutions, ensuring that the user interface can be perfectly displayed on various devices.
[0094] Style and theme management submodule: allows developers to customize interface styles and themes, such as color schemes, fonts, and icons, and provides a set of preset style templates to achieve consistency in interface visual effects and brand recognition, ensuring that the application interface is beautiful and easy to customize.
[0095] Event processing and interaction submodule: provides users with a unified event monitoring and processing mechanism, such as mouse clicks, keyboard input, and touch screen gestures, supports multi-touch and barrier-free functions, so as to ensure that the user's interaction experience with the interface is smooth and natural, without being restricted by the platform.
[0096] Cross-platform rendering engine submodule: uses high-performance graphics rendering technology and modern Web technology to achieve efficient graphics drawing and animation effects, ensuring high performance and consistency of the interface on different platforms.
[0097] Through the integration of the above sub-modules, the cross-platform GUI development toolkit not only simplifies the interface development process of cross-platform applications and lowers the technical threshold, but also improves the user experience of the application, thereby ensuring uniformity and friendliness in diverse hardware and operating system environments.
[0098] Figure 4It is a structural block diagram of a middleware for multi-communication protocol adaptation for an electric power Internet of Things operating system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the above-mentioned middleware also includes a management module integrating load balancing and high availability, and the management module has a built-in intelligent algorithm. The intelligent algorithm implements power resource scheduling through the following sub-modules: a data acquisition and preprocessing sub-module, which is used to collect the current system state of the power system corresponding to the electric power Internet of Things operating system and pre-process the current system state; a historical data analysis sub-module, which is used to use statistics and time series analysis techniques to mine the historical usage data of the power resources of the power system and identify the historical usage of the power resources; a prediction model sub-module, which can be used to use a pre-built resource demand prediction model to predict the future usage of power resources based on historical usage; a resource scheduling strategy sub-module, which is used to dynamically adjust the resource allocation strategy based on future usage and current system status, and implement the scheduling of power resources based on the adjusted resource allocation strategy. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0099] For details, see Figure 4 The multi-communication protocol adaptation middleware for the power Internet of Things operating system described in this embodiment is integrated in the power Internet of Things operating system. The middleware includes a core communication module 10 and a management module 40 with integrated load balancing and high availability. The core communication module 10 may include a protocol feature analysis submodule 101, a protocol library matching submodule 102, and a dynamic protocol adaptation submodule 103. The management module 40 has a built-in intelligent algorithm. The intelligent algorithm implements power resource scheduling through a data acquisition and preprocessing submodule 401, a historical data analysis submodule 402, a prediction model submodule 403, and a resource scheduling strategy submodule 404; wherein,
[0100] The protocol feature analysis submodule 101 is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0101] The protocol library matching submodule 102 is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0102] The dynamic protocol adapter submodule 103 is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic, and realize the communication with the communication object sending the communication data;
[0103] The data collection and preprocessing submodule 401 is used to collect the current system status of the power system corresponding to the power Internet of Things operating system and preprocess the current system status;
[0104] The historical data analysis submodule 402 is used to mine the historical usage data of the power resources of the power system and identify the historical usage of the power resources by using statistical and time series analysis techniques;
[0105] The prediction model submodule 403 is used to use the pre-built resource demand prediction model to predict the future usage of power resources based on historical usage;
[0106] The resource scheduling strategy submodule 404 is used to dynamically adjust the resource allocation strategy according to future usage and current system status, and implement the scheduling of power resources based on the adjusted resource allocation strategy.
[0107] Considering that the power system needs to ensure 7x24 hours of uninterrupted operation, power resource scheduling is crucial. The embodiment of the present invention dynamically allocates power resources by setting an integrated load balancing and high availability management module 40 to ensure efficient use of power resources.
[0108] Specifically, the current system state of the power system can be collected and preprocessed through the data collection and preprocessing submodule 401. In practical applications, the current system state can be optionally represented by performance indicators such as CPU usage, memory usage, network bandwidth usage, disk I / O, and application load conditions. Preprocessing provides accurate data input for subsequent analysis.
[0109] Through the historical data analysis submodule 402, statistical and time series analysis techniques are used to mine the historical usage data of the power resources of the power system to identify the historical usage of the power resources. The historical usage can be represented by resource usage patterns, periodic trends and abnormal points, etc., thereby providing a basis for the resource demand prediction model used in the prediction model submodule 403.
[0110] Through the prediction model submodule 403, the pre-built resource demand prediction model is used to predict the future usage of power resources based on historical usage. The future usage can be represented by resource usage trends and potential resource bottlenecks, etc., so as to provide decision support for resource allocation strategies.
[0111] Through the resource scheduling strategy submodule 404, the resource allocation strategy is dynamically adjusted according to future usage and current system status, for example, tasks are allocated to servers with sufficient resources or low current loads through a load balancing algorithm, or resources are prepared in advance according to predicted peak periods, etc., and then the scheduling of power resources is achieved based on the adjusted resource allocation strategy.
[0112] The technical solution of the embodiment of the present invention, through the coordinated work of the above-mentioned sub-modules, predictively dispatches power resources based on historical usage data and current system status, thereby optimizing the operating efficiency of the power system.
[0113] In an optional technical solution, the management module may further include at least one of the following sub-modules:
[0114] The health status monitoring submodule is used to continuously monitor the health status of system components and applications, promptly detect performance degradation or failure signs, provide instant feedback for power resource scheduling, and avoid single point failures that cause system instability;
[0115] The adaptive optimization submodule is used to automatically adjust the prediction model parameters and resource allocation strategy according to the actual operation effect feedback, realize the online learning and self-optimization of the algorithm, so as to adapt to the changes in the power system operation environment and ensure the efficient and stable operation of the power Internet of Things operating system;
[0116] The visualization and reporting submodule is used to present resource usage, prediction results, scheduling decisions, and system performance to operation and maintenance personnel in the form of charts and reports, supporting intuitive monitoring and decision support, and facilitating manual intervention and policy adjustment.
[0117] Figure 5 It is a structural block diagram of a middleware for multi-communication protocol adaptation for an electric power Internet of Things operating system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the above-mentioned middleware also includes a security enhancement mechanism; wherein the security enhancement mechanism includes an intrusion prevention system, and the intrusion prevention system provides network security protection for the electric power Internet of Things operating system through the following sub-modules: a feature matching sub-module, which is used to analyze network data packets, and match the analysis results with the feature database associated with network security to identify suspected attack behaviors; a behavior analysis sub-module, which is used to use machine learning technology and deep learning technology to analyze the behavior patterns of network activities and identify abnormal behaviors; a real-time response and blocking sub-module, which is used to take blocking actions based on preset blocking strategies when the target behavior is identified, wherein the target behavior includes suspected attack behaviors and / or abnormal behaviors. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0118] For details, see Figure 5The multi-communication protocol adaptation middleware for the power Internet of Things operating system described in this embodiment is integrated in the power Internet of Things operating system. The middleware includes a core communication module 10 and a security enhancement mechanism 50. The core communication module 10 may include a protocol feature analysis submodule 101, a protocol library matching submodule 102, and a dynamic protocol adaptation submodule 103. The security enhancement mechanism 50 includes an intrusion prevention system. The intrusion prevention system provides network security protection for the power Internet of Things operating system through a feature matching submodule 501, a behavior analysis submodule 502, and a real-time response and blocking submodule 503; wherein,
[0119] The protocol feature analysis submodule 101 is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects;
[0120] The protocol library matching submodule 102 is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database;
[0121] The dynamic protocol adapter submodule 103 is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic, and realize the communication with the communication object sending the communication data;
[0122] The feature matching submodule 501 is used to analyze network data packets and match the analysis results with a feature database associated with network security to identify suspected attack behaviors;
[0123] Behavior analysis submodule 502, used to analyze the behavior patterns of network activities and identify abnormal behaviors using machine learning technology and deep learning technology;
[0124] The real-time response and blocking submodule 503 is used to take blocking actions based on a preset blocking strategy when a target behavior is identified, wherein the target behavior includes suspected attack behavior and / or abnormal behavior.
[0125] The sensitivity and importance of the power system make its security measures extremely important. In the embodiment of the present invention, a security enhancement mechanism 50 is set in the middleware to ensure the safe operation of the power system.
[0126] Specifically, the security enhancement mechanism 50 includes an intrusion prevention system (IPS). On this basis, in view of the unique attack mode of the power system, the IPS uses a feature matching submodule 501, a behavior analysis submodule 502, and a real-time response and blocking submodule 503 to actively identify and prevent potential dangerous behaviors, thereby providing network security protection for the power system and the power Internet of Things operating system.
[0127] Specifically, through the feature matching submodule 501, a dynamically updated attack feature database of the power industry can be maintained, and on this basis, the content and structure of the network data packet can be analyzed, and the analysis results can be matched with the feature database to quickly identify suspected attack behaviors.
[0128] Through the behavior analysis submodule 502, machine learning technology and deep learning technology are used to analyze the behavior pattern of network activities, identify abnormal behavior, and on this basis, identify abnormal traffic. In practical applications, by learning the normal behavior pattern of the power system and comparing the real-time data, the activities that deviate from the normal behavior can be marked and evaluated, and potential new attacks can be discovered in time.
[0129] Through the real-time response and blocking submodule 503, when suspected attack behavior and / or abnormal behavior is identified, blocking actions can be taken immediately based on preset blocking strategies, such as sending alarms, terminating connections, blocking source Internet Protocol (IP) addresses, or implementing traffic filtering strategies, etc., to prevent dangerous data packets from entering the system and protect power facilities from harm.
[0130] On this basis, IPS can also include a protocol compliance check submodule, which implements strict protocol compliance checks on the commonly used communication protocols in the power system to ensure that the data packets follow the protocol specifications. Any operation that violates the protocol provisions will be regarded as a potential threat, thereby triggering an early warning or interception mechanism.
[0131] The technical solution of the embodiment of the present invention, through the coordinated work of the above-mentioned sub-modules, IPS provides comprehensive and intelligent network security protection for the power Internet of Things operating system, effectively resists complex attacks on power infrastructure, and ensures the continuity and security of power supply.
[0132] An optional technical solution, the security enhancement mechanism is integrated with blockchain technology, which is implemented through the following sub-modules:
[0133] The log collection submodule is used to monitor and collect operation events in the power Internet of Things operating system;
[0134] The data encryption submodule is used to encrypt the log information of the operation event before it is submitted to the blockchain to obtain encrypted information;
[0135] The blockchain interface submodule is used to interact with the blockchain network of the blockchain and encapsulate the encrypted information into transactions, which are broadcast to the blockchain network according to the blockchain protocol to wait for miners to verify and add to the next block of the blockchain.
[0136] Among them, the log collection sub-module monitors and collects operation events in the power Internet of Things operating system to ensure that all important activities are recorded accurately without omission.
[0137] Through the data encryption submodule, the log information of the operation event is encrypted before being submitted to the blockchain to obtain encrypted information, thereby ensuring the security of the log information during transmission and storage, and ensuring that sensitive information will not be accessed abnormally.
[0138] Through the blockchain interface submodule, it interacts with the blockchain network of the blockchain, encapsulates the encrypted information into transactions, and broadcasts them to the blockchain network according to the blockchain protocol, waiting for miners to verify and add them to the next block of the blockchain.
[0139] On this basis, optionally, blockchain technology can also be implemented through at least one sub-module among the smart contract sub-module, consensus mechanism sub-module, audit query sub-module and on-chain and off-chain data synchronization sub-module.
[0140] Specifically, through the smart contract sub-module, smart contracts are designed and deployed to specify log recording rules, verification logic and access rights, ensuring that only operation logs that meet specific conditions can be added to the blockchain, thereby further enhancing the data's tamper-proof nature.
[0141] Through the consensus mechanism sub-module, the existing blockchain consensus protocol is implemented or integrated to ensure that the nodes in the network reach a consensus on the validity and order of log data, which is the basis for the blockchain data to be tamper-proof.
[0142] Through the audit query sub-module, a user-friendly interface or API is provided to allow authorized users to query the operation logs on the blockchain, supporting advanced search, filtering and analysis functions to facilitate audit tracking and compliance checks.
[0143] Through the on-chain and off-chain data synchronization submodule, it is possible to ensure that the log data on the blockchain is synchronized with the traditional database or other storage system within the system, achieve data integrity and availability, and handle on-chain and off-chain data consistency issues.
[0144] The above technical solution, through the collaborative work of the above sub-modules, can effectively use blockchain technology to record key operation logs, improve the transparency, security and traceability of system operation logs, and on this basis, further provide solid technical support for audit and compliance requirements.
[0145] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A middleware for multi-communication protocol adaptation for power IoT operating system. It is characterized in that Integrated in the power Internet of Things operating system, the middleware includes a core communication module, and the core communication module includes a protocol feature analysis submodule, a protocol library matching submodule and a dynamic protocol adaptation submodule; wherein, The protocol feature analysis submodule is used to extract key features from the communication data when receiving the communication data sent by any one of the multiple communication objects; The protocol library matching submodule is used to maintain a protocol database containing protocol features corresponding to a plurality of communication protocols, so as to obtain a protocol feature matching the key feature from the protocol database; The dynamic protocol adapter submodule is used to load the protocol processing logic corresponding to the communication protocol represented by the matched protocol feature, so as to process the communication data by running the protocol processing logic and realize communication with the communication object that sends the communication data.
2. The middleware according to claim 1, It is characterized in that In the case where the core communication module supports communication nodes distributedly deployed in the power Internet of Things operating system, the core communication module further includes at least one of the following submodules: A cluster management submodule, used to monitor the node status of each communication node in the distributedly deployed multiple communication nodes, so as to provide the real-time node status of each communication node for communication task allocation; A load balancing submodule, configured to distribute the communication tasks to communication nodes that meet preset load requirements based on the node status provided by the cluster management submodule; The message queue submodule is used to use a distributed message queue as a buffer and scheduling center for the communication task to achieve asynchronous processing and decoupling of the communication task; A data replication and synchronization submodule, used for synchronizing the communication status among the plurality of communication nodes so that each of the communication nodes has the same information view; A fault detection and recovery submodule, for monitoring the health status of the communication nodes and network links, and initiating a recovery mechanism when a fault is detected based on the health status; The configuration management submodule is used to centrally manage the configuration information of the multiple communication nodes so that the configuration information of the multiple communication nodes is consistent.
3. The middleware according to claim 1, It is characterized in that Also includes a bridge module; wherein, The bridging module is used to establish a data exchange channel between different application services and different databases, wherein the application services and the databases are both associated with the power Internet of Things operating system.
4. The middleware according to claim 3, It is characterized in that The bridge module has a transaction consistency guarantee mechanism, which is implemented by the following submodules: The atomicity control submodule is responsible for executing all operations in a transaction or not executing them at all; A consistency check submodule, used to check whether the data meets the preset business rules and constraints before and after the transaction is executed, so that the database has a consistent state after the transaction is executed; An isolation management submodule, used to control concurrent access between different transactions by implementing transaction isolation levels; The persistence guarantee submodule is used to save the execution result of the transaction in the database after the transaction is committed through a mechanism of logging and / or synchronously writing to disk.
5. The middleware according to claim 3, It is characterized in that The bridge module includes at least one of the following submodules to support hybrid deployment of at least two databases: A database connection management submodule, which is responsible for dynamically managing the connection pools of the at least two databases, so as to determine the database of the target connection from the at least two databases according to the connection pool; A data model conversion submodule, used for automatically converting data models between the at least two databases to simplify data interaction between the application service and different databases; A query optimization and routing submodule, configured to determine an execution path of at least part of the at least two databases according to a query statement and a data access mode; A transaction consistency guarantee submodule, used to coordinate transactions between the at least two databases through a preset transaction management logic, so that operations of the at least two databases have transaction consistency; The performance monitoring and tuning submodule is used to monitor the access performance indicators of the at least two databases and adjust the configurations of the at least two databases according to the access performance indicators.
6. The middleware according to claim 1, It is characterized in that Also includes: Hardware abstraction and operating system compatibility layer; among them, The hardware abstraction and operating system compatibility layer is used to provide a unified application program interface to run in a variety of power Internet of Things devices and operating system environments associated with the power Internet of Things operating system.
7. The middleware according to claim 6, It is characterized in that The hardware abstraction and operating system compatibility layer is integrated with a device driver manager, which dynamically loads and unloads device drivers through the following submodules: A device identification and classification submodule, used to identify device information of a power Internet of Things device connected to the power Internet of Things operating system, wherein the device information includes a device type and a required driver; A driver library management submodule is used to maintain a driver library containing various device drivers; A dynamic loading submodule, used for selecting a target driver from the driver library according to the device information, and loading the target driver into the memory for execution; The resource management and optimization submodule is used to monitor the running state of the target driver program, and uninstall the target driver program when it is determined according to the monitoring result that the target driver program is no longer in use.
8. The middleware according to claim 1, It is characterized in that Also includes: A management module integrating load balancing and high availability, wherein the management module has a built-in intelligent algorithm, and the intelligent algorithm implements power resource scheduling through the following submodules: A data collection and preprocessing submodule, for collecting the current system state of the power system corresponding to the power Internet of Things operating system, and preprocessing the current system state; A historical data analysis submodule is used to mine the historical usage data of the power resources of the power system by using statistical and time series analysis techniques to identify the historical usage of the power resources; A prediction model submodule, used to use a pre-built resource demand prediction model to predict the future usage of the power resource based on the historical usage; The resource scheduling strategy submodule is used to dynamically adjust the resource allocation strategy according to the future usage and the current system status, and realize the scheduling of the power resources based on the adjusted resource allocation strategy.
9. The middleware according to claim 1, It is characterized in that It also includes a security enhancement mechanism; wherein the security enhancement mechanism includes an intrusion prevention system, and the intrusion prevention system provides network security protection for the power Internet of Things operating system through the following submodules: The feature matching submodule is used to analyze network data packets and match the analysis results with the feature database associated with network security to identify suspected attack behaviors; The behavior analysis submodule is used to analyze the behavior patterns of network activities and identify abnormal behaviors using machine learning and deep learning technologies; The real-time response and blocking submodule is used to take blocking actions based on preset blocking strategies when target behaviors are identified, wherein the target behaviors include the suspected attack behaviors and / or the abnormal behaviors.
10. The middleware according to claim 9, It is characterized in that The security enhancement mechanism is integrated with blockchain technology, which is implemented through the following submodules: A log collection submodule, used to monitor and collect operation events in the power Internet of Things operating system; A data encryption submodule, used for encrypting the log information of the operation event before submitting it to the blockchain to obtain encrypted information; The blockchain interface submodule is used to interact with the blockchain network of the blockchain, encapsulate the encrypted information into transactions, and broadcast them to the blockchain network according to the blockchain protocol to wait for miners to verify and add them to the next block of the blockchain.
Citation Information
Cited By
Distribution network design software test method and system based on CAD platform, and storage medium
CN119336649A
