A multi-task data collection management method and system for an industrial Internet platform
By grouping multiple tasks in the industrial Internet platform and allocating data collection nodes, we distinguish and optimize the data collection process, solve the problem of data collection management efficiency under high concurrent tasks, and improve the overall work efficiency.
Patent Information
- Application Number
- CN202410713313.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-04
AI Technical Summary
In the industrial Internet platform, the data collection and management of highly concurrent tasks requires a long time for data collection and management due to the large number of tasks and the large amount of data, affecting the overall work efficiency.
By grouping multiple tasks, data collection nodes are established, and based on the collection results, short extraction tasks, intermittent extraction tasks and long extraction tasks are distinguished, data collection nodes are allocated respectively, the data collection process is optimized, and data collection nodes are used to process multiple tasks Carry out data collection.
Effectively manage the data collection of highly concurrent tasks, improve data analysis efficiency, prevent the impact of large number of tasks and large data volume, and improve the overall work efficiency of the industrial Internet platform.
Smart Images

Figure CN118277225B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multi-task management technology, and in particular to a multi-task data collection management method and system for an industrial Internet platform. Background Art
[0002] The industrial Internet platform is a hub that connects various devices and systems. It can collect various data and interact with other systems. The platform can collect equipment operation data, production process data, product testing data, etc. At the same time, it can also integrate and analyze the collected data with relevant data such as supply chain and industrial safety to provide support for corporate decision-making.
[0003] Existing improvements in data collection and management for industrial Internet platforms are usually used to ensure the security and success rate of task processing. For example, in a Chinese patent with publication number CN115048197A, a multi-task collection scheduling management method based on an intelligent Internet of Things gateway is disclosed. The solution supports priority scheduling by business type to ensure that high-priority businesses are executed first; avoid wasting port resources; improve collection efficiency; and realize data sharing. Other improvements in data collection and management for industrial Internet platforms are usually used to increase the depth of data collection to meet the needs of different industrial applications and management. When the industrial Internet platform needs to perform data collection and management of more tasks, the collection and management of high-concurrency tasks will take a long time due to the large number of tasks and the large amount of data, thereby increasing the time for data analysis and affecting the overall work efficiency of the industrial Internet platform. In view of this, it is necessary to improve the existing data collection and management methods for industrial Internet platforms. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a multi-task data collection management method and system for an industrial Internet platform, which is used to solve the problem in the prior art that when the industrial Internet platform needs to perform data collection management for more tasks, the collection management of high-concurrency tasks will take a long time due to the large number of tasks and the large amount of data, thereby increasing the time for data analysis and affecting the overall work efficiency of the industrial Internet platform.
[0005] In order to achieve the above objectives, in a first aspect, the present invention provides a multi-task data collection management method for an industrial Internet platform, comprising:
[0006] Acquire multiple tasks that require data collection, and group the tasks based on the devices corresponding to the multiple tasks;
[0007] Establish data collection nodes, and use data collection methods based on data collection nodes to collect task data of different groups; establish a timeline, mark all acquired data in the timeline, divide task types based on the marked time intervals, and acquire short extraction tasks, intermittent extraction tasks, and long extraction tasks based on the collection results of data collection nodes; analyze short extraction tasks, intermittent extraction tasks, and long extraction tasks and assign data collection nodes;
[0008] Acquire the collection nodes of the short extraction task, intermittent extraction task and long extraction task respectively; mark the collection interval of the short extraction task in the periodic time axis, analyze and obtain the collection segment and independent segment of the short extraction task, correspond all the collection nodes of the intermittent extraction task to the intermittent extraction task, and replace the collection nodes of the long extraction task whose continuous collection time is less than the collection duration with the collection nodes whose continuous collection time is greater than or equal to the collection duration;
[0009] When data collection is performed on multiple tasks, a data collection node is used to collect data for the multiple tasks.
[0010] Furthermore, obtaining multiple tasks that require data collection and grouping the tasks based on devices corresponding to the multiple tasks includes:
[0011] Acquire multiple tasks that require data collection, which are recorded as collection task 1 to collection task N respectively;
[0012] The collection tasks from collection task 1 to collection task N belonging to the same device are put into the same data analysis group, and all the obtained data analysis groups are respectively recorded as data analysis group 1 to data analysis group M, and the device corresponding to each data analysis group is recorded as the group device of the data analysis group, wherein the data analysis group is used to store the collection data of multiple tasks.
[0013] Furthermore, a data collection node is established, and based on the data collection node, a data collection method is used to collect task data of different groups, including:
[0014] Establish M data collection nodes, which are respectively recorded as data collection node 1 to data collection node M, wherein the data collection nodes are used to receive data sent by the task and send the data and analysis results to the industrial Internet platform;
[0015] Data collection node 1 to data collection node M are respectively recorded as representative nodes of data analysis group 1 to data analysis group M;
[0016] Step S203, start the devices corresponding to all the collection tasks and perform periodic operation under standard conditions, and during the periodic operation, continue to use the representative node of each data analysis group to collect and store multiple task data in the data analysis group; after T cycles, for any collection node M1 from collection node 1 to collection node M, the data of T cycles stored in the collection node M1 are recorded as data to be analyzed 1 to data to be analyzed T based on time sequence, where the standard situation is that all devices are in normal operation.
[0017] Furthermore, collecting task data of different groups using a data collection method based on a data collection node also includes:
[0018] For any data to be analyzed T1 from data to be analyzed 1 to data to be analyzed T, multiple tasks corresponding to all data in the data to be analyzed T1 are recorded as analysis task 1 to analysis task R respectively;
[0019] Establish a time axis, record it as the data time axis, record the length of the data time axis as K, where the starting point of the data time axis is the time of the first data obtained in the data to be analyzed T1, and the end point of the data time axis is the time of the last data obtained in the data to be analyzed T1;
[0020] The acquisition time of all data in the data to be analyzed T1 is marked on the time axis, and the number of all data in the data to be analyzed T1 is recorded as Q;
[0021] For any analysis task R1 from analysis task 1 to analysis task R, the marking points of all acquired data corresponding to analysis task R1 in the time axis are recorded from early to late as R1 marking point 1 to R1 marking point J, and the time interval formed by R1 marking point 1 and R1 marking point J is recorded as the collection interval of analysis task R1;
[0022] The distance between R1 mark point 1 and R1 mark point J is recorded as K1. When K1 is less than , the analysis task R1 is marked as a short extraction task; when K1 is greater than or equal to and is less than K, the analysis task R1 is marked as an intermittent extraction task; when K1 is equal to K, the analysis task R1 is marked as a long extraction task.
[0023] Further, based on the collection results of the data collection nodes, obtaining the short extraction task, the intermittent extraction task and the long extraction task includes:
[0024] Marking analysis tasks 1 to R based on the marking method of analysis task R1;
[0025] Obtain the labeling status of all analysis tasks in the data to be analyzed 1 to the data to be analyzed T. For any analysis task R1 in the data to be analyzed 1 to the data to be analyzed T, record the task type with the most labeling times of the analysis task R1 as the task feature of the analysis task R1, where the task type includes short extraction task, intermittent extraction task and long extraction task;
[0026] Get task characteristics for all analysis tasks.
[0027] Further, the short extraction task, the intermittent extraction task and the long extraction task are analyzed and the data collection nodes are allocated, including:
[0028] Based on the analysis method of the acquisition node M1, the analysis features of all analysis tasks corresponding to all acquisition nodes are obtained, and the number of all analysis tasks corresponding to all acquisition nodes is recorded as H;
[0029] All analysis tasks with short extraction features are recorded as short extraction tasks 1 to short extraction tasks H1; all analysis tasks with intermittent extraction features are recorded as intermittent extraction tasks 1 to intermittent extraction tasks H2; all analysis tasks with long extraction features are recorded as long extraction tasks 1 to long extraction tasks H3; Denote as the short ratio, Recorded as the intermittent ratio, Recorded as long ratio;
[0030] Will The corresponding value of rounding down is recorded as the number of intermittent nodes. The corresponding value rounded down is recorded as the number of long nodes, and the value obtained by subtracting the number of intermittent nodes from the number of long nodes is recorded as the number of short nodes;
[0031] The data collection nodes whose number is short nodes from data collection node 1 to data collection node M are recorded as collection nodes for short extraction tasks; the data collection nodes whose number is intermittent nodes from data collection node 1 to data collection node M are recorded as collection nodes for intermittent extraction tasks; the data collection nodes whose number is long nodes from data collection node 1 to data collection node M are recorded as collection nodes for long extraction tasks, wherein each data collection node can only be recorded as a collection node for one task type.
[0032] Furthermore, analyzing the short extraction task, the intermittent extraction task, and the long extraction task and allocating data collection nodes also includes:
[0033] Any one of the T cycles in which all devices in the above analysis operate is recorded as a reference cycle;
[0034] Establish a time axis, recorded as a period time axis, wherein the starting point of the period time axis is the time of the first data obtained in the reference period, and the end point of the period time axis is the time of the last data obtained in the reference period;
[0035] The collection intervals of all short extraction tasks are marked in the periodic timeline. For any collection interval A of a short extraction task, when the collection interval A and the collection interval B overlap for any length, the union of the collection interval A and the collection interval B is recorded as the collection segment. All collection segments in the periodic timeline are obtained, and recorded as collection segment 1 to collection segment L based on the time sequence, and the collection intervals that are not recorded as collection segments with other collection intervals are recorded as independent segments.
[0036] Furthermore, analyzing the short extraction task, the intermittent extraction task, and the long extraction task and allocating data collection nodes also includes:
[0037] The number of collection nodes of the intermittent extraction task is obtained, which is recorded as Z. When Z is not equal to H2, the number of collection nodes of the intermittent extraction task is adjusted to H2;
[0038] The collection nodes of all intermittent extraction tasks are matched one by one with intermittent extraction tasks 1 to H2.
[0039] Furthermore, analyzing the short extraction task, the intermittent extraction task, and the long extraction task and allocating data collection nodes also includes:
[0040] The time length corresponding to the periodic time axis is recorded as the collection duration; when the time that any data collection node A in the collection nodes of the long extraction task can continuously collect is less than the collection duration, the data collection node A is replaced so that the time that the replaced data collection node can continuously collect is greater than or equal to the collection duration.
[0041] Furthermore, when data collection is performed on multiple tasks, using the data collection node to collect data on the multiple tasks includes:
[0042] When data collection is performed for multiple tasks, the collection nodes of the short extraction task are used to collect the task data in the collection section 1 to the collection section L in sequence. The collection method is: use any data collection node A among the collection nodes of the short extraction task to collect the task data in the collection section 1. When the data collection node A finishes collecting, record the data collection node A as a waiting node and use any data collection node B among the collection nodes of the short extraction task that is not recorded as a waiting node to collect the task data in the collection section 2, and so on.
[0043] When any independent segment needs to be collected, any idle data collection node among the collection nodes of the short extraction task is used for collection;
[0044] When all data collection nodes in the collection nodes of the short extraction task are recorded as waiting nodes, the order in which the collection nodes of the short extraction task are recorded as waiting nodes is recorded as the cyclic order, and the collection nodes of the short extraction task are used in sequence based on the cyclic order to collect data for the remaining collection segments.
[0045] Furthermore, when data collection is performed on multiple tasks, using the data collection node to collect data on the multiple tasks also includes:
[0046] For any intermittent extraction task A from the intermittent extraction task 1 to the intermittent extraction task H2, use the data collection node corresponding to the intermittent extraction task A to collect data for the intermittent extraction task A;
[0047] Use the collection nodes of all long extraction tasks to collect data for all long extraction tasks when the device starts running. The collection method is: when any data of any long extraction task is output, use any idle data collection node among the collection nodes of all long extraction tasks to collect the output data.
[0048] In a second aspect, the present invention further provides a multi-task data collection and management system for an industrial Internet platform, including a task grouping module, a task analysis module, and a task collection module;
[0049] The task grouping module is used to obtain multiple tasks that require data collection, and group the tasks based on the devices corresponding to the multiple tasks;
[0050] The task analysis module is used to establish data collection nodes, and use data collection methods based on the data collection nodes to collect task data of different groups; based on the collection results of the data collection nodes, obtain short extraction tasks, intermittent extraction tasks and long extraction tasks; analyze short extraction tasks, intermittent extraction tasks and long extraction tasks and assign data collection nodes;
[0051] The task collection module is used to collect data for multiple tasks using data collection nodes.
[0052] Beneficial effects of the present invention: The present invention first obtains multiple tasks that require data collection, and groups the tasks based on the devices corresponding to the multiple tasks; then establishes a data collection node, and uses a data collection method based on the data collection node to collect task data of different groups; based on the collection results of the data collection node, obtains short extraction tasks, intermittent extraction tasks and long extraction tasks; analyzes the short extraction tasks, intermittent extraction tasks and long extraction tasks and assigns data collection nodes; finally, when data collection is performed on multiple tasks, the data collection nodes are used to perform data collection on the multiple tasks. The advantage of this is that by grouping the tasks, the tasks can be distinguished and processed based on the characteristics of the data collection of each task in the subsequent analysis process, so as to perform targeted analysis on the tasks of the same type, which is helpful for effective collection management when facing the collection of high-concurrency tasks. By establishing data collection nodes and using data collection nodes to collect data of different groups, the data of each task can be analyzed while the task data can be stored and transferred through the data collection nodes during actual collection, thereby preventing the overall work efficiency of the industrial Internet platform from being affected by the large number of tasks and the large amount of data.
[0053] Advantages of additional aspects of the present invention will be given in part in the description of the following specific embodiments, and in part will become apparent from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0055] Figure 1 is a flow chart of the steps of the method of the present invention;
[0056] Figure 2 is a functional block diagram of the system of the present invention;
[0057] Figure 3 is a schematic diagram of the data time axis of the present invention;
[0058] Figure 4 It is a schematic diagram of the acquisition section and the independent section of the present invention. DETAILED DESCRIPTION
[0059] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0060] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0061] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0062] Example 1, first aspect, please refer to Figure 2 As shown, the present invention provides a multi-task data acquisition management system for an industrial Internet platform, including a task grouping module, a task analysis module and a task acquisition module;
[0063] The task grouping module is used to obtain multiple tasks that require data collection, and group the tasks based on the devices corresponding to the multiple tasks;
[0064] The task grouping module is configured with a collection task grouping strategy, which includes:
[0065] Acquire multiple tasks that require data collection, which are recorded as collection task 1 to collection task N respectively;
[0066] The collection tasks from collection task 1 to collection task N belonging to the same device are put into the same data analysis group, and all the obtained data analysis groups are respectively recorded as data analysis group 1 to data analysis group M, and the device corresponding to each data analysis group is recorded as the group device of the data analysis group, wherein the data analysis group is used to store the collection data of multiple tasks.
[0067] In the specific implementation process, by putting the collection tasks of the same device into the same data analysis group, it is helpful to facilitate the same data collection node to collect tasks in the same device during data collection when using the data collection node for analysis in the future, thereby saving the collection time of the data collection node;
[0068] The task analysis module is used to establish data collection nodes, and use data collection methods based on the data collection nodes to collect task data of different groups; based on the collection results of the data collection nodes, obtain short extraction tasks, intermittent extraction tasks and long extraction tasks; analyze short extraction tasks, intermittent extraction tasks and long extraction tasks and assign data collection nodes;
[0069] The task analysis module is configured with an extraction task acquisition strategy and an extraction task analysis strategy; the extraction task acquisition strategy includes:
[0070] Establish M data collection nodes, which are respectively recorded as data collection node 1 to data collection node M, wherein the data collection nodes are used to receive data sent by the task and send the data and analysis results to the industrial Internet platform;
[0071] Data collection node 1 to data collection node M are respectively recorded as representative nodes of data analysis group 1 to data analysis group M;
[0072] Start the devices corresponding to all the collection tasks and perform periodic operations under standard conditions. During the periodic operation, the representative node of each data analysis group is continuously used to collect and store the data of multiple tasks in the data analysis group. After T cycles, for any collection node M1 from collection node 1 to collection node M, the data of T cycles stored in the collection node M1 are recorded as data to be analyzed 1 to data to be analyzed T based on time sequence, where the standard condition is that all devices are in normal operation.
[0073] In the specific implementation process, in this embodiment, it is assumed that the number of all tasks and their task data corresponding to all devices in each cycle are consistent, that is, the number of tasks in each data to be analyzed is the same and the number of data collected in any two data to be analyzed is equal;
[0074] For any data to be analyzed T1 from data to be analyzed 1 to data to be analyzed T, multiple tasks corresponding to all data in the data to be analyzed T1 are recorded as analysis task 1 to analysis task R respectively;
[0075] In the specific implementation process, in this embodiment, the number of analysis tasks in each data to be analyzed is R by default. In the specific implementation, when the number of analysis tasks in multiple data to be analyzed collected by a collection node is inconsistent, the data to be analyzed can be analyzed separately;
[0076] Establish a time axis, record it as the data time axis, record the length of the data time axis as K, where the starting point of the data time axis is the time of the first data obtained in the data to be analyzed T1, and the end point of the data time axis is the time of the last data obtained in the data to be analyzed T1;
[0077] See also Figure 3 As shown, the length of the dotted line corresponding to FF3 is the length of the data time axis, FF1 is the starting point of the data time axis, and FF2 is the end point of the data time axis; FF4 to FF8 are the time of all the acquired data corresponding to the analysis task R1, and the time interval formed by FF4 and FF8 is the acquisition interval of the analysis task R1;
[0078] The acquisition time of all data in the data to be analyzed T1 is marked on the time axis, and the number of all data in the data to be analyzed T1 is recorded as Q;
[0079] For any analysis task R1 from analysis task 1 to analysis task R, the marking points of all acquired data corresponding to analysis task R1 in the time axis are recorded from early to late as R1 marking point 1 to R1 marking point J, and the time interval formed by R1 marking point 1 and R1 marking point J is recorded as the collection interval of analysis task R1;
[0080] The distance between R1 mark point 1 and R1 mark point J is recorded as K1. When K1 is less than , the analysis task R1 is marked as a short extraction task; when K1 is greater than or equal to and is less than K, the analysis task R1 is marked as an intermittent extraction task; when K1 is equal to K, the analysis task R1 is marked as a long extraction task.
[0081] In the specific implementation process, in this embodiment, the length unit of all time axes is set to cm. The length unit of the time axis can be adjusted in actual analysis. For example, in a data processing, the length of the data time axis is 100 cm, J is 5, Q is 10, and K1 is 40 cm. Then, by calculation, it can be obtained that K1 is less than , mark the analysis task R1 as a short extraction task;
[0082] Extraction task acquisition strategies also include:
[0083] Marking analysis tasks 1 to R based on the marking method of analysis task R1;
[0084] Obtain the labeling status of all analysis tasks in the data to be analyzed 1 to the data to be analyzed T. For any analysis task R1 in the data to be analyzed 1 to the data to be analyzed T, record the task type with the most labeled times for the analysis task R1 as the task feature of the analysis task R1, where the task types include short extraction tasks, intermittent extraction tasks, and long extraction tasks.
[0085] Extraction task analysis strategies include:
[0086] Based on the analysis method of the acquisition node M1, the analysis features of all analysis tasks corresponding to all acquisition nodes are obtained, and the number of all analysis tasks corresponding to all acquisition nodes is recorded as H;
[0087] All analysis tasks with short extraction features are recorded as short extraction tasks 1 to short extraction tasks H1; all analysis tasks with intermittent extraction features are recorded as intermittent extraction tasks 1 to intermittent extraction tasks H2; all analysis tasks with long extraction features are recorded as long extraction tasks 1 to long extraction tasks H3; Denote as the short ratio, Recorded as the intermittent ratio, Recorded as long ratio;
[0088] Will The corresponding value of rounding down is recorded as the number of intermittent nodes. The corresponding value rounded down is recorded as the number of long nodes, and the value obtained by subtracting the number of intermittent nodes from the number of long nodes is recorded as the number of short nodes;
[0089] In the specific implementation process, for example, in one data processing, the value of H1 is 5, the value of H2 is 10, the value of H3 is 3, the value of H is 18, and the value of M is 20. Then, by calculation, the number of intermittent nodes is 11, the number of long nodes is 3, and the number of short nodes is 6. Because the collection node of the short extraction task in this embodiment needs to collect data for multiple tasks at the same time, the data collection pressure of the collection node of the short extraction task is relatively large, and the number of collection nodes of the short extraction task should be obtained more at a normal ratio;
[0090] The data collection nodes whose number is short nodes from data collection node 1 to data collection node M are recorded as collection nodes for short extraction tasks; the data collection nodes whose number is intermittent nodes from data collection node 1 to data collection node M are recorded as collection nodes for intermittent extraction tasks; the data collection nodes whose number is long nodes from data collection node 1 to data collection node M are recorded as collection nodes for long extraction tasks, wherein each data collection node can only be recorded as a collection node for one task type.
[0091] Any one of the T cycles in which all devices in the above analysis operate is recorded as a reference cycle;
[0092] Establish a time axis, recorded as a period time axis, wherein the starting point of the period time axis is the time of the first data obtained in the reference period, and the end point of the period time axis is the time of the last data obtained in the reference period;
[0093] The collection intervals of all short extraction tasks are marked in the periodic timeline. For any collection interval A of a short extraction task, when the collection interval A and the collection interval B overlap for any length, the union of the collection interval A and the collection interval B is recorded as the collection segment. All collection segments in the periodic timeline are obtained, and recorded as collection segment 1 to collection segment L based on the time sequence, and the collection intervals that are not recorded as collection segments with other collection intervals are recorded as independent segments.
[0094] In the specific implementation process, in this embodiment, each acquisition interval can only be in one acquisition section at the same time, for example, in one data processing, please refer to Figure 4As shown, GG1 is the collection interval A, GG2 is the collection interval B, and GG3 is the collection interval C. The collection interval A and the collection interval B partially overlap, and the collection interval B and the collection interval C partially overlap. During the analysis, the collection interval A is analyzed first based on the analysis order, and the union of the collection interval A and the collection interval B is recorded as the collection segment, and the collection interval C is recorded as an independent segment;
[0095] Extraction task analysis strategies also include:
[0096] The number of collection nodes of the intermittent extraction task is obtained, which is recorded as Z. When Z is not equal to H2, the number of collection nodes of the intermittent extraction task is adjusted to H2;
[0097] The collection nodes of all intermittent extraction tasks are matched one by one with intermittent extraction tasks 1 to H2.
[0098] The time length corresponding to the periodic time axis is recorded as the collection duration; when the time that any data collection node A in the collection nodes of the long extraction task can continuously collect is less than the collection duration, the data collection node A is replaced so that the time that the replaced data collection node can continuously collect is greater than or equal to the collection duration.
[0099] The task collection module is used to collect data for multiple tasks using data collection nodes.
[0100] The task collection module is configured with real-time collection strategies, which include:
[0101] When data collection is performed for multiple tasks, the collection nodes of the short extraction task are used to collect the task data in the collection section 1 to the collection section L in sequence. The collection method is: use any data collection node A among the collection nodes of the short extraction task to collect the task data in the collection section 1. When the data collection node A finishes collecting, record the data collection node A as a waiting node and use any data collection node B among the collection nodes of the short extraction task that is not recorded as a waiting node to collect the task data in the collection section 2, and so on.
[0102] When any independent segment needs to be collected, any idle data collection node among the collection nodes of the short extraction task is used for collection;
[0103] In the specific implementation process, in this embodiment, the idle state is a state in which the data acquisition node is not in any data receiving or data transmission state;
[0104] When all data collection nodes in the collection nodes of the short extraction task are recorded as waiting nodes, the order in which the collection nodes of the short extraction task are recorded as waiting nodes is recorded as the cyclic order, and the collection nodes of the short extraction task are used in sequence based on the cyclic order to collect data for the remaining collection segments.
[0105] In the specific implementation process, for example, in a data collection, all data collection nodes in the collection nodes of the short extraction task are recorded as the order of waiting nodes: data collection node A2, data collection node A1, data collection node A4, data collection node A3 and data collection node A5. Then, when data is collected for the remaining collection sections, data collection node A2 is used first to collect data for the next collection section, followed by data collection node A1, and so on. The advantage of this is that the data collection nodes for data collection can be sorted, thereby preventing the same data collection node from being assigned more data collection tasks when the number of data collections is large, affecting the data collection efficiency.
[0106] Real-time acquisition strategies also include:
[0107] For any intermittent extraction task A from the intermittent extraction task 1 to the intermittent extraction task H2, use the data collection node corresponding to the intermittent extraction task A to collect data for the intermittent extraction task A;
[0108] Use the collection nodes of all long extraction tasks to collect data for all long extraction tasks when the device starts running. The collection method is: when any data of any long extraction task is output, use any idle data collection node among the collection nodes of all long extraction tasks to collect the output data.
[0109] Example 2, second aspect, please refer to Figure 1 As shown, the present invention also provides a multi-task data collection and management method for an industrial Internet platform, which is characterized by comprising:
[0110] Step S1, obtaining multiple tasks that require data collection, and grouping the tasks based on the devices corresponding to the multiple tasks;
[0111] Step S1 includes: step S101, obtaining multiple tasks that need to perform data collection, which are respectively recorded as collection task 1 to collection task N;
[0112] Step S102, put the collection tasks belonging to the same device from collection task 1 to collection task N into the same data analysis group, and record all the obtained data analysis groups as data analysis group 1 to data analysis group M, and record the device corresponding to each data analysis group as the group device of the data analysis group, wherein the data analysis group is used to store the collection data of multiple tasks.
[0113] Step S2, establish a data collection node, and use the data collection method based on the data collection node to collect task data of different groups; based on the collection results of the data collection node, obtain short extraction tasks, intermittent extraction tasks and long extraction tasks; analyze the short extraction tasks, intermittent extraction tasks and long extraction tasks and assign data collection nodes.
[0114] Step S2 includes: Step S201, establishing M data acquisition nodes, which are respectively recorded as data acquisition node 1 to data acquisition node M, wherein the data acquisition nodes are used to receive data sent by the task and send the data and analysis results to the industrial Internet platform;
[0115] Step S202, record data collection node 1 to data collection node M as representative nodes of data analysis group 1 to data analysis group M respectively;
[0116] Step S203, start the devices corresponding to all the collection tasks and perform periodic operation under standard conditions, and during the periodic operation, continue to use the representative node of each data analysis group to collect and store multiple task data in the data analysis group; after T cycles, for any collection node M1 from collection node 1 to collection node M, the data of T cycles stored in the collection node M1 are recorded as data to be analyzed 1 to data to be analyzed T based on time sequence, where the standard situation is that all devices are in normal operation.
[0117] Step S203 also includes:
[0118] For any data to be analyzed T1 from data to be analyzed 1 to data to be analyzed T, multiple tasks corresponding to all data in the data to be analyzed T1 are recorded as analysis task 1 to analysis task R respectively;
[0119] Establish a time axis, record it as the data time axis, record the length of the data time axis as K, where the starting point of the data time axis is the time of the first data obtained in the data to be analyzed T1, and the end point of the data time axis is the time of the last data obtained in the data to be analyzed T1;
[0120] The acquisition time of all data in the data to be analyzed T1 is marked on the time axis, and the number of all data in the data to be analyzed T1 is recorded as Q;
[0121] For any analysis task R1 from analysis task 1 to analysis task R, the marking points of all acquired data corresponding to analysis task R1 in the time axis are recorded from early to late as R1 marking point 1 to R1 marking point J, and the time interval formed by R1 marking point 1 and R1 marking point J is recorded as the collection interval of analysis task R1;
[0122] The distance between R1 mark point 1 and R1 mark point J is recorded as K1. When K1 is less than , the analysis task R1 is marked as a short extraction task; when K1 is greater than or equal to and is less than K, the analysis task R1 is marked as an intermittent extraction task; when K1 is equal to K, the analysis task R1 is marked as a long extraction task;
[0123] Marking analysis tasks 1 to R based on the marking method of analysis task R1;
[0124] Obtain the labeling status of all analysis tasks in the data to be analyzed 1 to the data to be analyzed T. For any analysis task R1 in the data to be analyzed 1 to the data to be analyzed T, record the task type with the most labeling times of the analysis task R1 as the task feature of the analysis task R1, where the task type includes short extraction task, intermittent extraction task and long extraction task;
[0125] Get task characteristics for all analysis tasks.
[0126] Step S2 also includes: step S204, based on the analysis method for the acquisition node M1, obtaining analysis features of all analysis tasks corresponding to all acquisition nodes, and recording the number of all analysis tasks corresponding to all acquisition nodes as H;
[0127] All analysis tasks with short extraction features are recorded as short extraction tasks 1 to short extraction tasks H1; all analysis tasks with intermittent extraction features are recorded as intermittent extraction tasks 1 to intermittent extraction tasks H2; all analysis tasks with long extraction features are recorded as long extraction tasks 1 to long extraction tasks H3; Denote as the short ratio, Recorded as the intermittent ratio, Recorded as long ratio;
[0128] Step S205: The corresponding value of rounding down is recorded as the number of intermittent nodes. The corresponding value rounded down is recorded as the number of long nodes, and the value obtained by subtracting the number of intermittent nodes from the number of long nodes is recorded as the number of short nodes;
[0129] The data collection nodes with the number of short nodes from data collection node 1 to data collection node M are recorded as the collection nodes of short extraction tasks; the data collection nodes with the number of intermittent nodes from data collection node 1 to data collection node M are recorded as the collection nodes of intermittent extraction tasks; the data collection nodes with the number of long nodes from data collection node 1 to data collection node M are recorded as the collection nodes of long extraction tasks, wherein each data collection node can only be recorded as a collection node of one task type;
[0130] Step S206, recording any one of the T cycles in which all devices in the above analysis operate as a reference cycle;
[0131] Establish a time axis, recorded as a period time axis, wherein the starting point of the period time axis is the time of the first data obtained in the reference period, and the end point of the period time axis is the time of the last data obtained in the reference period;
[0132] The collection intervals of all short extraction tasks are marked in the periodic timeline. For any collection interval A of a short extraction task, when the collection interval A and the collection interval B overlap for any length, the union of the collection interval A and the collection interval B is recorded as the collection segment. All collection segments in the periodic timeline are obtained, and recorded as collection segment 1 to collection segment L based on the time sequence, and the collection intervals that are not recorded as collection segments with other collection intervals are recorded as independent segments.
[0133] Step S207, obtaining the number of collection nodes of the intermittent extraction task, denoted as Z, and when Z is not equal to H2, adjusting the number of collection nodes of the intermittent extraction task to H2;
[0134] The collection nodes of all intermittent extraction tasks are matched one by one with intermittent extraction tasks 1 to H2.
[0135] Step S208, record the time length corresponding to the periodic time axis as the collection duration; when the time that any data collection node A in the collection nodes of the long extraction task can continuously collect is less than the collection duration, replace the data collection node A so that the time that the replaced data collection node can continuously collect is greater than or equal to the collection duration.
[0136] Step S3: when data collection is performed on multiple tasks, data collection nodes are used to perform data collection on the multiple tasks.
[0137] Step S3 includes: step S301, when data collection is performed on multiple tasks, the collection nodes of the short extraction task are used to collect the task data in the collection section 1 to the collection section L in sequence, and the collection method is: use any data collection node A among the collection nodes of the short extraction task to collect the task data in the collection section 1, when the data collection node A finishes collecting, record the data collection node A as a waiting node and use any data collection node B among the collection nodes of the short extraction task that is not recorded as a waiting node to collect the task data in the collection section 2, and so on;
[0138] When any independent segment needs to be collected, any idle data collection node among the collection nodes of the short extraction task is used for collection;
[0139] When all data collection nodes in the collection nodes of the short extraction task are recorded as waiting nodes, the order in which the collection nodes of the short extraction task are recorded as waiting nodes is recorded as the cyclic order, and the collection nodes of the short extraction task are used in sequence based on the cyclic order to collect data for the remaining collection segments.
[0140] Step S302, for any intermittent extraction task A from the intermittent extraction task 1 to the intermittent extraction task H2, use the data collection node corresponding to the intermittent extraction task A to collect data for the intermittent extraction task A;
[0141] Step S303, using the collection nodes of all long extraction tasks to collect data for all long extraction tasks when the device starts running, the collection method is: when any data of any long extraction task is output, use any idle data collection node among the collection nodes of all long extraction tasks to collect the output data.
[0142] Working principle: First, obtain multiple tasks that need to be collected for data, and group the tasks based on the devices corresponding to the multiple tasks; then establish data collection nodes, and use data collection methods based on the data collection nodes to collect task data from different groups; based on the collection results of the data collection nodes, obtain short extraction tasks, intermittent extraction tasks, and long extraction tasks; analyze short extraction tasks, intermittent extraction tasks, and long extraction tasks and assign data collection nodes; finally, when collecting data for multiple tasks, use data collection nodes to collect data for multiple tasks.
[0143] It should be understood by those skilled in the art that the embodiments of the present invention may provide methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0144] The above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A multi-task data collection and management method for an industrial Internet platform, characterized in that: include: Acquire multiple tasks that require data collection, and group the tasks based on the devices corresponding to the multiple tasks; Establish data collection nodes, and use data collection methods based on the data collection nodes to collect task data of different groups; Establish a timeline, mark all the acquired data in the timeline, divide the task types based on the marked time intervals, and obtain short extraction tasks, intermittent extraction tasks, and long extraction tasks based on the collection results of the data collection nodes; Analyze short extraction tasks, intermittent extraction tasks, and long extraction tasks and assign data collection nodes; Establish data collection nodes, and use data collection methods based on data collection nodes to collect task data of different groups, including: Establish M data collection nodes, which are respectively recorded as data collection node 1 to data collection node M, wherein the data collection nodes are used to receive data sent by the task and send the data and analysis results to the industrial Internet platform; Data collection node 1 to data collection node M are respectively recorded as representative nodes of data analysis group 1 to data analysis group M; Start the devices corresponding to all the collection tasks and perform periodic operation under standard conditions. During the periodic operation, the representative node of each data analysis group is continuously used to collect and store the data of multiple tasks in the data analysis group. After T cycles, for a collection node M1 among the collection nodes 1 to M, the data of T cycles stored in the collection node M1 are recorded as data to be analyzed 1 to data to be analyzed T based on the time sequence. The standard condition is the condition that all the devices are in normal operation. The data collection method based on the data collection node is used to collect task data of different groups, and the following is also included: For one of the data to be analyzed T1 among the data to be analyzed 1 to the data to be analyzed T, the multiple tasks corresponding to all the data in the data to be analyzed T1 are respectively recorded as analysis task 1 to analysis task R; Establish a time axis, record it as the data time axis, record the length of the data time axis as K, where the starting point of the data time axis is the time of the first data obtained in the data to be analyzed T1, and the end point of the data time axis is the time of the last data obtained in the data to be analyzed T1; The acquisition time of all data in the data to be analyzed T1 is marked on the time axis, and the number of all data in the data to be analyzed T1 is recorded as Q; For an analysis task R1 among analysis tasks 1 to R, the marking points of all acquired data corresponding to analysis task R1 in the time axis are recorded from early to late as R1 marking point 1 to R1 marking point J, and the time interval formed by R1 marking point 1 and R1 marking point J is recorded as the collection interval of analysis task R1; The distance between R1 mark point 1 and R1 mark point J is recorded as K1. When K1 is less than , the analysis task R1 is marked as a short extraction task; when K1 is greater than or equal to and is less than K, the analysis task R1 is marked as an intermittent extraction task; when K1 is equal to K, the analysis task R1 is marked as a long extraction task; Based on the collection results of the data collection node, the short extraction tasks, intermittent extraction tasks and long extraction tasks are obtained, including: Marking analysis tasks 1 to R based on the marking method of analysis task R1; Obtain the labeling status of all analysis tasks in the data to be analyzed 1 to the data to be analyzed T. For an analysis task R1 in the data to be analyzed 1 to the data to be analyzed T, record the task type with the most labeling times of the analysis task R1 as the task feature of the analysis task R1, wherein the task type includes a short extraction task, an intermittent extraction task, and a long extraction task; Get the task characteristics of all analysis tasks; Analyze short extraction tasks, intermittent extraction tasks, and long extraction tasks and allocate data collection nodes including: Based on the analysis method of the acquisition node M1, the analysis features of all analysis tasks corresponding to all acquisition nodes are obtained, and the number of all analysis tasks corresponding to all acquisition nodes is recorded as H; All analysis tasks with short extraction features are recorded as short extraction tasks 1 to short extraction tasks H1; all analysis tasks with intermittent extraction features are recorded as intermittent extraction tasks 1 to intermittent extraction tasks H2; all analysis tasks with long extraction features are recorded as long extraction tasks 1 to long extraction tasks H3; Denote as the short ratio, Recorded as the intermittent ratio, Recorded as long ratio; Will The corresponding value of rounding down is recorded as the number of intermittent nodes. The corresponding value rounded down is recorded as the number of long nodes, and the value obtained by subtracting the number of intermittent nodes from the number of long nodes is recorded as the number of short nodes; The data collection nodes with the number of short nodes from data collection node 1 to data collection node M are recorded as the collection nodes of short extraction tasks; the data collection nodes with the number of intermittent nodes from data collection node 1 to data collection node M are recorded as the collection nodes of intermittent extraction tasks; the data collection nodes with the number of long nodes from data collection node 1 to data collection node M are recorded as the collection nodes of long extraction tasks, wherein each data collection node can only be recorded as a collection node of one task type; Analyzing short extraction tasks, intermittent extraction tasks, and long extraction tasks and allocating data collection nodes also includes: One of the T cycles in which all devices in the above analysis operate is recorded as a reference cycle; Establish a time axis, recorded as a period time axis, wherein the starting point of the period time axis is the time of the first data obtained in the reference period, and the end point of the period time axis is the time of the last data obtained in the reference period; Mark the collection intervals of all short extraction tasks in the periodic timeline. For a collection interval A of a short extraction task, when the length of collection interval A and collection interval B overlap, record the union of collection interval A and collection interval B as a collection segment. Obtain all collection segments in the periodic timeline and record them as collection segments 1 to collection segments L based on the time sequence. Record the collection intervals that are not recorded as collection segments with other collection intervals as independent segments. Analyzing short extraction tasks, intermittent extraction tasks, and long extraction tasks and allocating data collection nodes also includes: The number of collection nodes of the intermittent extraction task is obtained, which is recorded as Z. When Z is not equal to H2, the number of collection nodes of the intermittent extraction task is adjusted to H2; The collection nodes of all intermittent extraction tasks are matched one by one with intermittent extraction tasks 1 to H2; Analyzing short extraction tasks, intermittent extraction tasks, and long extraction tasks and allocating data collection nodes also includes: The time length corresponding to the periodic time axis is recorded as the collection duration; when the continuous collection time of a data collection node A in the collection nodes of the long extraction task is less than the collection duration, the data collection node A is replaced so that the continuous collection time of the replaced data collection node is greater than or equal to the collection duration; Acquire the collection nodes of the short extraction task, intermittent extraction task and long extraction task respectively; mark the collection interval of the short extraction task in the periodic time axis, analyze and obtain the collection segment and independent segment of the short extraction task, correspond all the collection nodes of the intermittent extraction task to the intermittent extraction task, and replace the collection nodes of the long extraction task whose continuous collection time is less than the collection duration with the collection nodes whose continuous collection time is greater than or equal to the collection duration; When data collection is performed on multiple tasks, a data collection node is used to collect data for the multiple tasks.
2. The multi-task data collection and management method of an industrial Internet platform according to claim 1 is characterized in that: Acquiring multiple tasks that require data collection and grouping the tasks based on the devices corresponding to the multiple tasks includes: Acquire multiple tasks that require data collection, which are recorded as collection task 1 to collection task N respectively; The collection tasks from collection task 1 to collection task N belonging to the same device are put into the same data analysis group, and all the obtained data analysis groups are respectively recorded as data analysis group 1 to data analysis group M, and the device corresponding to each data analysis group is recorded as the group device of the data analysis group, wherein the data analysis group is used to store the collection data of multiple tasks.
3. The multi-task data collection and management method of an industrial Internet platform according to claim 2 is characterized in that: When data collection is performed for multiple tasks, using a data collection node to collect data for multiple tasks includes: When data collection is performed for multiple tasks, the collection nodes of the short extraction task are used to collect the task data in the collection sections 1 to L in sequence. The collection method is as follows: a data collection node A among the collection nodes of the short extraction task is used to collect the task data in the collection section 1. When the data collection node A finishes collecting, the data collection node A is recorded as a waiting node and a data collection node B among the collection nodes of the short extraction task that is not recorded as a waiting node is used to collect the task data in the collection section 2, and so on. When an independent segment needs to be collected, an idle data collection node among the collection nodes of the short extraction task is used for collection; When all data collection nodes in the collection nodes of the short extraction task are recorded as waiting nodes, the order in which the collection nodes of the short extraction task are recorded as waiting nodes is recorded as the cyclic order, and the collection nodes of the short extraction task are used in sequence based on the cyclic order to collect data for the remaining collection segments.
4. The multi-task data collection and management method of an industrial Internet platform according to claim 3 is characterized in that: When data collection is performed for multiple tasks, using a data collection node to collect data for multiple tasks also includes: For an intermittent extraction task A from the intermittent extraction tasks 1 to the intermittent extraction tasks H2, data collection is performed on the intermittent extraction task A using a data collection node corresponding to the intermittent extraction task A; Use the collection nodes of all long extraction tasks to collect data for all long extraction tasks when the device starts running. The collection method is: when a data of a long extraction task is output, use an idle data collection node among the collection nodes of all long extraction tasks to collect the output data.
5. A multi-task data collection and management system for an industrial Internet platform, applicable to a multi-task data collection and management method for an industrial Internet platform as claimed in any one of claims 1 to 4, characterized in that: It includes task grouping module, task analysis module and task collection module; The task grouping module is used to obtain multiple tasks that require data collection, and group the tasks based on the devices corresponding to the multiple tasks; The task analysis module is used to establish data collection nodes, and use data collection methods based on the data collection nodes to collect task data of different groups; based on the collection results of the data collection nodes, obtain short extraction tasks, intermittent extraction tasks and long extraction tasks; analyze short extraction tasks, intermittent extraction tasks and long extraction tasks and assign data collection nodes; The task collection module is used to collect data for multiple tasks using data collection nodes.
Citation Information
Patent Citations
Multi-task acquisition scheduling management method based on intelligent Internet of Things gateway
CN115048197A
Large-scale distributed data collection system and method
CN106126346A
Data acquisition method based on time scheduling
CN112131280A
Vehicle data acquisition method and device and vehicle diagnosis system
CN112406748A
Industrial big data acquisition method and system
CN113190524A
