Multi-device conflict resolution control method based on Industrial Internet of Things
By constructing a device conflict situation feature matrix and a conflict propagation path tree, a priority sequence is generated, which solves the accuracy and efficiency problems of existing multi-device conflict resolution methods and achieves efficient conflict resolution.
Patent Information
- Application Number
- CN202611383681.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-17
AI Technical Summary
Existing conflict resolution methods for multiple devices in the Industrial Internet of Things (IIoT) fail to accurately reflect the degree of conflict coupling between multiple devices, resulting in a large deviation between the conflict identification results and the actual working conditions. Furthermore, the conflict resolution priority determination process does not incorporate the hierarchical structure of the conflict propagation path, leading to high response delays.
By acquiring equipment operating parameter data streams, a equipment conflict situation feature matrix is constructed, the conflict coupling degree between equipment is calculated, a conflict propagation path tree is constructed, a conflict resolution priority sequence is generated, a multi-equipment joint conflict resolution instruction set is organized, and the resolution process is advanced layer by layer.
It improves the accuracy of conflict situation characterization, clarifies the direction of conflict propagation, reduces the number of iterations, and improves the efficiency of conflict resolution.
Smart Images

Figure CN123113753A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of next-generation information technology, and in particular to a multi-device conflict resolution and control method based on the Industrial Internet of Things. Background Technology
[0002] Industrial Internet of Things (IIoT) technology is widely used in modern manufacturing workshops. Multiple industrial devices connect to the network through IIoT gateways, enabling real-time acquisition and centralized monitoring of operating parameters. As equipment density in workshops continues to increase, problems such as power contention, communication link contention, and process resource conflicts arising from the parallel operation of multiple devices are becoming increasingly prominent. Traditional methods for handling industrial equipment conflicts mainly rely on manual experience to set fixed priority rules, with operators manually allocating resources based on equipment type or task urgency. Some existing systems have introduced automatic scheduling methods based on threshold judgments. When the operating parameters of a device are detected to exceed preset ranges, the system automatically sends a power reduction or shutdown command to that device.
[0003] Existing multi-device conflict resolution methods for the Industrial Internet of Things (IIoT) have the following shortcomings. First, the conflict detection process does not jointly quantify power margin, task urgency, and the critical path status of the process, relying solely on threshold comparisons of a single dimension. This fails to accurately reflect the degree of conflict coupling between multiple devices, leading to significant discrepancies between conflict identification results and actual operating conditions. Second, the construction process of the conflict propagation path does not consider the differentiated distribution of conflict coupling between devices. Using fully connected or indiscriminate edge connections to generate the conflict relationship graph fails to distinguish between the conflict source and the direction of conflict propagation. After the resolution command is issued, the conflict continues to propagate repeatedly along the original path. Third, the determination of conflict resolution priorities does not consider the hierarchical structure of the conflict propagation path, arranging them only by device number or a fixed priority order. This results in upstream nodes being prioritized, while downstream nodes repeatedly trigger conflicts. The system needs to loop multiple times to reduce the conflict coupling to a safe range, resulting in high response latency. Summary of the Invention
[0004] In order to overcome the above-mentioned defects of the prior art and to achieve the above objectives, the present invention proposes the following technical solution: Multi-device conflict resolution control methods based on the Industrial Internet of Things include: S1: Obtain the operating parameter data streams of multiple industrial devices, perform preprocessing and feature extraction on the operating parameter data streams, and obtain the device conflict situation feature matrix; The operating parameter data stream includes the device's real-time power value, the device's rated power threshold, the device's task priority label, the device's current process stage identifier, and the device's communication link occupancy status bit. S2: Calculate the conflict coupling degree between devices based on the device conflict situation feature matrix, and construct and output the conflict propagation path tree; S3: Generate a conflict resolution priority sequence based on the conflict propagation path tree and the equipment conflict situation feature matrix, and organize the acquisition of a multi-device conflict resolution instruction set; S4: Receive and execute multi-device conflict resolution instruction set, send resolution instructions to the local controller for execution and feedback status. If the conflict coupling degree is higher than the preset threshold, return to the acquisition step to re-execute until it is lower than the threshold.
[0005] The process of obtaining the equipment conflict situation feature matrix includes: Calculate the mean and standard deviation for each data point in the running parameter data stream, and remove data points that deviate from the mean by more than three times the standard deviation to obtain a cleaned data stream. Using the time synchronization time of the industrial IoT gateway as a unified time axis, linear interpolation is performed on the data points of each device in the cleaned data stream to align them and obtain a time-aligned data stream. For each dimension of the time-aligned data stream, extract the maximum and minimum values from all data points in that dimension. Subtract the minimum value from each data point and divide by the difference between the maximum and minimum values to obtain the normalized data stream. From the normalized data stream, extract the power margin ratio, task urgency, and process critical path markers row by row according to the equipment number, arrange them into a two-dimensional matrix, and obtain the equipment conflict situation feature matrix.
[0006] The process of constructing and outputting the conflict propagation path tree includes: Read the power margin ratio of the first device to the second device, the task urgency, and the critical path marker of the process from the equipment conflict situation feature matrix. Obtain the conflict coupling degree of all device pairs and form a conflict coupling degree set. Extract the maximum conflict coupling degree to establish a seed edge to form an initial path tree. Then iteratively introduce the top K nodes of the conflict coupling degree that have not yet entered the tree and reconstruct the edges with the corresponding coupling degree as the weight. Stop when all nodes are added to the tree or the remaining maximum coupling is lower than a preset threshold. Output a directed tree structure containing node and edge weights to obtain the conflict propagation path tree.
[0007] The process by which an organization obtains a multi-device conflict resolution instruction set includes: The conflict propagation path tree is traversed layer by layer from the leaf node to the root node. The number of directed edges pointing to each node in each layer is extracted as the in-degree value. Nodes with in-degree values greater than zero are sorted in descending order of in-degree value. For nodes with the same in-degree value, the corresponding task urgency is read from the device conflict situation feature matrix and sorted in descending order of task urgency. The sorting results of each layer are concatenated from the leaf layer to the root layer to obtain the conflict resolution priority sequence. According to the order of the devices in the conflict resolution priority sequence, the device IDs in the sequence are extracted sequentially. The process critical path marker corresponding to the current device ID is read from the device conflict situation feature matrix. When the process critical path marker is 1, an instruction is generated to maintain the current process and reduce the power to the rated power threshold multiplied by α. When the process critical path marker is 0, an instruction is generated to pause the current process and release the communication link. Here, α is a preset proportional constant greater than 0 and less than 1. Combine the current device ID with the corresponding instruction content to form a key-value pair, and summarize all key-value pairs to obtain a multi-device conflict resolution instruction set.
[0008] The process of receiving and executing multi-device conflict resolution instruction sets includes: The industrial IoT gateway receives the multi-device conflict resolution instruction set and parses each device ID and corresponding instruction content in the multi-device conflict resolution instruction set. The industrial IoT gateway sends the instruction content corresponding to each device ID to the local controller corresponding to that device ID via the MQTT protocol; The local controller determines whether the received resolution instruction is to maintain the current process and reduce the power to the rated power threshold multiplied by α. If so, it adjusts the power output of the device drive module to the target value of the rated power threshold multiplied by α. Otherwise, it switches the device to standby mode and closes the communication link between the device and the industrial IoT gateway. The local controller will send the status information after the execution is completed to the industrial IoT gateway; The industrial IoT gateway aggregates all status information. When the degree of conflict between devices in the aggregated results exceeds a preset threshold, the process of obtaining the operating parameter data stream is re-executed.
[0009] The process of obtaining the conflict coupling degree of all device pairs and constructing a conflict coupling degree set is as follows: Initialize an empty set as a conflict coupling degree set, extract all device IDs, combine any two different device IDs into a device pair, and obtain all device pairs; For each pair of devices, the power margin ratio, task urgency, and critical path marker of each device in the pair are read from the device conflict situation feature matrix. The absolute value of the difference in the power margin ratio is multiplied by the first preset weight coefficient, the maximum value of the task urgency is multiplied by the second preset weight coefficient, and the XOR value of the critical path marker is multiplied by the third preset weight coefficient and summed to obtain the conflict coupling degree of the pair of devices. Add the record that associates the device pair number with the corresponding conflict coupling degree to the conflict coupling degree set; After traversing all device pairs, a set of conflict coupling degrees containing each device pair and its conflict coupling degree is obtained.
[0010] The process of sorting tasks from most urgent to least urgent further includes: For nodes with an in-degree value greater than zero in the current traversal layer, extract the in-degree value of each node, and arrange the nodes in descending order of in-degree value to form the preliminary sorting result of the current traversal layer; Traverse the preliminary sorting results and check if there are adjacent nodes with the same in-degree value. When a node with the same in-degree value is detected, read the task urgency corresponding to each node with the same in-degree value from the device conflict situation feature matrix. Nodes with equal in-degree values are rearranged in descending order of their respective task urgency. The rearranged node order replaces the original node order in the corresponding position in the preliminary sorting result to obtain the final sorting result of the current traversal layer.
[0011] The current device ID and its corresponding instruction content are combined into a key-value pair. All key-value pairs are then aggregated to obtain a multi-device conflict resolution instruction set, which further includes: Create an empty key-value pair set, extract the current device ID from the conflict resolution priority sequence as the key, extract the instruction content corresponding to the current device ID as the value, combine them to form a key-value pair record, and add the key-value pair record to the key-value pair set; Determine whether there are any unextracted device IDs in the conflict resolution priority sequence. If they exist, return to the step of extracting the current device ID. If they do not exist, output the set of key-value pairs as a multi-device conflict resolution instruction set.
[0012] The present invention has the following beneficial effects: First, by performing outlier removal, time axis alignment, and normalization on the operating parameter data stream, a feature matrix of equipment conflict situation is obtained. Power margin ratio, task urgency, and process critical path marking are uniformly incorporated into the feature expression, providing a structured data foundation for the calculation of conflict coupling degree, eliminating numerical differences between parameters of different dimensions, and improving the accuracy of conflict situation characterization.
[0013] Second, by calculating the conflict coupling degree between devices and constructing a conflict propagation path tree, the directed tree structure is expanded layer by layer with the maximum conflict coupling degree as the seed edge. The source of the conflict is located in the direction of the root node, which clarifies the direction of conflict propagation between devices. This allows the resolution process to proceed layer by layer in the opposite direction of the conflict propagation path, avoiding repeated transmission of the conflict in the path.
[0014] Third, by traversing the conflict propagation path tree layer by layer from the leaf node to the root node, and using the in-degree value as the sorting basis, nodes with the same in-degree value are further sorted according to the urgency of the task. The generated conflict resolution priority sequence ensures that nodes downstream of the conflict propagation are processed first, and the root node direction is processed last. After the resolution instruction is executed, the conflict of the downstream node is no longer re-triggered by the upstream, reducing the number of loop iterations. Attached Figure Description
[0015] Figure 1 This is a system block diagram of the multi-device conflict resolution control method based on the Industrial Internet of Things proposed in this invention. Detailed Implementation
[0016] 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
[0017] like Figure 1 As shown, the multi-device conflict resolution control method based on the Industrial Internet of Things proposed in this invention includes: S1: Obtain the operating parameter data streams of multiple industrial devices, perform preprocessing and feature extraction on the operating parameter data streams, and obtain the device conflict situation feature matrix; The system acquires the operating parameter data streams of multiple industrial devices. The operating parameter data streams include the real-time power value of the device, the rated power threshold of the device, the task priority label of the device, the current process stage identifier of the device, and the communication link occupancy status bit of the device. Gateway G collects the operating parameter data streams of devices A, B, C, and D. For each data point in the operating parameter data stream, calculate the mean and standard deviation. Taking the real-time power value sequence of device A as an example, take the power values of the first 10 sampling times, calculate the mean and standard deviation of the sequence, and identify data points that deviate from the mean by more than three times the standard deviation as outliers and remove them. Use linear interpolation of adjacent normal values to obtain replacement values. Perform the above operation on the data points of all devices to obtain the cleaned data stream. Using the time synchronization of the industrial IoT gateway G as a unified time axis, linear interpolation is performed on the data points of each device in the cleaned data stream to align them. Since there is a deviation in the acquisition time of the data points of each device in the cleaned data stream, linear interpolation is performed on the data points of each device in the cleaned data stream using the time synchronization of the gateway G as a unified time axis to align the data points of each device to the corresponding time on the unified time axis, thus obtaining a time-aligned data stream. Extract the maximum and minimum values from all data points in each dimension of the time-aligned data stream. The time-aligned data stream contains multiple dimensions, and each dimension corresponds to a certain running parameter. Taking the power dimension as an example, extract the maximum and minimum values from all data points in the power dimension, subtract the minimum value of the power dimension from each data point in the power dimension, and then divide by the difference between the maximum and minimum values of the power dimension to obtain the normalized power dimension data points. Perform the above operation on each dimension in the time-aligned data stream to obtain the normalized data stream. Extract the power margin ratio, task urgency, and process critical path markers from the normalized data stream, line by line, according to the device number. Among them, the power margin ratio is obtained by subtracting the real-time power value of the equipment from the rated power threshold of the equipment and then dividing by the rated power threshold of the equipment; the task urgency is obtained by dividing the task priority label of the equipment by 3; and the process critical path mark is determined by the current process stage identifier of the equipment. When the current process stage identifier of the equipment is equal to 3, the process critical path mark is 1; otherwise, the process critical path mark is the current process stage identifier of the equipment divided by 3. Extract the above three features row by row according to the equipment number. Each row corresponds to one equipment number. Arrange them into a two-dimensional matrix to obtain the equipment conflict situation feature matrix. Specifically, each device number in the normalized data stream is traversed, and the data record corresponding to the device number is used as the extraction source to extract the device rated power threshold and the device real-time power value. The difference between the device rated power threshold and the device real-time power value is calculated, and the difference is divided by the device rated power threshold to obtain the power margin ratio. Extract the equipment task priority label, divide the equipment task priority label by 3 to get the task urgency, extract the current process stage identifier of the equipment, and determine whether the current process stage identifier of the equipment is equal to 3. If it is equal to 3, the critical path of the process is marked as 1. If it is not equal to 3, divide the current process stage identifier of the equipment by 3 to get the critical path identifier of the process. The extracted power margin ratio, task urgency, and critical path markers are arranged row by row according to the equipment number. Each row contains three values, corresponding to the power margin ratio, task urgency, and critical path marker respectively. The multiple rows of data are arranged in order of equipment number to form a two-dimensional matrix, which is the equipment conflict situation feature matrix.
[0018] S2: Calculate the conflict coupling degree between devices based on the device conflict situation feature matrix, and construct and output the conflict propagation path tree; Read the power margin ratio of the first and second equipment, the task urgency, and the critical path markers of the process from the equipment conflict situation feature matrix; Taking equipment A as the first equipment and equipment C as the second equipment, read the power margin ratio, task urgency and process critical path mark of the row where equipment A is located from the equipment conflict situation feature matrix, and read the power margin ratio, task urgency and process critical path mark of the row where equipment C is located from the equipment conflict situation feature matrix. Specifically, the corresponding row of equipment A is located in the equipment conflict situation feature matrix by the equipment number of equipment A. The value of the column containing the power margin ratio in that row is taken as the power margin ratio of equipment A. The value of the column containing the task urgency in that row is taken as the task urgency of equipment A. The value of the column containing the process critical path marker in that row is taken as the process critical path marker of equipment A. The power margin ratio, task urgency, and critical path marker of equipment C are read from the equipment conflict situation feature matrix in the same way. Obtain the conflict coupling degree of all device pairs and construct a conflict coupling degree set. The specific process is as follows: Initialize an empty set as a conflict coupling degree set, extract all device IDs, combine any two different device IDs into a device pair, and obtain all device pairs; Specifically, all device numbers are extracted from the row index of the device conflict situation feature matrix. There are a total of 4 device numbers. These 4 device numbers are combined in pairs, and each pair contains two different device numbers, forming a total of 6 device pairs. These 6 device pairs constitute all device pairs. Set the first preset weight coefficient to 0.4, the second preset weight coefficient to 0.4, and the third preset weight coefficient to 0.2; For each pair of equipment, the power margin ratio, task urgency and critical path marker of each of the two equipment in the pair are read from the equipment conflict situation feature matrix. The absolute value of the difference between the power margin ratios of the two equipment is calculated and multiplied by the first preset weighting coefficient. Calculate the maximum task urgency of the two devices, multiply the maximum task urgency by the second preset weight coefficient, calculate the XOR value of the process critical path markers of the two devices, and multiply the XOR value of the process critical path markers by the third preset weight coefficient. Summing the three products yields the conflict coupling degree of the device pair; Specifically, taking equipment A and C as an example, the power margin ratio, task urgency and critical path marker of equipment A are read from the equipment conflict situation feature matrix, and the power margin ratio, task urgency and critical path marker of equipment C are read. Calculate the difference between the power margin ratio of device A and the power margin ratio of device C, take the absolute value of the difference, multiply the absolute value by 0.4 to obtain the first product, compare the task urgency of device A and the task urgency of device C, take the larger value as the maximum task urgency, and multiply the maximum value by 0.4 to obtain the second product. Perform an XOR operation on the critical path markers of equipment A and equipment C. The rule of the XOR operation is that the result is 1 when the two marker values are not equal and 0 when they are equal. Multiply the result of the XOR operation by 0.2 to get the third product. Add the first product, the second product and the third product together. The sum is the conflict coupling degree of equipment A to C. The device pair number is associated with the conflict coupling degree corresponding to the device pair, and the record is added to the conflict coupling degree set. After traversing all device pairs, a conflict coupling degree set containing each device pair and its conflict coupling degree is obtained. Specifically, the above-mentioned read, calculate, and sum operations are performed on each device pair to obtain the conflict coupling degree value of the device pair. Using the device pair number as an identifier, the device pair number and the corresponding conflict coupling degree value are combined to form an association record, and the record is stored in the conflict coupling degree set. After all 6 device pairs have been processed, there are 6 records in the conflict coupling degree set. Each record contains a device pair number and its corresponding conflict coupling degree value. Extract the maximum conflict coupling degree from the set of conflict coupling degrees, and establish seed edges with the two devices corresponding to the maximum conflict coupling degree as initial nodes to form an initial path tree. The initial path tree contains two nodes and one directed edge. Specifically, iterate through each record in the conflict coupling set, compare the conflict coupling values of each device pair, find the conflict coupling with the largest value, the device pair corresponding to the largest conflict coupling value contains two devices, take these two devices as nodes of the initial path tree, establish a directed edge between these two nodes, the weight of the directed edge is the value of the largest conflict coupling value, and the initial path tree is thus formed, containing these two nodes and this directed edge. Set K equal to 2 and the preset threshold equal to 0.15. Then iteratively introduce the top 2 non-tree nodes with the highest conflict coupling degree and reconstruct edges with the corresponding coupling degree as weight. Select the conflict coupling degree of non-tree nodes associated with the tree nodes from the conflict coupling degree set. Select the non-tree nodes corresponding to the top 2 conflict coupling degrees and add them to the initial path tree. Establish directed edges with the corresponding conflict coupling degree as edge weight. Update the tree node set after each iteration. Specifically, in each iteration, all device pair records containing at least one tree node and one non-tree node are identified from the conflict coupling set, and these records are sorted in descending order of conflict coupling value; Take the first two records from the sorting results, extract the nodes that are not yet in the tree from these records, and add these nodes to the path tree. For each record, establish a directed edge between the nodes already in the tree and the nodes not yet in the tree. The weight of the directed edge is the conflict coupling degree value in the record. After the edge is established, mark the newly added nodes as nodes already in the tree and update the set of nodes already in the tree. Stop when all nodes are in the tree or the remaining maximum coupling is lower than the preset threshold of 0.15. At this time, all nodes have been in the tree, and the output is a directed tree structure containing node and edge weights, thus obtaining the conflict propagation path tree. Specifically, after each iteration, check whether all device numbers have appeared in the set of nodes already included in the tree, or check whether the maximum value in the conflict coupling record corresponding to the remaining nodes not included in the tree is less than 0.15; If any stopping condition is met, the iteration process terminates. At this point, the path tree contains all the necessary nodes and directed edges, and each directed edge is labeled with its corresponding edge weight value. The directed tree structure containing the nodes and edge weights is output as the conflict propagation path tree.
[0019] S3: Generate a conflict resolution priority sequence based on the conflict propagation path tree and the equipment conflict situation feature matrix, and organize the acquisition of a multi-device conflict resolution instruction set; The process involves obtaining a conflict propagation path tree, traversing the conflict propagation path tree layer by layer from the leaf node to the root node, and extracting the number of directed edges pointing to each node in each layer as the in-degree value. Nodes with in-degree values greater than zero are sorted in descending order of in-degree value. Nodes with the same in-degree value are read from the device conflict situation feature matrix to determine their corresponding task urgency, and then sorted in descending order of task urgency. Furthermore, the implementation process of prioritizing tasks from highest to lowest urgency further includes: Traverse the conflict propagation path tree layer by layer from the leaf node to the root node. For nodes with an in-degree value greater than zero in the current traversal level, extract the in-degree value of each node and arrange the nodes in descending order of in-degree value to form the preliminary sorting result of the current traversal level. Specifically, in the current traversal layer, for each node with an in-degree value greater than zero, the number of directed edges pointing to that node is obtained as the in-degree value. All these nodes are arranged in descending order of in-degree value. If the in-degree values are different, the arrangement order is the preliminary sorting result. The preliminary sorting result is a node sequence, and the nodes at the beginning of the sequence have larger in-degree values. Traverse the preliminary sorting results and check if there are adjacent nodes with the same in-degree value. When a node with the same in-degree value is detected, read the task urgency corresponding to each node with the same in-degree value from the device conflict situation feature matrix. Rearrange the nodes with the same in-degree value in descending order of their respective task urgency, and replace the original node order in the corresponding position in the preliminary sorting result with the rearranged node order to obtain the final sorting result of the current traversal layer. Specifically, check each pair of adjacent nodes in the preliminary sorting results in sequence and compare whether their in-degree values are equal. If adjacent nodes are found to have equal in-degree values, then these nodes with equal in-degree values are grouped together. For each node in the group, read its corresponding task urgency value from the device conflict situation feature matrix, rearrange the nodes in the group according to the task urgency value from large to small, replace the original position of the nodes in the group with the rearranged node order in the preliminary sorting result, and keep other positions unchanged. After the replacement is completed, the final sorting result of the current traversal layer is obtained. By sequentially piecing together the sorting results from the leaf layer to the root layer, a conflict resolution priority sequence is obtained. Specifically, the leaf node layer is determined from the conflict propagation path tree. A leaf node is a node without child nodes. Starting from the leaf node layer, we move towards the root node layer by layer. At each layer, we extract the number of times each node in the layer is pointed to by a directed edge. This number is the in-degree value. For each layer, the nodes with an in-degree value greater than zero are arranged in descending order of their in-degree values. If there are nodes with the same in-degree value in the same layer, a secondary sorting process is performed on these nodes. The task urgency of these nodes is read from the device conflict situation feature matrix and rearranged in descending order of task urgency. Save the node list after sorting each layer. Starting from the leaf layer, concatenate the node list layer by layer to the next layer until the root layer. The complete sequence after concatenation is the conflict resolution priority sequence. The order of the devices in the conflict resolution priority sequence reflects the order of conflict resolution. Set α to 0.8, extract the device IDs in the sequence according to the order of the devices in the conflict resolution priority sequence, and read the process critical path marker corresponding to the current device ID from the device conflict situation feature matrix; When the critical path marker of the process is equal to 1, an instruction is generated to maintain the current process and reduce the power to 0.8 times the rated power threshold. When the critical path marker of the process is equal to 0, an instruction is generated to pause the current process and release the communication link. Specifically, starting from the first position in the conflict resolution priority sequence, the device ID at that position is extracted as the current device ID; Find the row corresponding to the device ID in the device conflict situation feature matrix, read the value of the process critical path marker in the row, if the value is equal to 1, then generate the instruction to maintain the current process and reduce the power to the rated power threshold multiplied by 0.8. If the value is equal to 0, the generated instruction is to pause the current process and release the communication link, and repeat the above extraction and generation steps for the next device ID in the sequence until all device IDs in the sequence have been processed. The current device ID is paired with the corresponding instruction content to form a key-value pair, specifically including: Execute the conflict resolution priority sequence, create an empty key-value pair set, extract the current device ID from the conflict resolution priority sequence as the key, extract the instruction content corresponding to the current device ID as the value, combine them to form a key-value pair record, and add the key-value pair record to the key-value pair set; Determine if there are any unextracted device IDs in the conflict resolution priority sequence. If they exist, return to the step of extracting the current device ID. If they do not exist, output the set of key-value pairs as a multi-device conflict resolution instruction set. Specifically, the first device ID in the conflict resolution priority sequence is set as the current device ID. Using this device ID as the key and the corresponding instruction content as the value, a key-value pair record is formed and stored in the key-value pair set. Then check if there are any unextracted device IDs in the conflict resolution priority sequence. If so, use the next device ID as the current device ID and repeat the above group key-value pair addition operation. After all device IDs in the sequence have been extracted and processed, the key-value pair set contains key-value pair records equal to the number of devices. This key-value pair set is then output as a multi-device conflict resolution instruction set. Specifically, for each device ID and its generated instruction content, a key-value pair combination and summary process is performed, ultimately outputting a multi-device conflict resolution instruction set.
[0020] S4: Receive and execute the multi-device conflict resolution instruction set, send the resolution instruction to the local controller for execution and feedback the status. If the conflict coupling degree is higher than the preset threshold, return to the acquisition step and re-execute until it is lower than the threshold. The industrial IoT gateway G receives the multi-device conflict resolution instruction set and parses each device ID and corresponding instruction content in the multi-device conflict resolution instruction set. The industrial IoT gateway G sends the instruction content corresponding to each device ID to the local controller corresponding to that device ID via the MQTT protocol. Specifically, gateway G reads key-value pair records one by one from the multi-device conflict resolution instruction set, extracts the device ID and instruction content from each record, and sends the instruction content message to the local controller corresponding to the device ID through the MQTT protocol for each device ID. The local controller determines whether the received resolution instruction is to maintain the current process and reduce the power to the rated power threshold multiplied by 0.8. If so, it adjusts the power output of the device drive module to the target value of the rated power threshold multiplied by 0.8. Otherwise, it switches the device to standby mode and closes the communication link between the device and the industrial IoT gateway G. Specifically, after receiving the message, the local controller checks whether the instruction content string contains the description of maintaining the current process and reducing the power to the rated power threshold multiplied by 0.8. If it does, the local controller sends a power adjustment instruction to the device driver module to set the power output value to the rated power threshold multiplied by 0.8. If it does not, the local controller controls the device to stop the current process, enters the standby state, and sets the communication link occupancy status bit between the device and the gateway G to 0, indicating that the link has been released. The local controller sends the status information after execution to the industrial IoT gateway G. The industrial IoT gateway G summarizes all status information. When the degree of conflict between devices in the summary result is higher than the preset threshold of 0.15, the running parameter data stream acquisition process is re-executed. Specifically, after each local controller completes the execution of the instruction, it sends a status message to the gateway G. The status message includes the device ID and the execution result. The gateway G collects all status messages. When all status messages are collected, it recalculates the conflict coupling degree between devices. If the conflict coupling degree between any two devices is found to be higher than 0.15, the operating parameter data stream is reacquired.
[0021] In the application, several formulas are calculated by removing dimensions and taking their numerical values. The formulas are established by collecting a large amount of data and simulating the most recent real situation. Some coefficients or weights in the formulas are set by those skilled in the art according to the actual situation, so they will not be elaborated here.
[0022] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0023] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A multi-device conflict resolution control method based on the Industrial Internet of Things, characterized in that, include: S1: Obtain the operating parameter data streams of multiple industrial devices, perform preprocessing and feature extraction on the operating parameter data streams, and obtain the device conflict situation feature matrix; The operating parameter data stream includes the device's real-time power value, the device's rated power threshold, the device's task priority label, the device's current process stage identifier, and the device's communication link occupancy status bit. S2: Calculate the conflict coupling degree between devices based on the device conflict situation feature matrix, and construct and output the conflict propagation path tree; S3: Generate a conflict resolution priority sequence based on the conflict propagation path tree and the equipment conflict situation feature matrix, and organize the acquisition of a multi-device conflict resolution instruction set; S4: Receive and execute multi-device conflict resolution instruction set, send resolution instructions to the local controller for execution and feedback status. If the conflict coupling degree is higher than the preset threshold, return to the acquisition step to re-execute until it is lower than the threshold.
2. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 1, characterized in that, The process of obtaining the equipment conflict situation feature matrix includes: Calculate the mean and standard deviation for each data point in the running parameter data stream, and remove data points that deviate from the mean by more than three times the standard deviation to obtain a cleaned data stream. Using the time synchronization time of the industrial IoT gateway as a unified time axis, linear interpolation is performed on the data points of each device in the cleaned data stream to align them and obtain a time-aligned data stream. For each dimension of the time-aligned data stream, extract the maximum and minimum values from all data points in that dimension. Subtract the minimum value from each data point and divide by the difference between the maximum and minimum values to obtain the normalized data stream. From the normalized data stream, extract the power margin ratio, task urgency, and process critical path markers row by row according to the equipment number, arrange them into a two-dimensional matrix, and obtain the equipment conflict situation feature matrix.
3. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 2, characterized in that, The process of constructing and outputting the conflict propagation path tree includes: Read the power margin ratio of the first device to the second device, the task urgency, and the critical path marker of the process from the equipment conflict situation feature matrix. Obtain the conflict coupling degree of all device pairs and form a conflict coupling degree set. Extract the maximum conflict coupling degree to establish a seed edge to form an initial path tree. Then iteratively introduce the top K nodes of the conflict coupling degree that have not yet entered the tree and reconstruct the edges with the corresponding coupling degree as the weight. Stop when all nodes are added to the tree or the remaining maximum coupling is lower than a preset threshold. Output a directed tree structure containing node and edge weights to obtain the conflict propagation path tree.
4. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 3, characterized in that, The process by which an organization obtains a multi-device conflict resolution instruction set includes: The conflict propagation path tree is traversed layer by layer from the leaf node to the root node. The number of directed edges pointing to each node in each layer is extracted as the in-degree value. Nodes with in-degree values greater than zero are sorted in descending order of in-degree value. For nodes with the same in-degree value, the corresponding task urgency is read from the device conflict situation feature matrix and sorted in descending order of task urgency. The sorting results of each layer are concatenated from the leaf layer to the root layer to obtain the conflict resolution priority sequence. According to the order of the devices in the conflict resolution priority sequence, the device IDs in the sequence are extracted sequentially. The process critical path marker corresponding to the current device ID is read from the device conflict situation feature matrix. When the process critical path marker is 1, an instruction is generated to maintain the current process and reduce the power to the rated power threshold multiplied by α. When the process critical path marker is 0, an instruction is generated to pause the current process and release the communication link. Here, α is a preset proportional constant greater than 0 and less than 1. The current device ID and the corresponding instruction content are combined into a key-value pair. All key-value pairs are then aggregated to obtain a multi-device conflict resolution instruction set.
5. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 4, characterized in that, The process of receiving and executing multi-device conflict resolution instruction sets includes: The industrial IoT gateway receives the multi-device conflict resolution instruction set and parses each device ID and corresponding instruction content in the multi-device conflict resolution instruction set. The industrial IoT gateway sends the instruction content corresponding to each device ID to the local controller corresponding to that device ID via the MQTT protocol; The local controller determines whether the received resolution instruction is to maintain the current process and reduce the power to the rated power threshold multiplied by α. If so, it adjusts the power output of the device drive module to the target value of the rated power threshold multiplied by α. Otherwise, it switches the device to standby mode and closes the communication link between the device and the industrial IoT gateway. The local controller will send the status information after the execution is completed to the industrial IoT gateway; The industrial IoT gateway aggregates all status information. When the degree of conflict between devices in the aggregated results exceeds a preset threshold, the process of obtaining the operating parameter data stream is re-executed.
6. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 3, characterized in that, The process of obtaining the conflict coupling degree of all device pairs and constructing a conflict coupling degree set is as follows: Initialize an empty set as a conflict coupling degree set, extract all device IDs, combine any two different device IDs into a device pair, and obtain all device pairs; For each pair of devices, the power margin ratio, task urgency, and critical path marker of each device in the pair are read from the device conflict situation feature matrix. The absolute value of the difference in the power margin ratio is multiplied by the first preset weight coefficient, the maximum value of the task urgency is multiplied by the second preset weight coefficient, and the XOR value of the critical path marker is multiplied by the third preset weight coefficient and summed to obtain the conflict coupling degree of the pair of devices. Add the record that associates the device pair number with the corresponding conflict coupling degree to the conflict coupling degree set; After traversing all device pairs, a set of conflict coupling degrees containing each device pair and its conflict coupling degree is obtained.
7. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 4, characterized in that, The process of sorting tasks from most urgent to least urgent further includes: For nodes with an in-degree value greater than zero in the current traversal layer, extract the in-degree value of each node, and arrange the nodes in descending order of in-degree value to form the preliminary sorting result of the current traversal layer; Traverse the preliminary sorting results and check if there are adjacent nodes with the same in-degree value. When a node with the same in-degree value is detected, read the task urgency corresponding to each node with the same in-degree value from the device conflict situation feature matrix. Nodes with equal in-degree values are rearranged in descending order of their respective task urgency. The rearranged node order replaces the original node order in the corresponding position in the preliminary sorting result to obtain the final sorting result of the current traversal layer.
8. The multi-device conflict resolution control method based on the Industrial Internet of Things according to claim 4, characterized in that, The current device ID and its corresponding instruction content are combined into a key-value pair. All key-value pairs are then aggregated to obtain a multi-device conflict resolution instruction set, which further includes: Create an empty key-value pair set, extract the current device ID from the conflict resolution priority sequence as the key, extract the instruction content corresponding to the current device ID as the value, combine them to form a key-value pair record, and add the key-value pair record to the key-value pair set; Determine whether there are any unextracted device IDs in the conflict resolution priority sequence. If they exist, return to the step of extracting the current device ID. If they do not exist, output the set of key-value pairs as a multi-device conflict resolution instruction set.
