Multi-equipment linkage triggering method and device, equipment, storage medium and product

By introducing linkage model and OPC-UA protocol in the OPC-UA server, the problem of low efficiency of multi-device collaborative work in the existing technology is solved, efficient interoperability and coordination between devices is achieved, and the intelligence of industrial automation systems is improved. level.

CN119484580AActive Publication Date: 2025-02-18PENG CHENG LAB
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411644474.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-18
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

The existing OPC-UA basic specifications cannot achieve efficient multi-device collaborative work, especially in complex application scenarios.

Method used

Introduce a linkage model in the OPC-UA server, establish a communication connection with the device through the OPC-UA protocol, determine the linkage rules between the devices, and trigger linkage events according to the rules.

Benefits of technology

Direct interaction and collaboration between multiple device nodes is realized, interoperability between devices is enhanced, dependence on external devices is reduced, and the intelligence level and collaborative work efficiency of industrial automation systems are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484580A_ABST
    Figure CN119484580A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-device linkage triggering method and device, a device, a storage medium and a product, and relates to the technical field of industrial internet, and the method comprises the steps that an OPC-UA server establishes communication connection with a first device and a second device; determining a linkage rule between the two pieces of equipment through the linkage model; and triggering a linkage event for the two devices according to the linkage rule. According to the method, the OPC-UA basic specification is improved, the linkage model is integrated in the server, and the first equipment and the second equipment are connected with the server, so that the intelligent level of an industrial automation system can be effectively improved, and the interoperability between the equipment is enhanced; according to the technical scheme, the linkage rule between the devices is determined through the linkage model, and then the linkage event between the devices is triggered according to the linkage rule, so that direct interaction and cooperation between the nodes of the devices are realized, dependence on external devices is reduced, and a more efficient and flexible multi-device cooperative working scheme is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial Internet technology, and in particular to a multi-device linkage triggering method, apparatus, equipment, storage medium and product. Background Art

[0002] With the rapid development of the industrial Internet, the interoperability and real-time performance of industrial automatic control systems have become increasingly important in the entire production process. At present, industrial production line automation equipment is controlled and communicated through a variety of industrial bus protocols and real-time Ethernet protocols. Although most of these industrial bus protocols and real-time Ethernet protocols are standardized by IEC61158 / 61784, due to the lack of uniformity in interface standards, there are certain limitations in the docking between systems, and the devices cannot interoperate with each other. The Open Platform Communications Unified Architecture (OPC-UA) is a set of secure, reliable, and manufacturer- and platform-independent industrial communication data interaction standards. It defines basic common information models, including real-time data access, alarm monitoring, event processing, and historical data access. At the same time, it clearly defines the interfaces between clients and servers and between servers, and supports field-level communication between devices from different manufacturers based on the OPC-UA FX (field-level data interaction) specification.

[0003] The existing OPC-UA basic specifications mainly focus on the modeling of the properties, methods and events of the node objects themselves, but do not mention the interaction and collaborative processing between nodes. The extended field-level data interaction specifications mainly describe the data exchange between node objects between controllers. The data processing after the interaction depends on the private protocol inside the device and lacks a collaborative workflow, making it impossible to achieve effective collaborative work of multiple devices in complex application scenarios. Summary of the invention

[0004] The main purpose of this application is to provide a multi-device linkage triggering method, apparatus, equipment, storage medium and product, aiming to solve the technical problem that the existing OPC-UA basic specification cannot achieve efficient multi-device collaborative work.

[0005] To achieve the above object, the present application proposes a multi-device linkage triggering method, which is applied to an OPC-UA server, wherein the OPC-UA server includes a linkage model, and the method includes: Establishing communication connections with the first device and the second device respectively through the OPC-UA protocol; Determine a linkage rule between the first device and the second device through the linkage model; A linkage event is triggered on the first device and / or the second device according to the linkage rule.

[0006] In one embodiment, the OPC-UA-FX field layer model of the OPC-UA server includes a linkage model, and the linkage model includes a linkage trigger type and a linkage mode enumeration type. The linkage trigger type inherits from the basic object type of OPC-UA, and the linkage mode enumeration type inherits from the basic data type of OPC-UA.

[0007] In one embodiment, the attributes in the linkage trigger type include subscription node attributes, linkage mode attributes, period attributes, remote server attributes, and event attributes; The step of determining the linkage rule between the first device and the second device through the linkage model includes: Determine the first device as a data source node through the subscription node attribute, and monitor the data in the first device; When it is monitored that the data in the first device meets a preset condition, determining the execution mode of the linkage according to the linkage mode attribute and the linkage mode enumeration type; Determine the time interval for triggering the linkage event according to the periodic attribute; According to the remote server attribute, the OPC-UA server address where the second device is located is used as the cross-server linkage address corresponding to the first device; An action to be executed when a linkage event is triggered is determined according to the event attribute, and a linkage rule between the first device and the second device is obtained.

[0008] In one embodiment, the linkage mode enumeration type includes a continuous time comparison mode type, a number comparison mode type, and an extreme value comparison mode type; The step of determining the linkage execution mode according to the linkage mode attribute and the linkage mode enumeration type when the data in the first device meets the preset condition comprises: When the linkage mode attribute is the continuous time comparison mode type, the linkage execution mode is to continuously monitor the data in the first device within a preset time period; When the linkage mode attribute is the number comparison mode type, the linkage execution mode is to monitor the number of occurrences of a preset event in the data in the first device; When the linkage mode attribute is the extreme value comparison mode type, the linkage execution mode is to perform numerical monitoring on the data in the first device.

[0009] In one embodiment, before the step of triggering a linkage event on the first device and / or the second device according to the linkage rule, the step further includes: The linkage trigger type and the linkage mode enumeration type are respectively instantiated through the node objects of the first device and the second device to obtain a first device event object and a second device event object.

[0010] In one embodiment, the step of triggering a linkage event on the first device and / or the second device according to the linkage rule includes: When the linkage mode attribute is the continuous time comparison mode type and a preset condition is satisfied within a preset time period, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object; When the linkage mode attribute is the number comparison mode type, and when it is detected that the number of occurrences of the preset event reaches a preset number threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object; When the linkage mode attribute is the extreme value comparison mode type, and when it is monitored that the data in the first device is greater than the maximum threshold or the data in the first device is less than the minimum threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object.

[0011] In addition, to achieve the above purpose, the present application also proposes a multi-device linkage triggering device, the multi-device linkage triggering device comprising: A communication connection establishing module, used to establish communication connections with the first device and the second device respectively through the OPC-UA protocol; A linkage rule determination module, configured to determine a linkage rule between the first device and the second device through the linkage model; A linkage event triggering module is used to trigger a linkage event to the first device and / or the second device according to the linkage rule.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-device linkage trigger device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the multi-device linkage trigger method described above.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the multi-device linkage triggering method described above are implemented.

[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the multi-device linkage triggering method described above are implemented.

[0015] The present application provides a multi-device linkage triggering method, wherein an OPC-UA server establishes a communication connection with a first device and a second device respectively through an OPC-UA protocol; determines the linkage rules between the first device and the second device through a linkage model; and triggers a linkage event for the first device and / or the second device according to the linkage rules. The present application improves the OPC-UA basic specification, integrates a linkage model inside the OPC-UA server, and connects the first device and the second device to the server, which can effectively improve the intelligence level of the industrial automation system and enhance the interoperability between devices; determines the linkage rules between devices through a linkage model, and then triggers linkage events between multiple devices according to the linkage rules, thereby realizing direct interaction and collaboration between multiple device nodes, reducing dependence on external devices, and thus realizing a more efficient and flexible multi-device collaborative work solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 A flowchart of the first embodiment of the multi-device linkage triggering method of the present application is provided; Figure 2 This is the overall block diagram of the multi-device linkage triggering method of this application; Figure 3 A flowchart of the second embodiment of the multi-device linkage triggering method of the present application is provided; Figure 4 The OPC-UA server architecture diagram for the integrated linkage model of this application; Figure 5This is a schematic diagram of the structure of the OPC-UA linkage model in this application; Figure 6 A flowchart of the third embodiment of the multi-device linkage triggering method of the present application is provided; Figure 7 This is the OPC-UA address space data structure diagram for the linkage model supported by this application; Figure 8 This is a schematic diagram of a multi-device interaction scenario of the multi-device linkage triggering method of this application; Fig. 9 This is an example diagram of fan control linkage of the multi-device linkage triggering method of this application; Fig.10 This is a schematic diagram of the module structure of the multi-device linkage triggering device according to an embodiment of the present application; Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the multi-device linkage triggering method in the embodiment of the present application.

[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The main solution of the embodiment of the present application is: the method is applied to an OPC-UA server, the OPC-UA server includes a linkage model, and the method includes: establishing a communication connection with a first device and a second device respectively through the OPC-UA protocol; determining a linkage rule between the first device and the second device through the linkage model; triggering a linkage event for the first device and / or the second device according to the linkage rule.

[0023] Since the existing OPC-UA basic specifications mainly focus on the modeling of the properties, methods and events of the node objects themselves, and do not mention the interaction and collaborative processing between nodes, the extended field-level data interaction specifications mainly describe the data exchange between node objects between controllers. The data processing after the interaction depends on the private protocol inside the device and lacks a collaborative workflow, making it impossible to achieve effective collaborative work of multiple devices in complex application scenarios.

[0024] The present application provides a solution, in which an OPC-UA server establishes a communication connection with a first device and a second device respectively through the OPC-UA protocol; determines the linkage rules between the first device and the second device through a linkage model; and triggers a linkage event for the first device and / or the second device according to the linkage rules. The present application improves the OPC-UA basic specification, integrates a linkage model inside the OPC-UA server, and connects the first device and the second device to the server, which can effectively improve the intelligence level of the industrial automation system and enhance the interoperability between devices; determines the linkage rules between devices through a linkage model, and then triggers linkage events between multiple devices according to the linkage rules, thereby achieving direct interaction and collaboration between multiple device nodes, reducing dependence on external devices, and thus achieving a more efficient and flexible multi-device collaborative work solution.

[0025] It should be noted that the execution subject of the method of this embodiment can be a computing service device with multi-device linkage triggering, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc.; it can also be a multi-device linkage triggering device with the same or similar functions. This embodiment and the following embodiments will be described by taking a multi-device linkage triggering device as an example.

[0026] Based on this, the embodiment of the present application provides a multi-device linkage triggering method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the multi-device linkage triggering method of the present application.

[0027] In this embodiment, the method is applied to an OPC-UA server, the OPC-UA server includes a linkage model, and the multi-device linkage triggering method includes steps S10 to S30: Step S10: establishing communication connections with the first device and the second device respectively through the OPC-UA protocol.

[0028] It should be noted that in order to achieve efficient multi-device collaboration, this embodiment improves the OPC-UA basic specification, adds a linkage model related to industrial automation, and supports direct interaction and collaborative processing between nodes. Figure 2 , Figure 2This is the overall block diagram of the multi-device linkage triggering method of this application. The system includes multiple devices and at least one OPC-UA server, and a linkage model is integrated in each OPC-UA server. Among them, multiple devices (taking two as an example, the first device and the second device) are connected to the OPC-UA server through the OPC-UA standard, and the server acts as a middleware between devices to receive and process messages and commands sent by the devices. SCADA is a supervisory control and data acquisition system, which is a computer-based control system used to collect, analyze and process real-time data from industrial processes.

[0029] It is understandable that the devices establish communication through the OPC-UA protocol for the interaction of linkage event messages. Data transmission and processing are implemented using the OPEN62541 open source program. On the same OPC-UA server, the communication between device nodes adopts the OPC-UA client / server (C / S) mode, while the communication between device nodes across servers adopts the OPC-UA publish / subscribe (PubSub) mode.

[0030] Step S20: determining a linkage rule between the first device and the second device through the linkage model.

[0031] It is understandable that this embodiment integrates a linkage model in the OPC-UA server, and the linkage model is used to determine the linkage relationship between multiple devices (for example, the first device and the second device) and trigger a linkage event. An example of the linkage rule is that when the temperature data of the first device reaches 40 degrees, the second device needs to be linked to turn on the fan for cooling, or when the temperature data of the first device is continuously lower than 38 degrees, the second device needs to be linked to turn off the fan, etc., which is not limited here.

[0032] Step S30: triggering a linkage event on the first device and / or the second device according to the linkage rule.

[0033] It should be understood that after the linkage rules between the first device and the second device are set through the linkage model, the linkage event can be triggered for the first device and / or the second device according to the linkage rules. Taking the above-mentioned temperature detection as an example, when the temperature data of the first device reaches 40 degrees, the trigger event can be that the first device sends a high temperature warning message, or it can also be that the second device turns on the fan.

[0034] This embodiment provides a multi-device linkage triggering method, in which the OPC-UA server establishes a communication connection with the first device and the second device respectively through the OPC-UA protocol; determines the linkage rules between the first device and the second device through the linkage model; and triggers a linkage event for the first device and / or the second device according to the linkage rules. This application improves the OPC-UA basic specification, integrates the linkage model inside the OPC-UA server, and connects the first device and the second device to the server, which can effectively improve the intelligence level of the industrial automation system and enhance the interoperability between devices; determines the linkage rules between devices through the linkage model, and then triggers linkage events between multiple devices according to the linkage rules, thereby realizing direct interaction and collaboration between multiple device nodes, reducing dependence on external devices, and thus realizing a more efficient and flexible multi-device collaborative work solution.

[0035] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 The OPC-UA-FX field layer model of the OPC-UA server includes a linkage model, and the linkage model includes a linkage trigger type and a linkage mode enumeration type. The linkage trigger type is inherited from the basic object type of OPC-UA, and the linkage mode enumeration type is inherited from the basic data type of OPC-UA.

[0036] It is worth mentioning that you can refer to Figure 4 Describe the integrated OPC-UA server architecture. Figure 4 The OPC-UA server architecture diagram for this application integrates the linkage model. A linkage model can be added to the OPC-UA-FX field layer model of the OPC-UA server to identify linkage rules between devices and trigger linkage events. OPC-UA servers can also send server-to-server linkage messages based on the OPC-UA PubSub mode to achieve automated linkage between devices across servers.

[0037] It should be noted that the linkage model has newly added linkage trigger types and linkage mode enumeration types. The linkage trigger type inherits from the basic object type BaseObjectType of OPC-UA, which is used to define the specific implementation of the linkage logic and realize the refined control of the linkage through multiple attributes. The linkage mode enumeration type inherits from the basic data type BaseDataType of OPC-UA, which is used to describe the mode selection of different linkage operations. BaseObjectType and BaseDataType are the basic types in OPC-UA, which are the common base classes of object type and data type respectively. The newly defined extension classes all inherit from these basic classes to ensure the compatibility and standardization of the model.

[0038] In one possible implementation, please refer to Figure 5 , Figure 5 Schematic diagram of the structure of the OPC-UA linkage model in this application, the attributes in the linkage trigger type include subscription node attributes, linkage mode attributes, periodic attributes, remote server attributes and event attributes; step S20 may include steps S201~S205: Step S201: determine the first device as a data source node through the subscription node attribute, and monitor the data in the first device.

[0039] It is understandable that the subscription node is used to define the data source node and is the input of the linkage logic. When the data on the subscription node changes or meets specific conditions, a linkage operation will be triggered. It can be a node on the same device or a node on a different device, thereby realizing cross-device linkage control. For example, the first device can be determined as the data source node, and the data in the first device can be monitored.

[0040] Step S202: when it is monitored that the data in the first device meets a preset condition, determining the linkage execution mode according to the linkage mode attribute and the linkage mode enumeration type.

[0041] It can be understood that the linkage mode defines the execution mode of the linkage. When the data in the first device of the subscription node is monitored to meet the preset condition (which may be a change in the data), it is defined through the execution mode and the linkage mode enumeration type, so that different linkage schemes can be flexibly configured and switched. Among them, the specific value of the linkage mode can be one of the linkage mode enumeration types.

[0042] In a feasible implementation manner, the linkage mode enumeration type includes a continuous time comparison mode type, a number comparison mode type and an extreme value comparison mode type; step S202 may include steps S2021 to S2023: Step S2021, when the linkage mode attribute is the continuous time comparison mode type, the linkage execution mode is to continuously monitor the data in the first device within a preset time period.

[0043] It should be noted that the linkage mode enumeration type may include a continuous time comparison mode type, in which the linkage execution mode is to perform a temporal continuity check on the monitored variable, for example, to monitor whether the temperature data in the first device changes or exceeds a threshold within one minute.

[0044] Step S2022: when the linkage mode attribute is the number comparison mode type, the linkage execution mode is to monitor the number of occurrences of a preset event in the data in the first device.

[0045] It is understandable that the linkage mode enumeration type can also include a frequency comparison mode type, in which the linkage execution mode is to perform a cumulative comparison of the number of occurrences of a specific event, and when the preset number threshold is reached, the linkage is triggered. This mode is suitable for linkage scenarios that require event counting. For example, counting whether the number of times exceeding 40 degrees exceeds 3 times, etc.

[0046] Step S2023, when the linkage mode attribute is the extreme value comparison mode type, the linkage execution mode is to perform numerical monitoring on the data in the first device.

[0047] It should be understood that extreme value comparison refers to the scenario of comparison with the maximum or minimum value. The linkage mode enumeration type can also include the extreme value comparison mode type. In this mode, the linkage execution mode is to compare the extreme value (maximum or minimum value) of the monitoring data, and trigger the linkage when it reaches or exceeds a specific threshold, which is suitable for extreme monitoring and safety threshold triggering.

[0048] Step S203: determining a time interval for triggering a linkage event according to the periodic attribute.

[0049] It is understandable that the period attribute is used to set the time interval of the trigger, and is used to ensure that the linkage task is executed according to the predetermined time period. If it is a continuous time comparison mode, the period is the sliding window time. Therefore, the time interval of the linkage event triggering can be determined according to the period attribute.

[0050] Step S204: according to the remote server attribute, the OPC-UA server address where the second device is located is used as the cross-server linkage address corresponding to the first device.

[0051] It should be noted that the remote server Uri attribute is used to support cross-server linkage operations and is suitable for scenarios where linkage control is required between different OPC-UA servers to achieve cross-network and cross-system device linkage. Considering the multi-device linkage interaction in this application, multiple devices can be connected to the same OPC-UA server or in different OPC-UA servers. Therefore, cross-server linkage operations can be supported through remote server attributes. For example, the remote server attribute can use the OPC-UA server address of the second device as the cross-server linkage address corresponding to the first device.

[0052] Step S205: determining an action to be executed when a linkage event is triggered according to the event attribute, and obtaining a linkage rule between the first device and the second device.

[0053] It is understandable that the action executed when the linkage event is triggered is determined according to the event attribute, for example, the executed action may be sending a message, outputting an alarm, a log, executing a change in the associated node data, etc. Thus, the linkage rule between the first device and the second device obtained includes a subscription node, a linkage mode, a cycle, a remote server, and a specific execution event.

[0054] In this embodiment, by defining the linkage trigger type, defining the specific implementation of the linkage logic, and defining the linkage mode enumeration type, describing the mode selection of different linkage operations, refined control of the linkage is achieved through multiple attributes in the linkage trigger type, such as subscription node attributes, linkage mode attributes, period attributes, remote server attributes, and event attributes.

[0055] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 6 Before step S30, step S29 may also be included: Step S29: Instantiating the linkage trigger type and the linkage mode enumeration type respectively through the node objects of the first device and the second device to obtain a first device event object and a second device event object.

[0056] It is understandable that the OPC-UA address space data structure that supports linkage event triggering can be constructed based on the linkage trigger type and linkage mode enumeration type. Node objects can construct multiple types of linkage trigger functions by instantiating linkage trigger types. Each node object can instantiate one or more linkage trigger types and configure different linkage modes and trigger conditions according to the actual application scenario. The constructed OPC-UA address space data structure can be referenced Figure 7 The node objects of the first device and the second device can respectively instantiate the linkage trigger type, and when instantiating the linkage trigger type, correspondingly instantiate the linkage mode enumeration type to obtain the first device event object and the second device event object.

[0057] In a feasible implementation, step S30 may include steps S301 to S303: Step S301, when the linkage mode attribute is the continuous time comparison mode type, and when it is monitored that the preset condition is met within the preset time length, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object.

[0058] It should be noted that in a system that supports the OPC-UA linkage model, each device enables each object node to perform linkage tasks according to the associated linkage rules. During the OPC-UA communication process, linkage rules can be established between devices to trigger linkage events to achieve multi-device collaboration. The composition of linkage events includes the following parts: event source, event object, event type, and event action. Among them, the event source is the subscription node ID in the linkage model, which can be a device node in the local server or a device node across servers. The execution of linkage rules is triggered by monitoring the data changes of the subscription node. The event object is the object instantiated by the device in the above step S29 under the linkage model, for example, the first device event object and the second device event object. The event object uses the data changes of the event source as input, processes according to the linkage rules, and generates output data changes. The interaction scenario can refer to Figure 8 , Figure 8 This is a schematic diagram of a multi-device interaction scenario for the multi-device linkage triggering method of the present application. The event type is based on the linkage rule, which defines the execution type of the linkage event and determines the processing method of the linkage event. When the linkage mode attribute in the linkage rule is a continuous time comparison mode type and it is monitored that the data in the first device meets the preset conditions within a preset time period (for example, within one minute, the temperature continues to be higher than 40 degrees), the linkage event is triggered to the first device through the first device event object (for example, a high temperature warning is sent to the second device), and / or, the linkage event is triggered to the second device through the second device event object (for example, the second device turns on the fan).

[0059] Step S302, when the linkage mode attribute is the number comparison mode type, and when it is monitored that the number of occurrences of the preset event reaches the preset number threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object.

[0060] It can be understood that when the linkage mode attribute is the number comparison mode type and the number of occurrences of the preset event is monitored to reach the preset number threshold (for example, the temperature is higher than 40 degrees for 3 times), the linkage event is triggered on the first device through the first device event object, and / or the linkage event is triggered on the second device through the second device event object.

[0061] Step S303, when the linkage mode attribute is the extreme value comparison mode type, and when it is monitored that the data in the first device is greater than the maximum threshold or the data in the first device is less than the minimum threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object.

[0062] It should be understood that when the linkage mode attribute is the extreme value comparison mode type and it is monitored that the data in the first device is greater than the maximum threshold (40 degrees) or the data in the first device is less than the minimum threshold (30 degrees), a linkage event (which can be a warning message) is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object (for example, when it is higher than the maximum threshold, the fan can be turned on, and when it is lower than the minimum threshold, the fan can be turned off).

[0063] In this embodiment, a flexible and scalable linkage control model is constructed through linkage trigger types and linkage mode enumeration types. This model can adapt to complex working scenarios in industrial automation where multiple devices need to be collaboratively controlled, such as periodic task scheduling, remote monitoring linkage, and event-driven response control. Through the standardized definition of the linkage mode, the linkage model is added to the OPC-UA basic model. The model provides a variety of linkage modes (such as continuous time comparison, number comparison, and extreme value comparison), making the linkage logic richer and easier to configure, and able to adapt to complex and diverse scenario requirements. At the same time, it optimizes the configuration and management between devices, simplifies the network structure, and greatly improves the maintainability and reliability of the system. In addition, the structure also allows the linkage logic to be flexibly configured according to demand, so as to adapt to specific needs in different application environments, thereby improving the overall operation efficiency of the system.

[0064] For example, in order to help understand the implementation process of the multi-device linkage triggering method obtained by combining this embodiment with the above embodiments, the present invention will be described in detail with specific examples below. However, this example is only one of the implementation methods of the present invention and should not be used to limit the scope of protection of the present invention. Please refer to Fig. 9 , Fig. 9 This is an example diagram of fan control linkage of the multi-device linkage triggering method of this application, specifically: This example demonstrates a fan control system based on the OPC-UA linkage model, which is used to achieve intelligent collaboration between devices across OPC-UA servers. This embodiment includes two OPC-UA servers A and B, which are respectively connected to the temperature sensor of device A and the fan system of device B, and also includes two linkage triggering rules. By setting specific linkage rules, this system can automatically control the working state of the fan of device B when the conditions are met, thereby optimizing the operating efficiency and environmental management of the system.

[0065] First, configure two OPC-UA servers: Server A and Server B. The Uri of Server A is opc.tcp: / / 192.168.1.201:4840, which is connected to the temperature sensor of device A; the Uri of Server B is opc.tcp: / / 192.168.1.202:4840, which is connected to the fan system of device B. Fig. 9 As shown, the linkage rules of device B fan are modeled on OPC-UA server B. Device B fan communicates through the OPC-UA server Uri (opc.tcp: / / 192.168.1.201:4840) where device A is located. By correctly setting the Uri of these two servers, it is ensured that the system can achieve efficient and stable communication across OPC-UA servers.

[0066] Secondly, set the subscription node, which is the input of the linkage logic. Select the device A temperature sensor node as the subscription node, and the device B fan periodically subscribes to the temperature information of the device A temperature sensor. This temperature information will be used as the input of the linkage logic of the device B fan. By ensuring the real-time nature of data subscription, the system can respond quickly when the temperature changes, thereby optimizing the control strategy of the fan.

[0067] Then, according to the monitoring requirements, two linkage trigger rules are set. The first linkage rule 1; Event: Fan start; Subscription condition: The fan of device B subscribes to the temperature sensor data of device A, and sets the linkage trigger parameters according to the requirements of the linkage trigger type. On the premise of setting the subscription node, after a continuous comparison of 1 minute, if the temperature of device A subscribed to by OPC-UA server A (opc.tcp: / / 192.168.1.201:4840) is continuously greater than 40°C, device B will automatically trigger the fan to start. The purpose of this operation is to reduce the temperature of the environment and ensure that the entire system can work within a reasonable temperature range, thereby preventing equipment damage or reduced efficiency due to overheating. The second linkage rule 2; Event: Fan shutdown; On the premise of setting the subscription node, after a continuous comparison of 1 minute, if the temperature of device A drops below 38°C, device B will trigger the fan to shut down. This can avoid excessive operation of the fan, reduce energy consumption, and extend the service life of the equipment.

[0068] Finally, in the linkage triggering of the first linkage rule 1 and the second linkage rule 2, the linkage system sets different temperature thresholds for the fan start and shut down. Specifically, the temperature for the fan start is set to 40°C, while the temperature for the fan shut down is set to 38°C. By setting a temperature difference threshold between these two temperatures, the frequent start and shut down of the fan caused by slight temperature fluctuations is effectively avoided.

[0069] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the multi-device linkage triggering method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0070] This application also provides a multi-device linkage trigger device, please refer to Fig.10 , the multi-device linkage triggering device comprises: The communication connection establishing module 10 is used to establish a communication connection with the first device and the second device respectively through the OPC-UA protocol; A linkage rule determination module 20, configured to determine a linkage rule between the first device and the second device through the linkage model; The linkage event triggering module 30 is configured to trigger a linkage event to the first device and / or the second device according to the linkage rule.

[0071] The multi-device linkage triggering device provided by the present application adopts the multi-device linkage triggering method in the above-mentioned embodiment to solve the technical problem. Compared with the prior art, the beneficial effects of the multi-device linkage triggering device provided by the present application are the same as the beneficial effects of the multi-device linkage triggering method provided by the above-mentioned embodiment, and the other technical features in the multi-device linkage triggering device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0072] The present application provides a multi-device linkage trigger device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-device linkage trigger method in the above-mentioned embodiment one.

[0073] Reference below Fig.11 , which shows a schematic diagram of the structure of a multi-device linkage trigger device suitable for implementing the embodiment of the present application. The multi-device linkage trigger device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The multi-device linkage trigger device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0074] like Fig.11 As shown, the multi-device linkage trigger device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the multi-device linkage trigger device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the multi-device linkage trigger device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a multi-device linkage trigger device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0075] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0076] The multi-device linkage trigger device provided by the present application adopts the multi-device linkage trigger method in the above embodiment, which can solve the technical problem of multi-device linkage trigger. Compared with the prior art, the beneficial effects of the multi-device linkage trigger device provided by the present application are the same as the beneficial effects of the multi-device linkage trigger method provided by the above embodiment, and other technical features in the multi-device linkage trigger device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0077] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0078] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0079] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the multi-device linkage triggering method in the above-mentioned embodiment.

[0080] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0081] The computer-readable storage medium may be included in the multi-device linkage trigger device; or may exist independently without being assembled into the multi-device linkage trigger device.

[0082] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the multi-device linkage trigger device, the multi-device linkage trigger device: establishes communication connections with the first device and the second device respectively through the OPC-UA protocol; determines the linkage rules between the first device and the second device through the linkage model; and triggers linkage events to the first device and / or the second device according to the linkage rules.

[0083] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0084] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0085] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0086] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned multi-device linkage triggering method, and can solve technical problems. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the multi-device linkage triggering method provided by the above-mentioned embodiment, and will not be repeated here.

[0087] The present application also provides a computer program product, including a computer program, which implements the steps of the multi-device linkage triggering method as described above when executed by a processor.

[0088] The computer program product provided by the present application can solve the technical problem. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the multi-device linkage triggering method provided by the above embodiment, which will not be described in detail here.

[0089] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A multi-device linkage triggering method, characterized in that: The method is applied to an OPC-UA server, wherein the OPC-UA server includes a linkage model, and the method includes: Establishing communication connections with the first device and the second device respectively through the OPC-UA protocol; Determine a linkage rule between the first device and the second device through the linkage model; A linkage event is triggered on the first device and / or the second device according to the linkage rule.

2. The method according to claim 1, characterized in that The OPC-UA-FX field layer model of the OPC-UA server includes a linkage model, and the linkage model includes a linkage trigger type and a linkage mode enumeration type. The linkage trigger type is inherited from the basic object type of OPC-UA, and the linkage mode enumeration type is inherited from the basic data type of OPC-UA.

3. The method according to claim 2, characterized in that The attributes in the linkage trigger type include subscription node attributes, linkage mode attributes, period attributes, remote server attributes and event attributes; The step of determining the linkage rule between the first device and the second device through the linkage model includes: Determine the first device as a data source node through the subscription node attribute, and monitor the data in the first device; When it is monitored that the data in the first device meets a preset condition, determining the execution mode of the linkage according to the linkage mode attribute and the linkage mode enumeration type; Determine the time interval for triggering the linkage event according to the periodic attribute; According to the remote server attribute, the OPC-UA server address where the second device is located is used as the cross-server linkage address corresponding to the first device; An action to be executed when a linkage event is triggered is determined according to the event attribute, and a linkage rule between the first device and the second device is obtained.

4. The method according to claim 3, characterized in that The linkage mode enumeration type includes a continuous time comparison mode type, a number comparison mode type and an extreme value comparison mode type; The step of determining the linkage execution mode according to the linkage mode attribute and the linkage mode enumeration type when the data in the first device meets the preset condition comprises: When the linkage mode attribute is the continuous time comparison mode type, the linkage execution mode is to continuously monitor the data in the first device within a preset time period; When the linkage mode attribute is the number comparison mode type, the linkage execution mode is to monitor the number of occurrences of a preset event in the data in the first device; When the linkage mode attribute is the extreme value comparison mode type, the linkage execution mode is to perform numerical monitoring on the data in the first device.

5. The method according to claim 4, characterized in that Before the step of triggering a linkage event on the first device and / or the second device according to the linkage rule, the step further includes: The linkage trigger type and the linkage mode enumeration type are respectively instantiated through the node objects of the first device and the second device to obtain a first device event object and a second device event object.

6. The method according to claim 5, characterized in that The step of triggering a linkage event on the first device and / or the second device according to the linkage rule includes: When the linkage mode attribute is the continuous time comparison mode type, and when it is monitored that a preset condition is met within a preset time period, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object; When the linkage mode attribute is the number comparison mode type, and when it is detected that the number of occurrences of the preset event reaches a preset number threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object; When the linkage mode attribute is the extreme value comparison mode type, and when it is monitored that the data in the first device is greater than the maximum threshold or the data in the first device is less than the minimum threshold, a linkage event is triggered on the first device through the first device event object, and / or a linkage event is triggered on the second device through the second device event object.

7. A multi-device linkage triggering device, characterized in that: The multi-device linkage triggering device comprises: A communication connection establishing module, used to establish communication connections with the first device and the second device respectively through the OPC-UA protocol; A linkage rule determination module, configured to determine a linkage rule between the first device and the second device through the linkage model; A linkage event triggering module is used to trigger a linkage event to the first device and / or the second device according to the linkage rule.

8. A multi-device linkage trigger device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the multi-device linkage triggering method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the multi-device linkage triggering method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the multi-device linkage triggering method as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for controlling linkage of intelligent equipment

    CN108733005A

  • An event storage method and device of a comprehensive monitoring system based on rail transit

    CN109743344A

  • Construction device and linkage method of rail transit digital twin model

    CN117473722A

  • Field device configuration method based on OPC UA and ontology semantic model

    CN117873943A

  • Cross-device integrated optimization SPC system and method

    CN118396472A