A remote operation and maintenance method and device based on virtual machine
Using virtual machine technology to create virtual device models and protocol conversion middleware solves the problems of device diversity and inconsistent communication protocols in traditional operation and maintenance methods, realizes real-time remote monitoring and fault prediction, and improves operation and maintenance efficiency and production stability. .
Patent Information
- Application Number
- CN202411000700.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Equipment operation and maintenance in traditional industrial production environments relies on inspections by on-site engineers, which results in non-real-time fault diagnosis and long response times. The diversity of equipment and inconsistent protocols make data integration and analysis difficult, affecting the efficiency of remote operation and maintenance.
Adopt a virtual machine-based remote operation and maintenance method to create a virtual device model to achieve digital representation of the device, and use protocol conversion middleware to automatically identify and convert communication protocols to build a virtual machine cluster for remote monitoring and fault prediction, combining graph theory and Network analytics predict risk of failure.
It achieves unified management and data integration of multiple devices, improves communication efficiency between heterogeneous devices, realizes intelligent monitoring and predictive maintenance of remote devices, and reduces the risk of fault propagation.
Smart Images

Figure CN118540225B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of control or regulation operation and maintenance, and in particular relates to a remote operation and maintenance method and device based on a virtual machine. Background Art
[0002] In traditional industrial production environments, equipment operation and maintenance rely on regular inspections and fault responses by field engineers, which has many limitations. First, the skill level and experience of field engineers directly affect the accuracy and efficiency of fault diagnosis. When faced with complex and changing industrial scenarios, the knowledge boundaries of a single engineer are often difficult to cover the maintenance needs of all equipment. Secondly, equipment failures are often sudden, and traditional manual inspections cannot achieve real-time monitoring, resulting in a long response time when a failure occurs, which seriously affects production efficiency and product quality. Physical factories contain a variety of equipment from different suppliers, using a variety of data formats and communication protocols, which makes data integration and analysis difficult. It becomes a challenge to achieve interconnection and data integration between equipment, affecting the efficiency and effectiveness of remote operation and maintenance. Summary of the invention
[0003] The purpose of the present invention is to provide a remote operation and maintenance method and device based on a virtual machine to solve the problems raised in the above background technology.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0005] The remote operation and maintenance method based on a virtual machine includes the following steps:
[0006] Using virtual machines, create corresponding virtual device models for each device;
[0007] The virtual device model contains the basic properties, communication protocols, and data format information of the device, realizing the digital representation of the device;
[0008] Protocol conversion and data integration: build protocol conversion middleware and deploy it in the virtual machine to identify and convert the communication protocol between the physical device and the virtual device model;
[0009] The data generated by the physical device is first captured by the edge sensor of the virtual machine. The data generated by the physical device carries a specific communication protocol identifier;
[0010] The protocol conversion middleware in the virtual machine automatically identifies the communication protocol used by the physical device based on the protocol identifier in the data packet header;
[0011] Convert the data generated by the captured physical device into a format that can be understood by the virtual device model through data encoding, decoding and format reorganization;
[0012] The data generated by the converted physical device is passed to the corresponding virtual device model to simulate the state and behavior of the physical device;
[0013] The protocol conversion middleware has built-in multiple protocol parsers, including EtherCAT, Profinet, and DeviceNet, to achieve protocol compatibility between heterogeneous devices;
[0014] Build a virtual machine cluster, where each virtual machine is responsible for the virtualization management of a group of related physical devices;
[0015] Build a cluster manager responsible for the allocation, scheduling and monitoring of virtual machines to ensure efficient use of resources and system stability; build a remote operation and maintenance platform on top of the virtual machine cluster to complete remote equipment monitoring, remote equipment data analysis, and remote equipment fault prediction; remote equipment fault prediction is specifically based on the dependencies between upstream and downstream equipment in the physical factory to predict potential failure risks.
[0016] Furthermore, for the robot system, the created virtual device model includes the communication interface, motion control instruction set and state feedback mechanism of the robot control system.
[0017] Furthermore, for sensors and actuators, the virtual device model records in detail the signal type, communication standard, and data encoding format of each sensor or actuator; for industrial Ethernet switches, routers, and wireless access points, the virtual device model includes the network protocol stack information, port configuration, and QoS settings of the industrial Ethernet switch or router or wireless access point.
[0018] Furthermore, for the production process execution system, the virtual equipment model includes the production process execution system bill of materials, production orders, quality standard information, and data interfaces and message formats that match the physical production process execution system.
[0019] Furthermore, for the visual inspection system, the virtual device model records the camera’s resolution, frame rate, image processing algorithm, and data exchange protocol with the physical inspection system.
[0020] Furthermore, data encoding refers to the process of converting raw data generated by physical devices into a format that is convenient for transmission;
[0021] Data decoding is the process of converting the received coded data back to its original meaning at the virtual machine end, including: the protocol conversion middleware in the virtual machine identifies the communication protocol used by the physical device according to the protocol identifier in the data packet header; the middleware then calls the corresponding protocol parser to decode the coded data back to its original meaning, restoring the device status and production data information;
[0022] Format reorganization is the process of reorganizing the decoded data according to the requirements of the virtual device model, including: establishing a mapping relationship between the physical device data field and the virtual device model data field, ensuring the semantic consistency of the data, and adjusting the data format according to the requirements of the virtual device model.
[0023] Furthermore, the virtual machine cluster adopts a distributed architecture. The virtual machines in the cluster are independent of each other, but they work closely together through the cluster manager. The cluster manager is used to intelligently schedule the operation of virtual machines based on the current system load, virtual machine resource status, and real-time needs of physical devices. When a virtual machine fails, it is used to detect and automatically migrate tasks to other healthy virtual machines. It is used to continuously monitor the operating status and performance indicators of each virtual machine and collect operation and maintenance logs.
[0024] Furthermore, based on the dependencies between upstream and downstream devices in the physical factory, potential failure risks are predicted, including:
[0025] By analyzing the data flow between devices in the physical factory, the upstream and downstream relationships of the equipment can be identified. By using graph theory and network analysis, the possibility and path of fault propagation between upstream and downstream devices can be predicted, and the risk points of fault spread can be identified.
[0026] Furthermore, graph theory and network analysis are used to predict the possibility and path of fault propagation between upstream and downstream equipment, and to identify risk points for fault propagation. Specifically, based on the location, function, and dependency of equipment in the physical factory, a device network diagram is constructed, in which nodes represent equipment and edges represent direct or indirect dependencies between equipment. Weights are assigned to each edge to represent the frequency and importance of data or material flow between equipment, as well as the probability of fault propagation. The higher the weight, the greater the possibility of fault propagation from one end of the equipment to the other. Isolated equipment or critical paths are identified by calculating the connected components of the device network diagram. Dijkstra algorithm or Floyd-Warshall algorithm is used to Calculate the shortest path between devices and identify the fastest path for fault propagation; identify naturally formed compact subsets in the device network through community detection algorithms; calculate the centrality metrics of devices in the network, including degree centrality, betweenness centrality, and closeness centrality, and identify devices in key positions in the network; simulate the process of fault propagation from one device to other devices based on the device network diagram and fault propagation probability, and evaluate the scope and severity of fault spread; simulate the impact of equipment performance changes on the fault propagation path by changing the weights of the edges in the network, and identify equipment or equipment groups that are sensitive to production stability; identify key risk point equipment or equipment groups for fault spread, prioritize monitoring and maintenance, and reduce the risk of fault propagation.
[0027] Beneficial effects: Unified management and data integration: By creating a virtual device model for the physical device, not only the basic properties, communication protocols and data format information of the device are integrated, but also unified management of various devices is achieved through virtual machine technology, solving the data processing problems caused by device diversity and inconsistent protocols.
[0028] Efficient protocol conversion: The constructed protocol conversion middleware can automatically identify and convert the communication protocol between the physical device and the virtual device model, support EtherCAT, Profinet, DeviceNet and other industrial communication standards, ensure seamless communication between heterogeneous devices, and improve the efficiency and accuracy of data processing.
[0029] Intelligent operation and maintenance platform: The remote operation and maintenance platform based on virtual machine clusters can complete remote equipment monitoring, data analysis and fault prediction. By analyzing the upstream and downstream dependencies between equipment in the physical factory, predicting potential failure risks, and using graph theory and network analysis technology to identify risk points for fault spread, a scientific basis is provided for preventive maintenance.
[0030] Resource optimization and system stability: The intelligent scheduling and monitoring functions of the cluster manager achieve efficient use of virtual machine resources and ensure the stability and reliability of the system. Through dynamic adjustment of virtual machine allocation, automatic fault migration and real-time monitoring mechanisms, the continuity and efficiency of remote operation and maintenance are guaranteed.
[0031] Enhanced remote control capabilities: For robotic systems, sensors, actuators, industrial network equipment, production process execution systems, visual inspection systems, and logistics equipment, the created virtual device models record in detail the device’s communication interface, control instructions, data format, and other information, enhancing remote control and monitoring capabilities.
[0032] Predictive maintenance: By analyzing the equipment network diagram and the probability of fault propagation, simulating the fault propagation process, evaluating the scope and severity of fault spread, identifying equipment or equipment groups that are sensitive to production stability, and prioritizing monitoring and maintenance, the risk of fault propagation is significantly reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a flow chart of the method of this application. DETAILED DESCRIPTION
[0034] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0035] The remote operation and maintenance method based on virtual machines disclosed in this application is as follows: Figure 1 As shown, including:
[0036] Using virtual machines, create corresponding virtual device models for each device;
[0037] The virtual device model contains the basic properties, communication protocols, and data format information of the device, realizing the digital representation of the device;
[0038] Create a corresponding virtual device model for each device:
[0039] In the physical factory environment, in order to achieve unified management and data integration of diverse equipment, virtual machine technology is used to create a corresponding virtual device model for each physical device; these models not only contain the basic properties of the device (such as model, manufacturer, version information), but also record the device's communication protocol and data format information in detail to ensure that they can accurately reflect the functional characteristics and interaction methods of the physical device;
[0040] For programmable logic controllers and distributed control systems from different suppliers, the virtual device model stores the device's programming language type, communication protocol (such as Modbus TCP, EtherCAT, ProfiNET), and specific command set; in this way, when the physical device sends or receives data, the model in the virtual machine can immediately recognize and parse the data, achieving consistent interaction with the physical device;
[0041] For the robot system, the virtual device model created includes the communication interface, motion control instruction set and status feedback mechanism of the robot control system. With this information, the virtual machine can accurately simulate the operation behavior of the physical robot and perform precise control and status monitoring even in a remote environment.
[0042] For sensors and actuators, considering the diversity of sensors and actuators on the market, the virtual device model records in detail the signal type (such as analog signal, digital signal), communication standard (such as 4-20mA, RS485, CAN bus) and data encoding format of each device; in this way, no matter what standard the physical device adopts, the virtual machine can perform correct data analysis and conversion through the model;
[0043] For industrial Ethernet switches, routers, and wireless access points, the virtual device model contains the device's network protocol stack information (such as TCP / IP, UDP, SNMP), port configuration, and QoS settings; this ensures that the virtual machine can accurately simulate the behavior of physical network devices and achieve correct forwarding and management of data packets;
[0044] For the production process execution system, the virtual equipment model contains the bill of materials (BOM), production order, quality standard information, as well as the data interface and message format that match the physical production process execution system; this enables the virtual machine to be seamlessly integrated into the production management process of the physical factory, providing real-time production status monitoring and data analysis;
[0045] For the visual inspection system, the virtual device model records the camera's resolution, frame rate, image processing algorithm, and data exchange protocol with the physical inspection system; this ensures that the virtual machine can accurately simulate the image acquisition and analysis process of the physical visual system, supporting remote quality inspection and defect identification;
[0046] For automated guided vehicles (AGVs), conveyor belts, and shelf system logistics equipment, the virtual device model created includes the equipment's motion control logic, cargo identification mechanism, and data exchange protocol with the physical warehouse management system (WMS); this enables the virtual machine to remotely schedule and monitor physical logistics equipment, optimizing material transportation and inventory management.
[0047] The remote operation and maintenance method based on virtual machines also includes: protocol conversion and data integration, building a protocol conversion middleware, deployed in the virtual machine, for identifying and converting the communication protocol between the physical device and the virtual device model;
[0048] The data generated by the physical device is first captured by the edge sensor of the virtual machine. The data generated by the physical device carries a specific communication protocol identifier. In the remote operation and maintenance method based on the virtual machine, edge sensors play a vital role. They are the first bridge between the physical device and the virtual world. These sensors are not only responsible for collecting the status information of the physical device, such as temperature, humidity, pressure environmental parameters, as well as the equipment operation status and production data, but more importantly, they can identify and carry the specific communication protocol identifier used by the physical device.
[0049] Edge sensors continuously monitor the communication channels of physical devices and capture real-time data streams generated by devices when performing production tasks. These data streams include equipment operating parameters, production progress, and fault warnings.
[0050] Protocol identification: When each data stream is captured, it will be automatically marked with the communication protocol identification that matches the physical device. This identification is the key basis for subsequent data analysis and conversion.
[0051] The communication protocol identifier carried by the data stream enables the protocol conversion middleware in the virtual machine to immediately identify the specific communication protocol used by the physical device, such as EtherCAT, Profinet, and DeviceNet.
[0052] The remote operation and maintenance method based on a virtual machine also includes: the protocol conversion middleware in the virtual machine automatically identifies the communication protocol used by the physical device according to the protocol identifier of the data packet header;
[0053] The captured data generated by the physical device is converted into a format that the virtual device model can understand through data encoding, decoding and format reorganization; data encoding refers to the process of converting the original data generated by the physical device into a format that is easy to transmit. Considering that the physical device may use different communication protocols and data formats, data encoding must follow the following principles:
[0054] Standardized encoding: Use standardized encoding formats, such as JSON, XML, or binary encoding, to ensure the integrity and consistency of data during the conversion process.
[0055] Protocol adaptation: Select the appropriate encoding method according to the communication protocol used by the physical device. For example, EtherCAT uses a specific binary encoding format, while HTTP / HTTPS prefers to use JSON or XML.
[0056] Data decoding is the process of converting the received encoded data back to its original meaning on the virtual machine side. This step is crucial to accurately understand the state of the physical device, including:
[0057] Protocol identification: First, the protocol conversion middleware in the virtual machine identifies the communication protocol used by the physical device based on the protocol identifier in the data packet header.
[0058] Decoding process: The middleware then calls the corresponding protocol parser to decode the encoded data back to its original meaning and restore the device status and production data information.
[0059] Format reorganization is the process of reorganizing the decoded data according to the requirements of the virtual device model to ensure that the virtual device model can correctly understand and process the data. This step includes:
[0060] Data mapping: Establish a mapping relationship between the data fields of the physical device and the data fields of the virtual device model to ensure the semantic consistency of the data.
[0061] Format adjustment: Adjust the data format according to the specific requirements of the virtual device model, such as unit conversion and data type matching.
[0062] The remote operation and maintenance method based on a virtual machine also includes: transmitting the data generated by the converted physical device to a corresponding virtual device model for simulating the state and behavior of the physical device;
[0063] The middleware has built-in multiple protocol parsers, including EtherCAT, Profinet, and DeviceNet, to achieve protocol compatibility between heterogeneous devices;
[0064] Build a virtual machine cluster, where each virtual machine is responsible for the virtualization management of a group of related physical devices;
[0065] Virtual machine cluster architecture: The virtual machine cluster adopts a distributed architecture, which can effectively disperse the computing and storage loads and improve the overall performance and reliability of the system. As part of the cluster, each virtual machine undertakes the virtualization management tasks of a specific set of physical devices.
[0066] High availability: The virtual machines in the cluster are independent of each other, but they work closely together through the cluster manager to ensure that even if a single virtual machine fails, other virtual machines can still take over its tasks, ensuring the continuity and stability of remote operation and maintenance.
[0067] Virtual Machine Division of Duties
[0068] Device group association: Each virtual machine is responsible for a group of associated physical devices. This association is based on the similarity of device type, geographic location, or production process, which helps optimize data processing processes and improve resource utilization efficiency.
[0069] Data processing center: The virtual machine not only acts as a bridge between the physical equipment and the remote operation and maintenance platform, but also undertakes the tasks of data preprocessing, preliminary analysis and status monitoring, reducing the burden on the remote operation and maintenance platform and improving the response speed of the entire system.
[0070] The role of a cluster manager
[0071] Intelligent Scheduling: The cluster manager intelligently schedules the operation of virtual machines based on the current system load, virtual machine resource status, and real-time needs of physical devices to ensure reasonable allocation of resources and avoid resource waste or bottlenecks.
[0072] Fault recovery and migration: When a virtual machine fails, the cluster manager can quickly detect and automatically migrate tasks to other healthy virtual machines, achieving seamless recovery from the failure and ensuring uninterrupted operation of remote operation and maintenance.
[0073] Monitoring and optimization: The cluster manager continuously monitors the operating status and performance indicators of each virtual machine, collects operation logs, and provides data support for subsequent system optimization and resource planning.
[0074] Remote operation and maintenance methods based on virtual machines also include:
[0075] Build a cluster manager to allocate, schedule, and monitor virtual machines to ensure efficient resource utilization and system stability. The cluster manager is the core of resource optimization and system stability. More specifically, the cluster manager is used to:
[0076] Load balancing: The cluster manager monitors the resource usage of the virtual machine cluster in real time, such as CPU utilization, memory usage, and network bandwidth consumption, to ensure load balancing for each virtual machine and avoid performance bottlenecks caused by excessive resource concentration.
[0077] Dynamic scheduling: Based on the real-time data volume and processing requirements of the physical device, the cluster manager can dynamically adjust the allocation of virtual machines and schedule computing-intensive tasks to virtual machines with abundant resources to improve overall processing efficiency.
[0078] Rapid detection and response: The cluster manager is equipped with a fault detection mechanism that can quickly identify abnormal states of virtual machines, such as performance degradation and service interruptions, and take timely measures to prevent impacts on the continuity of remote operation and maintenance.
[0079] Automatic migration: Once a virtual machine failure is detected, the cluster manager can automatically migrate the tasks on the virtual machine to other healthy virtual machines, achieving seamless recovery from the failure and ensuring stable operation of the system.
[0080] Real-time monitoring: The cluster manager continuously monitors the operating status of the virtual machine cluster, including the health of the virtual machines, resource consumption, and task execution, to ensure that any potential problems can be discovered and handled in a timely manner.
[0081] Data-driven optimization: By collecting and analyzing operation and maintenance logs, the cluster manager can identify bottlenecks and inefficient links in resource utilization, provide data support for system optimization, and continuously improve resource utilization efficiency and system performance.
[0082] Predictive scheduling: Based on historical data and machine learning algorithms, the cluster manager predicts changes in resource demand in the future, schedules virtual machines and reserves resources in advance to avoid the impact of sudden loads.
[0083] By building a cluster manager, the present invention not only realizes the efficient use of virtual machine resources, but also ensures the stability and reliability of the remote operation and maintenance system, providing solid background support for the efficient operation and remote operation and maintenance of smart factories. As the brain of the virtual machine cluster, the cluster manager, with its intelligent scheduling and monitoring functions, enables the remote operation and maintenance platform to focus more on equipment monitoring and data analysis, providing a strong backing for predictive maintenance and troubleshooting.
[0084] The remote operation and maintenance method based on virtual machines also includes: building a remote operation and maintenance platform on top of the virtual machine cluster, the operation and maintenance platform completes remote equipment monitoring, remote equipment data analysis, and remote equipment fault prediction; remote equipment fault prediction is specifically based on the dependency between upstream and downstream equipment in the physical factory to predict potential failure risks. In the environment of a smart factory, the production relationship between equipment forms a complex network, in which the dependency between upstream and downstream equipment and the collaborative working mode between equipment are the key to maintaining a smooth production process. In order to more accurately predict potential failure risks, the remote operation and maintenance platform adopts an analysis based on the production relationship between different equipment in the physical factory:
[0085] Data correlation analysis: By analyzing the data flow between devices in the physical factory, we can identify which devices are directly connected upstream and downstream. For example, on the automobile manufacturing line, the body stamping equipment and welding equipment have a direct upstream and downstream relationship.
[0086] Performance impact assessment: Based on historical data between devices, evaluate how the performance fluctuations of upstream equipment affect the working status of downstream equipment. For example, a minor failure of upstream equipment may cause product failure, which in turn affects the processing quality and efficiency of downstream equipment.
[0087] Fault propagation path prediction: Use graph theory and network analysis to predict the possibility and path of fault propagation between upstream and downstream devices, and identify risk points for fault spread.
[0088] Specifically, construct a device network diagram: First, based on the location, function, and dependency of the equipment in the physical factory, construct a device network diagram, where nodes represent equipment and edges represent direct or indirect dependencies between equipment.
[0089] Weighted edges and fault propagation probability: Assign a weight to each edge to indicate the frequency and importance of data or material flow between devices, as well as the probability of fault propagation. The higher the weight, the greater the possibility of fault propagation from one device to another.
[0090] Connectivity analysis: By calculating the connected components of the equipment network diagram, it is possible to identify which equipment is isolated or forms a critical path, and the failure of these equipment may cause a large-scale interruption of the production process.
[0091] Shortest path algorithm: Use the Dijkstra algorithm or Floyd-Warshall algorithm to calculate the shortest path between devices, identify the fastest path for fault propagation, and help quickly locate potential sources of fault spread.
[0092] Using the Dijkstra algorithm or the Floyd-Warshall algorithm, the shortest path between devices is calculated using the Python programming language combined with the networkx library. The networkx library can be installed using the pip command:
[0093] Bash
[0094] pip install networkx
[0095] Then, we can build a sample device network graph and calculate the shortest path using the Dijkstra algorithm and the Floyd-Warshall algorithm:
[0096] Python
[0097] import networkx as nx
[0098] # Create an empty directed graph
[0099] G = nx.DiGraph()
[0100] # Add device node
[0101] G.add_node('A', device_type='Robot')
[0102] G.add_node('B', device_type='Sensor')
[0103] G.add_node('C', device_type='Switch')
[0104] G.add_node('D', device_type='Controller')
[0105] G.add_node('E', device_type='VisionSystem')
[0106] # Add edges, the weight of the edge represents the probability of fault propagation
[0107] G.add_edge('A', 'B', weight=0.2)
[0108] G.add_edge('B', 'C', weight=0.3)
[0109] G.add_edge('C', 'D', weight=0.1)
[0110] G.add_edge('D', 'E', weight=0.4)
[0111] # Use Dijkstra's algorithm to calculate the shortest path from 'A' to 'E'
[0112] dijkstra_path = nx.dijkstra_path(G, source='A', target='E', weight='weight')
[0113] print("Dijkstra shortest path from A to E:", dijkstra_path)
[0114] # Use the Floyd-Warshall algorithm to calculate the shortest path between all node pairs
[0115] floyd_warshall_paths = dict(nx.all_pairs_dijkstra_path(G, weight='weight'))
[0116] for node in G.nodes:
[0117] print(f"Floyd-Warshall shortest paths from {node}:")
[0118] for dest_node in G.nodes:
[0119] if node != dest_node:
[0120] print(f" To {dest_node}: {floyd_warshall_paths[node][dest_node]}")
[0121] # Calculate the fastest path for fault propagation (using Dijkstra algorithm as an example)
[0122] def fastest_failure_spread(graph, source):
[0123] # Get the shortest path from source to all other nodes
[0124] shortest_paths = nx.single_source_dijkstra_path(graph, source=source, weight='weight')
[0125] # Traverse all paths and find the longest path length, which is the fastest path for fault propagation
[0126] max_length = 0
[0127] fastest_path = []
[0128] for path in shortest_paths.values():
[0129] path_length = len(path) - 1 # minus 1 because path includes the starting point
[0130] if path_length>max_length:
[0131] max_length = path_length
[0132] fastest_path = path
[0133] return fastest_path
[0134] # Example: Calculate the fastest fault propagation path starting from 'A'
[0135] fastest_path = fastest_failure_spread(G, source='A')
[0136] print("Fastest failure spread path from A:", fastest_path)
[0137] In the above code example, the probability of fault propagation is represented by the weight of the edge. The smaller the weight, the smaller the possibility of fault propagation. The Dijkstra algorithm is used to calculate the shortest path between two specified nodes, while the Floyd-Warshall algorithm can calculate the shortest path between all pairs of nodes in the graph. In practical applications, the definition and calculation method of weights can be adjusted according to the specific structure of the device network and the fault propagation model. In addition, the fastest_failure_spread function is used to demonstrate how to identify the fastest path for fault propagation based on the results of the shortest path algorithm, which helps to quickly locate potential sources of fault spread.
[0138] Community Detection: Community detection algorithms are used to identify naturally formed tight subsets of devices in a network. Devices in these subsets are highly interconnected, and faults are more likely to propagate within such subsets.
[0139] Using community detection algorithms, we can identify naturally formed compact subsets in a device network. Example code:
[0140] Bash
[0141] pip install networkx python-louvain matplotlib
[0142] Python
[0143] import networkx as nx
[0144] import community
[0145] import matplotlib.pyplot as plt
[0146] def create_device_network():
[0147] # Create an empty undirected graph
[0148] G = nx.Graph()
[0149] # Add device nodes and edges
[0150] # Example Device Network
[0151] devices = ['device1', 'device2', 'device3', 'device4', 'device5','device6']
[0152] edges = [('device1', 'device2'), ('device1', 'device3'), ('device2', 'device4'),
[0153] ('device3', 'device4'), ('device3', 'device5'), ('device4', 'device6'),
[0154] ('device5', 'device6')]
[0155] G.add_nodes_from(devices)
[0156] G.add_edges_from(edges)
[0157] return G
[0158] def louvain_community_detection(G):
[0159] # Community detection using Louvain algorithm
[0160] partition = community.best_partition(G)
[0161] # Convert the result into a readable format
[0162] communities = {}
[0163] for node, community_id in partition.items():
[0164] if community_id not in communities:
[0165] communities[community_id] = []
[0166] communities[community_id].append(node)
[0167] return communities
[0168] # Build device network graph
[0169] G = create_device_network()
[0170] # Perform community detection
[0171] communities = louvain_community_detection(G)
[0172] # Output community information
[0173] print("Detected Communities:")
[0174] for i, comm in enumerate(communities.values()):
[0175] print(f"Community {i + 1}: {comm}")
[0176] # Visualizing networks and communities
[0177] pos = nx.spring_layout(G)
[0178] plt.figure(figsize=(10, 8))
[0179] nx.draw_networkx_nodes(G, pos, node_size=700, cmap=plt.cm.RdYlBu,
[0180] node_color=list(communities.keys()))
[0181] nx.draw_networkx_edges(G, pos, alpha=0.5)
[0182] nx.draw_networkx_labels(G, pos)
[0183] plt.title("Device Network with Detected Communities")
[0184] plt.show()
[0185] This code first defines a device network graph, then uses the Louvain algorithm to detect community structure. Finally, it outputs the detected community information and draws the network graph and community visualization.
[0186] Centrality measures: Compute centrality measures of devices in the network, such as degree centrality, betweenness centrality, and closeness centrality, to identify which devices are in critical positions in the network and whose failure may have a significant impact on the entire network.
[0187] Construct the network and compute centrality measures:
[0188] Python
[0189] import networkx as nx
[0190] # Create an empty undirected graph
[0191] G = nx.Graph()
[0192] # Add device nodes and edges. Edges represent dependencies between devices.
[0193] # Assume the devices are numbered from 1 to 5
[0194] G.add_edges_from([(1, 2), (1, 3), (2, 4), (3, 4), (4, 5)])
[0195] # Calculate degree centrality
[0196] degree_centrality = nx.degree_centrality(G)
[0197] print("Degree Centrality:", degree_centrality)
[0198] # Calculate betweenness centrality
[0199] betweenness_centrality = nx.betweenness_centrality(G)
[0200] print("Betweenness Centrality:", betweenness_centrality)
[0201] # Calculate closeness centrality
[0202] closeness_centrality = nx.closeness_centrality(G)
[0203] print("Closeness Centrality:", closeness_centrality)
[0204] In this code, we first create an undirected graph G, then add some device nodes and edges, which represent direct dependencies between devices. Next, we use the functions provided by the networkx library to calculate three centrality measures:
[0205] Degree Centrality: Indicates how many other nodes a node is directly connected to. A device with a high degree centrality means it has more direct connections with other devices and may play a key hub role in the network.
[0206] Betweenness Centrality: Measures the number of times a node appears in all shortest paths. A device with high betweenness centrality may play the role of a "bridge" in the network, and its failure may seriously affect the communication between other devices in the network.
[0207] Closeness Centrality: Measures the average shortest distance from a node to all other nodes in the network. A device with high closeness centrality means it can quickly reach any other device in the network, indicating that it has high reachability and influence in the network.
[0208] This code prints the three centrality measures for each device.
[0209] Fault propagation simulation: Based on the device network diagram and fault propagation probability, simulate the process of fault propagation from one device to other devices to evaluate the scope and severity of fault spread.
[0210] Sensitivity analysis: By changing the weights of the edges in the network, the impact of changes in equipment performance on the fault propagation path is simulated to identify which equipment or equipment groups are most sensitive to production stability.
[0211] Risk point identification: Through the results of device network analysis, identify which devices or device groups are key risk points for fault propagation, prioritize monitoring and maintenance, and reduce the risk of fault propagation.
[0212] This invention proposes a remote operation and maintenance technology based on virtual machines, which significantly improves the efficiency of remote monitoring, management and maintenance of equipment in physical factories, solves the limitations of traditional operation and maintenance methods, and realizes unified management and data integration of equipment. It is particularly suitable for scenarios with high equipment diversity and non-uniform communication protocols in industrial Internet environments. The following are the main effects of this technology:
[0213] Unified management and data integration: By creating a virtual device model for the physical device, not only the basic properties, communication protocols and data format information of the device are integrated, but also unified management of various devices is achieved through virtual machine technology, solving the data processing problems caused by device diversity and inconsistent protocols.
[0214] Efficient protocol conversion: The constructed protocol conversion middleware can automatically identify and convert the communication protocol between the physical device and the virtual device model, support EtherCAT, Profinet, DeviceNet and other industrial communication standards, ensure seamless communication between heterogeneous devices, and improve the efficiency and accuracy of data processing.
[0215] Intelligent operation and maintenance platform: The remote operation and maintenance platform based on virtual machine clusters can complete remote equipment monitoring, data analysis and fault prediction. By analyzing the upstream and downstream dependencies between equipment in the physical factory, predicting potential failure risks, and using graph theory and network analysis technology to identify risk points for fault spread, a scientific basis is provided for preventive maintenance.
[0216] Resource optimization and system stability: The intelligent scheduling and monitoring functions of the cluster manager achieve efficient use of virtual machine resources and ensure the stability and reliability of the system. Through dynamic adjustment of virtual machine allocation, automatic fault migration and real-time monitoring mechanisms, the continuity and efficiency of remote operation and maintenance are guaranteed.
[0217] Enhanced remote control capabilities: For robotic systems, sensors, actuators, industrial network equipment, production process execution systems, visual inspection systems, and logistics equipment, the created virtual device models record in detail the device’s communication interface, control instructions, data format, and other information, enhancing remote control and monitoring capabilities.
[0218] Predictive maintenance: By analyzing the equipment network diagram and the probability of fault propagation, simulating the fault propagation process, evaluating the scope and severity of fault spread, identifying equipment or equipment groups that are sensitive to production stability, and prioritizing monitoring and maintenance, the risk of fault propagation is significantly reduced.
[0219] In summary, the remote operation and maintenance method based on virtual machines provided by the present invention, through the comprehensive application of virtualization technology, protocol conversion middleware, virtual machine clusters and intelligent operation and maintenance platforms, greatly improves the remote operation and maintenance capabilities and production efficiency of physical factories, provides strong technical support for the construction and operation of smart factories, and demonstrates great application prospects in the industrial age.
[0220] The present application also discloses that the remote operation and maintenance device based on a virtual machine includes the following parts:
[0221] Physical equipment layer: includes all physical equipment within the factory, such as programmable logic controllers (PLCs), robots, sensors, actuators, network devices, MES systems, visual inspection systems, and logistics equipment.
[0222] Edge sensor layer: deployed near physical devices, responsible for collecting device status information and production data, along with the communication protocol identifier used by the device.
[0223] Virtual machine layer: Located in the cloud or on a local server, each virtual machine is responsible for the virtualization management of a group of related physical devices. Protocol conversion middleware is deployed in the virtual machine to identify and convert the communication protocol between the physical device and the virtual device model.
[0224] Virtual device model layer: Created in the virtual machine, each model corresponds to a device in the physical factory, including the basic properties, communication protocol and data format information of the device, realizing the digital representation of the device.
[0225] Protocol conversion middleware layer: It has built-in multiple protocol parsers, such as EtherCAT, Profinet, and DeviceNet, to achieve protocol compatibility between heterogeneous devices.
[0226] Virtual machine cluster layer: adopts a distributed architecture, and the cluster manager is responsible for the allocation, scheduling and monitoring of virtual machines to ensure efficient use of resources and system stability.
[0227] Remote operation and maintenance platform layer: Located on the virtual machine cluster, it completes the functions of remote equipment monitoring, remote equipment data analysis, and remote equipment fault prediction.
[0228] Data stream processing layer: includes data encoding, decoding and format reorganization to ensure that the physical device data can be correctly understood and processed by the virtual device model.
[0229] Fault prediction analysis layer: Based on the upstream and downstream dependencies between different devices in the physical factory, graph theory and network analysis are used to predict potential failure risks.
Claims
1. A remote operation and maintenance method based on a virtual machine, characterized in that: Includes steps: Using virtual machines, create corresponding virtual device models for each device; The virtual device model contains the device's attributes, communication protocols, and data format information, realizing the digital representation of the device; Protocol conversion and data integration: build protocol conversion middleware and deploy it in the virtual machine to identify and convert the communication protocol between the physical device and the virtual device model; The data generated by the physical device is first captured by the edge sensor of the virtual machine. The data generated by the physical device carries a specific communication protocol identifier; The protocol conversion middleware in the virtual machine automatically identifies the communication protocol used by the physical device based on the protocol identifier in the data packet header; Convert the data generated by the captured physical device into a format that can be understood by the virtual device model through data encoding, decoding and format reorganization; The data generated by the converted physical device is passed to the corresponding virtual device model to simulate the state and behavior of the physical device; The protocol conversion middleware has built-in multiple protocol parsers, including EtherCAT, Profinet, and DeviceNet, to achieve protocol compatibility between heterogeneous devices; Build a virtual machine cluster, where each virtual machine is responsible for the virtualization management of a group of related physical devices; Build a cluster manager to allocate, schedule, and monitor virtual machines to ensure efficient use of resources and system stability; A remote operation and maintenance platform is built on top of the virtual machine cluster. The operation and maintenance platform completes remote equipment monitoring, remote equipment data analysis, and remote equipment fault prediction. Remote equipment fault prediction is specifically based on the dependencies between upstream and downstream equipment in the physical factory to predict potential failure risks.
2. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: For the robot system, the created virtual device model includes the communication interface, motion control instruction set and state feedback mechanism of the robot control system.
3. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: For sensors and actuators, the virtual device model records in detail the signal type, communication standard, and data encoding format of each sensor or actuator; for industrial Ethernet switches, routers, and wireless access points, the virtual device model includes the network protocol stack information, port configuration, and QoS settings of the industrial Ethernet switch or router or wireless access point.
4. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: For the production process execution system, the virtual equipment model includes the production process execution system material list, production order, quality standard information, as well as the data interface and message format that match the physical production process execution system.
5. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: For the visual inspection system, the virtual device model records the camera’s resolution, frame rate, image processing algorithm, and data exchange protocol with the physical inspection system.
6. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: Data encoding refers to the process of converting the raw data generated by a physical device into a format that is convenient for transmission; Data decoding is the process of converting the received coded data back to its original meaning at the virtual machine end, including: the protocol conversion middleware in the virtual machine identifies the communication protocol used by the physical device according to the protocol identifier in the data packet header; the middleware then calls the corresponding protocol parser to decode the coded data back to its original meaning, restoring the device status and production data information; Format reorganization is the process of reorganizing the decoded data according to the requirements of the virtual device model, including: establishing a mapping relationship between the physical device data field and the virtual device model data field, ensuring the semantic consistency of the data, and adjusting the data format according to the requirements of the virtual device model.
7. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: The virtual machine cluster adopts a distributed architecture. The virtual machines in the cluster are independent of each other, but they work closely together through the cluster manager. The cluster manager is used to intelligently schedule the operation of virtual machines based on the current system load, virtual machine resource status, and real-time needs of physical devices. When a virtual machine fails, it is used to detect and automatically migrate tasks to other healthy virtual machines. It is used to continuously monitor the operating status and performance indicators of each virtual machine and collect operation and maintenance logs.
8. The remote operation and maintenance method based on a virtual machine according to claim 1, characterized in that: Predicting potential failure risks based on the dependencies between upstream and downstream devices in the physical factory includes: By analyzing the data flow between devices in the physical factory, the upstream and downstream relationships of the equipment can be identified. By using graph theory and network analysis, the possibility and path of fault propagation between upstream and downstream devices can be predicted, and the risk points of fault spread can be identified.
9. The remote operation and maintenance method based on a virtual machine according to claim 8, characterized in that: Using graph theory and network analysis, we can predict the possibility and path of fault propagation between upstream and downstream devices, and identify the risk points of fault propagation. Specifically, based on the location, function and dependency of the equipment in the physical factory, we can build a device network diagram, where nodes represent devices and edges represent direct or indirect dependencies between devices. We can assign weights to each edge to indicate the frequency and importance of data or material flow between devices, as well as the probability of fault propagation. The higher the weight, the greater the possibility of fault propagation from one device to another. We can identify isolated devices or critical paths by calculating the connected components of the device network diagram. We can also use the Dijkstra algorithm to calculate the number of nodes in the device network diagram. Or Floyd-Warshall algorithm, calculate the shortest path between devices and identify the fastest path for fault propagation; identify naturally formed compact subsets in the device network through community detection algorithm; calculate the centrality measurement of devices in the network, including degree centrality, betweenness centrality and closeness centrality, and identify devices in key positions in the network; simulate the process of fault propagation from one device to other devices based on the device network diagram and fault propagation probability, and evaluate the scope and severity of fault diffusion; simulate the impact of device performance changes on fault propagation paths by changing the weights of edges in the network, and identify devices or device groups that are sensitive to production stability; Identify key risk point devices or device groups for fault propagation, prioritize monitoring and maintenance, and reduce the risk of fault propagation.
