A method and system for distinguishing different opcua devices based on device name

By using device names to distinguish OPCUA server nodes within the OPCUA device, the problems of low management efficiency and information confusion in OPCUA server nodes are solved, achieving more efficient node differentiation and management.

CN115714699BActive Publication Date: 2025-10-17HUIZHI ANKE (BEIJING) TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211277370.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2025-10-17
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

As server products expand in scale and become more complex, the nodeId of OPCUA devices cannot uniquely identify the devices, resulting in poor differentiation of OPCUA server nodes, low management efficiency, and easy confusion and errors in information management.

Method used

By traversing the organization structure tree, the OPCUA server node is obtained and identified. The device name is used to distinguish OPCUA system devices, and the non-duplicate device names are extracted to determine the target OPCUA server node.

Benefits of technology

It improves the differentiation and management efficiency of OPCUA server nodes, and reduces the confusion and error rate in information management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115714699B_ABST
    Figure CN115714699B_ABST
Patent Text Reader

Abstract

The application provides a method and system for distinguishing different opcua devices based on device names. The method comprises the following steps: traversing all nodes in an organization structure tree, and obtaining all opcua server nodes; judging whether the opcua server nodes are exclusive to one opcua system device in the organization structure tree; when the opcua server nodes are exclusive to one opcua system device in the organization structure tree, distinguishing the opcua system device by using a device name. The system comprises modules corresponding to the method steps.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application provides a method and system for distinguishing different opcua devices based on device names, and belongs to the technical field of Internet of Things. BACKGROUND

[0002] With the continuous expansion and increasing complexity of the scale of server products, the server faces a large number of corresponding system networks in the process of a large number of calculations. When each opcua device exclusively occupies a server, the nodeId cannot uniquely identify a device, which will lead to poor distinguishing ability of the opcua server node in the network structure, and further lead to the problems of reduced management efficiency of the opcua server node and easy confusion and errors in node information management. SUMMARY

[0003] The application provides a method and system for distinguishing different opcua devices based on device names, which solves the problems of reduced management efficiency of the opcua server node and easy confusion and errors in node information management. The technical solutions adopted are as follows:

[0004] A method for distinguishing different opcua devices based on device names, the method comprising:

[0005] traversing all nodes in an organization structure tree to obtain all opcua server nodes;

[0006] determining whether the opcua server node exclusively occupies an opcua system device in the organization structure tree;

[0007] when the opcua server node exclusively occupies an opcua system device in the organization structure tree, distinguishing the opcua system device by using the device name.

[0008] Further, traversing all nodes in an organization structure tree to obtain all opcua server nodes comprises:

[0009] traversing and scanning all nodes in the organization structure tree to obtain the node type corresponding to all nodes in the organization structure tree;

[0010] extracting all opcua server nodes from the node type.

[0011] Further, determining whether the opcua server node exclusively occupies an opcua system device in the organization structure tree comprises:

[0012] scan all opcua server nodes, and obtain the corresponding opcua system device of the opcua server node;

[0013] extract the opcua system device name to obtain a device name data set;

[0014] determine whether the opcua system device name in the device name data set is repeated, and obtain the target opcua server node according to the determination result.

[0015] Further, determine whether the opcua system device name in the device name data set is repeated, and obtain the target opcua server node according to the determination result, comprising:

[0016] when the opcua system device name does not appear repeatedly, determine that all the opcua server nodes are exclusive to one opcua system device, and take the opcua server node as the target opcua server node;

[0017] when the opcua system device name appears repeatedly, extract the opcua server node corresponding to the non-repeated opcua system device name, and determine that the opcua server node corresponding to the non-repeated opcua system device name is exclusive to one opcua system device, and take the opcua server node as the target opcua server node.

[0018] A system for distinguishing different opcua devices based on device name, the system comprising:

[0019] the node acquisition module is used to traverse all nodes in the organization structure tree, and obtain all opcua server nodes;

[0020] the exclusive determination module is used to determine whether the opcua server node is exclusive to one opcua system device in the organization structure tree;

[0021] the distinguishing module is used to distinguish the opcua system device by device name when the opcua server node is exclusive to one opcua system device in the organization structure tree.

[0022] Further, the node acquisition module comprises:

[0023] the node type acquisition module is used to traverse and scan all nodes in the organization structure tree, and obtain the node type corresponding to all nodes in the organization structure tree;

[0024] An opcua server node extraction module is configured to extract all opcua server nodes from the node types.

[0025] Further, the exclusive judgment module comprises:

[0026] A node scanning module is configured to scan all opcua server nodes and obtain corresponding opcua system devices of the opcua server nodes.

[0027] A device name extraction module is configured to extract opcua system device names and obtain a device name data set.

[0028] A repetition judgment module is configured to judge whether the opcua system device names in the device name data set are repeated, and obtain target opcua server nodes according to the judgment result.

[0029] Further, the repetition judgment module comprises:

[0030] A first target determination module is configured to determine that all the opcua server nodes are exclusive to one opcua system device when the opcua system device names are not repeated, and determine the opcua server nodes as target opcua server nodes.

[0031] A second target determination module is configured to extract the opcua server nodes corresponding to the non-repeated opcua system device names when the opcua system device names are repeated, and determine the opcua server nodes corresponding to the non-repeated opcua system device names as exclusive to one opcua system device, and determine the opcua server nodes as target opcua server nodes.

[0032] The present application has the following advantages:

[0033] The method and system for distinguishing different opcua devices based on device names provided by the present application distinguish the opcua system devices by using device names, effectively improving the distinguishing strength of the opcua server nodes in the network structure. Meanwhile, by improving the distinguishing strength and accuracy of the opcua server nodes in the network structure, the management efficiency of the opcua server nodes is improved, and the occurrence of confusion and errors in the node information management is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0034] Figure 1 The flowchart of the method of the present application;

[0035] Figure 2 The system block diagram of the system of the present application. DETAILED DESCRIPTION

[0036] The preferred embodiments of the present application will be described herein below with reference to the accompanying drawings, in which it should be understood that the preferred embodiments described herein are intended for explaining and illustrating the present application, and are not intended for limiting the present application.

[0037] An embodiment of the present application provides a method for distinguishing different opcua devices based on device names. Figure 1 As shown in the figure, the method comprises the following steps:

[0038] S1, traversing all nodes in the organization structure tree to obtain all opcua server nodes;

[0039] S2, judging whether the opcua server node is exclusive to one opcua system device in the organization structure tree;

[0040] S3, when the opcua server node is exclusive to one opcua system device in the organization structure tree, distinguishing the opcua system device by using the device name.

[0041] The working principle of the above technical solution is as follows: first, all nodes in the organization structure tree are traversed to obtain all opcua server nodes; then, it is judged whether the opcua server node is exclusive to one opcua system device in the organization structure tree; finally, when the opcua server node is exclusive to one opcua system device in the organization structure tree, the opcua system device is distinguished by using the device name.

[0042] The effect of the above technical solution is that the method for distinguishing different opcua devices based on device names provided by the embodiment distinguishes the opcua system device by using the device name, effectively improving the distinguishing strength of the opcua server node in the network structure. At the same time, through the improvement of the distinguishing strength and accuracy of the opcua server node in the network structure, the management efficiency of the opcua server node is improved, and the occurrence of confusion and errors in node information management is reduced.

[0043] In an embodiment of the present application, all nodes in the organization structure tree are traversed to obtain all opcua server nodes, comprising:

[0044] S101, all nodes in the organization structure tree are scanned and traversed to obtain the node types corresponding to all nodes in the organization structure tree;

[0045] S102, all opcua server nodes are extracted from the node types.

[0046] The working principle of the technical solution is that: first, all nodes in the organization structure tree are traversed to obtain the node types corresponding to all nodes in the organization structure tree; then, all opcua server nodes are extracted from the node types.

[0047] The effect of the technical solution is that: through the above-mentioned manner, the accuracy and efficiency of node type acquisition can be effectively improved, and through the above-mentioned manner, the accuracy and efficiency of opcua server node extraction can be effectively improved.

[0048] In one embodiment of the application, whether the opcua server node is in a unique opcua system device in the organization structure tree is judged, comprising:

[0049] S201, all opcua server nodes are scanned, and the opcua system device corresponding to the opcua server node is obtained;

[0050] S202, the opcua system device name is extracted to obtain a device name data set;

[0051] S203, whether the opcua system device name in the device name data set is repeated is judged, and a target opcua server node is obtained according to the judgment result.

[0052] The working principle of the technical solution is that: first, all opcua server nodes are scanned, and the opcua system device corresponding to the opcua server node is obtained; then, the opcua system device name is extracted to obtain a device name data set; finally, whether the opcua system device name in the device name data set is repeated is judged, and a target opcua server node is obtained according to the judgment result.

[0053] The effect of the technical solution is that: through the above-mentioned manner, the accuracy and efficiency of device name data set acquisition can be effectively improved, and through the above-mentioned manner, the accuracy and efficiency of opcua system device name judgment can be effectively improved. Further, the accuracy of target opcua server node acquisition and the efficiency of target opcua server node acquisition can be effectively improved.

[0054] In one embodiment of the application, whether the opcua system device name in the device name data set is repeated is judged, and a target opcua server node is obtained according to the judgment result, comprising:

[0055] S2031, when the opcua system device name does not appear repeatedly, determine that all the opcua server nodes are exclusive to one opcua system device, as the target opcua server node;

[0056] S2032, when the opcua system device name appears repeatedly, extract the opcua server node corresponding to the non-repeated opcua system device name, and determine that the opcua server node corresponding to the non-repeated opcua system device name is exclusive to one opcua system device, as the target opcua server node.

[0057] The working principle of the above technical solution is: first, when the opcua system device name does not appear repeatedly, determine that all the opcua server nodes are exclusive to one opcua system device, as the target opcua server node; then, when the opcua system device name appears repeatedly, extract the opcua server node corresponding to the non-repeated opcua system device name, and determine that the opcua server node corresponding to the non-repeated opcua system device name is exclusive to one opcua system device, as the target opcua server node.

[0058] The effect of the above technical solution is: through the above manner, the accuracy of device name data set acquisition and node type acquisition efficiency can be effectively improved, and through the above manner, the accuracy of opcua system device name judgment and judgment efficiency can be effectively improved. Further effectively improve the accuracy of target opcua server node acquisition and the efficiency of target opcua server node acquisition.

[0059] An embodiment of the present application proposes a system for distinguishing different opcua devices based on device name, as shown in Figure 2 The system comprises:

[0060] A node acquisition module is configured to traverse all nodes in the organization structure tree and acquire all opcua server nodes.

[0061] An exclusive judgment module is configured to judge whether the opcua server node is exclusive to one opcua system device in the organization structure tree.

[0062] A distinguishing module is configured to distinguish the opcua system device by device name when the opcua server node is exclusive to one opcua system device in the organization structure tree.

[0063] The working principle of the technical solution is that: first, the node acquisition module traverses all nodes in the organization structure tree to acquire all opcua server nodes; then, the exclusive judgment module is used to judge whether the opcua server node is in an exclusive opcua system device in the organization structure tree; subsequently, when the opcua server node is in an exclusive opcua system device in the organization structure tree, the distinguishing module is used to distinguish the opcua system device by using the device name.

[0064] The effect of the technical solution is that: the system for distinguishing different opcua devices based on device names provided by the embodiment distinguishes the opcua system device by using the device name, effectively improving the distinguishing strength of the opcua server node in the network structure. At the same time, by improving the distinguishing strength and accuracy of the opcua server node in the network structure, the management efficiency of the opcua server node is improved, and the occurrence of confusion and errors in node information management is reduced.

[0065] In an embodiment of the application, the node acquisition module comprises:

[0066] The node type acquisition module is configured to traverse and scan all nodes in the organization structure tree to acquire the node type corresponding to all nodes in the organization structure tree.

[0067] The opcua server node extraction module is configured to extract all opcua server nodes from the node type.

[0068] The working principle of the technical solution is that: first, the node type acquisition module traverses and scans all nodes in the organization structure tree to acquire the node type corresponding to all nodes in the organization structure tree; then, the opcua server node extraction module extracts all opcua server nodes from the node type.

[0069] The effect of the technical solution is that: by the above-mentioned manner, the accuracy and efficiency of node type acquisition can be effectively improved, and at the same time, the accuracy and efficiency of opcua server node extraction can be effectively improved.

[0070] In an embodiment of the application, the exclusive judgment module comprises:

[0071] The node scanning module is configured to scan all opcua server nodes and acquire the opcua system device corresponding to the opcua server node.

[0072] The device name extraction module is configured to extract the opcua system device name to obtain a device name data set.

[0073] The repetition judgment module is configured to judge whether the opcua system device name in the device name data set is repeated, and obtain a target opcua server node according to the judgment result.

[0074] The working principle of the above technical solution is as follows: first, the node scanning module scans all opcua server nodes and obtains the opcua system devices corresponding to the opcua server nodes; then, the device name extraction module extracts the opcua system device name to obtain a device name data set; finally, the repetition judgment module judges whether the opcua system device name in the device name data set is repeated, and obtains a target opcua server node according to the judgment result.

[0075] The effect of the above technical solution is that the above method can effectively improve the accuracy of device name data set acquisition and the efficiency of node type acquisition, and can effectively improve the accuracy of opcua system device name judgment and the judgment efficiency. Further, the accuracy of target opcua server node acquisition and the efficiency of target opcua server node acquisition are effectively improved.

[0076] In an embodiment of the present application, the repetition judgment module comprises:

[0077] The first target determination module is configured to determine that all the opcua server nodes are exclusive to one opcua system device when the opcua system device name is not repeated, and the opcua server nodes are taken as target opcua server nodes.

[0078] The second target determination module is configured to extract the opcua server node corresponding to the non-repeated opcua system device name when the opcua system device name is repeated, and determine that the opcua server node corresponding to the non-repeated opcua system device name is exclusive to one opcua system device, and the opcua server node is taken as a target opcua server node.

[0079] The working principle of the technical solution is that: first, the first target determination module determines that all the opcua server nodes are exclusive to one opcua system device as a target opcua server node when the opcua system device name does not appear repeatedly; finally, the second target determination module extracts the opcua server node corresponding to the non-repeated opcua system device name when the opcua system device name appears repeatedly, and determines that the opcua server node corresponding to the non-repeated opcua system device name is exclusive to one opcua system device as a target opcua server node.

[0080] The effect of the technical solution is that: by the above method, the accuracy of device name data set acquisition and node type acquisition efficiency can be effectively improved, and by the above method, the accuracy and efficiency of opcua system device name judgment can be effectively improved. Further, the accuracy of target opcua server node acquisition and the efficiency of target opcua server node acquisition are effectively improved.

[0081] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalents, the present application also intends to include these modifications and variations.

Claims

1. A method for distinguishing different opcua devices based on device names, characterized in that: The method comprises: Traverse all nodes in the organization structure tree and obtain all opcua server nodes; Determine whether the opcua server node occupies an opcua system device exclusively in the organizational structure tree; When the opcua server node occupies an opcua system device in the organizational structure tree When the opcua system device is distinguished by the device name; Wherein, it is determined whether the opcua server node occupies an opcua in the organizational structure tree. System equipment, including: Scan all opcua server nodes and obtain the opcua system devices corresponding to the opcua server nodes; Extract the device name of the opcua system to obtain a device name data set; Determine whether the opcua system device name in the device name dataset is repeated, and The judgment result obtains the target opcua server node; Wherein, it is determined whether the opcua system device names in the device name data set are repeated, And obtain the target opcua server node based on the judgment result, including: When the OPCUA system device name does not appear to be repeated, it is determined that all the OPCUA server nodes exclusively occupy one OPCUA system device as the target OPCUA server node; When the OPCUA system device name is repeated, the OPCUA server node corresponding to the non-repeated OPCUA system device name is extracted, and the OPCUA server node corresponding to the non-repeated OPCUA system device name is determined to be an exclusive OPCUA system device as the target OPCUA server node.

2. The method according to claim 1, characterized in that Traverse all nodes in the organization structure tree and obtain all opcua server nodes, including: Traverse and scan all nodes in the organizational structure tree to obtain node types corresponding to all nodes in the organizational structure tree; Extract all opcua server nodes from the node type.

3. A system for distinguishing different OPCUA devices based on device names, characterized in that: The system comprises: The node acquisition module is used to traverse all nodes in the organization structure tree and obtain all opcua server nodes; An exclusive judgment module is used to judge whether the opcua server node exclusively occupies an opcua system device in the organizational structure tree; A distinguishing module is used to distinguish the opcua server node from the other nodes in the organization tree. When using opcua system devices, the opcua system devices are distinguished by device name; Wherein, the exclusive judgment module includes: The node scanning module is used to scan all opcua server nodes and obtain the opcua system devices corresponding to the opcua server nodes; The device name extraction module is used to extract the device name of the opcua system and obtain a device name data set; Repeat judgment module, used to judge whether the opcua system device name in the device name data set is Check whether there is duplication and obtain the target opcua server node based on the judgment result; Wherein, the duplication judgment module includes: A first target determination module is configured to, when there is no duplication in the OPCUA system device name, determine that all the OPCUA server nodes exclusively occupy one OPCUA system device as the target OPCUA server node; The second target determination module is used to extract the OPCUA server node corresponding to the non-duplicate OPCUA system device name when the OPCUA system device name is repeated, and determine that the OPCUA server node corresponding to the non-duplicate OPCUA system device name is an exclusive OPCUA system device as the target OPCUA server node.

4. The system according to claim 3, characterized in that The node acquisition module includes: A node type acquisition module, configured to traverse and scan all nodes in the organizational structure tree to acquire node types corresponding to all nodes in the organizational structure tree; The opcua server node extraction module is used to extract all opcua server nodes from the node type.

Citation Information

Patent Citations

  • A method for transforming a data model for automation purposes into a target ontology

    US20210405624A1