Industrial communication management method and system and storage medium

By introducing a protocol priority list and dynamic switching mechanism into the industrial communication system, the problems of slow response speed and insufficient dynamic adaptation capability in the event of a fault are solved, enabling rapid establishment of optimal connection and real-time fault recovery, thereby enhancing the stability and efficiency of the system in complex environments.

CN121887614APending Publication Date: 2026-04-17FOSHAN DMT INTELLIGENT EQUIPMENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
FOSHAN DMT INTELLIGENT EQUIPMENT TECHNOLOGY CO LTD
Filing Date
2026-01-14
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing industrial communication systems are slow to respond when faults occur, lack dynamic perception and adaptation capabilities, and cannot switch communication paths autonomously. This results in a failure to optimize in a timely manner when production is interrupted or communication quality deteriorates, affecting system stability and efficiency.

Method used

It employs a protocol priority list, dynamic protocol switching, and intelligent interrupt recovery mechanism. By analyzing protocol types through a hardware detection program, constructing a priority list, monitoring communication quality and switching protocols in real time, restoring communication interruptions in real time, and recording target data of the fault recovery process.

Benefits of technology

It enhances the survivability and resilience of industrial systems in complex and harsh environments, ensures the service quality of critical businesses, provides multiple communication backups, quickly establishes optimal communication connections, optimizes network performance, and reduces production interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887614A_ABST
    Figure CN121887614A_ABST
Patent Text Reader

Abstract

The invention discloses an industrial communication management method and system and a storage medium, and relates to the technical field of computers, and the method comprises the steps: carrying out the protocol type analysis of an available communication interface based on a hardware detection program, building a protocol priority list based on the protocol type information, and building the network communication connection of an industrial system; performing communication quality analysis on the industrial system; performing communication protocol switching analysis based on the communication quality information; if it is monitored that the communication interruption event occurs in the industrial system, a communication reconnection strategy is matched based on the communication interruption event, and the industrial system performs fault recovery based on the communication reconnection strategy and records target data in the fault recovery process; and generating a target log based on the target data, the communication protocol switching analysis result, the communication interruption event and the communication reconnection strategy, and storing the target log in a corresponding node. According to the invention, the survivability and toughness of the system in a complex and severe industrial environment are obviously enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to an industrial communication management method, system, and storage medium. Background Technology

[0002] With the deepening development of intelligent manufacturing, modern industrial systems are becoming increasingly complex and networked. A typical industrial system often contains multiple devices that exchange data through diverse communication protocols and interfaces. To ensure the continuity, stability, and efficiency of the production process, the communication network of an industrial system must possess sufficient reliability and real-time performance. Currently, most industrial systems are deployed by engineers who statically configure communication protocols, interfaces, and parameters based on equipment models and network topology. When communication failures occur, the system typically only provides limited alarms and cannot automatically perform effective recovery operations. Troubleshooting and recovery heavily rely on manual intervention, resulting in slow response times, potential production interruptions, and economic losses.

[0003] Meanwhile, the system cannot proactively perceive and adapt to available communication interfaces and protocols during startup or runtime, lacking dynamic awareness of the communication environment. When the preset primary communication path becomes unavailable, the system cannot autonomously switch to an available backup path, leading to a communication deadlock. Even if the communication connection remains open, the system typically does not continuously monitor communication quality. When communication quality deteriorates to the point of affecting control performance due to interference, excessive load, or other reasons, the system cannot proactively trigger communication protocol switching or parameter optimization; it can only react passively after severe quality degradation leads to functional failure. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the prior art. This invention provides an industrial communication management method, system and storage medium, which combines a three-layer protection mechanism of protocol priority list, dynamic protocol switching and intelligent interrupt recovery, significantly enhancing the survivability and resilience of the system in complex and harsh industrial environments.

[0005] To address the aforementioned technical problems, this invention provides an industrial communication management method, the method comprising: The available communication interfaces are analyzed for protocol types based on the hardware detection program to obtain protocol type information. A protocol priority list is constructed based on the protocol type information, and a network communication connection for the industrial system is established based on the protocol priority list. After establishing network communication connections in the industrial system, communication quality analysis is performed on the industrial system to obtain communication quality information; Based on the communication quality information, a communication protocol switching analysis is performed to obtain the communication protocol switching analysis results. After establishing a network communication connection for the industrial system, the system monitors in real time whether a communication interruption event occurs. If a communication interruption event is detected, a communication reconnection strategy is matched based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. Based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, a target log is generated and stored in the corresponding node.

[0006] Optionally, the step of performing protocol type analysis on available communication interfaces based on the hardware detection program to obtain protocol type information, and constructing a protocol priority list based on the protocol type information, includes: The hardware detection program uses the hardware abstraction layer to analyze the protocol type of each available communication interface and obtain protocol type information. Based on the protocol type information, a real-time requirement score is performed to obtain real-time requirement score information; based on the protocol type information, a security score is performed to obtain security score information. Compatibility scores are performed based on the protocol type information to obtain compatibility score information, and a protocol priority list is constructed based on the real-time requirement score information, security score information, and compatibility score information.

[0007] Optionally, the hardware-based detection program utilizes the hardware abstraction layer to perform protocol type analysis on each available communication interface to obtain protocol type information, including: The hardware detection program uses the hardware abstraction layer to analyze the bus data frames of each available communication interface to obtain bus data frame information. Based on the bus data frame information, the protocol type of each available communication interface is analyzed to obtain the protocol type information.

[0008] Optionally, the step of performing communication quality analysis on the industrial system to obtain communication quality information includes: Perform communication environment characteristic analysis on industrial systems to obtain communication environment characteristic information; The signal transmission speed of the industrial system is analyzed based on a preset time granularity to obtain signal transmission speed information. Signal strength analysis is performed on the industrial system to obtain signal strength information, and communication quality information is determined based on the communication environment characteristics, signal transmission speed, and signal strength information.

[0009] Optionally, the step of performing communication protocol switching analysis based on the communication quality information to obtain communication protocol switching analysis results includes: Determine whether the communication quality information has reached the preset trigger condition. If it is determined that the communication quality information has reached the preset trigger condition, then perform a communication protocol switching cost analysis on the industrial system to obtain switching cost information. Based on the switching cost information, a communication protocol switching analysis is performed to determine the communication protocol that the industrial system needs to switch to.

[0010] Optionally, the step of monitoring whether a communication interruption event occurs in the industrial system in real time includes: The system uses a preset heartbeat mechanism to monitor in real time whether communication interruption events occur in the industrial system.

[0011] Optionally, the step of matching a communication reconnection strategy based on the communication interruption event, and the industrial system performing fault recovery based on the communication reconnection strategy, includes: Perform event type analysis on the communication interruption event to obtain event type information; Construct a communication reconnection strategy library, and determine the communication reconnection strategy based on the event type information using the communication reconnection strategy library; Based on the communication reconnection strategy, the operation unit and execution engine are determined, and the industrial system uses the operation unit and execution engine to perform fault recovery based on the communication reconnection strategy.

[0012] Optionally, the step of generating target logs based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, and storing the target logs in the corresponding nodes, includes: Based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, log content is integrated to obtain the target log; The target log is analyzed for encryption strategy to obtain the target encryption strategy; The target log is stored in the corresponding node based on the target encryption strategy.

[0013] In addition, the present invention also provides an industrial communication management system, the system comprising: Communication connection establishment module: used to analyze the protocol type of available communication interfaces based on the hardware detection program, obtain protocol type information, construct a protocol priority list based on the protocol type information, and establish network communication connection of industrial system based on the protocol priority list; Communication quality analysis module: Used to analyze the communication quality of the industrial system after establishing network communication connection and obtain communication quality information; Protocol switching module: used to perform communication protocol switching analysis based on the communication quality information and obtain communication protocol switching analysis results; Interruption recovery module: After establishing a network communication connection with the industrial system, it monitors in real time whether a communication interruption event occurs in the industrial system. If a communication interruption event is detected, it matches a communication reconnection strategy based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. Log recording module: used to generate target logs based on the target data, communication protocol switching analysis results, communication interruption events and communication reconnection strategies, and store the target logs in the corresponding nodes.

[0014] In addition, the present invention also provides a computer-readable storage medium that stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described industrial communication management method.

[0015] In this embodiment of the invention, a hardware detection program analyzes the protocol types of available communication interfaces to obtain protocol type information. Based on this information, a protocol priority list is constructed, and a network communication connection for the industrial system is established. This ensures the system can quickly establish the optimal communication connection. After establishing the network communication connection, communication quality analysis is performed to obtain communication quality information. Based on this information, communication protocol switching analysis is conducted to optimize overall network performance and ensure the service quality of critical services. After establishing the network communication connection, the system monitors in real time for communication interruption events. If an interruption event is detected, a communication reconnection strategy is matched based on the event. The industrial system then performs fault recovery based on this strategy. This three-layer protection mechanism—a protocol priority list, dynamic protocol switching, and intelligent interruption recovery—provides multiple, heterogeneous communication backups for critical control loops and data transmission, significantly enhancing the system's survivability and resilience in complex and harsh industrial environments. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the industrial communication management method in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structural composition of the industrial communication management system in an embodiment of the present invention. Detailed Implementation

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

[0019] Please see Figure 1 , Figure 1 This is a flowchart illustrating the industrial communication management method according to an embodiment of the present invention. The method includes: S11: Analyze the protocol types of available communication interfaces based on the hardware detection program to obtain protocol type information, construct a protocol priority list based on the protocol type information, and establish a network communication connection for the industrial system based on the protocol priority list. In a specific implementation of this invention, the step of analyzing the protocol types of available communication interfaces based on a hardware detection program to obtain protocol type information, and constructing a protocol priority list based on the protocol type information, includes: analyzing the protocol types of each available communication interface using a hardware abstraction layer based on a hardware detection program to obtain protocol type information; performing a real-time requirement score based on the protocol type information to obtain real-time requirement score information; performing a security score based on the protocol type information to obtain security score information; performing a compatibility score based on the protocol type information to obtain compatibility score information; and constructing a protocol priority list based on the real-time requirement score information, security score information, and compatibility score information.

[0020] Specifically, the hardware detection program uses the hardware abstraction layer to analyze the protocol types of each available communication interface to obtain protocol type information. The system automatically executes the hardware detection process during the framework initialization phase. First, it scans all available communication interfaces to identify the currently available protocol types.

[0021] Based on the protocol type information, a real-time requirement score is performed to obtain real-time requirement score information. The typical cycle time and data transmission delay fluctuation range corresponding to the protocol type information of available communication interfaces are retrieved from the database. The typical cycle time is the minimum, standard, or typical data exchange cycle time supported by the protocol. The data transmission delay fluctuation range is the difference between the maximum and minimum data transmission delay values. A first benchmark value for the typical cycle time and a second benchmark value for the data transmission delay fluctuation range are obtained. The quotient of the typical cycle time and the first benchmark value are calculated, and the quotient of the data transmission delay fluctuation range and the second benchmark value are calculated. Combining these two values ​​yields the real-time requirement score. Based on the protocol type information, a security score is performed to obtain the encryption algorithm strength of the protocol type information. The encryption algorithm strength is then scored according to preset scoring rules to obtain security score information, such as the security score of the AES-256 algorithm being higher than that of the AES-128 algorithm.

[0022] Compatibility scoring is performed based on the protocol type information to obtain compatibility score information, which is the proportion of devices in the network that support the protocol. The higher the proportion, the higher the score. A protocol priority list is constructed based on the real-time requirement score, security score, and compatibility score information. This can be achieved by weighting the real-time requirement score, security score, and compatibility score information to obtain the target score for the protocol type: Target Score = W1 * Real-time Score + W2 * Security Score + W3 * Compatibility Score, where W1, W2, and W3 are weight coefficients corresponding to different scores. These weight coefficients are matched in the database and sorted in descending order of the target score to generate the protocol priority list.

[0023] The system establishes network communication connections for the industrial system based on the aforementioned protocol priority list. Connections are attempted sequentially according to protocol priority, with the system prioritizing the highest-priority protocol. Once a connection is successfully established, the system immediately sets it as the currently used protocol and logs the successful connection. This automatic detection mechanism ensures that the system can quickly establish optimal communication connections after power-on. For example, if TCP / IP has the highest priority, Modbus RTU has the second highest priority, and RS232 has the lowest priority, then TCP / IP will be the first protocol to be connected.

[0024] Furthermore, the step of using the hardware abstraction layer to analyze the protocol type of each available communication interface based on the hardware detection program to obtain protocol type information includes: using the hardware abstraction layer to analyze the bus data frame of each available communication interface based on the hardware detection program to obtain bus data frame information; and using the bus data frame information to analyze the protocol type of each available communication interface to obtain protocol type information.

[0025] Specifically, the hardware detection program uses the hardware abstraction layer to analyze the bus data frames of each available communication interface to obtain bus data frame information. The system enumerates all physical interfaces through the unified API of the hardware abstraction layer, enables promiscuous mode on the interface, and captures the original data frames to obtain the bus data frame information.

[0026] Based on the bus data frame information, the protocol type of each available communication interface is analyzed to obtain the protocol type information. The obtained bus data frame information is then compared with the built-in protocol feature library to obtain the matching protocol type.

[0027] S12: After establishing network communication connections for the industrial system, perform communication quality analysis on the industrial system to obtain communication quality information; In the specific implementation of this invention, the step of performing communication quality analysis on the industrial system to obtain communication quality information includes: performing communication environment characteristic analysis on the industrial system to obtain communication environment characteristic information; performing signal transmission speed analysis on the industrial system based on a preset time granularity to obtain signal transmission speed information; performing signal strength analysis on the industrial system to obtain signal strength information; and determining communication quality information based on the communication environment characteristic information, signal transmission speed information, and signal strength information.

[0028] Specifically, after establishing network communication connections in the industrial system, a communication environment characteristic analysis is performed to obtain communication environment characteristic information. The driver interface is called to read the signal-to-noise ratio (SNR), co-channel interference intensity, and channel busy / idle ratio of available signals in the industrial system. The SNR is the signal strength minus the noise floor. The co-channel interference intensity is used to identify the signal strength of non-cooperative networks. The channel busy / idle ratio is the percentage of time the channel is in a busy state. The background noise level in the industrial system is also read. The communication environment characteristic information is composed of the background noise level, SNR, co-channel interference intensity, and channel busy / idle ratio.

[0029] The signal transmission speed of the industrial system is analyzed based on a preset time granularity to obtain signal transmission speed information. Timestamped probe packets are sent to the industrial system at the preset time granularity, such as once per second. The average round-trip delay and delay standard deviation are calculated based on the sent probe packets, and the signal transmission speed is determined based on the average round-trip delay and delay standard deviation.

[0030] Signal strength analysis is performed on the industrial system to obtain signal strength information. The received signal strength indication and signal-to-noise ratio (SNR) of the industrial system are read, and the signal strength of the industrial system is evaluated based on these indicators. Communication quality information is determined based on the communication environment characteristics, signal transmission speed, and signal strength information. These factors are then input into the evaluation model to obtain a quantified communication quality level.

[0031] S13: Perform communication protocol switching analysis based on the communication quality information to obtain the communication protocol switching analysis results; In a specific implementation of the present invention, the step of performing communication protocol switching analysis based on the communication quality information to obtain the communication protocol switching analysis result includes: determining whether the communication quality information has reached a preset trigger condition; if it is determined that the communication quality information has reached the preset trigger condition, then performing a communication protocol switching cost analysis on the industrial system to obtain switching cost information; and performing communication protocol switching analysis based on the switching cost information to determine the communication protocol that the industrial system needs to switch to.

[0032] Specifically, it is determined whether the communication quality information meets the preset trigger condition. If it is determined that the communication quality information does not meet the preset trigger condition, there is no need to switch the communication protocol. If it is determined that the communication quality information meets the preset trigger condition, the trigger condition can be a threshold of the communication quality information. When the communication quality information reaches or exceeds the preset threshold, it is determined that the preset trigger condition has been met. Then, a communication protocol switching cost analysis is performed on the industrial system to obtain switching cost information. The cost dimensions include: service interruption time: the duration of brief communication interruption caused by the switching process; resource consumption: memory / CPU usage and bandwidth requirements of the new protocol stack; functional loss: functional degradation that may occur when switching from a high-performance protocol to a low-performance protocol; security renegotiation overhead: additional latency will be introduced if a TLS session needs to be re-established. A cost value is evaluated for each cost dimension. The cost value evaluation can be determined by the evaluation rules preset by the management personnel. The cost values ​​of each cost dimension are weighted and summed to obtain the switching cost information.

[0033] Based on the switching cost information, communication protocol switching analysis is performed to determine the communication protocol that the industrial system needs to switch to. The protocol with the lowest switching cost is switched first. By monitoring communication quality parameters in real time, the system can perform preventative protocol switching, taking action in advance before communication quality deteriorates. The system also has a graceful degradation function to ensure that basic communication capabilities are maintained even in harsh network environments.

[0034] S14: After establishing a network communication connection for the industrial system, monitor in real time whether a communication interruption event occurs in the industrial system. If a communication interruption event is detected, match a communication reconnection strategy based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. In the specific implementation of this invention, the step of monitoring whether a communication interruption event occurs in the industrial system in real time includes: monitoring whether a communication interruption event occurs in the industrial system in real time based on a preset heartbeat mechanism.

[0035] Specifically, after establishing a network communication connection for the industrial system, a preset heartbeat mechanism is used to monitor in real time whether a communication interruption event occurs in the industrial system, such as periodically (e.g., every second) sending application-layer survival messages. If N consecutive messages are lost (e.g., 3 times), it is determined to be an interruption. If no communication interruption event is detected in the industrial system, there is no need to match a communication reconnection strategy, and the communication status of the industrial system continues to be monitored.

[0036] Furthermore, the step of matching a communication reconnection strategy based on the communication interruption event, and the industrial system performing fault recovery based on the communication reconnection strategy, includes: performing event type analysis on the communication interruption event to obtain event type information; constructing a communication reconnection strategy library, determining a communication reconnection strategy based on the event type information using the communication reconnection strategy library; determining an operation unit and execution engine based on the communication reconnection strategy, and the industrial system performing fault recovery based on the operation unit and execution engine using the communication reconnection strategy.

[0037] Specifically, if a communication interruption event is detected in the industrial system, an event type analysis is performed on the communication interruption event to obtain event type information. Monitoring data of the industrial system is obtained, such as hardware link status (read directly from the operating system network interface, value 1 indicates link is connected, 0 indicates link is disconnected); heartbeat / polling timeout event (application layer or middleware reports no response from the peer device). The monitoring data is input into a preset diagnostic decision tree, which outputs the event type of the communication interruption event based on the monitoring data. The preset diagnostic decision tree can be a random forest model.

[0038] A communication reconnection policy library is constructed. The policy structure of this library is a tuple of {Conditions, Actions, Metadata} for each policy. Conditions are set based on matching rules such as event type, device role, and interruption duration. Actions define a series of atomic operations. Metadata defines policy priority, timeout, and whether preemption is possible. Based on the event type information, the communication reconnection policy library is used to determine the communication reconnection policy. The event type information is matched against the communication reconnection policy library, and the policy with the highest priority and a perfect match is selected. For example, when a communication interruption is detected, a reconnection operation will first be attempted under the current protocol. The system will set a maximum number of retries to prevent infinite retries. If the current protocol reconnection fails, the system will automatically switch to other available protocols according to a preset priority order. During the switching process, the system will skip the currently failed protocol and try to establish a connection with other available protocols in turn.

[0039] Based on the communication reconnection strategy, operation units and execution engines are determined. Operation units are operation functions corresponding to fault recovery, such as `action_switch_interface()`. The execution engine is a state machine responsible for sequentially and atomically calling the operation units and handling timeouts and failure rollbacks. The industrial system utilizes the operation units and execution engine for fault recovery based on the communication reconnection strategy. The industrial system's execution engine drives the operation units to complete the recovery process of the communication reconnection strategy. Target data of the fault recovery process, such as recovery step timestamps, is recorded.

[0040] S15: Generate target logs based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, and store the target logs in the corresponding nodes.

[0041] In a specific implementation of this invention, the step of generating a target log based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, and storing the target log in the corresponding node, includes: integrating log content based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies to obtain the target log; performing encryption strategy analysis on the target log to obtain the target encryption strategy; and storing the target log in the corresponding node based on the target encryption strategy.

[0042] Specifically, based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, log content is integrated, consolidating the scattered target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies into a single log event. The target log is obtained by associating all relevant log entries during an interruption or switching process using a unified session_id or correlation_id function.

[0043] The target logs are analyzed for encryption strategies to obtain the target encryption strategy. The sensitivity level of the target logs is identified, and the encryption algorithm for the target logs is determined based on the sensitivity level; this is the target encryption strategy. Based on the target encryption strategy, the target logs are stored in the corresponding nodes. For storage on local or edge nodes, AES-256 symmetric encryption can be used. For uploads to the cloud, asymmetric encryption (such as using the cloud service's public key encryption) can be used. This comprehensive logging mechanism provides complete data support for system maintenance and fault diagnosis.

[0044] In this embodiment of the invention, a hardware detection program analyzes the protocol types of available communication interfaces to obtain protocol type information. Based on this information, a protocol priority list is constructed, and a network communication connection for the industrial system is established. This ensures the system can quickly establish the optimal communication connection. After establishing the network communication connection, communication quality analysis is performed to obtain communication quality information. Based on this information, communication protocol switching analysis is conducted to optimize overall network performance and ensure the service quality of critical services. After establishing the network communication connection, the system monitors in real time for communication interruption events. If an interruption event is detected, a communication reconnection strategy is matched based on the event. The industrial system then performs fault recovery based on this strategy. This three-layer protection mechanism—a protocol priority list, dynamic protocol switching, and intelligent interruption recovery—provides multiple, heterogeneous communication backups for critical control loops and data transmission, significantly enhancing the system's survivability and resilience in complex and harsh industrial environments. Example 2:

[0045] Please see Figure 2 , Figure 2 This is a schematic diagram of the structural composition of the industrial communication management system in an embodiment of the present invention. The system includes: Communication connection establishment module 21: used to perform protocol type analysis on available communication interfaces based on hardware detection program, obtain protocol type information, construct a protocol priority list based on the protocol type information, and establish network communication connection of industrial system based on the protocol priority list; In a specific implementation of this invention, the step of analyzing the protocol types of available communication interfaces based on a hardware detection program to obtain protocol type information, and constructing a protocol priority list based on the protocol type information, includes: analyzing the protocol types of each available communication interface using a hardware abstraction layer based on a hardware detection program to obtain protocol type information; performing a real-time requirement score based on the protocol type information to obtain real-time requirement score information; performing a security score based on the protocol type information to obtain security score information; performing a compatibility score based on the protocol type information to obtain compatibility score information; and constructing a protocol priority list based on the real-time requirement score information, security score information, and compatibility score information.

[0046] Specifically, the hardware detection program uses the hardware abstraction layer to analyze the protocol types of each available communication interface to obtain protocol type information. The system automatically executes the hardware detection process during the framework initialization phase. First, it scans all available communication interfaces to identify the currently available protocol types.

[0047] Based on the protocol type information, a real-time requirement score is performed to obtain real-time requirement score information. The typical cycle time and data transmission delay fluctuation range corresponding to the protocol type information of available communication interfaces are retrieved from the database. The typical cycle time is the minimum, standard, or typical data exchange cycle time supported by the protocol. The data transmission delay fluctuation range is the difference between the maximum and minimum data transmission delay values. A first benchmark value for the typical cycle time and a second benchmark value for the data transmission delay fluctuation range are obtained. The quotient of the typical cycle time and the first benchmark value are calculated, and the quotient of the data transmission delay fluctuation range and the second benchmark value are calculated. Combining these two values ​​yields the real-time requirement score. Based on the protocol type information, a security score is performed to obtain the encryption algorithm strength of the protocol type information. The encryption algorithm strength is then scored according to preset scoring rules to obtain security score information, such as the security score of the AES-256 algorithm being higher than that of the AES-128 algorithm.

[0048] Compatibility scoring is performed based on the protocol type information to obtain compatibility score information, which is the proportion of devices in the network that support the protocol. The higher the proportion, the higher the score. A protocol priority list is constructed based on the real-time requirement score, security score, and compatibility score information. This can be achieved by weighting the real-time requirement score, security score, and compatibility score information to obtain the target score for the protocol type: Target Score = W1 * Real-time Score + W2 * Security Score + W3 * Compatibility Score, where W1, W2, and W3 are weight coefficients corresponding to different scores. These weight coefficients are matched in the database and sorted in descending order of the target score to generate the protocol priority list.

[0049] The system establishes network communication connections for the industrial system based on the aforementioned protocol priority list. Connections are attempted sequentially according to protocol priority, with the system prioritizing the highest-priority protocol. Once a connection is successfully established, the system immediately sets it as the currently used protocol and logs the successful connection. This automatic detection mechanism ensures that the system can quickly establish optimal communication connections after power-on. For example, if TCP / IP has the highest priority, Modbus RTU has the second highest priority, and RS232 has the lowest priority, then TCP / IP will be the first protocol to be connected.

[0050] Furthermore, the step of using the hardware abstraction layer to analyze the protocol type of each available communication interface based on the hardware detection program to obtain protocol type information includes: using the hardware abstraction layer to analyze the bus data frame of each available communication interface based on the hardware detection program to obtain bus data frame information; and using the bus data frame information to analyze the protocol type of each available communication interface to obtain protocol type information.

[0051] Specifically, the hardware detection program uses the hardware abstraction layer to analyze the bus data frames of each available communication interface to obtain bus data frame information. The system enumerates all physical interfaces through the unified API of the hardware abstraction layer, enables promiscuous mode on the interface, and captures the original data frames to obtain the bus data frame information.

[0052] Based on the bus data frame information, the protocol type of each available communication interface is analyzed to obtain the protocol type information. The obtained bus data frame information is then compared with the built-in protocol feature library to obtain the matching protocol type.

[0053] Communication quality analysis module 22: used to perform communication quality analysis on the industrial system after establishing network communication connection and obtain communication quality information; In the specific implementation of this invention, the step of performing communication quality analysis on the industrial system to obtain communication quality information includes: performing communication environment characteristic analysis on the industrial system to obtain communication environment characteristic information; performing signal transmission speed analysis on the industrial system based on a preset time granularity to obtain signal transmission speed information; performing signal strength analysis on the industrial system to obtain signal strength information; and determining communication quality information based on the communication environment characteristic information, signal transmission speed information, and signal strength information.

[0054] Specifically, after establishing network communication connections in the industrial system, a communication environment characteristic analysis is performed to obtain communication environment characteristic information. The driver interface is called to read the signal-to-noise ratio (SNR), co-channel interference intensity, and channel busy / idle ratio of available signals in the industrial system. The SNR is the signal strength minus the noise floor. The co-channel interference intensity is used to identify the signal strength of non-cooperative networks. The channel busy / idle ratio is the percentage of time the channel is in a busy state. The background noise level in the industrial system is also read. The communication environment characteristic information is composed of the background noise level, SNR, co-channel interference intensity, and channel busy / idle ratio.

[0055] The signal transmission speed of the industrial system is analyzed based on a preset time granularity to obtain signal transmission speed information. Timestamped probe packets are sent to the industrial system at the preset time granularity, such as once per second. The average round-trip delay and delay standard deviation are calculated based on the sent probe packets, and the signal transmission speed is determined based on the average round-trip delay and delay standard deviation.

[0056] Signal strength analysis is performed on the industrial system to obtain signal strength information. The received signal strength indication and signal-to-noise ratio (SNR) of the industrial system are read, and the signal strength of the industrial system is evaluated based on these indicators. Communication quality information is determined based on the communication environment characteristics, signal transmission speed, and signal strength information. These factors are then input into the evaluation model to obtain a quantified communication quality level.

[0057] Protocol switching module 23: used to perform communication protocol switching analysis based on the communication quality information and obtain communication protocol switching analysis results; In a specific implementation of the present invention, the step of performing communication protocol switching analysis based on the communication quality information to obtain the communication protocol switching analysis result includes: determining whether the communication quality information has reached a preset trigger condition; if it is determined that the communication quality information has reached the preset trigger condition, then performing a communication protocol switching cost analysis on the industrial system to obtain switching cost information; and performing communication protocol switching analysis based on the switching cost information to determine the communication protocol that the industrial system needs to switch to.

[0058] Specifically, it is determined whether the communication quality information meets the preset trigger condition. If it is determined that the communication quality information does not meet the preset trigger condition, there is no need to switch the communication protocol. If it is determined that the communication quality information meets the preset trigger condition, the trigger condition can be a threshold of the communication quality information. When the communication quality information reaches or exceeds the preset threshold, it is determined that the preset trigger condition has been met. Then, a communication protocol switching cost analysis is performed on the industrial system to obtain switching cost information. The cost dimensions include: service interruption time: the duration of brief communication interruption caused by the switching process; resource consumption: memory / CPU usage and bandwidth requirements of the new protocol stack; functional loss: functional degradation that may occur when switching from a high-performance protocol to a low-performance protocol; security renegotiation overhead: additional latency will be introduced if a TLS session needs to be re-established. A cost value is evaluated for each cost dimension. The cost value evaluation can be determined by the evaluation rules preset by the management personnel. The cost values ​​of each cost dimension are weighted and summed to obtain the switching cost information.

[0059] Based on the switching cost information, communication protocol switching analysis is performed to determine the communication protocol that the industrial system needs to switch to. The protocol with the lowest switching cost is switched first. By monitoring communication quality parameters in real time, the system can perform preventative protocol switching, taking action in advance before communication quality deteriorates. The system also has a graceful degradation function to ensure that basic communication capabilities are maintained even in harsh network environments.

[0060] Interruption recovery module 24: After establishing a network communication connection for the industrial system, it monitors in real time whether a communication interruption event occurs in the industrial system. If a communication interruption event is detected, it matches a communication reconnection strategy based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. In the specific implementation of this invention, the step of monitoring whether a communication interruption event occurs in the industrial system in real time includes: monitoring whether a communication interruption event occurs in the industrial system in real time based on a preset heartbeat mechanism.

[0061] Specifically, after establishing a network communication connection for the industrial system, a preset heartbeat mechanism is used to monitor in real time whether a communication interruption event occurs in the industrial system, such as periodically (e.g., every second) sending application-layer survival messages. If N consecutive messages are lost (e.g., 3 times), it is determined to be an interruption. If no communication interruption event is detected in the industrial system, there is no need to match a communication reconnection strategy, and the communication status of the industrial system continues to be monitored.

[0062] Furthermore, the step of matching a communication reconnection strategy based on the communication interruption event, and the industrial system performing fault recovery based on the communication reconnection strategy, includes: performing event type analysis on the communication interruption event to obtain event type information; constructing a communication reconnection strategy library, determining a communication reconnection strategy based on the event type information using the communication reconnection strategy library; determining an operation unit and execution engine based on the communication reconnection strategy, and the industrial system performing fault recovery based on the operation unit and execution engine using the communication reconnection strategy.

[0063] Specifically, if a communication interruption event is detected in the industrial system, an event type analysis is performed on the communication interruption event to obtain event type information. Monitoring data of the industrial system is obtained, such as hardware link status (read directly from the operating system network interface, value 1 indicates link is connected, 0 indicates link is disconnected); heartbeat / polling timeout event (application layer or middleware reports no response from the peer device). The monitoring data is input into a preset diagnostic decision tree, which outputs the event type of the communication interruption event based on the monitoring data. The preset diagnostic decision tree can be a random forest model.

[0064] A communication reconnection policy library is constructed. The policy structure of this library is a tuple of {Conditions, Actions, Metadata} for each policy. Conditions are set based on matching rules such as event type, device role, and interruption duration. Actions define a series of atomic operations. Metadata defines policy priority, timeout, and whether preemption is possible. Based on the event type information, the communication reconnection policy library is used to determine the communication reconnection policy. The event type information is matched against the communication reconnection policy library, and the policy with the highest priority and a perfect match is selected. For example, when a communication interruption is detected, a reconnection operation will first be attempted under the current protocol. The system will set a maximum number of retries to prevent infinite retries. If the current protocol reconnection fails, the system will automatically switch to other available protocols according to a preset priority order. During the switching process, the system will skip the currently failed protocol and try to establish a connection with other available protocols in turn.

[0065] Based on the communication reconnection strategy, operation units and execution engines are determined. Operation units are operation functions corresponding to fault recovery, such as `action_switch_interface()`. The execution engine is a state machine responsible for sequentially and atomically calling the operation units and handling timeouts and failure rollbacks. The industrial system utilizes the operation units and execution engine for fault recovery based on the communication reconnection strategy. The industrial system's execution engine drives the operation units to complete the recovery process of the communication reconnection strategy. Target data of the fault recovery process, such as recovery step timestamps, is recorded.

[0066] Log recording module 25: used to generate target logs based on the target data, communication protocol switching analysis results, communication interruption events and communication reconnection strategies, and store the target logs in the corresponding nodes.

[0067] In a specific implementation of this invention, the step of generating a target log based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, and storing the target log in the corresponding node, includes: integrating log content based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies to obtain the target log; performing encryption strategy analysis on the target log to obtain the target encryption strategy; and storing the target log in the corresponding node based on the target encryption strategy.

[0068] Specifically, based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, log content is integrated, consolidating the scattered target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies into a single log event. The target log is obtained by associating all relevant log entries during an interruption or switching process using a unified session_id or correlation_id function.

[0069] The target logs are analyzed for encryption strategies to obtain the target encryption strategy. The sensitivity level of the target logs is identified, and the encryption algorithm for the target logs is determined based on the sensitivity level; this is the target encryption strategy. Based on the target encryption strategy, the target logs are stored in the corresponding nodes. For storage on local or edge nodes, AES-256 symmetric encryption can be used. For uploads to the cloud, asymmetric encryption (such as using the cloud service's public key encryption) can be used. This comprehensive logging mechanism provides complete data support for system maintenance and fault diagnosis.

[0070] In this embodiment of the invention, a hardware detection program analyzes the protocol types of available communication interfaces to obtain protocol type information. Based on this information, a protocol priority list is constructed, and a network communication connection for the industrial system is established. This ensures the system can quickly establish the optimal communication connection. After establishing the network communication connection, communication quality analysis is performed to obtain communication quality information. Based on this information, communication protocol switching analysis is conducted to optimize overall network performance and ensure the service quality of critical services. After establishing the network communication connection, the system monitors in real time for communication interruption events. If an interruption event is detected, a communication reconnection strategy is matched based on the event. The industrial system then performs fault recovery based on this strategy. This three-layer protection mechanism—a protocol priority list, dynamic protocol switching, and intelligent interruption recovery—provides multiple, heterogeneous communication backups for critical control loops and data transmission, significantly enhancing the system's survivability and resilience in complex and harsh industrial environments.

[0071] This invention provides a computer-readable storage medium storing a computer program. When executed by a processor, this program implements the industrial communication management method of any of the above embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic cards, or optical cards. In other words, the storage device includes any medium that stores or transmits information in a readable form by a device (e.g., a computer, a mobile phone), and can be a read-only memory, a disk, or an optical disk, etc.

[0072] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0073] Furthermore, the above description provides a detailed overview of the industrial communication management method, system, and storage medium provided by the embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. An industrial communication management method, characterized in that, The method includes: The available communication interfaces are analyzed for protocol types based on the hardware detection program to obtain protocol type information. A protocol priority list is constructed based on the protocol type information, and a network communication connection for the industrial system is established based on the protocol priority list. After establishing network communication connections in the industrial system, communication quality analysis is performed on the industrial system to obtain communication quality information; Based on the communication quality information, a communication protocol switching analysis is performed to obtain the communication protocol switching analysis results. After establishing a network communication connection for the industrial system, the system monitors in real time whether a communication interruption event occurs. If a communication interruption event is detected, a communication reconnection strategy is matched based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. Based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, a target log is generated and stored in the corresponding node.

2. The industrial communication management method according to claim 1, characterized in that, The step of analyzing the protocol types of available communication interfaces based on the hardware detection program to obtain protocol type information, and constructing a protocol priority list based on the protocol type information, includes: The hardware detection program uses the hardware abstraction layer to analyze the protocol type of each available communication interface and obtain protocol type information. Based on the protocol type information, a real-time requirement score is performed to obtain real-time requirement score information; based on the protocol type information, a security score is performed to obtain security score information. Compatibility scores are performed based on the protocol type information to obtain compatibility score information, and a protocol priority list is constructed based on the real-time requirement score information, security score information, and compatibility score information.

3. The industrial communication management method according to claim 2, characterized in that, The hardware-based detection program utilizes a hardware abstraction layer to analyze the protocol types of each available communication interface, obtaining protocol type information, including: The hardware detection program uses the hardware abstraction layer to analyze the bus data frames of each available communication interface to obtain bus data frame information. Based on the bus data frame information, the protocol type of each available communication interface is analyzed to obtain the protocol type information.

4. The industrial communication management method according to claim 1, characterized in that, The process of analyzing the communication quality of industrial systems to obtain communication quality information includes: Perform communication environment characteristic analysis on industrial systems to obtain communication environment characteristic information; The signal transmission speed of the industrial system is analyzed based on a preset time granularity to obtain signal transmission speed information. Signal strength analysis is performed on the industrial system to obtain signal strength information, and communication quality information is determined based on the communication environment characteristics, signal transmission speed, and signal strength information.

5. The industrial communication management method according to claim 1, characterized in that, The step of performing communication protocol switching analysis based on the communication quality information to obtain communication protocol switching analysis results includes: Determine whether the communication quality information has reached the preset trigger condition. If it is determined that the communication quality information has reached the preset trigger condition, then perform a communication protocol switching cost analysis on the industrial system to obtain switching cost information. Based on the switching cost information, a communication protocol switching analysis is performed to determine the communication protocol that the industrial system needs to switch to.

6. The industrial communication management method according to claim 1, characterized in that, The method of monitoring whether a communication interruption event occurs in the industrial system in real time includes: The system uses a preset heartbeat mechanism to monitor in real time whether communication interruption events occur in the industrial system.

7. The industrial communication management method according to claim 1, characterized in that, The communication reconnection strategy is matched based on the communication interruption event, and the industrial system performs fault recovery based on the communication reconnection strategy, including: Perform event type analysis on the communication interruption event to obtain event type information; Construct a communication reconnection strategy library, and determine the communication reconnection strategy based on the event type information using the communication reconnection strategy library; Based on the communication reconnection strategy, the operation unit and execution engine are determined, and the industrial system uses the operation unit and execution engine to perform fault recovery based on the communication reconnection strategy.

8. The industrial communication management method according to claim 1, characterized in that, The process of generating target logs based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, and storing the target logs in the corresponding nodes, includes: Based on the target data, communication protocol switching analysis results, communication interruption events, and communication reconnection strategies, log content is integrated to obtain the target log; The target log is analyzed for encryption strategy to obtain the target encryption strategy; The target logs are stored in the corresponding nodes based on the target encryption strategy.

9. An industrial communication management system, employing the industrial communication management method according to any one of claims 1-8, characterized in that, The system includes: Communication connection establishment module: used to analyze the protocol type of available communication interfaces based on the hardware detection program, obtain protocol type information, construct a protocol priority list based on the protocol type information, and establish network communication connection of industrial system based on the protocol priority list; Communication quality analysis module: Used to analyze the communication quality of the industrial system after establishing network communication connection and obtain communication quality information; Protocol switching module: used to perform communication protocol switching analysis based on the communication quality information and obtain communication protocol switching analysis results; Interruption recovery module: After establishing a network communication connection with the industrial system, it monitors in real time whether a communication interruption event occurs in the industrial system. If a communication interruption event is detected, it matches a communication reconnection strategy based on the communication interruption event. The industrial system performs fault recovery based on the communication reconnection strategy and records the target data of the fault recovery process. Log recording module: used to generate target logs based on the target data, communication protocol switching analysis results, communication interruption events and communication reconnection strategies, and store the target logs in the corresponding nodes.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the industrial communication management method as described in any one of claims 1 to 8.