Disclosure of Invention
The application provides a distributed industrial internet equipment cooperative operation method and a cloud server, so as to solve the technical problems in the prior art.
The distributed industrial internet equipment cooperative operation method is applied to a cloud server which is communicated with a plurality of industrial equipment, and comprises the following steps:
determining a device communication address of each industrial device and a communication clock delay value corresponding to the device communication address of each industrial device;
when the corresponding industrial equipment is determined to be the trigger delay equipment according to the communication clock delay value, issuing a time scheduling instruction to at least one trigger delay equipment so that the at least one trigger delay equipment performs time window operation based on the corresponding time scheduling instruction;
acquiring at least two groups of equipment operation time forms fed back by the at least one trigger delay equipment through the time window operation;
determining a business process track of an equipment cluster formed by the industrial equipment according to each equipment communication address;
according to each track node and each directional line segment in the service process track, combining the equipment operation time forms corresponding to the at least one trigger delay equipment to obtain at least one group of delay information;
and judging whether the at least one group of target delay information meets a set condition, and distributing an operation instruction for at least one trigger delay device according to an equipment operation time list corresponding to the at least one group of target delay information when the at least one group of target delay information meets the set condition.
Further, still include:
extracting log data from the running log of the at least one trigger delay device in real time; wherein the log data comprises an operating state parameter of the trigger delay device;
extracting a time sequence parameter for representing a delay operation index of the trigger delay equipment from the running state parameter;
detecting whether the time sequence parameters are changed or not according to the set time step; and when the change of the time sequence parameter is detected, continuously sending a corresponding operation instruction to the at least one trigger delay device.
Further, still include:
determining a current cumulative number of industrial devices in communication with the cloud server;
determining a target time step length corresponding to the current accumulated quantity according to a preset mapping list;
and modifying the set time step according to the target time step.
Further, the trigger delay device is determined by:
determining an addressing result between each communication clock delay value and a device communication address corresponding to the communication clock delay value; the addressing result is used for representing a reference delay value of the communication clock delay value relative to the corresponding equipment communication address;
and when the communication clock delay value is larger than the reference delay value in the addressing result, determining the industrial equipment corresponding to the communication clock delay value as the trigger delay equipment.
Further, determining a business process trajectory of a device cluster formed by the industrial devices according to each device communication address includes:
searching protocol link information corresponding to each equipment communication address in a preset communication protocol; determining a communication record list of the industrial equipment corresponding to each equipment communication address according to the protocol link information; wherein, the communication record list record has the corresponding equipment priority of the corresponding industrial equipment in each production line of the plurality of production lines, and a time interval exists between two adjacent production lines;
determining the equipment priority corresponding to each industrial equipment in each production line; extracting operation index information corresponding to each production line and distributing priority weight to each equipment priority in the corresponding production line according to the operation index information; the equipment priority is used for representing the importance degree of industrial equipment in a production line, the operation index information is used for representing the production demand information of the production line, and the priority weight is used for representing the time sequence of the equipment priority;
sequencing the industrial equipment corresponding to each production line according to the sequence of the priority weight corresponding to each production line from big to small to obtain a first industrial equipment sequencing sequence; determining a first sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
sequencing the industrial equipment corresponding to each production line according to the sequence of the equipment priority from large to small to obtain a second industrial equipment sequencing sequence; determining a second sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
judging whether the difference value between the first sorting position and the second sorting position of each industrial device in each production line is smaller than a set threshold value or not; if so, determining the industrial equipment as to-be-processed industrial equipment; determining the production line of which the number of the industrial equipment to be processed reaches the set number as a target production line; and for each target production line, performing nodularization on the industrial equipment in the target production line according to the first sequencing sequence in the target production line and generating a corresponding business process track.
Further, according to each track node and each directional line segment in the service process track, combining the device operation time forms corresponding to the at least one trigger delay device to obtain at least one group of delay information, including:
determining a first node type of a first track node and a second node type of a second track node which are adjacent in the service process track; the node type is used for representing the equipment type of the industrial equipment corresponding to the track node;
extracting parameter information of a directional line segment between the first track node and the second track node; the parameter information comprises line segment length information and line segment direction information of the directional line segment, the line segment length information is used for representing the data heterogeneous degree between first industrial equipment and second industrial equipment corresponding to a first track node and a second track node, the greater the numerical value in the line segment length information is, the greater the data heterogeneous degree between the first industrial equipment and the second industrial equipment is represented, and the line segment direction information is used for representing the relative distance between the first industrial equipment and the second industrial equipment;
determining a communication interference coefficient corresponding to the line segment length information based on the first node type and the second node type, and determining communication delay information between the first industrial equipment and the second industrial equipment according to the line segment length information;
counting the determined communication interference coefficient and communication delay information and forming a delay weight; the delay weight is used for representing the influence of the communication interference coefficient and the communication delay information on an equipment operation time list corresponding to the trigger delay equipment;
adjusting the equipment operation time list corresponding to the at least one trigger delay equipment by adopting the delay weight pair to obtain a target equipment operation time list corresponding to the at least one trigger delay equipment;
aiming at each target operation time form, determining a first combination coefficient of a first target operation time form and a second combination coefficient of a second target operation time form which are adjacent to the target operation time form, and combining the target operation time form and a first target operation time form and a second target operation time form corresponding to the target operation time form according to the first combination coefficient and the second combination coefficient to obtain a combined operation time form; and extracting time data in the combined operation time form based on the line segment direction information to form at least one group of delay information.
Further, the determining whether the at least one group of target delay information satisfies a set condition includes:
judging whether the total delay time corresponding to the at least one group of target delay information exceeds a set time;
if not, judging that the at least one group of target delay information meets the set condition;
and if so, judging that the at least one group of target delay information does not meet the set condition.
Providing a cloud server, the cloud server in communication with a plurality of industrial devices, the cloud server being specifically configured to:
determining a device communication address of each industrial device and a communication clock delay value corresponding to the device communication address of each industrial device;
when the corresponding industrial equipment is determined to be the trigger delay equipment according to the communication clock delay value, issuing a time scheduling instruction to at least one trigger delay equipment so that the at least one trigger delay equipment performs time window operation based on the corresponding time scheduling instruction;
acquiring at least two groups of equipment operation time forms fed back by the at least one trigger delay equipment through the time window operation;
determining a business process track of an equipment cluster formed by the industrial equipment according to each equipment communication address;
according to each track node and each directional line segment in the service process track, combining the equipment operation time forms corresponding to the at least one trigger delay equipment to obtain at least one group of delay information;
and judging whether the at least one group of target delay information meets a set condition, and distributing an operation instruction for at least one trigger delay device according to an equipment operation time list corresponding to the at least one group of target delay information when the at least one group of target delay information meets the set condition.
Provided is a cloud server including:
a processor, and
a memory and a network interface connected with the processor;
the network interface is connected with a nonvolatile memory in the cloud server;
when the processor is operated, the computer program is called from the nonvolatile memory through the network interface, and the computer program is operated through the memory so as to execute the method.
The readable storage medium is applied to a computer, and is burnt with a computer program, and the computer program realizes the method when running in the memory of the cloud server.
When the scheme is executed, the time scheduling instruction can be issued to the trigger delay equipment determined according to the communication clock delay value, so that the trigger delay equipment performs time window operation based on the corresponding time scheduling instruction. Therefore, distributed processing of time window operation is achieved, and long time consumption caused by centralized operation of the cloud server is avoided.
Further, an equipment operation time form fed back by the trigger delay equipment is obtained, and the equipment operation time form is combined to obtain delay information based on each track node and each directional line segment in the determined service process track. And finally, when the target delay information meets the set condition, distributing an operation instruction for the trigger delay equipment according to the equipment operation time list corresponding to the target delay information.
Therefore, the coordination of the plurality of industrial equipment in time can be determined based on the operation instruction, the obvious loss of the performance, the energy consumption and the use efficiency of the industrial equipment due to the waiting and asynchronous processes among the industrial equipment is avoided, the loss of the industrial equipment is controlled within a normal range, and the maximum value of the industrial Internet is exerted.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The inventor researches and analyzes application scenes of industrial internet such as manufacturing workshops and industrial parks, and finds that nowadays, in order to improve production and expand production scale, industrial internet technology often integrates communication of a plurality of industrial devices. However, in practical applications, there are often mismatches in time and incoordination between multiple industrial devices. For example, industrial equipment suffers performance loss during waiting or out of synchronization. In this case, the industrial equipment may suffer a large performance loss.
In order to solve the problems, the invention provides a distributed industrial internet device collaborative operation method and a cloud server, which can determine the time collaboration among a plurality of industrial devices through distributed computing, avoid the obvious loss of the performance, energy consumption and use efficiency of the industrial devices due to the waiting and asynchronous processes among the industrial devices, and control the loss of the industrial devices within a normal range, thereby exerting the maximum value of the industrial internet.
For the convenience of describing the whole scheme, please refer to fig. 1, which is a schematic diagram of a communication connection of the distributed-based industrial internet device cooperative operation system 100 according to the present invention. The system includes a cloud server 110 and industrial equipment 120, which are in communication with each other, wherein the industrial equipment 120 is distributed in different areas of a production line, and the system can be applied to automobile manufacturing, semiconductor manufacturing, intelligent electronic equipment manufacturing, medical equipment manufacturing, ship manufacturing, high-precision instrument manufacturing, and the like, and is not limited herein. It will be appreciated that the variety and type of industrial equipment 120 may also vary as the system described above is applied to different areas, and is not to be taken as an exhaustive list.
Referring to fig. 2, a flowchart of steps of the distributed industrial internet device cooperative operation method according to the present invention is shown, where the method is applied to the cloud server 110 in fig. 1, and may specifically include the contents described in the following steps S111 to S116.
And S111, determining the device communication address of each industrial device and the communication clock delay value corresponding to the device communication address of each industrial device.
In the present invention, the communication clock delay value is used to indicate whether the industrial device is a trigger delay device.
And S112, when the corresponding industrial equipment is determined to be the trigger delay equipment according to the communication clock delay value, issuing a time scheduling instruction to at least one trigger delay equipment so that the at least one trigger delay equipment performs time window operation based on the corresponding time scheduling instruction.
In the present invention, the time window operation includes at least one of a window waiting period operation, a window mode operation, and a window queue operation.
And S113, acquiring at least two groups of equipment operation time forms fed back by the at least one trigger delay equipment through the time window operation.
And S114, determining the service process track of the equipment cluster formed by the industrial equipment according to each equipment communication address.
In the invention, the service process track comprises track nodes corresponding to each industrial device, two adjacent track nodes are connected through a directional line segment, and the directional line segment is used for indicating the service sequence between the two adjacent track nodes.
And S115, merging the device operation time forms corresponding to the at least one trigger delay device according to each track node and each directional line segment in the service process track to obtain at least one group of delay information.
In the present invention, the delay information includes a system delay of the service process trajectory and a waiting delay of each industrial device.
And S116, judging whether the at least one group of target delay information meets a set condition, and distributing an operation instruction for the at least one trigger delay device according to an equipment operation time list corresponding to the at least one group of target delay information when the at least one group of target delay information meets the set condition.
In the invention, the job command includes time information for controlling at least one trigger delay device to operate.
By executing the above steps S111 to S116, the time scheduling instruction can be issued to the trigger delay device determined according to the communication clock delay value, so that the trigger delay device performs the time window calculation based on the corresponding time scheduling instruction. Therefore, distributed processing of time window operation is achieved, and long time consumption caused by centralized operation of the cloud server is avoided. Further, an equipment operation time form fed back by the trigger delay equipment is obtained, and the equipment operation time form is combined to obtain delay information based on each track node and each directional line segment in the determined service process track. And finally, when the target delay information meets the set condition, distributing an operation instruction for the trigger delay equipment according to the equipment operation time list corresponding to the target delay information.
Therefore, the coordination of the plurality of industrial equipment in time can be determined based on the operation instruction, the obvious loss of the performance, the energy consumption and the use efficiency of the industrial equipment due to the waiting and asynchronous processes among the industrial equipment is avoided, the loss of the industrial equipment is controlled within a normal range, and the maximum value of the industrial Internet is exerted.
The inventor finds that after the operation instruction is distributed to the trigger delay device, the whole device cluster can perform cooperative operation on a temporal aspect, so that the performance and the use efficiency of the industrial device are ensured. However, after the device cluster has been in operation for a period of time, a phenomenon of uncoordination may still occur. The reason for this is that some types of trigger delay devices are provided with self-adaptive timers, and the timers initialize the trigger delay devices according to a set period. As such, the trigger delay device may discard its corresponding job instruction after a period of time has elapsed. The cloud server has difficulty controlling the timer because the timer in the trigger delay device is a closed-loop timer.
In order to improve the above problem, it is necessary to monitor the trigger delay device in real time and continue to send the job instruction after the trigger delay device completes initialization. Therefore, on the basis of the above steps S111-S116, the method may further include the contents described in the following steps S117-S119.
S117, extracting log data from the running log of the at least one trigger delay device in real time; wherein the log data comprises an operational state parameter of the trigger delay device.
And S118, extracting a time sequence parameter for representing a delay operation index of the trigger delay equipment from the running state parameters.
S119, detecting whether the time sequence parameters are changed or not according to the set time step; and when the change of the time sequence parameter is detected, continuously sending a corresponding operation instruction to the at least one trigger delay device.
When the content described in the above steps S117 to S119 is executed, the trigger delay device can be monitored in real time, and it is determined that the trigger delay device completes initialization when a change in the timing parameter is detected, so that the job instruction continues to be sent after the trigger delay device completes initialization, so as to ensure that the trigger delay device can continue to execute the job instruction after initialization, thereby ensuring coordination of the whole device cluster in time.
On the basis, the inventor finds that when the number of the industrial devices is large, the initialization process of the trigger delay device needs to be detected in time, so that performance loss caused by untimely detection to the whole device cluster is avoided. To achieve the above, the method may further include the following steps S210 to S230 on the basis of the steps S117 to S119.
S210, determining the current accumulated quantity of the industrial equipment communicated with the cloud server.
And S220, determining a target time step corresponding to the current accumulated quantity according to a preset mapping list.
And S230, modifying the set time step according to the target time step.
It can be understood that through the above steps S210-S230, the target time step can be determined from the preset mapping list based on the real-time number of the industrial devices, so that the set time step is modified based on the target time step. Therefore, the initialization process of the trigger delay equipment can be detected in time, and performance loss caused by untimely detection to the whole equipment cluster is avoided.
In one example, in order to accurately and reliably determine the trigger delay device from the industrial device, in S112, it may be determined whether the industrial device is the trigger delay device through the following steps S1121 and S1122.
S1121, determining an addressing result between each communication clock delay value and the corresponding device communication address; and the addressing result is used for representing the reference delay value of the communication clock delay value relative to the corresponding equipment communication address.
And S1122, when the communication clock delay value is larger than the reference delay value in the addressing result, determining the industrial equipment corresponding to the communication clock delay value as the trigger delay equipment.
It is understood that based on the above steps S1121 and S1122, the trigger delay device can be accurately and reliably determined from the industrial device by the result of comparison between the reference delay value and the communication clock delay value in the addressing result.
The inventor finds in practical research and analysis that when determining the business process trajectory, the business process trajectory is often unfixed due to the priority change of the industrial equipment. In this case, if the business process trajectory is determined only for a certain temporary priority of the industrial device, the business process trajectory may be incomplete, and thus an error may occur during subsequent cooperative adjustment of the operation time for the industrial device. In order to improve the above problem, in S114, the business process trajectory of the device cluster formed by the industrial devices is determined according to each device communication address, which may specifically include the contents described in the following steps S1141 to S1145.
S1141, searching protocol link information corresponding to each equipment communication address in a preset communication protocol; determining a communication record list of the industrial equipment corresponding to each equipment communication address according to the protocol link information; the communication record list records comprise equipment priorities corresponding to the industrial equipment in each production line of the plurality of production lines, and a time interval exists between every two adjacent production lines.
S1142, determining the equipment priority corresponding to each industrial equipment in each production line; extracting operation index information corresponding to each production line and distributing priority weight to each equipment priority in the corresponding production line according to the operation index information; the equipment priority is used for representing the importance degree of industrial equipment in a production line, the operation index information is used for representing the production demand information of the production line, and the priority weight is used for representing the time sequence of the equipment priority.
S1143, sequencing the industrial equipment corresponding to each production line according to a time sequence according to the descending order of the priority weight corresponding to each production line to obtain a first industrial equipment sequencing sequence; and determining a first sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line.
S1144, sorting the industrial equipment corresponding to each production line according to the descending order of the equipment priority to obtain a second industrial equipment sorting sequence; and determining a second sorting position of each industrial device in the first industrial device sorting sequence corresponding to each production line.
S1145, judging whether the difference value between the first sorting position and the second sorting position of each industrial device in each production line is smaller than a set threshold value or not; if so, determining the industrial equipment as to-be-processed industrial equipment; determining the production line of which the number of the industrial equipment to be processed reaches the set number as a target production line; and for each target production line, performing nodularization on the industrial equipment in the target production line according to the first sequencing sequence in the target production line and generating a corresponding business process track.
It can be understood that, when the content described in the above steps S1141-S1145 is executed, the device priorities and the priority weights of the industrial devices in different production lines can be analyzed, so as to determine a target production line capable of performing the operation time coordination, and generate a corresponding service trajectory based on each target production line. Therefore, the business process track can be completely determined, and errors can be avoided when the subsequent cooperative adjustment of the operation time of the industrial equipment is carried out.
In the implementation, if the communication delay and communication interference between the industrial equipment are not considered in the process of determining the delay information, the delay information may be deviated, so that it is difficult to ensure that the industrial instructions are accurately issued subsequently. In order to improve the above problem, in S115, according to each track node and each directional line segment in the service process track, the device operation time tables corresponding to the at least one trigger delay device are combined to obtain at least one set of delay information, which may specifically include the contents described in steps S1151 to S1156.
S1151, determining a first node type of an adjacent first track node and a second node type of a second track node in the service process track; and the node type is used for representing the equipment type of the industrial equipment corresponding to the track node.
S1152, extracting parameter information of a directional line segment between the first track node and the second track node; the parameter information includes line segment length information and line segment direction information of the directional line segment, the line segment length information is used for representing data heterogeneous degree between first industrial equipment and second industrial equipment corresponding to a first track node and a second track node, the larger the numerical value in the line segment length information is, the larger the data heterogeneous degree between the first industrial equipment and the second industrial equipment is represented, and the line segment direction information is used for representing the relative distance between the first industrial equipment and the second industrial equipment.
S1153, determining a communication interference coefficient corresponding to the segment length information based on the first node type and the second node type, and determining communication delay information between the first industrial device and the second industrial device according to the segment length information.
S1154, counting the determined communication interference coefficient and communication delay information and forming a delay weight; the delay weight is used for representing the influence of the communication interference coefficient and the communication delay information on an equipment operation time list corresponding to the trigger delay equipment.
S1155, adjusting the device operation time list corresponding to the at least one trigger delay device by using the delay weight pair, and obtaining a target device operation time list corresponding to the at least one trigger delay device.
S1156, determining, for each target operation time form, a first combination coefficient of a first target operation time form and a second combination coefficient of a second target operation time form adjacent to the target operation time form, and combining the target operation time form and a first target operation time form and a second target operation time form corresponding to the target operation time form according to the first combination coefficient and the second combination coefficient to obtain a combined operation time form; and extracting time data in the combined operation time form based on the line segment direction information to form at least one group of delay information.
It can be understood that by performing the above-described steps S1151 to S1156, the communication delay and communication interference between the industrial devices can be considered, so that the delay information can be accurately determined, and the delay information is prevented from deviating. Thus, the accurate follow-up underground attack industry instruction can be ensured.
In an alternative embodiment, the determining whether the at least one set of target delay information satisfies the set condition in S116 may be implemented by the following sub-steps S1161 to S1163.
S1161, judging whether the total time delay corresponding to the at least one group of target time delay information exceeds the set time delay.
S1162, if not, judging that the at least one group of target delay information meets the set condition.
And S1163, if yes, judging that the at least one group of target delay information does not meet the set condition.
In the present embodiment, the set time period may be determined according to the loss of each industrial device due to device waiting.
When the method described in the above steps S1161 to S1163 is executed, it can be determined whether the target delay information meets the set condition from the device loss level, so as to ensure that the issued job instruction does not cause an excessively long waiting time of the industrial device.
In the implementation, each set of target delay information is obtained by combining a plurality of device job time tables, so that when distributing the job instruction, the "string line" of the job instruction between the trigger delay devices needs to be considered. In order to implement the foregoing solution, in S116, a job instruction is allocated to at least one trigger delay device according to the device job time form corresponding to the at least one set of target delay information, which may specifically include the contents described in the following steps (1) to (5).
(1) Determining a device identification id of a trigger delay device corresponding to each device operation time form corresponding to the at least one group of target delay information; wherein the device identification id of different trigger delay devices is different.
(2) Generating a corresponding operation instruction according to each equipment identification id, determining a check code corresponding to each equipment identification id from a preset relation list, and performing check calculation on the operation instruction corresponding to each equipment identification id by adopting the check code to obtain a first check result; and packaging the first check result, the equipment identification id and the operation instruction and issuing the first check result, the equipment identification id and the operation instruction to corresponding trigger delay equipment.
(3) Detecting whether a feedback instruction sent by target trigger delay equipment is received; when a feedback instruction sent by the target trigger delay equipment is received, a check code corresponding to the target trigger delay equipment is adopted to carry out check calculation on a job instruction corresponding to the target trigger delay equipment so as to obtain a second check result; and packaging the second check result, the device identification id corresponding to the target trigger delay device and the operation instruction and issuing the packaged result to the target trigger delay device.
In the above steps (1) to (3), when the target trigger delay device receives the first check result, the device identifier id, and the operation instruction, determining whether the device identifier id is consistent with a pre-stored device identifier id; if the equipment identification id is not consistent with the prestored equipment identification id, sending the feedback instruction to the cloud server; if the equipment identification id is consistent with the pre-stored equipment identification id, determining a target check code according to the pre-stored equipment identification id, and performing check calculation on the received operation instruction by adopting the target check code to obtain a third check result; executing the received job instruction when the third check result is consistent with the first check result; and when the third verification result is inconsistent with the first verification result, sending the feedback instruction to the cloud server.
It can be understood that, through the above steps (1) to (3), the verification calculation of the job instruction can be performed on the cloud server side and the target trigger delay device side, and the comparison of the verification result of the job instruction can be performed on the target trigger delay device side, so that the accuracy of the job instruction received by the target trigger delay device is ensured, and the "line crossing" of the job instruction between the trigger delay devices is avoided.
On the basis of the above, with reference to fig. 3, a functional block diagram of the distributed industrial internet device cooperative work apparatus 300 is provided, and the detailed description of the apparatus is as follows.
A1. A distributed industrial Internet equipment cooperative operation device is applied to a cloud server which is communicated with a plurality of industrial equipment, and the device comprises:
an address determination module 310, configured to determine a device communication address of each industrial device and a communication clock delay value corresponding to the device communication address of each industrial device; wherein the communication clock delay value is used to indicate whether the industrial device is a trigger delay device;
the window operation module 320 is configured to issue a time scheduling instruction to at least one trigger delay device when it is determined that the corresponding industrial device is the trigger delay device according to the communication clock delay value, so that the at least one trigger delay device performs time window operation based on the corresponding time scheduling instruction; wherein the time window operation comprises at least one of a window waiting period operation, a window mode operation and a window queue operation;
a form obtaining module 330, configured to obtain at least two sets of device operation time forms fed back by the at least one trigger delay device through the time window operation;
a track determining module 340, configured to determine, according to each device communication address, a service process track of a device cluster formed by the industrial devices; the service process track comprises track nodes corresponding to each industrial device, two adjacent track nodes are connected through a directional line segment, and the directional line segment is used for indicating the service sequence between the two adjacent track nodes;
a delay determining module 350, configured to combine the device operation time lists corresponding to the at least one trigger delay device according to each track node and each directional line segment in the service process track, so as to obtain at least one set of delay information; the delay information comprises system delay of the service process track and waiting delay of each industrial device;
the instruction distribution module 360 is configured to determine whether the at least one group of target delay information meets a set condition, and when the at least one group of target delay information meets the set condition, distribute an operation instruction for the at least one trigger delay device according to an equipment operation time list corresponding to the at least one group of target delay information; the operation instruction comprises time information for controlling at least one trigger delay device to act.
A2. The apparatus of a1, further comprising a parameter detection module 370 configured to:
extracting log data from the running log of the at least one trigger delay device in real time; wherein the log data comprises an operating state parameter of the trigger delay device;
extracting a time sequence parameter for representing a delay operation index of the trigger delay equipment from the running state parameter;
detecting whether the time sequence parameters are changed or not according to the set time step; and when the change of the time sequence parameter is detected, continuously sending a corresponding operation instruction to the at least one trigger delay device.
A3. The apparatus of a2, further comprising a step size modification module 380 for:
determining a current cumulative number of industrial devices in communication with the cloud server;
determining a target time step length corresponding to the current accumulated quantity according to a preset mapping list;
and modifying the set time step according to the target time step.
A4. The apparatus of any one of a1-A3, the window operations module 320, further configured to:
determining an addressing result between each communication clock delay value and a device communication address corresponding to the communication clock delay value; the addressing result is used for representing a reference delay value of the communication clock delay value relative to the corresponding equipment communication address;
and when the communication clock delay value is larger than the reference delay value in the addressing result, determining the industrial equipment corresponding to the communication clock delay value as the trigger delay equipment.
A5. The apparatus of a1, the trajectory determination module 340 to:
searching protocol link information corresponding to each equipment communication address in a preset communication protocol; determining a communication record list of the industrial equipment corresponding to each equipment communication address according to the protocol link information; wherein, the communication record list record has the corresponding equipment priority of the corresponding industrial equipment in each production line of the plurality of production lines, and a time interval exists between two adjacent production lines;
determining the equipment priority corresponding to each industrial equipment in each production line; extracting operation index information corresponding to each production line and distributing priority weight to each equipment priority in the corresponding production line according to the operation index information; the equipment priority is used for representing the importance degree of industrial equipment in a production line, the operation index information is used for representing the production demand information of the production line, and the priority weight is used for representing the time sequence of the equipment priority;
sequencing the industrial equipment corresponding to each production line according to the sequence of the priority weight corresponding to each production line from big to small to obtain a first industrial equipment sequencing sequence; determining a first sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
sequencing the industrial equipment corresponding to each production line according to the sequence of the equipment priority from large to small to obtain a second industrial equipment sequencing sequence; determining a second sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
judging whether the difference value between the first sorting position and the second sorting position of each industrial device in each production line is smaller than a set threshold value or not; if so, determining the industrial equipment as to-be-processed industrial equipment; determining the production line of which the number of the industrial equipment to be processed reaches the set number as a target production line; and for each target production line, performing nodularization on the industrial equipment in the target production line according to the first sequencing sequence in the target production line and generating a corresponding business process track.
A6. The apparatus of a1, the delay determining module 350, configured to:
determining a first node type of a first track node and a second node type of a second track node which are adjacent in the service process track; the node type is used for representing the equipment type of the industrial equipment corresponding to the track node;
extracting parameter information of a directional line segment between the first track node and the second track node; the parameter information comprises line segment length information and line segment direction information of the directional line segment, the line segment length information is used for representing the data heterogeneous degree between first industrial equipment and second industrial equipment corresponding to a first track node and a second track node, the greater the numerical value in the line segment length information is, the greater the data heterogeneous degree between the first industrial equipment and the second industrial equipment is represented, and the line segment direction information is used for representing the relative distance between the first industrial equipment and the second industrial equipment;
determining a communication interference coefficient corresponding to the line segment length information based on the first node type and the second node type, and determining communication delay information between the first industrial equipment and the second industrial equipment according to the line segment length information;
counting the determined communication interference coefficient and communication delay information and forming a delay weight; the delay weight is used for representing the influence of the communication interference coefficient and the communication delay information on an equipment operation time list corresponding to the trigger delay equipment;
adjusting the equipment operation time list corresponding to the at least one trigger delay equipment by adopting the delay weight pair to obtain a target equipment operation time list corresponding to the at least one trigger delay equipment;
aiming at each target operation time form, determining a first combination coefficient of a first target operation time form and a second combination coefficient of a second target operation time form which are adjacent to the target operation time form, and combining the target operation time form and a first target operation time form and a second target operation time form corresponding to the target operation time form according to the first combination coefficient and the second combination coefficient to obtain a combined operation time form; and extracting time data in the combined operation time form based on the line segment direction information to form at least one group of delay information.
A7. The apparatus of a1, the instruction assignment module 360 to:
judging whether the total delay time corresponding to the at least one group of target delay information exceeds a set time;
if not, judging that the at least one group of target delay information meets the set condition;
and if so, judging that the at least one group of target delay information does not meet the set condition.
A8. The apparatus of a1, the instruction assignment module 360 to:
determining a device identification id of a trigger delay device corresponding to each device operation time form corresponding to the at least one group of target delay information; wherein, the device identifiers id of different trigger delay devices are different;
generating a corresponding operation instruction according to each equipment identification id, determining a check code corresponding to each equipment identification id from a preset relation list, and performing check calculation on the operation instruction corresponding to each equipment identification id by adopting the check code to obtain a first check result; packaging the first check result, the equipment identification id and the operation instruction and issuing the first check result, the equipment identification id and the operation instruction to corresponding trigger delay equipment;
detecting whether a feedback instruction sent by target trigger delay equipment is received; when a feedback instruction sent by the target trigger delay equipment is received, a check code corresponding to the target trigger delay equipment is adopted to carry out check calculation on a job instruction corresponding to the target trigger delay equipment so as to obtain a second check result; and packaging the second check result, the device identification id corresponding to the target trigger delay device and the operation instruction and issuing the packaged result to the target trigger delay device.
For the description of the above functional modules, refer to the description of the steps shown in fig. 2, and no further description is made here.
On the basis, the distributed industrial internet device cooperative operation system is further provided, and please refer to the following contents for the functional description of the system.
B1. A distributed industrial Internet equipment cooperative operation system comprises a cloud server and a plurality of industrial equipment communicated with the cloud server;
the cloud server is configured to: determining a device communication address of each industrial device and a communication clock delay value corresponding to the device communication address of each industrial device; when the corresponding industrial equipment is determined to be the trigger delay equipment according to the communication clock delay value, issuing a time scheduling instruction to at least one trigger delay equipment;
the at least one trigger delay device is to: performing time window operation based on the corresponding time scheduling instruction, and feeding back at least two groups of equipment operation time forms to the cloud server;
the cloud server is configured to: acquiring at least two groups of equipment operation time forms fed back by the at least one trigger delay equipment through the time window operation; determining a business process track of an equipment cluster formed by the industrial equipment according to each equipment communication address; according to each track node and each directional line segment in the service process track, combining the equipment operation time forms corresponding to the at least one trigger delay equipment to obtain at least one group of delay information; and judging whether the at least one group of target delay information meets a set condition, and distributing an operation instruction for at least one trigger delay device according to an equipment operation time list corresponding to the at least one group of target delay information when the at least one group of target delay information meets the set condition.
B2. The system of B1, the cloud server further configured to:
extracting log data from the running log of the at least one trigger delay device in real time; wherein the log data comprises an operating state parameter of the trigger delay device;
extracting a time sequence parameter for representing a delay operation index of the trigger delay equipment from the running state parameter;
detecting whether the time sequence parameters are changed or not according to the set time step; and when the change of the time sequence parameter is detected, continuously sending a corresponding operation instruction to the at least one trigger delay device.
B3. The system of B2, the cloud server further configured to:
determining a current cumulative number of industrial devices in communication with the cloud server;
determining a target time step length corresponding to the current accumulated quantity according to a preset mapping list;
and modifying the set time step according to the target time step.
B4. The system of any one of B1-B3, the cloud server to determine a trigger delay device by:
determining an addressing result between each communication clock delay value and a device communication address corresponding to the communication clock delay value; the addressing result is used for representing a reference delay value of the communication clock delay value relative to the corresponding equipment communication address;
and when the communication clock delay value is larger than the reference delay value in the addressing result, determining the industrial equipment corresponding to the communication clock delay value as the trigger delay equipment.
B5. In the system of B1, the cloud server is specifically configured to:
searching protocol link information corresponding to each equipment communication address in a preset communication protocol; determining a communication record list of the industrial equipment corresponding to each equipment communication address according to the protocol link information; wherein, the communication record list record has the corresponding equipment priority of the corresponding industrial equipment in each production line of the plurality of production lines, and a time interval exists between two adjacent production lines;
determining the equipment priority corresponding to each industrial equipment in each production line; extracting operation index information corresponding to each production line and distributing priority weight to each equipment priority in the corresponding production line according to the operation index information; the equipment priority is used for representing the importance degree of industrial equipment in a production line, the operation index information is used for representing the production demand information of the production line, and the priority weight is used for representing the time sequence of the equipment priority;
sequencing the industrial equipment corresponding to each production line according to the sequence of the priority weight corresponding to each production line from big to small to obtain a first industrial equipment sequencing sequence; determining a first sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
sequencing the industrial equipment corresponding to each production line according to the sequence of the equipment priority from large to small to obtain a second industrial equipment sequencing sequence; determining a second sorting position of each industrial device in a first industrial device sorting sequence corresponding to each production line;
judging whether the difference value between the first sorting position and the second sorting position of each industrial device in each production line is smaller than a set threshold value or not; if so, determining the industrial equipment as to-be-processed industrial equipment; determining the production line of which the number of the industrial equipment to be processed reaches the set number as a target production line; and for each target production line, performing nodularization on the industrial equipment in the target production line according to the first sequencing sequence in the target production line and generating a corresponding business process track.
B6. In the system of B1, the cloud server is specifically configured to:
determining a first node type of a first track node and a second node type of a second track node which are adjacent in the service process track; the node type is used for representing the equipment type of the industrial equipment corresponding to the track node;
extracting parameter information of a directional line segment between the first track node and the second track node; the parameter information comprises line segment length information and line segment direction information of the directional line segment, the line segment length information is used for representing the data heterogeneous degree between first industrial equipment and second industrial equipment corresponding to a first track node and a second track node, the greater the numerical value in the line segment length information is, the greater the data heterogeneous degree between the first industrial equipment and the second industrial equipment is represented, and the line segment direction information is used for representing the relative distance between the first industrial equipment and the second industrial equipment;
determining a communication interference coefficient corresponding to the line segment length information based on the first node type and the second node type, and determining communication delay information between the first industrial equipment and the second industrial equipment according to the line segment length information;
counting the determined communication interference coefficient and communication delay information and forming a delay weight; the delay weight is used for representing the influence of the communication interference coefficient and the communication delay information on an equipment operation time list corresponding to the trigger delay equipment;
adjusting the equipment operation time list corresponding to the at least one trigger delay equipment by adopting the delay weight pair to obtain a target equipment operation time list corresponding to the at least one trigger delay equipment;
aiming at each target operation time form, determining a first combination coefficient of a first target operation time form and a second combination coefficient of a second target operation time form which are adjacent to the target operation time form, and combining the target operation time form and a first target operation time form and a second target operation time form corresponding to the target operation time form according to the first combination coefficient and the second combination coefficient to obtain a combined operation time form; and extracting time data in the combined operation time form based on the line segment direction information to form at least one group of delay information.
B7. In the system of B1, the cloud server is specifically configured to:
judging whether the total delay time corresponding to the at least one group of target delay information exceeds a set time;
if not, judging that the at least one group of target delay information meets the set condition;
and if so, judging that the at least one group of target delay information does not meet the set condition.
In another embodiment, please refer to fig. 4 in combination, which provides a cloud server 110, including:
a processor 112, and
a memory 114 and a network interface 116 coupled to the processor 112;
the network interface 116 is connected with a non-volatile memory 118 in the cloud server 110;
the processor 112, when running, retrieves a computer program from the non-volatile storage 118 via the network interface 116 and runs the computer program via the memory 114 to perform the method described above.
In addition, a readable storage medium applied to a computer is provided, and the readable storage medium is burned with a computer program, and the computer program realizes the method when running in the memory 114 of the cloud server 110.
In summary, according to the technical solution provided by the embodiment of the present invention, a time scheduling instruction can be issued to the trigger delay device determined according to the communication clock delay value, so that the trigger delay device performs time window operation based on the corresponding time scheduling instruction. Therefore, distributed processing of time window operation is achieved, and long time consumption caused by centralized operation of the cloud server is avoided. Further, an equipment operation time form fed back by the trigger delay equipment is obtained, and the equipment operation time form is combined to obtain delay information based on each track node and each directional line segment in the determined service process track. And finally, when the target delay information meets the set condition, distributing an operation instruction for the trigger delay equipment according to the equipment operation time list corresponding to the target delay information.
Therefore, the coordination of the plurality of industrial equipment in time can be determined based on the operation instruction, the obvious loss of the performance, the energy consumption and the use efficiency of the industrial equipment due to the waiting and asynchronous processes among the industrial equipment is avoided, the loss of the industrial equipment is controlled within a normal range, and the maximum value of the industrial Internet is exerted.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.