Resource management method for industrial control and embedded operating system

By collecting and processing the resource information and industrial control information of the embedded operating system in real time, building a system model and optimizing resource allocation, the problems of unbalanced resource allocation and long task waiting time in the existing technology are solved, and more efficient resource management and utilization are achieved.

CN120104329AActive Publication Date: 2025-06-06HUIZHOU HONGYUN INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510195174.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-06
Estimated Expiration
2045-02-21

AI Technical Summary

Technical Problem

The prior art has problems of unbalanced resource allocation and long task waiting time in computer resource management, and it is impossible to effectively improve system resource utilization.

Method used

By collecting system resource information and industrial control information in embedded operating systems in real time, building a system model, and optimizing resource allocation through data processing and scheduling algorithms, monitoring and adjusting resource usage queues in real time.

Benefits of technology

It improves the real-time and accuracy of resource management, optimizes resource allocation, reduces task waiting time, and improves system resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104329A_ABST
    Figure CN120104329A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of resource data processing, and discloses a resource management method for industrial control and an embedded operating system. According to the method, system resource information in an embedded operating system and received industrial control information are collected in real time, a system model is constructed, meanwhile, the received industrial control information is analyzed and processed in a data processing mode, and an industrial control information execution queue is constructed based on the processed industrial control information; after the execution queue is constructed, a scheduling algorithm of the embedded operating system is set, the constructed industrial control information execution queue is calculated and adjusted based on the set scheduling algorithm, and finally real-time adjustment is performed by monitoring the industrial control information collected in the embedded operating system in real time, so that the real-time performance of resource management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource data processing, and in particular to a resource management method and an embedded operating system for industrial control. Background Art

[0002] Currently, in terms of computing resource management, most resource scheduling management methods are static scheduling, but static scheduling algorithms are prone to cause problems such as unbalanced computer resource allocation, long waiting time for computer tasks, and resource scheduling deadlock, resulting in a waste of computer resource management.

[0003] The existing open patent application CN115562838A, the invention collects shared resources and threads in the system in real time, if there are multiple threads waiting to call the target shared resource in the occupied state, obtains the instruction number of the call instruction for calling the target shared resource of each thread in the multiple threads; and sorts the multiple threads according to the instruction number corresponding to each thread to obtain the waiting thread queue; if the target shared resource changes from the occupied state to the non-occupied state, controls each thread to call the target shared resource in turn according to the queue order of the threads in the waiting thread queue, but because the execution is sorted only by the instruction number corresponding to each thread, the correlation between tasks and the system call time and thread time are ignored, resulting in the inability to stably improve the system resource utilization, which has great limitations. Summary of the invention

[0004] 1. Technical issues to be resolved In view of the deficiencies in the prior art, the present invention provides a resource management method and an embedded operating system for industrial control, which have the advantages of accuracy, real-time and high efficiency, and solve the problems of unbalanced allocation of computer resources and long waiting time for computer tasks.

[0005] (II) Technical solution In order to solve the above-mentioned technical problems of unbalanced allocation of computer resources and long waiting time for computer tasks, the present invention provides the following technical solutions: The present invention discloses a resource management method for industrial control, which specifically comprises the following steps: S1, collect system resource information in the embedded operating system and the received industrial control information in real time, and build a system model based on the collected system resource information; S2. Analyze and process the received industrial control information by means of data processing to obtain processed industrial control information; S3, constructing an industrial control information execution queue based on the processed industrial control information; S4, setting a scheduling algorithm of the embedded operating system, and calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue; S5. Execute the output determined industrial control information adjustment queue, and monitor the industrial control information collected in the embedded operating system in real time. If an emergency occurs, recalculate the industrial control information adjustment queue.

[0006] The present invention collects system resource information and received industrial control information in an embedded operating system in real time, and constructs a system model. At the same time, the received industrial control information is analyzed and processed by a data processing method, and an industrial control information execution queue is constructed based on the processed industrial control information. After the execution queue is constructed, a scheduling algorithm of the embedded operating system is set, and the constructed industrial control information execution queue is calculated and adjusted based on the set scheduling algorithm. Finally, real-time adjustments are made by real-time monitoring of the industrial control information collected in the embedded operating system, thereby improving the real-time performance of resource management.

[0007] Preferably, the real-time collection of system resource information in the embedded operating system and the received industrial control information, and the construction of a system model based on the collected system resource information comprises the following steps: System resource information includes: embedded operating system computing core and computing power resources; Industrial control information includes: data access information, data analysis information and data control information; The system model is constructed as follows: SM={P,S}; Where P = {P 0 ,P 1 ,…,P i ,…,P n-1}, P represents the set of n embedded operating system computing cores, P i represents the computing core of the i-th embedded operating system, S={S 1,2 ,S 1,3 ,…,S i,n-1}, S represents the communication rate between the computing cores of the embedded operating system, S i,n-1 Represents the communication rate between the i-th embedded operating system computing core and the n-1-th embedded operating system computing core.

[0008] The present invention collects system resource information in an embedded operating system and received industrial control information in real time, and constructs a system model based on the system resource information and the communication rate between embedded operating system computing cores, thereby improving the accuracy of resource management calculations.

[0009] Preferably, the step of analyzing and processing the received industrial control information by data processing to obtain the processed industrial control information comprises the following steps: S21. Setting a corresponding instruction code according to the type of industrial control information; S22, converting the received industrial control information into binary data, matching the converted binary data with the set instruction code, and classifying the currently received industrial control information based on the matching result; S23. Set the classified industrial control information as processed industrial control information.

[0010] The present invention achieves classification of received industrial control information by setting instruction codes and matching the set instruction codes with converted binary data, thereby improving the accuracy of industrial control information classification.

[0011] Preferably, the step of constructing an industrial control information execution queue based on the processed industrial control information comprises the following steps: S31, setting the processing priority of various types of industrial control information in the processed industrial control information; S32. Building an industrial control information execution queue based on the set processing priorities of various types of industrial control information and the received processed industrial control information.

[0012] Preferably, the step of setting the processing priority of various types of industrial control information in the processed industrial control information comprises the following steps: A set of industrial control information execution processes include: embedded operating system computing core processing and I / O operations; The computing core processing of embedded operating systems includes: instruction fetch cycle, execution cycle, and interrupt cycle; However, since data access information in various types of industrial control information does not perform I / O operations, data control information needs to provide feedback after performing I / O operations, which takes a longer period than data analysis information; It is assumed that when data access information, data control information and data analysis information are received at the same time, the data control information has the highest priority and the data access information has the lowest priority.

[0013] Preferably, the step of constructing an industrial control information execution queue based on the set processing priorities of various types of industrial control information and the received processed industrial control information comprises the following steps: Calculate average completion time and communication time; The average completion time is calculated as follows: ; Among them, W jrepresents the average completion time of the jth industrial control information in the embedded operating system computing core P, w j,i represents the weight of the jth industrial control information on the ith embedded operating system computing core; Calculating the Communication Time The communication time is as follows: ; Among them, L represents the average response time of the embedded operating system computing core, data j,k represents the data transmission volume from the jth industrial control information to the kth industrial control information, B represents the data transmission rate, C j,k represents the time cost of transmitting the jth industrial control information to the kth industrial control information; Set the pre-task and post-task. When the second set of industrial control information needs the first set of industrial control information data, the pre-task is executed first and the post-task is executed later. When the pre-task and the post-task are executed on the same embedded operating system computing core, the communication time is 0. The final completion time of each group of processed industrial control information is collected, and an industrial control information execution queue is constructed based on the calculated average completion time, communication time, reception time of each group of industrial control information, and the preceding and following tasks in the industrial control information.

[0014] The present invention sets the processing priority of various types of industrial control information in the processed industrial control information, calculates the average completion time and communication time at the same time, finally collects the final completion time of each group of processed industrial control information, and constructs an industrial control information execution queue based on the calculation results, thereby improving the reliability of the construction of the industrial control information execution queue.

[0015] Preferably, the step of setting a scheduling algorithm of the embedded operating system, calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue comprises the following steps: S41, enabling saturation scheduling calculation, assigning a unique embedded operating system computing core to perform separate calculation for each group of processed industrial control information in the industrial control information execution queue, and obtaining a saturation scheduling set of the industrial control information execution queue; S42, summarizing the saturated scheduling set in S41, merging any two groups of scheduling in the saturated scheduling set, calculating a new scheduling formed after the merger, determining the saving value of the new scheduling compared to the sum of the scheduling before the merger, and arranging the saving values ​​in descending order; Since a set of industrial control information execution processes include: embedded operating system computing core processing and I / O operations; By executing the second set of industrial control information during the idle period of the computing core of the embedded operating system when the first set of industrial control information performs I / O operations; Savings = total dispatch cost before merging - total new dispatch cost after merging; S43, based on the last completion time of each group of processed industrial control information, analyzing whether the two groups of schedules that can be merged meet the last completion time of each group of processed industrial control information, if the completion time of the merged new schedule meets the requirements, then merging the two groups of schedules into a new schedule and executing S44, if not, canceling the merger and repeating S43; S44, performing population initialization; Set the new scheduling set after aggregation to {1,2,…,h}, where h represents the hth group of scheduling, each group of chromosome encoding represents a group of industrial control information execution data, set the population set size, and the maximum number of iterations d max ; S45, establishing a fitness function; The fitness function is set as follows: ; Among them, Fit(x) represents the fitness of the xth group of industrial control information execution data in the initialization population, and F represents the total scheduling cost; S46, selecting a genetic operator based on the established fitness function; S47, performing chromosome crossover on the selected genetic operator; A crossover point is randomly selected in the selected genetic operator, and a pair of new chromosome codes are generated by performing a pairwise crossover in a sequential crossover manner; The generated new chromosome encoding is also used as a schedule to participate in the iteration; S48, iteratively execute steps S44-S47 until the maximum number of iterations d is reached max , output industrial control information adjustment queue.

[0016] Preferably, the step of selecting a genetic operator based on the established fitness function comprises the following steps: , x=1,2,3,…,X; Wherein, X represents the population size, and Y(x) represents the probability of the x-th group of industrial control information execution data being selected in the initialized population.

[0017] The present invention obtains a saturated scheduling set of an industrial control information execution queue by enabling saturated scheduling calculation, updates the industrial control information execution queue by calculating a saving value, and iterates the updated industrial control information execution queue through a genetic algorithm to further determine the industrial control information adjustment queue, thereby improving the efficiency of industrial control information resource management.

[0018] Preferably, the step of executing the output determined industrial control information adjustment queue and monitoring the industrial control information collected in the embedded operating system in real time, and recalculating the industrial control information adjustment queue if an emergency occurs comprises the following steps: When the embedded operating system is executing the process of adjusting the queue of industrial control information, an urgent request is received; The embedded operating system suspends and saves industrial control information and executes emergency requests; When the emergency request is executed, the suspended industrial control information is continued to be executed, and the subsequent industrial control information adjustment queue is recalculated.

[0019] The present invention also discloses an embedded real-time operating system for industrial control, which is used to implement a resource management method for industrial control. The system includes: a data acquisition module, a data analysis and processing module, an execution queue construction module, and an execution queue adjustment module; The data acquisition module is used to collect system resource information in the embedded operating system and received industrial control information in real time; The data analysis and processing module is used to analyze and process the received industrial control information through data processing; The execution queue construction module is used to construct an industrial control information execution queue according to the processed industrial control information; The execution queue adjustment module is used to set the scheduling algorithm of the embedded operating system and adjust the constructed industrial control information execution queue in real time according to the scheduling algorithm.

[0020] (III) Beneficial effects Compared with the prior art, the present invention provides a resource management method and embedded operating system for industrial control, which have the following beneficial effects: 1. The invention collects system resource information and received industrial control information in an embedded operating system in real time, builds a system model, analyzes and processes the received industrial control information through data processing, and builds an industrial control information execution queue based on the processed industrial control information; after the execution queue is built, the scheduling algorithm of the embedded operating system is set, and the constructed industrial control information execution queue is calculated and adjusted based on the set scheduling algorithm, and finally, the industrial control information collected in the embedded operating system is monitored in real time to make real-time adjustments, thereby improving the real-time performance of resource management.

[0021] 2. The invention improves the accuracy of resource management calculations by collecting system resource information in the embedded operating system and the received industrial control information in real time, and building a system model based on the system resource information and the communication rate between the embedded operating system computing cores.

[0022] 3. The invention achieves classification of received industrial control information by setting instruction codes and matching the set instruction codes with converted binary data, thereby improving the accuracy of industrial control information classification.

[0023] 4. The invention sets the processing priority of various types of industrial control information in the processed industrial control information, calculates the average completion time and communication time at the same time, and finally collects the final completion time of each group of processed industrial control information, and constructs an industrial control information execution queue based on the calculation results, thereby improving the reliability of the construction of the industrial control information execution queue.

[0024] 5. The present invention obtains the saturated scheduling set of the industrial control information execution queue by enabling the saturated scheduling calculation, updates the industrial control information execution queue by calculating the saving value, and iterates the updated industrial control information execution queue through the genetic algorithm to further determine the industrial control information adjustment queue, thereby improving the efficiency of industrial control information resource management. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the resource management process structure of the embedded real-time operating system of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in 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 creative work are within the scope of protection of the present invention.

[0027] Example 1 See also Figure 1 This embodiment discloses a resource management method for industrial control, which specifically includes the following steps: S1, collect system resource information in the embedded operating system and the received industrial control information in real time, and build a system model based on the collected system resource information; S2. Analyze and process the received industrial control information by means of data processing to obtain processed industrial control information; S3, constructing an industrial control information execution queue based on the processed industrial control information; S4, setting a scheduling algorithm of the embedded operating system, and calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue; S5. Execute the output determined industrial control information adjustment queue, and monitor the industrial control information collected in the embedded operating system in real time. If an emergency occurs, recalculate the industrial control information adjustment queue.

[0028] For further information, see Figure 1 , real-time collection of system resource information in the embedded operating system and the received industrial control information, and building a system model based on the collected system resource information includes the following steps: System resource information includes: embedded operating system computing core and computing power resources; Industrial control information includes: data access information, data analysis information and data control information; The system model is constructed as follows: SM={P,S}; Where P = {P 0 ,P 1 ,…,P i ,…,P n-1}, P represents the set of n embedded operating system computing cores, P i represents the computing core of the i-th embedded operating system, S={S 1,2 ,S 1,3 ,…,S i,n-1}, S represents the communication rate between the computing cores of the embedded operating system, S i,n-1 represents the communication rate between the i-th embedded operating system computing core and the n-1-th embedded operating system computing core; For further information, see Figure 1 , analyzing and processing the received industrial control information by data processing, and obtaining the processed industrial control information includes the following steps: S21. Setting a corresponding instruction code according to the type of industrial control information; S22, converting the received industrial control information into binary data, matching the converted binary data with the set instruction code, and classifying the currently received industrial control information based on the matching result; S23, setting the classified industrial control information as processed industrial control information; For further information, see Figure 1 , constructing an industrial control information execution queue based on the processed industrial control information includes the following steps: S31, setting the processing priority of various types of industrial control information in the processed industrial control information; A set of industrial control information execution processes include: embedded operating system computing core processing and I / O operations; Furthermore, the embedded operating system computing core processing includes: instruction fetch cycle, execution cycle, interrupt cycle; However, since data access information in various types of industrial control information does not perform I / O operations, data control information needs to provide feedback after performing I / O operations, which takes a longer period than data analysis information; It is set that when data access information, data control information and data analysis information are received at the same time, the data control information has the highest priority and the data access information has the lowest priority; S32, constructing an industrial control information execution queue based on the set processing priorities of various types of industrial control information and the received processed industrial control information; Calculate average completion time and communication time; The average completion time is calculated as follows: ; Among them, W j represents the average completion time of the jth industrial control information in the embedded operating system computing core P, w j,i represents the weight of the jth industrial control information on the ith embedded operating system computing core; Calculating the Communication Time The communication time is as follows: ; Among them, L represents the average response time of the embedded operating system computing core, data j,k represents the data transmission volume from the jth industrial control information to the kth industrial control information, B represents the data transmission rate, C j,k represents the time cost of transmitting the jth industrial control information to the kth industrial control information; Set the pre-task and post-task. When the second set of industrial control information needs the first set of industrial control information data, the pre-task is executed first and the post-task is executed later. When the pre-task and the post-task are executed on the same embedded operating system computing core, the communication time is 0. Further, the final completion time of each group of processed industrial control information is collected, and an industrial control information execution queue is constructed based on the calculated average completion time, the communication time, the reception time of each group of industrial control information, and the pre-tasks and post-tasks existing in the industrial control information; For further information, see Figure 1 , setting the scheduling algorithm of the embedded operating system, and calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue includes the following steps: S41, enabling saturation scheduling calculation, assigning a unique embedded operating system computing core to perform separate calculation for each group of processed industrial control information in the industrial control information execution queue, and obtaining a saturation scheduling set of the industrial control information execution queue; S42, summarizing the saturated scheduling set in S41, merging any two groups of scheduling in the saturated scheduling set, calculating a new scheduling formed after the merger, determining the saving value of the new scheduling compared to the sum of the scheduling before the merger, and arranging the saving values ​​in descending order; Since a set of industrial control information execution processes include: embedded operating system computing core processing and I / O operations; By executing the second set of industrial control information during the idle period of the computing core of the embedded operating system when the first set of industrial control information performs I / O operations; Savings = total dispatch cost before merging - total new dispatch cost after merging; S43, based on the last completion time of each group of processed industrial control information, analyzing whether the two groups of schedules that can be merged meet the last completion time of each group of processed industrial control information, if the completion time of the merged new schedule meets the requirements, then merging the two groups of schedules into a new schedule and executing S44, if not, canceling the merger and repeating S43; S44, performing population initialization; Set the new scheduling set after aggregation to {1,2,…,h}, where h represents the hth group of scheduling, each group of chromosome encoding represents a group of industrial control information execution data, set the population set size, and the maximum number of iterations d max ; S45, establishing a fitness function; The fitness function is set as follows: ; Among them, Fit(x) represents the fitness of the xth group of industrial control information execution data in the initialization population, and F represents the total scheduling cost; S46, selecting a genetic operator based on the established fitness function; By randomly selecting the genetic operator in a roulette wheel manner, the probability of each group of industrial control information execution data being selected is proportional to the fitness, and a group of industrial control information execution data with high fitness is selected; The probability formula for the genetic operator to be selected is as follows: , x=1,2,3,…,X; Where X represents the population size, and Y(x) represents the probability of the xth group of industrial control information execution data being selected in the initialization population; S47, performing chromosome crossover on the selected genetic operator; A crossover point is randomly selected in the selected genetic operator, and a pair of new chromosome codes are generated by performing a pairwise crossover in a sequential crossover manner; The generated new chromosome encoding is also used as a schedule to participate in the iteration; S48, iteratively execute steps S44-S47 until the maximum number of iterations d is reached max , output industrial control information adjustment queue; For further information, see Figure 1 , execute the output determined industrial control information adjustment queue, and monitor the industrial control information collected in the embedded operating system in real time, and recalculate the industrial control information adjustment queue if an emergency occurs; When the embedded operating system is executing the process of adjusting the queue of industrial control information, an urgent request is received; The embedded operating system suspends and saves industrial control information and executes emergency requests; When the emergency request is executed, the suspended industrial control information is continued to be executed, and the subsequent industrial control information adjustment queue is recalculated; Example 2 See also Figure 1 ,This embodiment also discloses an embedded operating system for industrial control, which is used to implement a resource management method for industrial control. The system includes: a data acquisition module, a data analysis and processing module, an execution queue construction module, and an execution queue adjustment module; The data acquisition module is used to collect system resource information in the embedded operating system and received industrial control information in real time; The data analysis and processing module is used to analyze and process the received industrial control information through data processing; The execution queue construction module is used to construct an industrial control information execution queue according to the processed industrial control information; The execution queue adjustment module is used to set the scheduling algorithm of the embedded operating system and adjust the constructed industrial control information execution queue in real time according to the scheduling algorithm.

[0029] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A resource management method for industrial control, characterized in that: The specific steps include: S1, collect system resource information in the embedded operating system and the received industrial control information in real time, and build a system model based on the collected system resource information; S2. Analyze and process the received industrial control information by means of data processing to obtain processed industrial control information; S3, constructing an industrial control information execution queue based on the processed industrial control information; S4, setting a scheduling algorithm of the embedded operating system, and calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue; S5. Execute the output determined industrial control information adjustment queue, and monitor the industrial control information collected in the embedded operating system in real time. If an emergency occurs, recalculate the industrial control information adjustment queue.

2. A resource management method for industrial control according to claim 1, characterized in that: The real-time collection of system resource information in the embedded operating system and the received industrial control information, and the construction of a system model based on the collected system resource information includes the following steps: System resource information includes: embedded operating system computing core and computing power resources; Industrial control information includes: data access information, data analysis information and data control information; The system model is constructed as follows: SM={P,S}; Where P = {P0, P1, …, P i ,…,P n-1 }, P represents the set of n embedded operating system computing cores, P i represents the computing core of the i-th embedded operating system, S={S 1,2 ,S 1,3 ,…,S i,n-1 }, S represents the communication rate between the computing cores of the embedded operating system, S i,n-1 Represents the communication rate between the i-th embedded operating system computing core and the n-1-th embedded operating system computing core.

3. A resource management method for industrial control according to claim 1, characterized in that: The step of analyzing and processing the received industrial control information by means of data processing to obtain the processed industrial control information comprises the following steps: S21. Setting a corresponding instruction code according to the type of industrial control information; S22, converting the received industrial control information into binary data, matching the converted binary data with the set instruction code, and classifying the currently received industrial control information based on the matching result; S23. Set the classified industrial control information as processed industrial control information.

4. A resource management method for industrial control according to claim 1, characterized in that: The step of constructing an industrial control information execution queue based on the processed industrial control information comprises the following steps: S31, setting the processing priority of various types of industrial control information in the processed industrial control information; S32. Building an industrial control information execution queue based on the set processing priorities of various types of industrial control information and the received processed industrial control information.

5. A resource management method for industrial control according to claim 4, characterized in that: The step of setting the processing priority of various types of industrial control information in the processed industrial control information comprises the following steps: A set of industrial control information execution processes include: embedded operating system computing core processing and I / O operations; The computing core processing of embedded operating systems includes: instruction fetch cycle, execution cycle, and interrupt cycle; However, since data access information in various types of industrial control information does not perform I / O operations, data control information needs to provide feedback after performing I / O operations, which takes a longer period than data analysis information; It is assumed that when data access information, data control information and data analysis information are received at the same time, the data control information has the highest priority and the data access information has the lowest priority.

6. A resource management method for industrial control according to claim 4, characterized in that: The process of constructing an industrial control information execution queue based on the set processing priorities of various types of industrial control information and the received processed industrial control information includes the following steps: Calculate average completion time and communication time; The average completion time is calculated as follows: ; Among them, W j represents the average completion time of the jth industrial control information in the embedded operating system computing core P, w j,i represents the weight of the jth industrial control information on the ith embedded operating system computing core; Calculating the Communication Time The communication time is as follows: ; Among them, L represents the average response time of the embedded operating system computing core, data j,k represents the data transmission volume from the jth industrial control information to the kth industrial control information, B represents the data transmission rate, C j,k represents the time cost of transmitting the jth industrial control information to the kth industrial control information; Set the pre-task and post-task. When the second set of industrial control information needs the first set of industrial control information data, the pre-task is executed first and the post-task is executed later. When the pre-task and the post-task are executed on the same embedded operating system computing core, the communication time is 0. The final completion time of each group of processed industrial control information is collected, and an industrial control information execution queue is constructed based on the calculated average completion time, communication time, reception time of each group of industrial control information, and the preceding and following tasks in the industrial control information.

7. A resource management method for industrial control according to claim 1, characterized in that: The method of setting a scheduling algorithm of the embedded operating system, calculating and adjusting the constructed industrial control information execution queue based on the set scheduling algorithm, and outputting the determined industrial control information adjustment queue includes the following steps: S41, enabling saturation scheduling calculation, assigning a unique embedded operating system computing core to perform separate calculation for each group of processed industrial control information in the industrial control information execution queue, and obtaining a saturation scheduling set of the industrial control information execution queue; S42, summarizing the saturated scheduling set in S41, merging any two groups of scheduling in the saturated scheduling set, calculating a new scheduling formed after the merger, determining the saving value of the new scheduling compared to the sum of the scheduling before the merger, and arranging the saving values ​​in descending order; S43, based on the last completion time of each group of processed industrial control information, analyzing whether the two groups of schedules that can be merged meet the last completion time of each group of processed industrial control information, if the completion time of the merged new schedule meets the requirements, then merging the two groups of schedules into a new schedule and executing S44, if not, canceling the merger and repeating S43; S44, performing population initialization; Set the new scheduling set after aggregation to {1,2,…,h}, where h represents the hth group of scheduling, each group of chromosome encoding represents a group of industrial control information execution data, set the population set size, and the maximum number of iterations d max ; S45, establishing a fitness function; The fitness function is set as follows: ; Among them, Fit(x) represents the fitness of the xth group of industrial control information execution data in the initialization population, and F represents the total scheduling cost; S46, selecting a genetic operator based on the established fitness function; S47, performing chromosome crossover on the selected genetic operator; A crossover point is randomly selected in the selected genetic operator, and a pair of new chromosome codes are generated by performing a pairwise crossover in a sequential crossover manner; The generated new chromosome encoding is also used as a schedule to participate in the iteration; S48, iteratively execute steps S44-S47 until the maximum number of iterations d is reached max , output industrial control information adjustment queue.

8. A resource management method for industrial control according to claim 7, characterized in that: The step of selecting a genetic operator based on the established fitness function comprises the following steps: ,x=1,2,3,…,X; Wherein, X represents the population size, and Y(x) represents the probability of the x-th group of industrial control information execution data being selected in the initialized population.

9. A resource management method for industrial control according to claim 1, characterized in that: The step of executing the output determined industrial control information adjustment queue and monitoring the industrial control information collected in the embedded operating system in real time, and recalculating the industrial control information adjustment queue if an emergency occurs, comprises the following steps: When the embedded operating system is executing the process of adjusting the queue of industrial control information, an urgent request is received; The embedded operating system suspends and saves industrial control information and executes emergency requests; When the emergency request is executed, the suspended industrial control information is continued to be executed, and the subsequent industrial control information adjustment queue is recalculated.

10. An embedded operating system for implementing the resource management method for industrial control according to any one of claims 1 to 9, characterized in that: include: Data collection module, data analysis and processing module, execution queue construction module and execution queue adjustment module; The data acquisition module is used to collect system resource information in the embedded operating system and received industrial control information in real time; The data analysis and processing module is used to analyze and process the received industrial control information through data processing; The execution queue construction module is used to construct an industrial control information execution queue according to the processed industrial control information; The execution queue adjustment module is used to set the scheduling algorithm of the embedded operating system and adjust the constructed industrial control information execution queue in real time according to the scheduling algorithm.

Citation Information

Patent Citations

  • Mathematical heuristic scheduling method and system for hybrid flow shop considering machine configuration

    CN116300763A

  • Adaptive-learning intelligent scheduling unified computing frame and system for industrial personalized customized production

    US20220413455A1