Nothing Special   »   [go: up one dir, main page]

CN114390088B - Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server - Google Patents

Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server Download PDF

Info

Publication number
CN114390088B
CN114390088B CN202111670250.2A CN202111670250A CN114390088B CN 114390088 B CN114390088 B CN 114390088B CN 202111670250 A CN202111670250 A CN 202111670250A CN 114390088 B CN114390088 B CN 114390088B
Authority
CN
China
Prior art keywords
opc
client
server
function
connection
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.)
Active
Application number
CN202111670250.2A
Other languages
Chinese (zh)
Other versions
CN114390088A (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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN202111670250.2A priority Critical patent/CN114390088B/en
Publication of CN114390088A publication Critical patent/CN114390088A/en
Application granted granted Critical
Publication of CN114390088B publication Critical patent/CN114390088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides an interaction method, device, equipment and storage medium of an EDPS (electronic data processing system) through an OPC UA client and an OPC UA server, wherein the method is applied to the EDPS of an electronic data processing system and comprises the following steps: receiving a trigger instruction for interaction with an OPC UA server; and sending an interaction instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS based on the trigger instruction, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction. The technical scheme provided by the embodiment of the invention can realize interaction with the server through EDPS, can avoid development of an independent client and can save development resources.

Description

Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server
Technical Field
The embodiment of the invention relates to the technical field of software engineering, in particular to an interaction method, device, equipment and storage medium of an EDPS (electronic data transfer module) through an OPC UA client and an OPC UA server.
Background
At present, data is acquired from a development platform communication unified architecture (OPC Unified Architecture, OPC UA) server, and needs to be mediated by an OPC UA client. The OPC UA client provides a path connected with the OPC UA server and can interact with the OPC UA server.
In the related art, under the condition of interaction of the OPC UA server, the implementation method of the OPC UA client mainly comprises the following three steps: 1) According to OPC UA protocol standard IEC62541, developing from the perspective of implementing protocol; 2) The application of the Open source library package, such as Open62541, encapsulates the protocol standard to a certain extent, simplifies the development difficulty, but needs to know the protocol principle; 3) The third party library package is adopted, and the construction can be fast carried out after the use. However, the method for implementing the OPC UA client is suitable for independent client software development, and may cause resource waste to a certain extent.
Disclosure of Invention
The embodiment of the invention provides an interaction method, device, equipment and storage medium of an EDPS (electronic data processing) through an OPC UA client and an OPC UA server, which can realize interaction with the OPC UA server through the EDPS, can avoid development of an independent client and can save development resources.
In a first aspect, an embodiment of the present invention provides a method for interacting with an OPC UA client and an OPC UA server by using an EDPS, where the method is applied to an EDPS of an electronic data processing system, and the method includes:
receiving a trigger instruction for interaction with an OPC UA server;
and sending an interaction instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS based on the trigger instruction, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction.
In a second aspect, embodiments of the present invention further provide an interaction device based on EDPS, the device being configured in an electronic data processing system EDPS, the device comprising:
the receiving module is used for receiving a trigger instruction interacted with the OPC UA server;
and the interaction module is used for sending an interaction instruction to an OPC UA client integrated in the EDPS based on the trigger instruction through an input/output service module of the EDPS, and interacting with the service end of the OPC UA based on the interaction instruction through the OPC UA client.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods provided by the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method provided by embodiments of the present invention.
According to the technical scheme provided by the embodiment of the invention, if the trigger instruction for interacting with the OPC UA server is received, the input/output service module is used for sending the interaction instruction to the OPC UA client integrated on the EDPS based on the trigger instruction, the OPC UA client is used for interacting with the OPC UA server based on the interaction instruction, namely the OPC UA client integrated on the EDPS is used for interacting with the OPC UA server, the interaction with the server can be realized through the EDPS, the development of an independent client can be avoided, and development resources can be saved.
Drawings
FIG. 1a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by EDPS according to an embodiment of the present invention;
FIG. 1b is an interaction diagram among a client, an input-output service module, and a server;
FIG. 2a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by EDPS according to the embodiment of the present invention;
FIG. 2b is a flowchart of an interaction method between an OPC UA client and an OPC UA server by EDPS according to the embodiment of the present invention;
FIG. 3a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by EDPS according to the embodiment of the present invention;
FIG. 3b is a flowchart of an interaction method between an OPC UA client and an OPC UA server by an EDPS according to the embodiment of the present invention;
FIG. 4a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by an EDPS according to the embodiment of the present invention;
FIG. 4b is a flowchart of an interaction method between an OPC UA client and an OPC UA server by using an EDPS according to the embodiment of the present invention;
FIG. 5a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by an EDPS according to the embodiment of the present invention;
FIG. 5b is a flowchart of an interaction method between an OPC UA client and an OPC UA server by an EDPS according to the embodiment of the present invention;
FIG. 6 is a block diagram illustrating an interaction device between an OPC UA client and an OPC UA server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
FIG. 1a is a flow chart of a method for interacting with an OPC UA server via an OPC UA client by an EDPS, which may be implemented by an EDPS-based interacting device, which may be implemented in software and/or hardware, and which may be configured in an electronic data processing system (electronic data processing systems, EDPS), in accordance with an embodiment of the present invention. The EDPS is an electronic data processing system on the 5G intelligent edge gateway equipment, can collect equipment data and pushes the equipment data to an upper layer; as a data exchange management system, a scheduling framework is provided in the EDPS, and a developer can perform secondary development based on the framework to realize the adaptation work of multiple protocols, so that multiple industrial common protocols such as ModbusTCP (Modbus protocol TCP), modbusRTU (Modbus protocol RTU), CANopen, S7, communication protocols (Communication protocol, PPI), message queue telemetry transmission (Message Queuing Telemetry Transport, MQTT) protocols and the like are supported. From the perspective of supporting protocol extension, on the basis that EDPS already supports the protocol, the embodiment of the invention also increases the support of OPC UA.
As shown in fig. 1a, the technical solution provided by the embodiment of the present invention includes:
s110: and receiving a trigger instruction for interaction with the OPC UA server.
In the embodiment of the invention, the interaction with the OPC UA server may include that the OPC UA client integrated in the EDPS establishes a connection with the OPC UA server, disconnects from the OPC UA server, reads data from the OPC UA server, and writes data to the OPC UA server. When the EDPS is started, the EDPS receives a trigger instruction for establishing connection between the OPC UA client and the OPC UA server; when the EDPS is closed, the EDPS receives a trigger instruction for disconnecting the OPC UA client from the OPC UA server; when receiving the trigger signal of the polling monitor, the EDPS receives a trigger instruction that the OPC UA client reads data from the OPC UA server or writes data to the OPC UA server, and the EDPS can periodically read data from the OPC UA server or periodically write data to the OPC UA server.
S120: and sending an interaction instruction to an OPC UA client integrated in the EDPS based on the trigger instruction through an input/output service module of the EDPS based on the trigger instruction, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction.
In the embodiment of the invention, the OPC UA client is integrated in EDPS, and when connection with the OPC UA server needs to be established, the OPC interface of the OPC UA client needs the following connection basic parameters in the table 1 and needs to be configured based on the parameters in the table 1, so that interaction with the OPC UA server is realized.
TABLE 1
Parameter name Meaning of parameters
IP Server IP address
Port Network port number
clientKeyFileName Client key file name
clientCertFileName Client certificate filename
serverCertFileName Server certificate filename
messageSecurityMode Message security mode
isAnonymous Whether or not to anonymize
userName User name
password Password code
In the embodiment of the present invention, when the OPC UA client interacts with the OPC UA server (for example, monitoring or modifying data), the variable feature information corresponding to the data needs to be known, so the OPC interface needs the variable feature information in table 2.
TABLE 2
In one implementation manner of the embodiment of the present invention, optionally, sending, by an input/output service module, an interaction instruction to a client integrated in an EDPS based on the trigger instruction, and interacting, by the client, with the server based on the interaction instruction, includes: an interaction instruction is sent to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS, interaction is carried out with the OPC UA server through the OPC UA client based on the interaction instruction, and the method comprises the following steps: the input/output service module sends an opening instruction to the OPC UA client for triggering the OPC UA client to establish safe connection/unsafe connection with the OPC UA server and initializing a variable characteristic storage area; or, the input/output service module sends a read/write instruction to the OPC UA client for triggering the 0PC UA client to read or write data from or to the OPC UA server; or the input/output service module sends a closing instruction to the OPC UA client to trigger the OPC UA client to destroy the data variable characteristic storage area and disconnect the connection with the OPC UA server. The method comprises the steps of establishing connection with an OPC UA client integrated in EDPS through an input/output service module, disconnecting the OPC UA client from the OPC UA server, reading data from the OPC UA server and writing data into the OPC UA server. Specifically, the complete interaction flow of EDPS through 0PC UA client and 0PC UA server is as follows: the input/output service module of the EDPS sends an opening instruction to the OPC UA client for triggering the OPC UA client to establish safe connection/unsafe connection with the OPC UA server and initializing a variable characteristic storage area; the input/output service module sends a read/write instruction to the OPC UA client for triggering the 0PC UA client to read or write data from or to the OPC UA server; and the input/output service module sends a closing instruction to the OPC UA client side to trigger the PC UA client side to destroy the variable characteristic storage area and disconnect the connection with the OPC UA client side.
In EDPS, as shown in fig. 1b, an input/output service module (EDPS IOSrv module) may send an OPEN instruction (DEV OPEN) to an OPC UA client, and the OPC UA client establishes a connection with the OPC UA server (executes OPC UA Conncent) based on the instruction; the connection establishment method can be to establish a secure connection or an unsafe connection; the client acquires the connection basic parameters based on the instruction, and establishes a secure connection or a non-secure connection based on information in the connection basic parameters. That is, the establishment of the secure connection and the non-secure connection may be based on user configuration information in the connection basic parameters.
As shown in fig. 1b, optionally, the input/output service module may send a READ instruction (DEV READ) to the OPC UA client, and the OPC UA client READs data from the OPC UA server (performs OPC UA READ) based on the instruction; optionally, the input/output service module may send a WRITE command (DEV WRITE) to the OPC UA client, and the OPC UA client WRITEs data to the OPC UA server based on the WRITE command (performs OPC UA WRITE); alternatively, the input/output module may send a CLOSE command (DEV CLOSE) to the OPC UA client, based on which the OPC UA client disconnects from the OPC UA server (performs OPC Disconnect).
In the embodiment of the invention, the client may include an OPC UA custom service module and an OPC UA driver, where the OPC UA custom service module may include a custom service function of the client, and may be used by the OPC UA driver, including connection processing, disconnection processing, reading data, writing data, and the like. The OPC UA custom service module and OPC UA driver include a plurality of functions, and exemplary, for function usage may be specifically as follows:
in the connection stage of the OPC UA Client and the OPC UA server, a Device opening function (PTL_device_open ()) can be called through a CMM Device opening function (CMM_device_open ()), connection basic parameters can be obtained through a Device opening function call obtaining parameter API, and a user-defined connection function (UA_client_custom_connect ()) or UA_client_custom_connect InSecure ()) and the OPC UA server are used for establishing secure connection or non-secure connection. If the connection fails, the Device attempt open function (PTL_device_try open ()) can be called by the CMM Device attempt open function (CMM_device_try open ()) to attempt to establish connection with the OPC UA server. Wherein the CMM device opening function is used for opening the communication device; the device opening function is used for opening protocol devices (which can be OPC UA servers), UA_client_custom_Connect (), establishing non-secure connection with the OPC UA servers, and establishing secure connection with the OPC UA servers; an try open function (PTL_device_try open ()) for attempting to open the protocol Device; the CMM Device attempts to open a function (cmm_device_try ()) to open the communication Device.
In the disconnecting stage of the OPC UA Client and the OPC UA server, a Device closing function (PTL_device_close ()) can be called through a CMM Device closing function (CMM_device_close ()), and the Device closing function is used for clearing data of a variable storage area and calling a Custom disconnecting function (UA_client_custom_disconnect ()) to Disconnect from the OPC UA server. Wherein the CMM device shutdown function is configured to shutdown the communication device; the device closing function is used for disconnecting the OPC UA server; and the self-defined disconnection function is used for disconnecting with the OPC UA server.
In the stage that the OPC UA Client reads data from the OPC UA server, a user-defined connection checking function (UA_client_custom_connectitycheck ()) is called through a Device reading function (PTL_device_read ()) to check the connection state of the OPC UA Client and the OPC UA server, and corresponding data is read from the OPC server based on variable characteristic information by calling the user-defined reading data function ((UA_client_custom_readdata ())) in the connection state. The Custom data reading function can call a Custom node ID retrieval function (UA_client_custom_retrieving_NodeIdbyVarParam ()) to obtain the node ID of the variable in the OPC UA server according to the variable characteristic information, so that the data corresponding to the variable characteristic information is obtained according to the node ID. The device reading function is used for reading protocol device data; the custom connection checking function is used for checking the connection state between the custom connection checking function and the OPC UA server; and the custom read data function is used for reading data from the OPC UA server. The custom node ID retrieval function may call the following function to obtain the node ID: the user-defined node ID displays a name iterative retrieval function, (UA_client_custom_retriever_NodeIdbyDisplayNameItator ()) which is used for the iterator to acquire the NodeID according to the display name; a Custom node ID display name recursion retrieval function (UA_client_custom_retriever_NodeIdbyDisplayNameRecursive ()) for recursively acquiring the NodeID from the display name; the user-defined retrieval node ID function (UA_client_custom_retrieveNodeIdbyDisplayName ()) is used for obtaining NodeID according to the display name; the user-defined node ID function (UA_client_custom_retriever_NodeIdbyNodeIdSetter ()) is retrieved by the setter for obtaining the NodeID according to the node setter.
In the stage of writing data into an OPC UA server by an OPC UA Client, a user-defined connection checking function (UA_client_custom_connectitycheck ()) is called by a Device writing data packet function (PTL_device_writepackets ()) to check the connection state of the OPC UA Client and the OPC UA server, variable characteristic information and data corresponding to the variable characteristic information are obtained by the Device writing data packet function in the connected state, and the data is written into the OPC UA server based on the variable characteristic information by the user-defined writing data packet (UA_client_custom_writepackets) function. Wherein the Device write packet function (PTL_device_writePackets ()) is used for writing protocol Device packets; and the custom write data packet function is used for writing data packets into the OPC UA server. The Custom write data packet function may call a Custom Node ID retrieval function (ua_client_custom_retrieve_node_node_idbyvarparam ()) to obtain a Node ID (Node ID) of a variable in a server according to variable feature information, and call a write attribute function provided by open62541 to write data corresponding to the variable feature information based on the Node ID. Wherein, the introduction of the custom node ID retrieval function can refer to the introduction in the reading data stage.
When the EDPS is started, a creating device object function (createCMM driver object ()) is called to create a protocol device object, so that a client object is created, and an OPC UA client interacts with an OPC UA server. At EDPS shutdown or restart, the destroy protocol device object may be invoked by destroying CMM object function (destroycmmdriveroobject ()) to destroy protocol device object function (destroyptldriveroobject ()). Wherein a CMM object function (createdcmmdriveobjectj) is created for creating a communication device object; destroying a CMM object function (destroycmcmdriveobject ()) for destroying the communication device object; creating a device object function (createtptldriveobject ()) to create a protocol device object; a destroy device object function (destroyptldriveobjectj) for destroying protocol device objects.
It should be noted that the functions in the client are not limited to the above functions, and may include other functional functions.
According to the technical scheme provided by the embodiment of the invention, if the trigger instruction for interacting with the OPC UA server is received, the input/output service module is used for sending the interaction instruction to the OPC UA client integrated on the EDPS based on the trigger instruction, the OPC UA client is used for interacting with the OPC UA server based on the interaction instruction, namely the OPC UA client integrated on the EDPS is used for interacting with the OPC UA server, the interaction with the OPC UA server can be realized through the EDPS, the development of an independent client can be avoided, and development resources can be saved.
Fig. 2a is a flowchart of an interaction method between an EDPS and an OPC UA server through an OPC UA client according to an embodiment of the present invention, where the embodiment is applicable to a situation of establishing a connection with the OPC UA server. Optionally, the method comprises the following steps:
the establishment of connection between the OPC UA client and the OPC UA server and the initialization of the variable feature storage area comprise the following steps:
acquiring connection basic parameters by calling an acquired parameter Application Program Interface (API) provided by the EDPS through an equipment opening function in the OPC UA client, and transmitting the connection basic parameters to a custom connection function in the OPC UA client;
performing connection configuration based on the connection basic parameters through the self-defined connection function, and establishing connection with the OPC UA server based on connection configuration information;
and allocating storage space for the variable storage area through the equipment opening function, and writing the variable characteristic information into the variable storage area through the equipment opening function when the variable quantity is not empty.
As shown in fig. 2a, the technical solution provided by the embodiment of the present invention includes:
s210: and receiving a trigger instruction for interaction with the server.
S220: and sending an opening instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS based on the triggering instruction, wherein the opening instruction is used for triggering an acquisition parameter Application Program Interface (API) provided by the EDPS to be called through a device opening function in the OPC UA client to acquire a connection basic parameter, and transmitting the connection basic parameter to a self-defined connection function in the OPC UA client.
In the embodiment of the invention, a Device opening function (PTL_device_open ()) in the OPC UA client is used for opening a protocol Device, which may be an OPC UA server of a protocol, and may be specifically used for connection with the OPC UA server and initialization of a variable storage area. After the connection between the OPC UA client and the OPC UA server is established, the variable storage area needs to be initialized in order to read data from the OPC UA server or write data into the OPC UA server subsequently, so that the variable characteristic information is stored conveniently.
In the embodiment of the invention, the connection basic parameters can be input by a user or imported by the user, and the connection parameters are obtained by calling the obtaining parameter API of the EDPS through the equipment opening function in the OPC UA client; wherein, the connection basic parameters can be the parameters in table 1; the Custom connection function (UA_client_custom_Connect ()) in the OPC UA Client is mainly used for establishing connection with the OPC UA server.
S230: and carrying out connection configuration based on the connection basic parameters through the self-defined connection function, and establishing connection with the OPC UA server based on connection configuration information.
In the embodiment of the invention, specifically, the custom connection function can call the library function provided by open62541 to complete connection configuration; wherein open62541 is an open source free implementation OPC UA (OPC unified architecture) written in a generic subset of the C99 and c++98 languages. The library can be used with all primary compilers and provides the necessary tools to implement the dedicated OPC UA clients and servers. In the connection basic parameters, the required message security mode can be acquired according to the connection basic parameters input by a user; the client certificate and the client private key can be loaded according to the file name input by the user, and the trust server certificate can be acquired in a user-imported mode. Before connection is established with the OPC UA server, whether a connection mode is anonymous or not is judged according to the connection basic parameters, if so, a custom connection function is connected with the OPC UA server by calling the connection establishment function provided by open62541, wherein the required IP address and network port number of the OPC UA server can be acquired according to user input; if the connection mode is not anonymous, a user name and password provided by open62541 is called to establish a connection function to connect with an OPC UA server, wherein the needed user name and password can be obtained according to user input.
S240: and allocating storage space for the variable storage area through the equipment opening function, and writing the variable characteristic information into the variable storage area through the equipment opening function when the variable quantity is not empty.
In the embodiment of the invention, the variable statistics API provided by the EDPS is used for counting the variable quantity through the equipment opening function, the storage space required by the variable storage area is determined based on the variable quantity, the storage space is allocated for the variable storage area based on the required storage space through the extended storage space API provided by the equipment opening function, and under the condition that the variable quantity is not empty (can not be 0), the variable characteristic information is acquired through the acquired variable information API provided by the equipment opening function, and the variable characteristic information is written into the variable storage area.
The device opening function in the OPC UA client calls the variable statistics API provided by the EDPS to calculate the size of the storage space required by the variable storage area based on the variable data through the variable feature parameter statistics variable number in table 2 provided by the user, and allocates the storage space for the variable storage area based on the size of the required storage space through the extended storage space API provided by the EDPS, so that the variable feature information can be written into the variable storage area, and reading and writing of corresponding data can be performed through the variable feature information of the variable storage area. Specifically, under the condition that the number of the counted variables is 0, the connection with the OPC UA server is disconnected, and the EDPS judges that the equipment is opened and fails; if the counted variable data is not O, the equipment in the OPC UA client opens a function call to acquire variable information API to acquire variable characteristic information, and the variable characteristic information is written into a variable storage area. The variable characteristic information is information in table 2, and is descriptive information of variable characteristics, and data can be read from the OPC UA server side or written into the OPC UA server side through the variable characteristic information.
The process of the input/output module in EDPS calling the OPC UA client to establish connection with the OPC UA server may also refer to fig. 2b.
Therefore, the device opening function in the OPC UA client is called through the input/output module, connection with the OPC UA server is completed through the device opening function, and in order to write variable characteristic information into the variable characteristic storage area, connection with the OPC UA server can be established through EDPS, so that independent client development is avoided.
Fig. 3a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by using an EDPS according to an embodiment of the present invention, where in the embodiment of the present invention, the method is applied to a case where the OPC UA client is disconnected from the OPC UA server, and optionally, the disconnection between the EDPS and the OPC UA server by using the client based on the device closing instruction includes:
the OPC UA client destroys the variable feature storage area and disconnects the variable feature storage area from the OPC UA server, and the method comprises the following steps:
acquiring the variable quantity and the starting address of a variable storage area through a variable statistics API provided by an equipment closing function call EDPS in the OPC UA client;
traversing the variable storage area based on the variable quantity and the starting address through the equipment closing function, and sequentially clearing data in the variable storage area;
And calling a custom disconnection function in the OPC UA client through the equipment closing function to disconnect the OPC UA server.
As shown in fig. 3a, the technical solution provided by the embodiment of the present invention includes:
s310: and receiving a trigger instruction for interaction with the server.
S320: and sending a closing instruction to the OPC UA client through an input/output module of the EDPS based on the triggering instruction, wherein the closing instruction is used for triggering a variable statistics API provided by the EDPS through equipment closing function call in the OPC UA client to acquire the variable quantity and the starting address of a variable storage area.
In the embodiment of the invention, a Device closing function (PTL_device_close ()) in the OPC UA client is used for closing a protocol Device, and the protocol Device can be an OPC UA server of a protocol; the method can be particularly used for eliminating data in the variable characteristic area and disconnecting the variable characteristic area from an OPC UA server. When the OPC UA client is disconnected from the OPC UA server, the variable storage area data needs to be cleared.
In the embodiment of the invention, the variable quantity can be counted through the variable characteristic information in the table 2, and the device closing function can call the variable counting API provided by the EDPS to acquire the starting address of the variable storage area.
S330: traversing the variable storage area based on the variable quantity and the starting address through the equipment closing function, and sequentially clearing data in the variable storage area.
In the embodiment of the invention, the device closing function is used for traversing the variable storage area based on the starting address of the variable storage area, and when the information of one variable in the variable storage area is traversed, the information of the variable is cleared, and the variable is traversed to the last variable based on the number of the variables. The information of one variable comprises variable characteristic information and data corresponding to the variable characteristic information.
S340: and calling a custom disconnection function in the OPC UA client through the equipment closing function to disconnect the OPC UA server.
In the embodiment of the present invention, specifically, a user-defined Disconnect function (ua_client_custom_disconnect ()) may call the Disconnect provided by open62541 and delete the interface of the Client object to complete the Disconnect operation with the OPC UA server.
The process of the input/output module in EDPS invoking disconnection between the OPC UA client and the OPC UA server may also refer to fig. 3b.
Therefore, the device closing function in the OPC UA client is called through the input/output module, the device closing function is used for completing data clearing in the variable feature area and disconnecting with the OPC UA server, interaction with the OPC UA server can be performed through EDPS, development of an independent client is avoided, and development resources are saved.
Fig. 4a is a flowchart of an interaction method between an EDPS and an OPC UA server through an OPC UA client according to an embodiment of the present invention, where the method in this embodiment is applicable to a case where the client reads data from the server, in this embodiment, optionally,
the 0PC UA client reads data from the OPC UA server, comprising:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device reading function in the OPC UA client;
and under the condition that the OPC UA client is connected with the OPC UA server, variable characteristic information is obtained through the equipment reading function, the variable characteristic information is transmitted to a custom reading data function in the OPC UA client, corresponding data is read from the OPC UA server based on the variable characteristic information through the custom reading data function, and the data is stored in a variable table of the variable storage area.
Optionally, the method may further include:
and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
As shown in fig. 4a, the technical solution provided by the embodiment of the present invention includes:
s410: and receiving a trigger instruction for interaction with the server.
S420: and sending a read instruction to the client through the input/output service module of the EDPS based on the trigger instruction, wherein the read instruction is used for triggering a device read function in the OPC UA client to call a custom connection check function in the OPC UA client to check the connection state of the OPC UA client and the OPC UA server.
In the embodiment of the present invention, a Device read function (ptl_device_read ()) in the OPC UA client is used to read protocol Device data, where the protocol Device may be an OPC UA server of a protocol, and specifically is used to read data from the OPC UA server.
In the embodiment of the present invention, specifically, in order to ensure the connection state with the OPC UA server, a Custom connection check function (ua_client_custom_connectivcycheck ()) is called to check the connection state between the OPC UA Client and the OPC UA server before each operation of reading data from the OPC UA server is performed. The parameters required by the execution operation of the custom connection checking function may be the same as the custom connection function, and all the parameters need to be acquired by using an acquisition parameter API provided by EDPS, and when the operation of connection state checking is executed, a connection interface provided by Open62541 is called, the connection state of the interface is recorded, and the connection state of the OPC UA client and the OPC UA server can be acquired through the state provided by the interface.
S430: and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
In the embodiment of the invention, if the connection state between the OPC UA client and the OPC UA server is detected, connection is attempted to be established, and a self-defined connection function can be called to establish the connection between the OPC UA client and the OPC UA server; the specific description of establishing connection between the OPC UA client and the OPC UA server through the custom function may refer to the above embodiment, and will not be described again.
S440: and under the condition that the OPC UA client is connected with the OPC UA server, variable characteristic information is obtained through the equipment reading function, the variable characteristic information is transmitted to a custom reading data function in the OPC UA client, corresponding data is read from the OPC UA server based on the variable characteristic information through the custom reading data function, and the data is stored in a variable table of the variable storage area.
In the embodiment of the invention, under the condition that an OPC UA client is connected with an OPC UA server, acquiring the variable quantity and the initial address of a variable storage area through a variable statistics API provided by the equipment reading function call EDPS, traversing the variable storage area based on the variable quantity and the initial address to acquire variable characteristic information, transmitting the variable characteristic information to a custom reading data function in the client, reading corresponding data from the OPC UA server through the custom reading data function based on the variable characteristic information, and storing the data into a variable table of the variable storage area through a storage API provided by the EDPS.
In the embodiment of the invention, the variable characteristic information stored in the variable storage area can be obtained by counting the variable quantity through the variable characteristic information in the table 2, the equipment reading function can call the variable counting API provided by the EDPS to obtain the starting address of the variable storage area, and the equipment reading function traverses the variable storage area based on the starting address of the variable storage area, so that the variable characteristic information stored in the variable storage area can be obtained, and the traversal is carried out until the last variable is reached based on the variable quantity. The Custom read data function (ua_client_custom_readdata ()) may read corresponding data from the OPC UA server based on variable characteristic information, and store the read data into the variable table of the variable storage area through the EDPS providing storage API. The variable table comprises data corresponding to the variable characteristic information and identification of the variable.
In the embodiment of the present invention, optionally, in a specific implementation in the Custom read data function, a Custom Node ID retrieval function (ua_client_custom_retrieve_node idbyvarparam ()) may be called to obtain a Node ID (Node ID) of a variable in an OPC UA server according to variable feature information, and a read attribute function provided by open62541 may obtain data corresponding to the variable feature information based on the Node ID.
The process of the input/output module in EDPS calling the OPC UA client to read data from the OPC UA server may also refer to fig. 4b.
Therefore, the device reading function in the OPC UA client is called through the input/output module, data is read from the OPC UA server through the device reading function, interaction between the OPC UA server and the EDPS is achieved, development of an independent client is avoided, and development cost is saved.
Fig. 5a is a flowchart of an interaction method between an OPC UA client and an OPC UA server by an EDPS according to an embodiment of the present invention, where the embodiment is applicable to a case where the OPC UA client writes data to the OPC UA server, and, optionally,
the 0PC UA client writes data from the OPC UA to the OPC UA server, comprising:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device write data packet function in the OPC UA client;
and under the condition that the OPC UA client is connected with the OPC UA server, acquiring variable characteristic information and data corresponding to the variable characteristic information through the equipment writing data packet function, transmitting the variable characteristic information and the data to a custom writing data packet function in the OPC UA client, and writing the data to the OPC UA server through the custom writing data packet function based on the variable characteristic information.
Optionally, the method may further include:
and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
As shown in fig. 5a, the technical solution provided by the embodiment of the present invention includes:
s510: and receiving a trigger instruction for interaction with the server.
S520: and sending a write instruction to an OPC UA server through an input/output module of the EDPS based on the trigger instruction, wherein the write instruction is used for triggering the function call of the self-defined connection check function in the OPC UA client through the equipment write data packet in the OPC UA client to check the connection state between the OPC UA client and the OPC UA server.
In the embodiment of the present invention, a Device write packet function (ptl_device_writepackets ()) in an OPC UA client is used to write protocol Device data, where the protocol Device may be a server of a protocol, and specifically is used to write data to the OPC UA server.
In the embodiment of the present invention, specifically, in order to ensure the connection state with the OPC UA server, a Custom connection check function (ua_client_custom_connectivcycheck ()) is called to check the connection state between the OPC UA Client and the OPC UA server before each execution of the operation of writing data to the OPC UA server. The parameters required by the execution operation of the custom connection checking function may be the same as the custom connection function, and all the parameters need to be acquired by using an acquisition parameter API provided by EDPS, and when the operation of connection state checking is executed, a connection interface provided by Open62541 is called, the connection state of the interface is recorded, and the connection state of the OPC UA client and the OPC UA server can be acquired through the state provided by the interface.
S530: and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
In the embodiment of the invention, if the connection state between the OPC UA client and the OPC UA server is detected, connection is attempted to be established, and a self-defined connection function can be called to establish the connection between the OPC UA client and the OPC UA server; the specific description of establishing connection between the OPC UA client and the OPC UA server through the custom connection function may refer to the above embodiment, and will not be described again. If the OPC UA client is in a connection state with the OPC UA server, S540 is executed.
S540: and under the condition that the OPC UA client is connected with the OPC UA server, acquiring variable characteristic information and data corresponding to the variable characteristic information through the equipment writing data packet function, transmitting the variable characteristic information and the data to a custom writing data packet function in the OPC UA client, and writing the data to the OPC UA server through the custom writing data packet function based on the variable characteristic information.
In the embodiment of the invention, under the condition that an OPC UA client is connected with an OPC UA server, a write variable acquisition API provided by the EDPS is called by the equipment write data packet function to acquire a write variable linked list, the write variable linked list is traversed to acquire variable characteristic information and data corresponding to the variable characteristic information, the variable characteristic information and the data are transmitted to a custom write data packet function in the OPC UA client, and the data are written into the OPC UA server through the custom write data packet function based on the variable characteristic information.
In the embodiment of the invention, the data in the write variable linked list can be input by a user, the write variable linked list can comprise the variable ID and the data corresponding to the variable characteristic information, the device write data packet function acquires the write variable linked list by calling a write variable API provided by the EDPS, and inquires the variable characteristic information through the variable ID in the write variable linked list, so that the variable characteristic information and the data corresponding to the variable characteristic information can be acquired through traversing the write variable linked list, and the corresponding data is written into the OPC UA server through the Custom write data packet function (UA_client_custom_writepackets ()) based on the variable characteristic information. Specifically, the Custom write data packet function may call a Custom Node ID retrieval function (ua_client_custom_retrieve_node idbyvarparam ()) to obtain a Node ID (Node ID) of a variable in an OPC UA server according to variable feature information, and call a write attribute function provided by open62541 to write data corresponding to the variable feature information based on the Node ID.
The process of the input/output module in EDPS calling the OPC UA client to write data into the OPC UA server may also refer to fig. 5b.
Therefore, the device writing data packet function in the OPC UA client is called through the input/output module, data is written into the OPC UA server through the device writing data packet function, interaction with the OPC UA server can be performed through EDPS, development of an independent client is avoided, and development resources are saved.
Fig. 6 is a block diagram of an interaction device between an OPC UA client and an OPCUA server according to an embodiment of the present invention, where the device is configured in an electronic data processing system EDPS, and the device receiving module 610 and the interaction module 620 are shown in fig. 6.
The receiving module 610 is configured to receive a trigger instruction for interaction with the OPC UA server;
and the interaction module 620 is configured to send an interaction instruction to an OPC UA client integrated in the EDPS based on the trigger instruction through the input/output service module of the EDPS, and interact with the service end of the OPC UA based on the interaction instruction through the OPC UA client.
Optionally, the sending, by the input/output service module of the EDPS, an interaction instruction to the OPC UA client integrated in the EDPS, and the interacting, by the OPC UA client, with the OPC UA server based on the interaction instruction, includes:
the input/output service module sends an opening instruction to the OPC UA client for triggering the OPC UA client to establish safe connection/unsafe connection with the OPC UA server and initializing a variable characteristic storage area; or alternatively, the first and second heat exchangers may be,
the input/output service module sends a read/write instruction to the OPC UA client for triggering the 0PC UA client to read or write data from or to the OPC UA server; or alternatively, the first and second heat exchangers may be,
And the input/output service module sends a closing instruction to the OPC UA client side to trigger the OPC UA client side to destroy the variable characteristic storage area and disconnect the connection with the OPC UA server side.
Optionally, establishing connection between the OPC UA client and the OPC UA server and initializing the variable feature storage area includes:
acquiring connection basic parameters by calling an acquired parameter Application Program Interface (API) provided by the EDPS through an equipment opening function in the OPC UA client, and transmitting the connection basic parameters to a custom connection function in the OPC UA client;
performing connection configuration based on the connection basic parameters through the self-defined connection function, and establishing connection with the OPC UA server based on connection configuration information;
and allocating storage space for the variable storage area through the equipment opening function, and writing the variable characteristic information into the variable storage area through the equipment opening function when the variable quantity is not empty.
Optionally, the OPC UA client destroys the variable feature storage area and disconnects the variable feature storage area from the OPC UA server, including:
acquiring the variable quantity and the starting address of a variable storage area through a variable statistics API provided by an equipment closing function call EDPS in the OPC UA client;
Traversing the variable storage area based on the variable quantity and the starting address through the equipment closing function, and sequentially clearing data in the variable storage area;
and calling a custom disconnection function in the OPC UA client through the equipment closing function to disconnect the OPC UA server.
Optionally, the 0PC UA client reads data from the OPC UA server, including:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device reading function in the OPC UA client;
and under the condition that the OPC UA client is connected with the OPC UA server, variable characteristic information is obtained through the equipment reading function, the variable characteristic information is transmitted to a custom reading data function in the OPC UA client, corresponding data is read from the OPC UA server based on the variable characteristic information through the custom reading data function, and the data is stored in a variable table of the variable storage area.
Optionally, the writing data from OPC UA to OPC UA server by 0PC UA client includes:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device write data packet function in the OPC UA client;
And under the condition that the OPC UA client is connected with the OPC UA server, acquiring variable characteristic information and data corresponding to the variable characteristic information through the equipment writing data packet function, transmitting the variable characteristic information and the data to a custom writing data packet function in the OPC UA client, and writing the data to the OPC UA server through the custom writing data packet function based on the variable characteristic information.
Optionally, after the connection state between the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client, the method further includes:
and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
The device can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, as shown in fig. 7, where the apparatus includes:
one or more processors 710, one processor 710 being illustrated in fig. 7;
a memory 720;
The apparatus may further include: an input device 730 and an output device 740.
The processor 710, memory 720, input means 730, and output means 740 in the device may be connected by a bus or other means, for example in fig. 7.
The memory 720 is a non-transitory computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules (e.g., the receiving module 610 and the interaction module 620 shown in fig. 6) corresponding to a file processing method according to an embodiment of the present invention. The processor 710 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 720, that is, an interaction method between an OPC UA client and an OPC UA server by an EDPS implementing the above method embodiment, that is:
receiving a trigger instruction for interaction with an OPC UA server;
and sending an interaction instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS based on the trigger instruction, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction.
Memory 720 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 720 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 720 may optionally include memory located remotely from processor 710, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 730 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the computer device. The output device 740 may include a display device such as a display screen.
The embodiment of the invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements an interaction method of an EDPS through an OPC UA client and an OPC UA server, as provided by the embodiment of the invention:
Receiving a trigger instruction for interaction with an OPC UA server;
and sending an interaction instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS based on the trigger instruction, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for interacting an EDPS with an OPC UA server through an OPC UA client, wherein the method is applied to an EDPS of an electronic data processing system, the method comprising:
receiving a trigger instruction for interaction with an OPC UA server;
based on the trigger instruction, sending an interaction instruction to an OPC UA client integrated in the EDPS through an input/output service module of the EDPS, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction;
the method for transmitting the interaction instruction to the OPC UA client integrated in the EDPS through the input/output service module of the EDPS, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction comprises the following steps:
The input/output service module sends an opening instruction to the OPC UA client for triggering the OPC UA client to establish safe connection/unsafe connection with the OPC UA server and initializing a variable characteristic storage area; or alternatively, the first and second heat exchangers may be,
the input/output service module sends a read/write instruction to the OPC UA client for triggering the 0PC UA client to read or write data from or to the OPC UA server; or alternatively, the first and second heat exchangers may be,
and the input/output service module sends a closing instruction to the OPC UA client side to trigger the OPC UA client side to destroy the variable characteristic storage area and disconnect the connection with the OPC UA server side.
2. The method of claim 1, wherein establishing a connection between the OPC UA client and the OPC UA server and initializing the variable feature store comprises:
acquiring connection basic parameters by calling an acquired parameter Application Program Interface (API) provided by the EDPS through an equipment opening function in the OPC UA client, and transmitting the connection basic parameters to a custom connection function in the OPC UA client;
performing connection configuration based on the connection basic parameters through the self-defined connection function, and establishing connection with the OPC UA server based on connection configuration information;
and allocating storage space for the variable feature storage area through the equipment opening function, and writing variable feature information into the variable feature storage area through the equipment opening function when the variable quantity is not empty.
3. The method of claim 1, wherein the OPC UA client destroys the variable feature store and disconnects the variable feature store from the OPC UA server, comprising:
acquiring the variable quantity and the starting address of a variable feature storage area through a variable statistics API provided by an equipment closing function call EDPS in the OPC UA client;
traversing the variable characteristic storage area based on the variable quantity and the starting address through the equipment closing function, and sequentially clearing data in the variable characteristic storage area;
and calling a custom disconnection function in the OPC UA client through the equipment closing function to disconnect the OPC UA server.
4. The method of claim 1, wherein the 0PC UA client reads data from an OPC UA server, comprising:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device reading function in the OPC UA client;
and under the condition that the OPC UA client is connected with the OPC UA server, variable characteristic information is obtained through the equipment reading function, the variable characteristic information is transmitted to a custom reading data function in the OPC UA client, corresponding data is read from the OPC UA server based on the variable characteristic information through the custom reading data function, and the data is stored in a variable table of the variable characteristic storage area.
5. The method of claim 1, wherein the 0PC UA client writing data from OPC UA to OPC UA server comprises:
the connection state of the OPC UA client and the OPC UA server is checked by calling a custom connection checking function in the OPC UA client through a device write data packet function in the OPC UA client;
and under the condition that the OPC UA client is connected with the OPC UA server, acquiring variable characteristic information and data corresponding to the variable characteristic information through the equipment writing data packet function, transmitting the variable characteristic information and the data to a custom writing data packet function in the OPC UA client, and writing the data to the OPC UA server through the custom writing data packet function based on the variable characteristic information.
6. The method of claim 4 or 5, further comprising, after invoking a custom connection check function in the OPC UA client to check the connection status of the OPC UA client to the OPC UA server:
and if the OPC UA client and the OPC UA server are not in a connection state, calling a self-defined connection function to establish connection between the OPC UA client and the OPC UA server.
7. An interactive device based on EDPS, characterized in that the device is arranged in an electronic data processing system EDPS, the device comprising:
the receiving module is used for receiving a trigger instruction interacted with the OPC UA server;
the interaction module is used for sending an interaction instruction to an OPC UA client integrated in the EDPS based on the trigger instruction through an input/output service module of the EDPS, and interacting with the service end of the OPC UA based on the interaction instruction through the OPC UA client;
the method for transmitting the interaction instruction to the OPC UA client integrated in the EDPS through the input/output service module of the EDPS, and interacting with the OPC UA server through the OPC UA client based on the interaction instruction comprises the following steps:
the input/output service module sends an opening instruction to the OPC UA client for triggering the OPC UA client to establish safe connection/unsafe connection with the OPC UA server and initializing a variable characteristic storage area; or alternatively, the first and second heat exchangers may be,
the input/output service module sends a read/write instruction to the OPC UA client for triggering the 0PC UA client to read or write data from or to the OPC UA server; or alternatively, the first and second heat exchangers may be,
and the input/output service module sends a closing instruction to the OPC UA client side to trigger the OPC UA client side to destroy the variable characteristic storage area and disconnect the connection with the OPC UA server side.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202111670250.2A 2021-12-31 2021-12-31 Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server Active CN114390088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111670250.2A CN114390088B (en) 2021-12-31 2021-12-31 Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111670250.2A CN114390088B (en) 2021-12-31 2021-12-31 Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server

Publications (2)

Publication Number Publication Date
CN114390088A CN114390088A (en) 2022-04-22
CN114390088B true CN114390088B (en) 2024-04-09

Family

ID=81200091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111670250.2A Active CN114390088B (en) 2021-12-31 2021-12-31 Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server

Country Status (1)

Country Link
CN (1) CN114390088B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101903837A (en) * 2007-12-21 2010-12-01 Abb研究有限公司 Method and device for client/server communication according to the standard protocol OPC UA
CN101981897A (en) * 2007-12-21 2011-02-23 Abb研究有限公司 Method and device for communicating according to the standard protocol OPC UA in a client/server system
CN108052086A (en) * 2017-12-28 2018-05-18 珠海格力智能装备技术研究院有限公司 Data acquisition system
CN111580869A (en) * 2020-03-25 2020-08-25 吉利汽车研究院(宁波)有限公司 Data communication method and system based on OPC UA

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9485332B2 (en) * 2013-03-15 2016-11-01 Sencha, Inc. Offloading execution of a portion of a client-side web application to a server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101903837A (en) * 2007-12-21 2010-12-01 Abb研究有限公司 Method and device for client/server communication according to the standard protocol OPC UA
CN101981897A (en) * 2007-12-21 2011-02-23 Abb研究有限公司 Method and device for communicating according to the standard protocol OPC UA in a client/server system
CN108052086A (en) * 2017-12-28 2018-05-18 珠海格力智能装备技术研究院有限公司 Data acquisition system
CN111580869A (en) * 2020-03-25 2020-08-25 吉利汽车研究院(宁波)有限公司 Data communication method and system based on OPC UA

Also Published As

Publication number Publication date
CN114390088A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
US8953479B2 (en) System and method for license enforcement for data center monitoring applications
KR100859611B1 (en) System and method for managing distributed objects as a single representation
US20150156183A1 (en) System and method for filtering network communications
CN111258627B (en) Interface document generation method and device
US20230273853A1 (en) Securing an application based on auto-learning and auto-mapping of application services and apis
KR102260435B1 (en) Method and device for processing data
CN111385147B (en) Fault simulation method, device and computer readable storage medium
CN114124929A (en) Cross-network data processing method and device
CN102763373A (en) Method and apparatus for using service of home network device based on remote access
CN113595927A (en) Method and device for processing mirror flow in bypass mode
US10462265B2 (en) On-demand startup of offline servers and connection routing
CN100433645C (en) Network device management method and network management system
CN108512889B (en) Application response pushing method based on HTTP and proxy server
CN114390088B (en) Interaction method and device of EDPS (electronic data transfer protocol) through OPC UA client and OPC UA server
CN109166205B (en) Parking lot access control system, adaptation method and Internet of things gateway
CN112187869A (en) Remote debugging system and method of IOT device, electronic device and storage medium
KR100425000B1 (en) System and method for managing specification of a remote place computer
CN114338461A (en) Network connection monitoring method and related equipment
CN113065049A (en) Data capture method and device, storage medium and electronic equipment
US20190044960A1 (en) Network device and method for determining security problems in such a network device
CN110955446A (en) CPLD firmware updating method, system and device
CN113992732B (en) Terminal management control method, device, server and storage medium
CN117354368B (en) Client information transparent transmission method, device and equipment under seven-layer proxy and storage medium
CN115242763B (en) Network traffic acquisition method, system and related device for terminal application
CN113722084B (en) Data processing method, device, electronic equipment and computer storage medium

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