CN111181783A - Method, device, system and medium for transmitting information model - Google Patents

Method, device, system and medium for transmitting information model Download PDF

Info

Publication number
CN111181783A
CN111181783A CN201911353125.1A CN201911353125A CN111181783A CN 111181783 A CN111181783 A CN 111181783A CN 201911353125 A CN201911353125 A CN 201911353125A CN 111181783 A CN111181783 A CN 111181783A
Authority
CN
China
Prior art keywords
information model
client
server
instruction
analysis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911353125.1A
Other languages
Chinese (zh)
Other versions
CN111181783B (en
Inventor
刘凯
刘冬梅
何迪
张华斌
叶水根
孙通
刘韩影
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Ningbo Geely Automobile Research and Development Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Ningbo Geely Automobile Research and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Ningbo Geely Automobile Research and Development Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN201911353125.1A priority Critical patent/CN111181783B/en
Publication of CN111181783A publication Critical patent/CN111181783A/en
Application granted granted Critical
Publication of CN111181783B publication Critical patent/CN111181783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device, a system and a medium for transmitting an information model, which are characterized in that the address space is inquired by receiving node identification data of an object sent by a client, the object data corresponding to the node identification data of the object is constructed based on the object data, the information model is packaged to obtain a first packaging packet, a first analysis instruction is sent to the client, so that the client responds to the first analysis instruction to execute analysis operation, the first packaging packet is analyzed based on the analysis operation, the information model is reconstructed based on the analyzed data, the first analysis instruction comprises the first packaging packet and an instruction for analyzing the first packaging packet, and the problems of difficult interaction and inefficient transmission of the information model between the client and a server are solved.

Description

Method, device, system and medium for transmitting information model
Technical Field
The present invention relates to the field of internet communication technologies, and in particular, to a method, an apparatus, a system, and a medium for transferring an information model.
Background
OPC UA is an interconnection protocol of C/S architecture meeting industrial 4.0 requirements, and an address space and an information model thereof are important technologies for supporting CPS information physical systems and digital twins. The object and related information provided by the OPC UA server to the client are related to the address space of the server, and the basic unit of the address space is a node. A node is mainly composed of attributes and references of the node. Attributes are used to describe nodes, which determine the characteristics of the node. The 8 kinds of nodes of the OPC UA are an object, an object type, a variable type, a method, a reference type, a view, and a data type, respectively. An attribute is a description of the node itself, and references define relationships with other nodes. The object node is a skeleton of an address space, the data structure of the object node is more complex than other nodes, and the root nodes of all the nodes are certain object nodes.
At present, numerous services of OPC UA issued by the international OPC UA foundation do not provide a method for directly exporting an information model in a server from an OPC UA client remotely, and the client can only browse the structure of a certain object by browsing the address space of the server and then manually create the type of the object in an application program and instantiate the object, so that a lot of labor and time are consumed. Therefore, it is necessary to provide a scheme for transferring OPC UA information models between a client and a server to ensure efficient transfer of the information models.
Disclosure of Invention
In order to overcome the defects and shortcomings of the prior art, the application provides a method, a device, a system and a medium for transmitting an information model, which can effectively transmit the information model of OPC UA and improve the use convenience and efficiency of OPC UA.
To achieve the above object, the present application provides a method of transferring an information model, the method comprising:
receiving node identification data of an object sent by a client;
inquiring object data corresponding to the node identification data of the object in the address space;
constructing an information model based on the object data;
packaging the information model to obtain a first packaging packet;
sending a first analysis instruction to the client so that the client responds to the first analysis instruction to execute analysis operation, analyzes the first encapsulation package based on the analysis operation, and reconstructs the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package.
Further, the method further comprises:
receiving an assignment request instruction sent by a client;
and responding to the assignment request instruction, sending a second analysis instruction to the client so that the client analyzes a second packaging packet and then assigns the value to the client information model, wherein the second analysis instruction comprises a second packaging packet and an instruction for analyzing the second packaging packet, and the second packaging packet comprises a data packet which is formed by packaging the object attribute and the value of each node of the object by the server in response to the assignment request instruction.
Further, the method further comprises:
receiving a third packaging packet sent by the client, wherein the third packaging packet comprises a packaging packet formed by packaging an updated client information model and a corresponding value after the assigned client information model is updated;
analyzing the third package to obtain analysis data, wherein the analysis data comprises data mapped to the updated client information model and corresponding values;
and writing the analysis data into an address space to obtain a server information model with updated assignment.
In another aspect, the method further comprises:
sending node identification data of the object to a server;
receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server inquiring an address space according to the node identification data of the object to construct a corresponding information model and encapsulating the information model;
and responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped to a server information model, wherein the information model comprises an object, object attributes and relations among all nodes.
Specifically, after analyzing the first encapsulation packet to obtain a client information model mapped to a server information model in response to the first analysis instruction, the method further includes:
sending an assignment request instruction to a server;
receiving a second analysis instruction sent by a server, wherein the second analysis instruction comprises a second encapsulation packet and an instruction for analyzing the second encapsulation packet, and the second encapsulation packet comprises an encapsulation packet formed by encapsulating the object attribute and the value of each node of the object by the server in response to the assignment request instruction;
and responding to the second analysis instruction, analyzing the second encapsulation packet, substituting an analysis result into a client information model, and assigning values to the object, the object attribute and each node of the object of the client information model.
Specifically, after the assigned client information model is updated, the method includes:
packaging the updated client information model and the corresponding value to obtain a third packaging packet;
and sending a third package to the server so that the server writes the analysis data obtained by analyzing the third package into an address space, and updating the server information model and the corresponding value.
In another aspect, the present application further provides an apparatus for transferring an information model, the apparatus comprising:
the first data receiving module is used for receiving node identification data of an object sent by a client;
the information model query module is used for querying an address space according to the node identification data of the object to construct a corresponding information model;
the first packaging module is used for packaging the information model to obtain a first packaging packet;
the first data sending module is used for sending a first analysis instruction to the client so that the client can respond to the first analysis instruction to execute analysis operation, analyze the first encapsulation package based on the analysis operation and reconstruct the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package.
Specifically, the apparatus further comprises:
the second data sending module is used for sending the node identification data of the object to the server;
the second data receiving module is used for receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for mapping and analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server inquiring an address space according to the node identification data of the object to construct a corresponding information model and encapsulating the information model;
and the information model analysis module is used for responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped in the server information model, wherein the information model comprises an object, object attributes and the relationship among all nodes.
In another aspect, the present application further provides a system for transferring an information model, the system comprising: a server and a client;
the server is used for inquiring the address space according to the node identification data of the object sent by the client to construct a corresponding information model; packaging the information model to obtain a first packaging packet; sending a first analysis instruction to the client so that the client responds to the first analysis instruction to execute analysis operation, analyzes the first encapsulation package based on the analysis operation, and reconstructs the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package;
the client is used for sending node identification data of the object to the server; receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server constructing a corresponding information model according to the node identification data query address space of the object and encapsulating the information model; and responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped in the server information model.
In another aspect, the present application further provides a computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement a method for communicating an information model.
The application has the following beneficial effects:
according to the method and the device, node identification data of an object sent by a client are received, an address space is inquired according to the node identification data of the object to construct a corresponding information model, the information model is packaged to obtain a first packaging packet, a first analysis instruction is sent to the client, so that the client responds to the first analysis instruction to execute analysis operation, the analysis operation is based on the first packaging packet, the analysis processing is carried out on the first packaging packet, the information model is reconstructed based on analyzed data, the first analysis instruction comprises the first packaging packet and an instruction for analyzing the first packaging packet, and the problems that the interaction of the information model between the client and a server is difficult, and the transmission is inefficient are solved.
Drawings
In order to more clearly illustrate the method, apparatus, system, and medium for transferring information models described herein, reference will now be made in brief to the accompanying drawings, which are required for embodiments of the present invention, and it should be apparent that the drawings in the following description are merely some embodiments of the invention and that other drawings may be derived therefrom by those skilled in the art without the exercise of inventive faculty.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of the location of an address space in a server provided by the present application;
FIG. 3 is a schematic flow chart diagram illustrating a method for delivering an information model according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of the basic components of a node provided herein;
FIG. 3 is a schematic flow chart diagram illustrating a method for delivering an information model according to an embodiment of the present disclosure;
fig. 5 is a schematic node model diagram of an OPC UA provided in an embodiment of the present application;
FIG. 6 is a schematic diagram showing CPU pressure and temperature in one particular instantiation provided herein;
FIG. 7 is a schematic flow chart diagram illustrating another method for delivering information models provided by embodiments of the present application;
FIG. 8 is a schematic flow chart diagram illustrating another method for communicating information models provided by embodiments of the present application;
FIG. 9 is a schematic structural diagram of an apparatus for transferring information models according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for transferring information model according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to implement the technical solution of the present application, so that more engineering workers can easily understand and apply the present application, the working principle of the present application will be further described with reference to specific embodiments.
The method and the device can be applied to the technical field of internet communication, for example, remote water meter reading or remote power supply data acquisition and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment according to an embodiment of the present disclosure, and as shown in fig. 1, the application environment may include at least a client 01 and a server 02.
In the embodiment of the present disclosure, the client 01 may include a physical device of a type such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and the like, and may also include software running in the physical device, such as an application program and the like. In the embodiment of the present application, the operating system in which the OPC UA on the client 01 may be embedded may include, but is not limited to, VxWorks, QNX, Linux, windows, RTOS, and the like, and the operating system in which the OPC UA in the server 02 may be embedded may include, but is not limited to, Unix, Solaris, HPUX, AIX, Linux, ERP, MES, SCADA, and the like. Specifically, the client 01 may be configured to call an OPC UA service of the server 02 and obtain the information model provided by the server 02. The server 02 may comprise a server running independently, or a distributed server, or a server cluster consisting of a plurality of servers. The server 02 may comprise a network communication unit, a processor and a memory, etc. Specifically, the server 02 may be configured to construct an information model and invoke an OPCUA service.
In the present application, the process Control industry standard (OPC, Object Linking and Embedding (OLE) for process Control) is an international general industry standard, and includes a set of standard sets of interfaces, attributes and methods, which are used in process Control and manufacturing automation systems. OPC UA refers to an OPC unified system architecture, which is an interconnection and interworking protocol of a C/S architecture uniquely meeting industrial 4.0 requirements, and defines unified data and service models, including an information model representing structure, behavior, and semantics, a message model enabling application programs to interact, a communication model transmitting data, and a consistency model ensuring interoperability between systems, which make data organization more flexible and can implement interactive communication of alarms and events, data access, history data access, control commands, and complex data. The address space and the information model are important technologies for supporting the information physical system and the digital twins.
The object and the related information of the object provided by the OPC UA server to the client are stored based on the address space of the server and the data storage module, the location of the address space in the server is shown in fig. 2, wherein, the server includes but is not limited to specific hardware device, hardware driver, address space and data storage module, data processing module, network communication and data coding module and network, specifically, the data processing module includes data management and subscription module, event management and subscription module, history management module and security and configuration module, the address space and data storage module is the bridge between the hardware driver and the data processing module, the method is used for data interaction and data storage between the server and the outside, and the most typical way for acquiring data is to acquire data from a hardware driver of a specific device and use the acquired data as a data source of other modules. For objects to be accessed in an address space, OPC UA also allows a server to provide a type definition to a client, which allows an information model to be used to describe the contents of the address space. The data provided by the OPC UA server to the client is related to the address space of the server.
Based on the above description, in an embodiment of a method for transferring information models, as shown in fig. 3, the method includes:
s101: the client sends the node identification data of the object to the server.
The OPC UA address space is a set of nodes connected by references to depict their contents. FIG. 4 shows the basic composition of nodes and the relationships between nodes, a node being composed of attributes and references. Table 1 lists seven attributes of a node, where an attribute identified as "X" is an attribute that must be implemented and an attribute identified as "Y" is an attribute that can be implemented optionally. Different types of nodes correspond to different node attributes, and a node corresponds to one or more node attributes, and there may be some node attributes that are the same between different types of nodes.
TABLE 1 node Attribute
Figure BDA0002335175880000071
Figure BDA0002335175880000081
The NodeId in the above table is identification data of a node, and a node is uniquely identified in the server for access positioning of the node. The server returns node identification data when browsing or querying the address space, and the client uses the node identification data to locate the node in the call service. As shown in fig. 5, there are eight types of nodes, which are an object, an object type, a variable type, a view, a data type, a reference type, and a method, respectively. Specifically, objects are used to form an address space structure; a variable, representing a value; a method, representing a method in the server that is called by the client and returns a result; the object type provides definition for the type of the object; the variable type provides definition for the type of the variable; a field of view defining a subset of nodes in an address space, i.e., a digest of the address space; data types provide specific type values when used to define the types of objects and variables. And a certain reference relation exists between the nodes, the referenced nodes are target nodes, and the referenced nodes are base nodes.
S103: the server inquires object data corresponding to the node identification data of the object in the address space and constructs an information model based on the object data.
Wherein, the information model is the basis of object-oriented analysis, uses the concept of address space to define the type of specific domain thereof and define specific examples; finally, the server's data is created based on the information model. The information model is realized by loading a certain mechanism into an address space of a server, receiving node identification data of an object by the server, obtaining node attributes and node reference relation data corresponding to the node identification data by inquiring the address space, and constructing the information model by utilizing the data. In a specific embodiment, assuming that the object is a Central Processing Unit (CPU), as shown in fig. 6, in a certain implementation process, a CPU panel is created for the analog measurement value, and instantiated application is performed, so as to display the pressure and temperature of the server CPU on the client panel. Specifically, the left square frame includes a plurality of nodes of the CPU, including nodes of the CPU, such as temperature, pressure, measurement value, object type, and analog measurement, the right square frame is a display panel, the attributes of the object CPU may include node identification, node class, browsing name, local name, and the like of the CPU, the pressure node of the CPU may refer to the measurement value node, and in this reference, the pressure node is a base node, and the measurement value node is a reference node. Firstly, a client requests identification data of a task object CPU, an address space is inquired according to the node identification data of the object CPU to obtain corresponding object data, the object data comprises node reference relations under the CPU and attributes of the nodes, and an information model is constructed according to the object data.
S105: and the server packages the obtained information model to obtain a first package packet.
Specifically, the server may encapsulate the information model into a first encapsulation package in JSON or XML format. Following the example in step S103, the server may encapsulate the acquired information model of the CPU into an encapsulated package in JSON or XML format.
S107: and the server sends the first analysis instruction to the client.
Specifically, the first parsing instruction includes a first encapsulation packet and an instruction for parsing the first encapsulation packet.
S109: and the client responds to the first analysis instruction to analyze the first encapsulation packet and reconstruct the information model.
After receiving the first analysis instruction, the client responds to the instruction to analyze the first encapsulation packet, reconstructs an information model based on the analyzed data, and the finally obtained information model is in a mapping relation with an information model in the server.
At present, the data information transmitted by the OPC UA specification adopts a UA binary system, the OPC UA server can only issue data and time notifications, and the client can only browse information in a subscription manner, which is very inconvenient. The server information model is encapsulated into a first encapsulation packet in a JSON (JSON Object Notation) or XML (Extensible markup language) format, and then the first encapsulation packet is transmitted to the client through a TCP (Transmission control Protocol) or HTTP (Hyper Text Transfer Protocol) Protocol, and the client analyzes the encapsulation packet to obtain the information model, so that the information model has editable attributes, and engineering personnel can conveniently and directly call required information.
In another embodiment, as shown in fig. 7, the method for delivering OPC UA information model further includes, after the client obtains the information model:
s201: and the client sends an assignment request instruction to the server.
The sending of the assignment request instruction is operated after the client reconstructs the information model, so that the server sends the value in the information model to the client, and the client assigns the reconstructed information model.
S203: and the server responds to the received assignment request instruction and encapsulates the value of the information model to obtain a second encapsulation packet.
Specifically, the server receives the assignment request instruction, encapsulates the value in the server information model into a second encapsulation packet in JSON or XML format,
s205: and the server sends a second analysis instruction to the client.
Specifically, after the second encapsulation packet is obtained, the server may send a second parsing instruction to the client by using a TCP or HTTP protocol, where the second parsing instruction includes the second encapsulation packet and an instruction for parsing the second encapsulation packet.
S207: and after receiving the second analysis instruction, the client analyzes the second encapsulation packet, substitutes the analysis result into the client information model, and assigns a value to the information model of the client.
Specifically, as described in the example in S103, after the client obtains the information model of the object CPU, the panel type may be created based on the simulation measurement node, an assignment request instruction is sent to the server, and the server encapsulates the value of the information model of the object CPU into a second encapsulation packet in the JSON or XML format, where the value of the information model of the object CPU includes values of joint points such as a CPU temperature value and a pressure value. And after the second packaging packet is obtained, the server sends a second analysis instruction comprising the second packaging packet to the client side, and the client side analyzes the second packaging packet and assigns a value to the object CPU information model, so that the CPU pressure and temperature value can be obtained and displayed on a CPU panel.
As can be seen from the technical solutions provided by the embodiments of the present specification, in the embodiments of the present specification, an assignment request instruction is sent to a server through a client, the server responds to the assignment request instruction and sends a second parsing instruction to the client, the client parses the second encapsulation packet according to the second parsing instruction to obtain a value of an information model, and finally, an assignment is performed on the information model in the client. By using the technical scheme provided by the embodiment of the specification, the assignment of the client information model can be realized after the server transmits the information model to the client, so that a complete client information model can be obtained, and the process of dynamically acquiring and deriving the information model and the information model value can be realized.
The following describes a specific embodiment of another method for transferring OPC UA information model in the present application, and fig. 6 is a flowchart of another method for transferring information model provided in the present application, and the present specification provides the method operation steps as described in the embodiments or flowcharts, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 8, the method may include:
s301: and the server receives the third package sent by the client.
In the embodiment of the present specification, before the client sends the third package to the server, the client sends an information model update request to obtain an instruction fed back by the server, and then invokes a service of the server to package the information model and the corresponding value in the client in the JSON or XML format to obtain the third package. The client sends the third package to the server.
S303: and the server analyzes the received third package to obtain the updated client information model and the analysis data of the corresponding value.
S305: and writing the obtained analysis data into an address space to obtain a server information model after assignment updating.
In the embodiment of the description, the server information model is assigned and updated, so that the value of the information model updated by the client is synchronized to the information model in the server, and the information model in the server can be called during encoding.
As can be seen from the technical solutions provided in the embodiments of the present specification, a server receives a third package sent by a client, analyzes the third package to obtain an updated client information model and analysis data of a corresponding value, and writes the analysis data into an address space to update an information model of the server, so that transmission of the client to the information model of the server can be achieved.
An embodiment of the present application further provides a device for transferring an information model, as shown in fig. 9, the device includes:
a first data receiving module 401, configured to receive node identification data of an object sent by a client;
an information model query module 403, configured to query an address space according to the node identification data of the object to construct a corresponding information model;
a first encapsulation module 405, configured to encapsulate the information model to obtain a first encapsulation packet;
a first data sending module 407, configured to send a first parsing instruction to the client, so that the client performs a parsing operation in response to the first parsing instruction, performs parsing processing on the first encapsulation packet based on the parsing operation, and reconstructs the information model based on parsed data, where the first parsing instruction includes the first encapsulation packet and an instruction for parsing the first encapsulation packet.
An embodiment of the present application further provides an apparatus for transferring an information model, as shown in fig. 10, the apparatus includes:
a second data sending module 501, configured to send node identification data of an object to a server;
a second data receiving module 503, configured to receive a first parsing instruction sent by the server, where the first parsing instruction includes a first encapsulation packet and an instruction for performing mapping parsing on the first encapsulation packet, and the first encapsulation packet includes an encapsulation packet obtained by the server querying an address space according to the node identification data of the object to construct a corresponding information model and encapsulating the information model;
and an information model analysis module 505, configured to respond to the first analysis instruction, analyze the first encapsulation packet to obtain a client information model mapped in the server information model, where the information model includes an object, an object attribute, and a relationship between nodes.
An embodiment of the present application further provides a system for transferring an information model, where the system includes:
a server and a client;
the server is used for inquiring the address space according to the node identification data of the object sent by the client to construct a corresponding information model; packaging the information model to obtain a first packaging packet; sending a first analysis instruction to the client so that the client responds to the first analysis instruction to execute analysis operation, analyzes the first encapsulation package based on the analysis operation, and reconstructs the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package;
the client is used for sending node identification data of the object to the server; receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server constructing a corresponding information model according to the node identification data query address space of the object and encapsulating the information model; and responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped in the server information model.
The embodiments of the method, the device, the system and the medium for transferring the OPC UA information model provided by the present application can realize the transfer of the OPC UA information model between the server and the client, can directly derive the information model for editing and modifying, is convenient for a programmer to directly refer, and saves a large amount of manpower and time.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, server, client and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method of communicating an information model, the method comprising:
receiving node identification data of an object sent by a client;
inquiring object data corresponding to the node identification data of the object in the address space;
constructing an information model based on the object data;
packaging the information model to obtain a first packaging packet;
sending a first analysis instruction to the client so that the client responds to the first analysis instruction to execute analysis operation, analyzes the first encapsulation package based on the analysis operation, and reconstructs the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package.
2. The method of claim 1, wherein after sending the first parsing instruction to the client, the method further comprises:
receiving an assignment request instruction sent by a client;
and responding to the assignment request instruction, sending a second analysis instruction to the client so that the client analyzes a second packaging packet and then assigns the value to the client information model, wherein the second analysis instruction comprises a second packaging packet and an instruction for analyzing the second packaging packet, and the second packaging packet comprises a data packet formed by packaging the object attribute and the value of each node of the object by the server in response to the assignment request instruction.
3. The method of claim 2, wherein the method comprises:
receiving a third packaging packet sent by the client, wherein the third packaging packet comprises a packaging packet formed by packaging an updated client information model and a corresponding value after the assigned client information model is updated;
analyzing the third package to obtain analysis data, wherein the analysis data comprises data mapped to the updated client information model and corresponding values;
and writing the analysis data into an address space to obtain an assigned server information model.
4. A method of communicating an information model, the method comprising:
sending node identification data of the object to a server;
receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server inquiring an address space according to the node identification data of the object to construct a corresponding information model and encapsulating the information model;
and responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped to a server information model, wherein the information model comprises an object, object attributes and relations among all nodes.
5. The method of claim 4, wherein after parsing the first encapsulation packet to obtain a client information model mapped to a server information model in response to the first parsing instruction, the method further comprises:
sending an assignment request instruction to a server;
receiving a second analysis instruction sent by a server, wherein the second analysis instruction comprises a second encapsulation packet and an instruction for analyzing the second encapsulation packet, and the second encapsulation packet comprises an encapsulation packet formed by encapsulating the object attribute and the value of each node of the object by the server in response to the assignment request instruction;
and responding to the second analysis instruction, analyzing the second encapsulation packet, substituting an analysis result into a client information model, and assigning values to the object, the object attribute and each node of the object of the client information model.
6. The method of claim 5, wherein after the assigned client information model is updated, the method comprises:
packaging the updated client information model and the corresponding value to obtain a third packaging packet;
and sending a third package to the server so that the server writes the analysis data obtained by analyzing the third package into an address space, and updating the server information model and the corresponding value.
7. An apparatus for communicating an information model, the apparatus comprising:
the first data receiving module is used for receiving node identification data of an object sent by a client;
the information model query module is used for querying an address space according to the node identification data of the object to construct a corresponding information model;
the first packaging module is used for packaging the information model to obtain a first packaging packet;
the first data sending module is used for sending a first analysis instruction to the client so that the client can respond to the first analysis instruction to execute analysis operation, analyze the first encapsulation package based on the analysis operation and reconstruct the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package.
8. An apparatus for communicating an information model, the apparatus comprising:
the second data sending module is used for sending the node identification data of the object to the server;
the second data receiving module is used for receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for mapping and analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server inquiring an address space according to the node identification data of the object to construct a corresponding information model and encapsulating the information model;
and the information model analysis module is used for responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped in the server information model, wherein the information model comprises an object, object attributes and the relationship among all nodes.
9. A system for communicating information models, the system comprising: a server and a client;
the server is used for inquiring the address space according to the node identification data of the object sent by the client to construct a corresponding information model; packaging the information model to obtain a first packaging packet; sending a first analysis instruction to the client so that the client responds to the first analysis instruction to execute analysis operation, analyzes the first encapsulation package based on the analysis operation, and reconstructs the information model based on the analyzed data, wherein the first analysis instruction comprises the first encapsulation package and an instruction for analyzing the first encapsulation package;
the client is used for sending node identification data of the object to the server; receiving a first analysis instruction sent by the server, wherein the first analysis instruction comprises a first encapsulation packet and an instruction for analyzing the first encapsulation packet, and the first encapsulation packet comprises an encapsulation packet which is obtained by the server constructing a corresponding information model according to the node identification data query address space of the object and encapsulating the information model; and responding to the first analysis instruction, analyzing the first encapsulation package to obtain a client information model mapped in the server information model.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of delivering an information model as claimed in any one of claims 1 to 3 and 4 to 6.
CN201911353125.1A 2019-12-25 2019-12-25 Method, device, system and medium for transmitting information model Active CN111181783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911353125.1A CN111181783B (en) 2019-12-25 2019-12-25 Method, device, system and medium for transmitting information model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911353125.1A CN111181783B (en) 2019-12-25 2019-12-25 Method, device, system and medium for transmitting information model

Publications (2)

Publication Number Publication Date
CN111181783A true CN111181783A (en) 2020-05-19
CN111181783B CN111181783B (en) 2022-07-19

Family

ID=70657925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911353125.1A Active CN111181783B (en) 2019-12-25 2019-12-25 Method, device, system and medium for transmitting information model

Country Status (1)

Country Link
CN (1) CN111181783B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024065780A1 (en) * 2022-09-30 2024-04-04 西门子股份公司 Data interaction model updating method, apparatus, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG145581A1 (en) * 2007-02-21 2008-09-29 Yokogawa Electric Corp A method and system for verifying a rule set for an information model
DE102010063164A1 (en) * 2010-12-15 2012-06-21 Endress + Hauser Process Solutions Ag Method for integrating at least one field device in a network of automation technology
US20150142873A1 (en) * 2012-05-31 2015-05-21 Siemens Aktiengesellschaft Communication Between Two Clients Via A Server
CN107567604A (en) * 2015-03-27 2018-01-09 布勒有限公司 It is used for the method and system of the process control of equipment in the Machine To Machine network based on OPC UA
CN107888410A (en) * 2017-10-30 2018-04-06 苏州逸美德科技有限公司 A kind of configurable workshop appliance monitoring system implementation method
CN109144007A (en) * 2018-09-12 2019-01-04 机械工业仪器仪表综合技术经济研究所 A kind of automatic construction system for integrating and interconnecting towards digitlization workshop manufacturing equipment
CN110162417A (en) * 2019-05-28 2019-08-23 重庆邮电大学 A kind of industry edge calculations are using data interactive method with OPC UA address space
WO2019224854A1 (en) * 2018-05-21 2019-11-28 Asem S.P.A. System to design and/or update programs for industrial devices assigned to the operator interface and/or to manage machines and/or plants for industrial automation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG145581A1 (en) * 2007-02-21 2008-09-29 Yokogawa Electric Corp A method and system for verifying a rule set for an information model
DE102010063164A1 (en) * 2010-12-15 2012-06-21 Endress + Hauser Process Solutions Ag Method for integrating at least one field device in a network of automation technology
US20150142873A1 (en) * 2012-05-31 2015-05-21 Siemens Aktiengesellschaft Communication Between Two Clients Via A Server
CN107567604A (en) * 2015-03-27 2018-01-09 布勒有限公司 It is used for the method and system of the process control of equipment in the Machine To Machine network based on OPC UA
CN107888410A (en) * 2017-10-30 2018-04-06 苏州逸美德科技有限公司 A kind of configurable workshop appliance monitoring system implementation method
WO2019224854A1 (en) * 2018-05-21 2019-11-28 Asem S.P.A. System to design and/or update programs for industrial devices assigned to the operator interface and/or to manage machines and/or plants for industrial automation
CN109144007A (en) * 2018-09-12 2019-01-04 机械工业仪器仪表综合技术经济研究所 A kind of automatic construction system for integrating and interconnecting towards digitlization workshop manufacturing equipment
CN110162417A (en) * 2019-05-28 2019-08-23 重庆邮电大学 A kind of industry edge calculations are using data interactive method with OPC UA address space

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢善益等: "公共信息模型的OPC UA地址空间管理", 《电力系统自动化》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024065780A1 (en) * 2022-09-30 2024-04-04 西门子股份公司 Data interaction model updating method, apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111181783B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN109308224B (en) Cross-platform data communication and cross-platform data processing method, device and system
US5327559A (en) Remote and batch processing in an object oriented programming system
CN102375731B (en) Coding-free integrated application platform system
US7269792B2 (en) System and method for generating high-function browser widgets with full addressability
CN112087454B (en) Communication method, device, equipment and storage medium of Internet of things gateway equipment
US7343605B2 (en) System and method for communicating between software applications, particularly MES (manufacturing execution system) applications
JP2002512758A (en) Server system and method for networking a control network and a direct input / output device using the world wide web
García et al. Developing CPPS within IEC-61499 based on low cost devices
Virta et al. SOA-Based integration for batch process management with OPC UA and ISA-88/95
US20050223101A1 (en) Computer-implemented method, system and program product for resolving prerequisites for native applications utilizing an open service gateway initiative ( OSGi) framework
US9367289B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN103631578B (en) Method for exhibiting data in a kind of distribution automation system
US6671721B1 (en) Object oriented framework mechanism and method for distributing and managing heterogenous operations of a network application
Theiss et al. Software agents in industry: A customized framework in theory and praxis
CN108345691B (en) Data source general processing framework construction method, data source processing method and device
Son et al. A study on OPC specifications: Perspective and challenges
CN111181783B (en) Method, device, system and medium for transmitting information model
Dennert et al. Advanced concepts for flexible data integration in heterogeneous production environments
CN103684904A (en) Tri-networks integration network monitoring system based on IP
CN115189997A (en) Cloud robot real-time monitoring and control method based on cloud, fog and edge cooperation
CN112765252B (en) Data transmission method, client, terminal, server and storage medium
Meyer et al. A simulation framework for heterogeneous agents
CN114115921A (en) Edge computing framework and transparent gateway method, device and processor
CN114493911A (en) Production line management method and system based on asset management shell
WO2004057471A1 (en) Url-based access to aspect objects

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant