An intelligent gateway system that integrates communication protocols with thermal Internet of Things platform communications
By designing an intelligent gateway system, using multi-protocol conversion modules and protocol learning identification modules, the problem of complex integration of communication protocols and inconsistent data transmission in the thermal Internet of Things platform is solved, and efficient and accurate data communication and optimized communication resource allocation are achieved.
Patent Information
- Application Number
- CN202510253292.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-03-05
AI Technical Summary
Since the thermal Internet of Things platform involves many different types of devices and systems, different communication protocols and data formats are required, resulting in complex interconnection and data exchange between devices, and the reliability requirements of communication protocol integration and data transmission are extremely high.
Design an intelligent gateway system, including the main controller, multi-protocol conversion module, protocol learning identification module, polling scheduling module, data aggregation and forwarding module, intelligent scheduling module and device management module. Through the coordinated work of these modules, the conversion and identification between different communication protocols is realized, the protocol conversion process is optimized, and the data is correctly transmitted and parsed between different devices and systems.
It improves the efficiency and accuracy of data communication, reduces data transmission errors and delays caused by protocol mismatch, optimizes the allocation of communication resources, and improves the overall operation efficiency and reliability of the thermal Internet of Things platform.
Smart Images

Figure CN119743349B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of thermal Internet of Things, and specifically to an intelligent gateway system that integrates communication protocols with thermal Internet of Things platforms. Background Art
[0002] As a key component of the Internet of Things, the intelligent gateway can realize functions such as data collection, processing, storage and forwarding, as well as protocol conversion and equipment management. The thermal Internet of Things platform refers to a platform that combines thermal systems with Internet of Things technology to achieve remote monitoring, data analysis and optimized management of thermal systems. In the thermal Internet of Things platform, since it involves many different types of equipment and systems, such as sensors, controllers, actuators, etc., different communication protocols and data formats need to be adopted. In order to achieve interconnection and data exchange between devices, it is necessary to integrate multiple communication protocols to ensure data accuracy and consistency. Therefore, the thermal Internet of Things platform has extremely high requirements for the integration of communication protocols and the reliability of data transmission.
[0003] Since the thermal Internet of Things platform involves many different types of heating system power equipment, and different nodes need to use different communication protocols and interfaces, it is necessary to use an intelligent gateway for protocol conversion, which makes the integration of communication protocols complicated. Therefore, how to learn and identify the communication protocol of the heating system power equipment, and gradually optimize the protocol conversion process to achieve automatic conversion and adaptation of the protocol is the problem we need to solve. To this end, an intelligent gateway system that integrates communication protocols with the thermal Internet of Things platform is proposed. Summary of the invention
[0004] The purpose of the present invention is to provide an intelligent gateway system that integrates communication protocols with thermal Internet of Things platforms to solve the problems raised in the above-mentioned background technology.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] An intelligent gateway system integrating communication protocols with a thermal Internet of Things platform, comprising a main controller, wherein the main controller is communicatively connected with a multi-protocol conversion module, a protocol learning and identification module, a polling scheduling module, a data aggregation and forwarding module, an intelligent scheduling module, and an equipment management module, wherein electrical signals are connected between the modules;
[0007] The main controller is responsible for the control and operation of the entire system, including processing various instructions, scheduling resources, and coordinating the work of various modules to ensure that the intelligent gateway can operate efficiently and stably to meet the communication requirements of the thermal Internet of Things platform;
[0008] The multi-protocol conversion module is used to convert data of different protocols into a unified format, realize conversion between different communication protocols, match the communication between power equipment of different protocols, and ensure that data can be correctly transmitted and parsed between power equipment of different heating systems;
[0009] The protocol learning and identification module is used to learn and identify the communication protocol of the heating system power equipment using a machine learning algorithm, optimize the protocol conversion process, improve the accuracy and efficiency of the protocol conversion, and reduce data transmission errors and delays caused by protocol mismatch;
[0010] The polling scheduling module is used to collect data from the heating system power equipment in the heating system in a predetermined order and time interval, ensuring that all heating system power equipment can be accessed fairly and effectively, and avoiding some equipment from missing data updates due to untimely polling;
[0011] The data aggregation and forwarding module is used to aggregate and process the data from the power equipment of each heating system and forward it to the thermal Internet of Things platform, thereby realizing the centralized management and efficient use of data and improving the overall operation efficiency of the thermal Internet of Things platform;
[0012] The intelligent scheduling module is used to analyze the aggregated data, dynamically adjust the polling strategy, optimize the communication efficiency and response time, and can predict and optimize the data collection efficiency according to the communication needs of the device;
[0013] The device management module is used to monitor and manage all heating system power equipment connected to the gateway, automatically search, configure and detect faults in the power equipment, and standardize the interface of the smart gateway through an interface standardization algorithm to ensure interoperability between different devices and systems.
[0014] Preferably, in the multi-protocol conversion module, the process of converting between different communication protocols includes:
[0015] The multi-protocol conversion module monitors the network traffic through the network interface. When receiving data packets from different heating system power equipment, it temporarily stores the received data packets in the buffer, and parses the received data packets to identify the protocol type of the data packets, parse the structure and content of the data packets, and obtain valid information in the data packets including data content, source address and destination address;
[0016] According to the communication protocol of the target heating system power equipment, the format of the valid information in the acquired data packet is converted. The format conversion includes data type conversion, data unit conversion and data encoding conversion, such as converting the data in the TCP / IP protocol into the data in the HTTP protocol, or converting the ASCII-encoded data into the UTF-8-encoded data;
[0017] After the data format conversion is completed, the converted data is encapsulated into a data packet that complies with the communication protocol of the target heating system power equipment. The encapsulation process includes adding information such as the protocol header, protocol footer, and checksum to ensure that the data packet can be correctly parsed and processed during transmission, and the encapsulated data packet is sent to the target heating system power equipment.
[0018] Preferably, in the protocol learning and identification module, the process of learning and identifying the communication protocol of the heating system power equipment includes:
[0019] Use a network sniffer to capture device communication data packets of various protocol types from the network, remove invalid or redundant data packets to ensure data quality, and mark the data packets to identify the protocol type to which they belong for subsequent model training;
[0020] Analyze the packet structure, fields, and transmission characteristics of different protocols and extract distinguishing features, including protocol type field, checksum, packet length, and port number;
[0021] According to the feature type and recognition requirements, the Scikit-learn machine learning library is used to train the protocol recognition model based on the decision tree algorithm, and the model is cross-validated and tuned to improve the recognition accuracy, ensure the accuracy and generalization ability of the model, and then use the trained protocol recognition model to identify different protocol types;
[0022] Capture device communication data packets in real time on the network, extract the features of the data packets, match them with the trained protocol recognition model, calculate the protocol type recognition value, and identify the protocol type of the data packet;
[0023] Based on the identified protocol type, formulate corresponding protocol conversion rules, convert the data packet from the source protocol to the target protocol, and optimize the protocol conversion process to improve the accuracy and efficiency of the conversion. Parse the data packet of the source protocol, extract the header, payload, and tail information, and convert the format of the data packet according to the conversion rules, including but not limited to data type conversion, data unit conversion, and data encoding conversion. According to the requirements of the target protocol, reconstruct the header and tail of the data packet to ensure that all necessary protocol control information is included, and recalculate the checksum so that the converted data packet is valid in the target protocol. Test and verify the converted data packet to ensure that it meets the standards of the target protocol and is correctly transmitted and received in the target network environment. Retry, record or discard the data packet that failed to convert, and notify the administrator. Record key information in the conversion process, including successfully converted data packets and problems encountered, to facilitate problem tracking and performance monitoring.
[0024] Preferably, the calculation expression of the protocol type identification value is:
[0025]
[0026] In the formula, Is the protocol type identification value, is the packet length, is the checksum, is the source port number, is the destination port number, The protocol type field. The packet length ranges from 0 to 65535 (bytes). The larger the packet length, the The larger the value of the part, the larger the checksum is. The range of the checksum is 0 to 65535 (unsigned integer). The larger the value, the slower the growth rate of the logarithmic function, and the overall impact is relatively gentle. The range of the source port number and the destination port number is 0 to 65535 (unsigned integer). The larger the port number, The larger the value of , the larger the denominator and the smaller the overall value. The value of increases, resulting in an increase in the value of the exponential function part. The range of the protocol type field is 0 to 255 (unsigned integer). The larger the protocol type field, The larger the value of , the larger the overall value.
[0027] Preferably, in the polling scheduling module, the process of collecting data from the power equipment of the heating system includes:
[0028] Preset the equipment list, including all the power equipment of the heating system that needs to be polled, and configure the polling parameters for each equipment, including the polling order and the polling interval. According to the structure of the heating system and the importance of the equipment, the polling order is preset to determine the order in which each equipment is accessed. According to the data update requirements and the processing capacity of the system, the polling interval is set to ensure that the data can be collected and processed in a timely manner;
[0029] Start the scheduler, access each heating system power device in turn according to the converted device communication protocol and the predefined polling order, and collect real-time data of the heating system power device when accessing each heating system power device, including parameters of voltage, current and power;
[0030] The data obtained by accessing the heating system power equipment is stored in the database for subsequent analysis and processing, and the access time and data collection status of each heating system power equipment are recorded so that it can be accurately determined whether the equipment needs to be accessed again during the next polling.
[0031] Preferably, in the data aggregation and forwarding module, the process of aggregating and processing the data of the power equipment of the heating system includes:
[0032] Integrate the data of power equipment of each heating system under the thermal Internet of Things platform collected by the polling scheduling module to form a unified data stream. In the process of data integration, the data is verified to ensure the accuracy and completeness of the data, including checking the scope, format and consistency of the data, checking whether the data is within the expected scope, ensuring that the data conforms to the expected format, and checking whether there are contradictions or inconsistencies between the data;
[0033] According to the network topology and data transmission requirements of the thermal IoT platform, the best forwarding path is selected. Before data forwarding, the data is encapsulated to ensure the security and integrity of the data during transmission. Encapsulation includes adding data header, data body, data tail and check code, etc. The data header contains the metadata of the data, such as data type, device ID, timestamp, etc. The data body contains the actual data content, the data tail is used to mark the end of the data, and the check code is used to verify the integrity of the data at the receiving end;
[0034] The data aggregation and forwarding module sends the encapsulated data to the thermal Internet of Things platform through the selected forwarding path. During the sending process, the data transmission status is continuously monitored to ensure the successful transmission of the data. After receiving the data, the thermal Internet of Things platform sends feedback information to the data aggregation and forwarding module to confirm the reception and processing of the data.
[0035] Preferably, the process of selecting the best forwarding path includes:
[0036] Identify and determine the network topology type used by the thermal IoT platform, including star, mesh, or point-to-point, and in the determined topology, identify all relevant nodes (sensors, controllers, gateways, etc.) and links (wired links, wireless links, etc.), analyze the function and location of each node, determine the link length, and the bandwidth, link latency, and round-trip time required for data transmission of each link;
[0037] Analyze the data type (temperature, humidity, pressure, etc.) and data size (number of bytes per data packet) to be transmitted, and evaluate the real-time, reliability and bandwidth requirements of data transmission based on the application scenarios and requirements of the thermal IoT platform. Data with high real-time requirements require shorter transmission paths and faster transmission speeds, and data with high reliability requirements require more stable links and redundant transmission paths;
[0038] Use load balancing technology to evenly distribute data transmission to various nodes and paths in the network, avoid central nodes or links becoming bottlenecks, improve transmission efficiency and stability, and select transmission paths of different priorities based on the priority and urgency of the data. High-priority data can choose shorter and more reliable paths for transmission, and then optimize the transmission path in real time based on changes in network topology and dynamic adjustments to data transmission needs;
[0039] The shortest path algorithm is applied to calculate the best forwarding path identification value by combining the link length, link bandwidth, link delay and the round-trip time required for data transmission to determine the best forwarding path.
[0040] Preferably, the calculation expression of the optimal forwarding path identification value is:
[0041]
[0042] In the formula, is the best forwarding path identification value, Is a node To Node The link bandwidth between the two represents the data transmission capacity of the link. Is a node To Node The link delay between nodes indicates that data Transfer to Node The time required, Is a node To Node The link length between indicates the physical length of the link, Is a node To Node The round-trip time between nodes indicates that the data Transfer to Node And returns the total time required.
[0043] The process of determining the best forwarding path includes:
[0044] Create a distance table for each node in the network. Initially, the distance from each node to itself is 0, and the distance to other nodes is infinite.
[0045] Analyze the distance from each node to other nodes based on the best forwarding path identification value, and then update the distance table of each node. If a shorter path can be found through an intermediate node, update the corresponding entry in the distance table;
[0046] For each node, select the path with the smallest distance in the distance table as the best path, which is the shortest path from the current node to the target node;
[0047] Starting from the starting node, a path tree is constructed based on the optimal path. Each node in the path tree points to its predecessor node so as to trace the complete path from the starting node to the target node. After the path tree is constructed, the optimal forwarding path from the starting node to the target node is determined, and then the determined optimal forwarding path is applied to data forwarding to ensure that data is transmitted through the shortest path.
[0048] Preferably, in the intelligent scheduling module, the process of dynamically adjusting the polling strategy includes:
[0049] Aggregate data from different heating system power equipment and nodes to form a unified data set. Data aggregation helps reduce data transmission redundancy and improve communication efficiency. According to the communication needs of the heating system power equipment and the system's resource status, analyze whether the existing polling strategy meets the requirements. Among them, the polling strategy includes fixed-cycle polling, on-demand polling and other methods;
[0050] According to the data analysis results, dynamically adjust the polling strategy parameters including the polling order and the polling interval. By adjusting the polling strategy, determine the goals to be optimized, including communication efficiency and response time, so as to optimize the allocation of communication resources and improve communication efficiency.
[0051] Traverse the historical data of the thermal Internet of Things platform, analyze the communication needs and data collection frequency of the heating system power equipment, and optimize the data collection plan based on the analysis results, reduce unnecessary data collection and transmission, and evenly distribute data collection tasks to different heating system power equipment and nodes through intelligent scheduling and load balancing technology to improve data collection efficiency.
[0052] Preferably, in the device management module, the process of monitoring and managing all heating system power equipment connected to the gateway includes:
[0053] Automatically search for all heating system power devices connected to the gateway in the network, identify their models, specifications and status, set initial parameters including communication protocol and data reporting frequency for each heating system power device, and provide a user interface or API to allow manual configuration of power device parameters;
[0054] Real-time monitoring of the operating status of the heating system power equipment, including performance indicators and health status, records the online and offline status of the heating system power equipment, and any abnormal behavior, and analyzes the data and status of the heating system power equipment through fault diagnosis tools, automatically detects potential faults, and quickly locates the cause of the problem;
[0055] Automatically execute scheduled maintenance tasks based on the fault type, including restarting the device and resetting the configuration. For problems that cannot be automatically repaired, the alarm mechanism is immediately triggered, a maintenance work order is generated, and the technician is notified.
[0056] Through the interface standardization algorithm, the interface of the smart gateway is standardized to ensure the interoperability between the power equipment of different heating systems, improve the compatibility and scalability of the system, conduct interoperability tests regularly to ensure barrier-free communication between different devices and systems, and record detailed logs of the operation and status changes of all power equipment in the heating system, and provide audit functions to track equipment usage and maintenance history.
[0057] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:
[0058] 1. The present invention provides an intelligent gateway system that integrates communication protocols with thermal Internet of Things platform communications. Through a multi-protocol conversion module and a protocol learning and identification module, conversion and intelligent identification between different communication protocols are realized, which greatly improves the efficiency and accuracy of data communication. Through unified data format conversion, it ensures that data can be correctly transmitted and parsed between different devices and systems. By learning and identifying device communication protocols, the protocol conversion process is optimized, the accuracy and efficiency of protocol conversion are improved, and data transmission errors and delays caused by protocol mismatch are reduced.
[0059] 2. The present invention provides an intelligent gateway system that integrates communication protocols with thermal Internet of Things platform communications. By analyzing aggregated data, the polling strategy is dynamically adjusted to optimize communication efficiency and response time. According to the communication needs of the power equipment in the heating system and the resource status of the system, whether the existing polling strategy meets the requirements is analyzed to dynamically adjust the polling strategy parameters including the polling sequence and the polling interval, so that the allocation of communication resources is more reasonable, the communication efficiency is improved, unnecessary data transmission is reduced, network congestion and equipment load are reduced, and it is beneficial for the thermal Internet of Things platform to maintain efficient operation under high load conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0061] Figure 1 A module diagram of an intelligent gateway system for integrating communication protocols with a thermal Internet of Things platform of the present invention;
[0062] Figure 2 A flow chart of learning and identifying the communication protocol of the power equipment of the heating system according to the present invention;
[0063] Figure 3This is a flow chart for selecting the best forwarding path of the present invention. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] The first embodiment, as Figure 1 , Figure 2 As shown, the present invention provides a technical solution: an intelligent gateway system integrating communication protocols with thermal Internet of Things platform communications, including a main controller, the main controller is connected to a multi-protocol conversion module, a protocol learning and identification module, a polling scheduling module, a data aggregation and forwarding module, an intelligent scheduling module and a device management module, wherein the electrical signals between the modules are connected;
[0066] The main controller is responsible for the control and operation of the entire system, including processing various instructions, scheduling resources, and coordinating the work of various modules to ensure that the smart gateway can operate efficiently and stably to meet the communication needs of the thermal Internet of Things platform;
[0067] The multi-protocol conversion module is used to convert data of different protocols into a unified format, realize conversion between different communication protocols, match communication between power equipment of different protocols, and ensure that data can be correctly transmitted and parsed between power equipment of different heating systems. The multi-protocol conversion module monitors network traffic through a network interface. When receiving data packets from power equipment of different heating systems, the received data packets are temporarily stored in a buffer, and the received data packets are parsed to identify the protocol type of the data packets, parse the structure and content of the data packets, etc., obtain valid information including data content, source address and destination address in the data packets, and perform format conversion on the valid information in the obtained data packets according to the communication protocol of the target heating system power equipment. The format conversion includes data type conversion, data unit conversion and data encoding conversion, etc. For example, data in the TCP / IP protocol is converted into data in the HTTP protocol, or ASCII-encoded data is converted into UTF-8-encoded data. After the data format conversion is completed, the converted data is encapsulated into a data packet that conforms to the communication protocol of the target heating system power equipment. The encapsulation process includes adding information such as a protocol header, a protocol tail and a checksum to ensure that the data packet can be correctly parsed and processed during transmission, and the encapsulated data packet is sent to the target heating system power equipment;
[0068] The protocol learning and identification module is used to use machine learning algorithms to learn and identify the communication protocol of power equipment in the heating system, optimize the protocol conversion process, improve the accuracy and efficiency of protocol conversion, and reduce data transmission errors and delays caused by protocol mismatch. A network sniffer is used to capture device communication data packets including various protocol types from the network, remove invalid or redundant data packets, ensure data quality, and mark the data packets to clarify the protocol type to which they belong for subsequent model training. The data packet structure, fields and transmission characteristics of different protocols are analyzed to extract distinguishing features, including protocol type field, checksum, data packet length and port number. Among them, the protocol type field is used to identify the protocol code field in the IP data packet to distinguish TCP, UDP, ICMP and other protocols. The checksum is used to extract the checksum field of UDP and TCP data packets for data integrity verification. The data packet length is to extract the total length field of the IP data packet to understand the size of the data packet. The port number is to extract the source port and destination port number of the TCP / UDP data packet to identify specific services or applications. According to the feature type and identification requirements, the Scikit-learn machine learning library is used to train the protocol identification model based on the decision tree algorithm, and the model is cross-validated and tuned to improve Identification accuracy, ensure the accuracy and generalization ability of the model, and then use the trained protocol identification model to identify different protocol types, capture device communication data packets in real time in the network, extract the characteristics of the data packets, match them with the trained protocol identification model, calculate the protocol type identification value, identify the protocol type of the data packet, and formulate corresponding protocol conversion rules based on the identified protocol type, convert the data packet from the source protocol to the target protocol, and optimize the protocol conversion process to improve the accuracy and efficiency of the conversion. Parse the data packet of the source protocol, extract the header, payload, and tail information, and convert the format of the data packet according to the conversion rules, including but not limited to data type conversion, data unit conversion, and data encoding conversion. According to the requirements of the target protocol, reconstruct the header and tail of the data packet to ensure that all necessary protocol control information is included, and recalculate the checksum so that the converted data packet is valid in the target protocol. Test and verify the converted data packet to make it meet the standards of the target protocol and be correctly transmitted and received in the target network environment. Retry, record or discard the data packet that failed to convert, and notify the administrator. Record key information in the conversion process, including successfully converted data packets and problems encountered, to facilitate problem tracking and performance monitoring.
[0069] Furthermore, the calculation expression of the protocol type identification value is:
[0070]
[0071] In the formula, Is the protocol type identification value, is the packet length, is the checksum, is the source port number, is the destination port number, The protocol type field. The packet length ranges from 0 to 65535 (bytes). The larger the packet length, the The larger the value of the part, the larger the checksum is. The range of the checksum is 0 to 65535 (unsigned integer). The larger the value, the slower the growth rate of the logarithmic function, and the overall impact is relatively gentle. The range of the source port number and the destination port number is 0 to 65535 (unsigned integer). The larger the port number, The larger the value of , the larger the denominator and the smaller the overall value. The value of increases, resulting in an increase in the value of the exponential function part. The range of the protocol type field is 0 to 255 (unsigned integer). The larger the protocol type field, The larger the value, the larger the overall value. In the data packet, the protocol type field is located in the IP header and is used to specify the protocol type used by the upper layer. For example, according to the Ethernet type field and value, 0x0800 represents the IP protocol, 0x86DD represents the IPv6 protocol, 0x06 represents the TCP protocol, and 0x11 represents the UDP protocol. By checking the protocol type field of the data packet, the protocol type used by the data packet can be determined. By calculating the protocol type identification value of each data packet, according to different Value, classify the data packets into different protocol types. If the calculated Values that conform to a specific protocol The value range can determine whether the packet belongs to this protocol type.
[0072] The polling scheduling module is used to collect data from the heating system power equipment in the heating system in a predetermined order and time interval, ensure that all the heating system power equipment can be accessed fairly and effectively, and avoid some equipment from missing data updates due to untimely polling. A device list is preset, including all the heating system power equipment that needs to be polled, and polling parameters are configured for each device, including a polling order and a polling interval, wherein the polling order is preset according to the structure of the heating system and the importance of the equipment to determine the order in which each device is accessed, and the polling interval is set according to the data update requirements and the system processing capacity to ensure that the data can be collected and processed in a timely manner, start the scheduler, and access each heating system power equipment in turn according to the converted device communication protocol and the predefined polling order, and when accessing each heating system power equipment, collect the real-time data of the heating system power equipment, including the parameters of voltage, current and power, store the data obtained by accessing the heating system power equipment in a database for subsequent analysis and processing, and record the access time and data collection status of each heating system power equipment, so that it can accurately determine whether the equipment needs to be accessed again during the next polling.
[0073] The data aggregation and forwarding module is used to aggregate and process data from the power equipment of each heating system and forward it to the thermal Internet of Things platform, realizing centralized management and efficient use of data and improving the overall operating efficiency of the thermal Internet of Things platform.
[0074] The intelligent scheduling module is used to analyze the aggregated data, dynamically adjust the polling strategy, optimize the communication efficiency and response time, and can predict and optimize the data collection efficiency according to the communication needs of the equipment.
[0075] The device management module is used to monitor and manage all heating system power equipment connected to the gateway, automatically search, configure and detect faults of the power equipment, improve the manageability of the equipment, and standardize the interface of the smart gateway through the interface standardization algorithm to ensure the interoperability between different devices and systems, improve the compatibility and scalability of the system, and reduce the cost of system integration and maintenance.
[0076] The second embodiment is based on the first embodiment. Figure 3 As shown, in the data aggregation and forwarding module, the process of aggregating and processing the data of the power equipment of the heating system includes:
[0077] The data of the power equipment of each heating system under the thermal Internet of Things platform collected by the polling scheduling module are integrated to form a unified data stream. In the process of data integration, the data is verified to ensure the accuracy and integrity of the data, including checking the range, format and consistency of the data, checking whether the data is within the expected range, ensuring that the data conforms to the expected format, and checking whether there are contradictions or inconsistencies between the data. According to the network topology and data transmission requirements of the thermal Internet of Things platform, the best forwarding path is selected. Before data forwarding, the data is encapsulated to ensure the security and integrity of the data during transmission. Encapsulation includes adding data headers, data bodies, data tails and check codes, etc. The data header contains metadata of the data, such as data type, device ID, timestamp, etc. The data body contains the actual data content. The data tail is used to identify the end of the data. The check code is used to verify the integrity of the data at the receiving end. The data aggregation forwarding module sends the encapsulated data to the thermal Internet of Things platform through the selected forwarding path. During the sending process, the data transmission status is continuously monitored to ensure the successful transmission of the data. After receiving the data, the thermal Internet of Things platform sends feedback information to the data aggregation forwarding module to confirm the reception and processing of the data.
[0078] Furthermore, the process of selecting the best forwarding path includes:
[0079] Identify and determine the network topology type used by the thermal IoT platform, including star, mesh or point-to-point, etc., and identify all relevant nodes (sensors, controllers, gateways, etc.) and links (wired links, wireless links, etc.) in the determined topology, analyze the function and location of each node, determine the link length, bandwidth of each link, link delay and round-trip time required for data transmission, analyze the type of data to be transmitted (temperature, humidity, pressure, etc.) and data size (number of bytes per data packet), and evaluate the real-time, reliability and bandwidth requirements of data transmission according to the application scenarios and requirements of the thermal IoT platform. Data with high real-time requirements require shorter transmission paths and faster transmission speeds, while data with high reliability requirements require more stable links and redundant transmission paths. Load balancing technology is used to evenly distribute data transmission to various nodes and paths in the network to avoid central nodes or links becoming bottlenecks, improve transmission efficiency and stability, and select transmission paths of different priorities based on the priority and urgency of the data. High-priority data can choose shorter and more reliable paths for transmission. The transmission path is optimized in real time based on changes in the network topology and dynamic adjustments to data transmission requirements. The shortest path algorithm is used to calculate the optimal forwarding path identification value based on link length, link bandwidth, link delay, and the round-trip time required for data transmission to determine the optimal forwarding path.
[0080] Furthermore, the calculation expression of the optimal forwarding path identification value is:
[0081]
[0082] In the formula, is the best forwarding path identification value, Is a node To Node The link bandwidth between the two represents the data transmission capacity of the link. Is a node To Node The link delay between nodes indicates that data Transfer to Node The time required, Is a node To Node The link length between indicates the physical length of the link, Is a node To Node The round-trip time between nodes indicates that the data Transfer to Node and returns the total time required. The higher the bandwidth, The smaller the result, the better the path and the lower the delay. The smaller the result, the better the path and the shorter the link length. The smaller the result, the better the path and the shorter the round-trip time. The smaller the result, the better the path.
[0083] The process of determining the best forwarding path includes:
[0084] Create a distance table for each node in the network. Initially, the distance from each node to itself is 0, and the distance to other nodes is infinite. The distance from each node to other nodes is analyzed based on the optimal forwarding path identification value, and then the distance table of each node is updated. If a shorter path can be found through an intermediate node, the corresponding entry in the distance table is updated. For each node, the path with the smallest distance in the distance table is selected as the optimal path. This path is the shortest path from the current node to the target node. Starting from the starting node, a path tree is built according to the optimal path. Each node in the path tree points to its predecessor node so as to trace the complete path from the starting node to the target node. After the path tree is built, the optimal forwarding path from the starting node to the target node is determined, and then the determined optimal forwarding path is applied to data forwarding to ensure that data is transmitted through the shortest path.
[0085] In the intelligent scheduling module, the process of dynamically adjusting the polling strategy includes:
[0086] Aggregate data from different heating system power equipment and nodes to form a unified data set. Data aggregation helps to reduce data transmission redundancy and improve communication efficiency. According to the communication needs of the heating system power equipment and the resource status of the system, analyze whether the existing polling strategy meets the requirements. Among them, the polling strategy includes fixed-cycle polling, on-demand polling and other methods. According to the data analysis results, dynamically adjust the polling strategy parameters including polling sequence and polling interval. By adjusting the polling strategy, determine the goals to be optimized, including communication efficiency and response time, so as to optimize the allocation of communication resources and improve communication efficiency. Traverse the historical data of the thermal Internet of Things platform, analyze the communication needs and data collection frequency of the heating system power equipment, and optimize the data collection plan according to the analysis results, reduce unnecessary data collection and transmission, and evenly distribute data collection tasks to different heating system power equipment and nodes through intelligent scheduling and load balancing technology to improve data collection efficiency.
[0087] In the device management module, the process of monitoring and managing all heating system power equipment connected to the gateway includes:
[0088] Automatically search for all heating system power equipment connected to the gateway in the network, identify their models, specifications and status, and set initial parameters including communication protocols and data reporting frequency for each heating system power equipment, provide a user interface or API to allow manual configuration of power equipment parameters, monitor the operating status of the heating system power equipment in real time, including performance indicators and health status, record the online and offline status of the heating system power equipment, and any abnormal behavior, and analyze the data and status of the heating system power equipment through fault diagnosis tools, automatically detect potential faults, and quickly locate the cause of the problem. According to the type of fault, automatically perform scheduled maintenance tasks, including restarting the equipment and resetting the configuration. For problems that cannot be automatically repaired, immediately trigger the alarm mechanism, generate maintenance work orders and notify technicians. Through the interface standardization algorithm, unify and standardize the interface of the smart gateway to ensure the interoperability between different heating system power equipment, improve the compatibility and scalability of the system, conduct interoperability tests regularly to ensure barrier-free communication between different devices and systems, and record detailed logs of all heating system power equipment operations and status changes, and provide audit functions to track equipment usage and maintenance history.
[0089] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An intelligent gateway system integrating communication protocols with the thermal Internet of Things platform, including a main controller, characterized in that: The main controller is communicatively connected with a multi-protocol conversion module, a protocol learning and identification module, a polling scheduling module, a data aggregation and forwarding module, an intelligent scheduling module and a device management module, wherein the electrical signals between the modules are connected; The multi-protocol conversion module is used to convert data of different protocols into a unified format to achieve conversion between different communication protocols; The protocol learning and identification module is used to learn and identify the communication protocol of the heating system power equipment using a machine learning algorithm to optimize the protocol conversion process; The polling scheduling module is used to collect data from the heating system power equipment in the heating system according to a predetermined order and time interval; The data aggregation and forwarding module is used to aggregate and process the data from the power equipment of each heating system and forward it to the thermal Internet of Things platform; The intelligent scheduling module is used to analyze the aggregated data and dynamically adjust the polling strategy; The device management module is used to monitor and manage all heating system power equipment connected to the gateway, and automatically search, configure and detect faults of the power equipment; In the protocol learning and identification module, the process of learning and identifying the communication protocol of the heating system power equipment includes: Use a network sniffer to capture device communication data packets of various protocol types from the network, remove invalid or redundant data packets, and mark the data packets to identify the protocol type to which they belong; Analyze the packet structure, fields, and transmission characteristics of different protocols and extract distinguishing features, including protocol type field, checksum, packet length, and port number; According to the feature type and recognition requirements, the Scikit-learn machine learning library is used to train the protocol recognition model based on the decision tree algorithm, and the model is cross-validated and tuned, and then the trained protocol recognition model is used to identify different protocol types; Capture device communication data packets in real time on the network, extract the features of the data packets, match them with the trained protocol recognition model, calculate the protocol type recognition value, and identify the protocol type of the data packet; According to the identified protocol type, the corresponding protocol conversion rules are formulated to convert the data packets from the source protocol to the target protocol, and the protocol conversion process is optimized.
2. According to claim 1, the intelligent gateway system integrating communication protocol and thermal Internet of Things platform communication is characterized by: In the multi-protocol conversion module, the process of converting between different communication protocols includes: The multi-protocol conversion module monitors the network traffic through the network interface. When receiving data packets from different heating system power equipment, it temporarily stores the received data packets in the buffer, parses the received data packets, identifies the protocol type of the data packets, parses the structure and content of the data packets, and obtains valid information in the data packets including data content, source address and destination address; According to the communication protocol of the target heating system power equipment, the format of the valid information in the acquired data packet is converted, and the format conversion includes data type conversion, data unit conversion and data encoding conversion; After the data format conversion is completed, the converted data is encapsulated into a data packet that complies with the communication protocol of the target heating system power equipment. The encapsulation process includes adding a protocol header, a protocol footer and a checksum information, and sending the encapsulated data packet to the target heating system power equipment.
3. According to claim 1, the intelligent gateway system integrating communication protocol and thermal Internet of Things platform communication is characterized by: The process of optimizing the protocol conversion process includes: Parse the data packets of the source protocol, extract the header, payload, and tail information, and convert the format of the data packets according to the conversion rules; According to the requirements of the target protocol, the header and tail of the data packet are reconstructed and the checksum is recalculated so that the converted data packet is valid in the target protocol; Test and verify the converted data packets to ensure that they meet the standards of the target protocol and are correctly transmitted and received in the target network environment; The failed data packets are retried, recorded or discarded, and the administrator is notified. Key information during the conversion process is recorded, including successfully converted data packets and encountered problems.
4. According to claim 3, the intelligent gateway system integrating communication protocol and thermal Internet of Things platform communication is characterized by: In the polling scheduling module, the process of collecting data from the power equipment of the heating system includes: Preset the equipment list, including all the power equipment of the heating system that needs to be polled, and configure the polling parameters for each equipment, including the polling order and the polling interval. The polling order is preset according to the structure of the heating system and the importance of the equipment to determine the order in which each equipment is accessed, and the polling interval is set according to the data update requirements and the system processing capacity; Start the scheduler, access each heating system power device in turn according to the converted device communication protocol and the predefined polling order, and collect real-time data of the heating system power device when accessing each heating system power device, including parameters of voltage, current and power; The data obtained by accessing the heating system power equipment is stored in a database, and the access time and data collection status of each heating system power equipment are recorded.
5. According to claim 4, the intelligent gateway system integrating communication protocol and thermal Internet of Things platform communication is characterized by: In the data aggregation and forwarding module, the process of aggregating and processing the data of the power equipment of the heating system includes: Integrate the data of power equipment of each heating system under the thermal Internet of Things platform collected by the polling scheduling module to form a unified data stream. In the process of data integration, the data is verified, including checking the scope, format and consistency of the data, and checking whether the data is within the expected range; According to the network topology and data transmission requirements of the thermal IoT platform, the best forwarding path is selected, and the data is encapsulated before forwarding. The encapsulation includes adding a data header, a data body, a data tail, and a checksum. The data aggregation and forwarding module sends the encapsulated data to the thermal Internet of Things platform through the selected forwarding path. During the sending process, the data transmission status is continuously monitored. After receiving the data, the thermal Internet of Things platform sends feedback information to the data aggregation and forwarding module to confirm the reception and processing of the data.
6. The intelligent gateway system for integrating communication protocol and thermal Internet of Things platform communication according to claim 5, characterized in that: The process of selecting the best forwarding path includes: Identify and determine the type of network topology used by the thermal IoT platform, including star, mesh or point-to-point, and in the determined topology, identify all relevant nodes and links, analyze the function and location of each node, determine the link length, and the bandwidth, link latency and round-trip time required for data transmission of each link; Analyze the type and size of data to be transmitted, and evaluate the real-time, reliability and bandwidth requirements of data transmission based on the application scenarios and requirements of the thermal IoT platform; Use load balancing technology to evenly distribute data transmission to various nodes and paths in the network, and select transmission paths of different priorities based on the priority and urgency of the data. Then, optimize the transmission path in real time based on the changes in the network topology and the dynamic adjustment of data transmission requirements. The shortest path algorithm is applied to calculate the best forwarding path identification value by combining the link length, link bandwidth, link delay and the round-trip time required for data transmission to determine the best forwarding path.
7. The intelligent gateway system for integrating communication protocol and thermal Internet of Things platform communication according to claim 6, characterized in that: The process of determining the best forwarding path includes: Create a distance table for each node in the network. Initially, the distance from each node to itself is 0, and the distance to other nodes is infinite. Analyze the distance from each node to other nodes based on the best forwarding path identification value, and then update the distance table of each node; For each node, select the path with the smallest distance in the distance table as the best path, which is the shortest path from the current node to the target node; Starting from the start node, a path tree is constructed according to the best path. After the path tree is constructed, the best forwarding path from the start node to the target node is determined, and then the determined best forwarding path is applied to data forwarding.
8. The intelligent gateway system for integrating communication protocol and thermal Internet of Things platform communication according to claim 7, characterized in that: In the intelligent scheduling module, the process of dynamically adjusting the polling strategy includes: Aggregate data from different heating system power equipment and nodes to form a unified data set, and analyze whether the existing polling strategy meets the requirements based on the communication needs of the heating system power equipment and the system's resource status; According to the data analysis results, dynamically adjust the polling strategy parameters including the polling order and the polling interval. By adjusting the polling strategy, determine the goals to be optimized, including communication efficiency and response time, so as to optimize the allocation of communication resources. Traverse the historical data of the thermal Internet of Things platform, analyze the communication needs and data collection frequency of the heating system power equipment, and optimize the data collection plan based on the analysis results. Through intelligent scheduling and load balancing technology, the data collection tasks are evenly distributed to different heating system power equipment and nodes.
9. The intelligent gateway system for integrating communication protocol and thermal Internet of Things platform communication according to claim 8, characterized in that: In the device management module, the process of monitoring and managing all heating system power equipment connected to the gateway includes: Automatically search for all heating system power devices connected to the gateway in the network, identify their models, specifications and status, set initial parameters including communication protocol and data reporting frequency for each heating system power device, and provide a user interface or API to allow manual configuration of power device parameters; Real-time monitoring of the operating status of the heating system power equipment, including performance indicators and health status, records the online and offline status of the heating system power equipment, and abnormal behavior, and analyzes the data and status of the heating system power equipment through fault diagnosis tools, automatically detects potential faults, and quickly locates the cause of the problem; Automatically execute scheduled maintenance tasks based on the fault type, including restarting the device and resetting the configuration. For problems that cannot be automatically repaired, the alarm mechanism is immediately triggered, a maintenance work order is generated, and the technician is notified. Through the interface standardization algorithm, the interface of the smart gateway is standardized, interoperability tests are performed regularly, and detailed logs of the operation and status changes of all heating system power equipment are recorded.
Citation Information
Patent Citations
Electric power industry ubiquitous Internet of Things security protection gateway system, method and deployment architecture
CN110958262A
Cross-platform game data synchronization system
CN118041933A