CN110858845A - Data subscription method and interoperation agent application entity - Google Patents

Data subscription method and interoperation agent application entity Download PDF

Info

Publication number
CN110858845A
CN110858845A CN201810962787.8A CN201810962787A CN110858845A CN 110858845 A CN110858845 A CN 110858845A CN 201810962787 A CN201810962787 A CN 201810962787A CN 110858845 A CN110858845 A CN 110858845A
Authority
CN
China
Prior art keywords
target
opc
resource
onem2m
subscription
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.)
Pending
Application number
CN201810962787.8A
Other languages
Chinese (zh)
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to CN201810962787.8A priority Critical patent/CN110858845A/en
Publication of CN110858845A publication Critical patent/CN110858845A/en
Pending legal-status Critical Current

Links

Images

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/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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
    • 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/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a data subscription method and an interoperation agent application entity. The embodiment of the invention can realize that the oneM2M equipment collects the industrial information of the OPC-UA equipment, realizes the data transmission and collection functions between the oneM2M system and the OPC-UA system, and provides technical support for subsequent data processing and application.

Description

Data subscription method and interoperation agent application entity
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a data subscription method and an interoperation agent application entity.
Background
In order to solve the problem of non-uniform industrial field data communication standards, an OPC (Open platform communication) fund initiates development and application work of an OPC unified architecture. OPC-UA (IEC62541, OPC Unified Architecture) is a set of data interaction specifications that is safe, reliable, and independent of manufacturers and platforms, and is used for industrial communications. The specification enables data interaction between different operating systems and devices of different manufacturers. Basically all important german automated product manufacturers, which are well known, are members of the OPC foundation and have provided OPC technology in their products. OPC-UA employs a semantic and Service Oriented Architecture (SOA) based architecture. The system is unified in architecture and mode, so that horizontal information integration such as data acquisition and equipment interoperation of the bottom layer of the equipment can be achieved, and vertical information integration from the equipment to SCADA (supervisory control and data acquisition), SCADA (supervisory control and data acquisition) to MES (manufacturing execution system), and equipment and cloud can also be achieved. OPC-UA is therefore becoming an important basic technical standard for the German industry 4.0, the American industry Internet and China manufacture "2025" and is becoming increasingly widely used.
With the continuous deepening of the research and development of the technology of the internet of things and the market popularization, all global communication standardization organizations are strengthening the standardization work of the internet of things. oneM2M (one Machine to Machine, unified Machine to Machine) is an international standard organization that is dedicated to Machine communication (M2M) and internet of things (IoT) and is contacted by ETSI (european telecommunications Standards Institute ) to various communication standardization organizations such as the united states and china and korean. The goal is to develop an internet of things architecture and related technology standards to ultimately achieve machine-to-machine communication across different departments and industries. Wherein these industry vertical applications include, but are not limited to: vehicle-mounted communication systems, smart traffic systems, smart medical, intelligent utilities (such as smart grids), industrial automation, smart homes, and the like. Members of the international organization for standardization in the field of internet of things include cisco, intel, huashi, highpass, zhongxing, large Tang mobile, China mobile, British telecom, German telecom, Italian telecom, Hewlett packard, Bosey, Hitachi, etc.
Referring to fig. 1, the oneM2M system may be divided into an application layer, a common service layer, and a network layer, wherein in the oneM2M architecture:
the Application layer manages related operations and storage of responsible applications by AE (Application Entity), and the instantiated end-to-end oneM2M solution is included in the Application layer. An AE is an entity in the application layer that implements M2M application service logic, such as fleet tracking applications, car networking applications, industrial control applications, and the like.
The Common service layer is managed by a CSE (Common Services Entity) and is responsible for aggregating application layer information to form a resource pool and coordinating underlying network transmission, is a core layer in oneM2M and plays a role of a platform, and the Common service layer comprises a series of instantiated Common service functions. The CSE represents the OneM2M platform primary function implementation entity, and is an instantiation of a group of 'common service functions'. The service functions provided by the CSE mainly include data management, device management, M2M service subscription management, and the like.
The Network layer is managed by an NSE (Network Services Entity) to be responsible for the transmission of the underlying Network, and provides the capability that the underlying Network can provide to the public service layer.
An IN (Infrastructure Node) typically contains a CSE and may also contain AEs. The AE of the node may be defined as IN-AE, i.e. the application entity of the platform node, and the CSE of the node may be defined as IN-CSE, i.e. the common service entity of the platform node. One platform node may correspond to at least one internet of things platform.
The ASN (Application Service Node) and Middle Node (MN) usually comprise a CSE and may also comprise AE. The AE of the intermediate node may be defined as MN-AE, i.e. an application entity of the intermediate node, and the CSE of the intermediate node may be defined as MN-CSE, i.e. a common service entity of the intermediate node. One intermediate node may correspond to at least one gateway.
There are 3 reference points (i.e., interfaces) between layers in oneM2M system, where Mca: the interface between the AE and the CSE is responsible for communication from the AE to the CSE or from the CSE to the AE; Mcc/Mcc': the interface between the two CSEs is responsible for communication between the CSEs; mcn: the interface between the CSE and NSE is responsible for CSE to NSE or NSE to CSE communications. There is also a Mch reference point, which is the interface between the oneM2M system and the charging system.
The conventional OPC-UA system and the newly emerging oneM2M platform in the industrial field are introduced separately. The realization of the interconnection and the interoperation between the two systems is of great significance. The prior art (Chinese patent number: CN202931357U) proposes an OPC node-based SIS and DCS system communication connection device. The OPC node is used for realizing communication between the DCS network and the outside, and the added router realizes access of the SIS system, so that access of data sharing between the SIS system and the DCS distributed control system network is realized, and potential safety hazards of data transmission of the two systems can be eliminated. However, the above prior art is limited to the use of the system inside the factory field, and does not consider the connection and communication with the internet of things platform such as oneM 2M. Therefore, a solution that enables the interworking between OPC-UA and oneM2M is needed.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a data subscription method and an interoperation proxy application entity, which implement interoperation between an OPC-UA system and a oneM2M platform.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a data subscription method, including:
a data subscription method applied to an interoperation agent application entity IPE in an intermediate node of a unified machine-to-machine oneM2M system is characterized by comprising the following steps:
the IPE maps a target OPC-UA device in an open platform communication unified architecture OPC-UA into a target oneM2M resource;
the IPE creates a target subscription resource of the target oneM2M resource on a public service entity MN-CSE of the intermediate node;
and after receiving a first notification message which is sent by the MN-CSE and subscribes the target subscription resource, the IPE sends a subscription request message to the target OPC-UA equipment.
Preferably, in the above method, before mapping the target OPC-UA device to the target oneM2M resource, the method further includes:
and discovering the OPC-UA and establishing a communication connection between the OPC-UA and the oneM2M system.
Preferably, in the above method, mapping a target OPC-UA device in the OPC-UA to a target oneM2M resource includes:
creating a target oneM2M resource, and establishing a mapping relation between the target OPC-UA device and a target oneM2M resource, wherein the target oneM2M resource comprises a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
Preferably, in the above method, the step of creating a target oneM2M resource and establishing a mapping relationship between the target OPC-UA device and the target oneM2M resource specifically includes:
according to the n-layer resource structure of the target OPC-UA equipment in the OPC-UA, a container group with n-1 layers is established for the target application entity;
and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
Preferably, in the above method, the step of creating a target subscription resource of the target oneM2M resource specifically includes:
in the attribute of the access control policy identification accessControlPolicyIDs of the target subscription resource, linking the access control policy < accessControlPolicy > resource with the following characteristics that accesscontroloriginationID is set as AE-ID of the IPE, accesscontrolOperations are set as RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
Preferably, in the above method, after sending the subscription request message, the method further includes: and receiving a subscription response message sent by the target OPC-UA equipment.
Preferably, in the above method, after receiving the subscription response message, the method further includes:
the IPE sends a release request message to the target OPC-UA equipment;
the IPE receives a second notification message returned by the target OPC-UA equipment aiming at the release request message;
and the IPE sends an update message carrying the notification content of the target OPC-UA equipment to the MN-CSE according to the second notification message.
The embodiment of the present invention further provides an interworking agent application entity IPE, which is applied to an intermediate node of a unified machine to machine oneM2M system, and includes: an open platform communication unified architecture OPC-UA client application and an interworking IWK function module, wherein,
the OPC-UA client application is used for mapping a target OPC-UA device in OPC-UA to a target oneM2M resource, and sending a subscription request message to the target OPC-UA device after the IWK function module receives a first notification message for subscribing the target subscription resource;
the IWK function module is used for creating a target subscription resource of the target oneM2M resource on a public service entity MN-CSE of the intermediate node; and receiving a first notification message sent by the MN-CSE and subscribing the target subscription resource.
Preferably, the above-mentioned interworking agent application entity IPE further comprises:
and the discovery function module is used for discovering the OPC-UA and establishing communication connection between the OPC-UA and the oneM2M system.
Preferably, in the above-mentioned interworking agent application entity IPE, the OPC-UA client application is further configured to create a target oneM2M resource, and establish a mapping relationship between the target OPC-UA device and the target oneM2M resource, where the target oneM2M resource includes a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
Preferably, in the above-mentioned interworking agent application entity IPE, the OPC-UA client application is further configured to create a n-1 layer container group for the target application entity according to an n layer resource structure of the target OPC-UA device in OPC-UA; and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
Preferably, in the above-mentioned interworking agent application entity IPE, the IWK function module is further configured to:
in the attribute of the access control policy identification accessControlPolicyIDs of the target subscription resource, linking the access control policy < accessControlPolicy > resource with the following characteristics that accesscontroloriginationID is set as AE-ID of the IPE, accesscontrolOperations are set as RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
Preferably, in the above-mentioned interworking agent application entity IPE, the OPC-UA client application is further configured to receive a subscription response message sent by the target OPC-UA device, send a publish request message to the target OPC-UA device, and receive a second notification message returned by the target OPC-UA device for the publish request message;
and the IWK function module is further configured to send, to the MN-CSE, an update message carrying the notification content of the target OPC-UA device according to the second notification message.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data subscription method described above are implemented.
Compared with the prior art, the data subscription method and the interoperation proxy application entity provided by the embodiment of the invention can realize that oneM2M equipment acquires industrial information of OPC-UA equipment, realize the data transmission and acquisition functions between the oneM2M system and the OPC-UA system, and provide technical support for subsequent data processing and application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of oneM2M system;
fig. 2 is a schematic diagram of an application environment of a data subscription method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a data subscription method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a data subscription method according to an embodiment of the present invention;
fig. 5 is another schematic flow chart of a data subscription method according to an embodiment of the present invention;
fig. 6 is an exemplary diagram of interaction between devices of a data subscription method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a data distribution method according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an interaction between devices in a data distribution method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an application entity of an interworking agent according to an embodiment of the present invention;
fig. 10 is another schematic structural diagram of the application entity of the interoperation agent according to the embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The interoperability between the oneM2M platform and the traditional OPC-UA system in the industrial field can acquire a large amount of data of OPC devices in the widely applied OPC-UA system, and based on the acquired data, important functions such as information acquisition and analysis, production control and management, data support for big data analysis and the like can be realized, so the interoperability between the systems has very important significance. And an important means for realizing the interoperation between systems is subscription and publication. The embodiment of the invention realizes the interoperation function among the systems through an interoperation Proxy Application Entity (IPE), and provides data support for further processing based on the acquired data.
An IPE is an application entity that implements interworking interoperability with non-oneM 2M networks, and is typically located at an intermediate node (MN). An IPE interconnected with an OPC-UA industrial system can comprise two parts, namely an OPC-UA client application (App) and an interoperation function (IWK function).
Fig. 2 is a schematic view of an application scenario of the data subscription method according to the embodiment of the present invention. IN fig. 2, the oneM2M system includes an IN 23 and an MN 21, where the IN 23 includes an IN-CSE 231 and the MN 21 includes an IPE211 and an MN-CSE 212. The IPE211 includes an OPC-UA client application 2111 and an IWK function 2112. The oneM2M system is interconnected with the OPC-UA device 22 of the OPC-UA system through the IPE211 in the MN 21, and the OPC-UA device 22 comprises an OPC-UA Server application 221, namely an OPC-UA Server APP.
Referring to fig. 3, the data subscription method provided in the embodiment of the present invention is applied to an IPE of the oneM2M system, where the IPE is generally disposed in an intermediate node (MN). As shown in fig. 3, the data subscription method includes:
s301, the IPE maps the target OPC-UA equipment in the OPC-UA to target oneM2M resource.
Here, the target OPC-UA device is an OPC-UA device, and IPE needs to map the OPC-UA device to oneM2M resource and save it at the intermediate node (MN) first, so that the OPC-UA device can be regarded as oneM2M resource in oneM2M system.
S302, the IPE creates a target subscription resource of the target oneM2M resource on the MN-CSE of the intermediate node.
Here, by creating a subscription resource of the target oneM2M resource and saving it at the MN-CSE, so that the oneM2M app application in the oneM2M system can initiate a subscription resource in the oneM2M system requesting to create the oneM2M resource, and so that the MN-CSE can respond to the request to subscribe.
S303, after receiving the first notification message for subscribing the target subscription resource sent by the MN-CSE, the IPE sends a subscription request message to the target OPC-UA device.
Here, after the resources and the mapping are created, the mapping of the subscription operation between OPC-UA and oneM2M may be performed. Specifically, in S303, after receiving a request initiated by a oneM2M app application to create a subscription resource of the oneM2M resource, the MN-CSE of the intermediate node (MN) sends a first notification message subscribing to the resource requested to be created by the oneM2M app application to the IPE. And the IPR sends a subscription request message to a target OPC-UA device in an OPC-UA system according to the first notification message so as to request to subscribe the related data of the target OPC-UA device.
Through the steps, the embodiment of the invention realizes the resource mapping and creation of the OPC-UA equipment in the oneM2M system, further can respond to the request of the oneM2M app application, initiates a subscription request to the OPC-UA equipment in the OPC-UA system, subscribes the required related data on the industrial equipment, realizes the data intercommunication between the OPC-UA and the oneM2M system, and provides technical support for the subsequent data processing and application.
Optionally, in the above S301, the IPE creates a target oneM2M resource, and establishes a mapping relationship between the target OPC-UA device and the target oneM2M resource, where the target oneM2M resource may include a target application entity (OPC-UA-AE) and a container group of the target application entity, and the container group may be a unified container group (container) or a flexible container group (flexContainer). Here, the IPE maps the OPC-UA devices to the corresponding oneM2M resource < OPC-UA-AE > and container group, which may be specifically < container > (n-1) or < flexContainer > (n-1), and saves on the MN.
Specifically, the IPE may create a container group of n-1 layers for the target application entity according to an n-layer resource structure of the target OPC-UA device in the OPC-UA, and map the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one, respectively. Table 1 gives an example of a mapping rule of a target OPC-UA device with a oneM2M container set, where the n-layer resource structure of the OPC-UA device corresponds to n-1 layer < container > or < flexContainer > in oneM 2M.
OPC-UA device oneM2M resource
Root node <OPC-UA-AE>
Sub-device <container>/<flexContainer>
Level 2 sub-device <container>/<flexContainer>
n-1 level sub-device <container>/<flexContainer>
n-level sub-device -
TABLE 1
Optionally, in the above S302, the interworking function module of the IPE may create a target subscription resource MN-CSEBase/OPC-UA-AE/contact/description of the < contact > (n-1) or < flexcontact > (n-1) resource in the above S301 on the MN-CSE. The target subscription resource < CSEBase/OPC-UA-AE/container/description > is shown in table 2 below, wherein:
optionally, when creating the target subscription resource of the target oneM2M resource, the IPE may link the access control policy < access control policy > resource with the following characteristics in the access control policy identifier accesscontrol policies attribute of the target subscription resource, where the access control policy identifier is set to AE-ID of the IPE, and the access control operations is set to RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER, and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
TABLE 2
Further, referring to fig. 4, after S303, the data subscription method according to the embodiment of the present invention may further include:
s304, receiving a subscription response message sent by the target OPC-UA device, where the subscription response message may indicate a response of the target OPC-UA device to the subscription request, for example, whether the subscription is successful or not.
Further, referring to fig. 5, before the step S301, the data subscription method according to the embodiment of the present invention may further include:
s300, the IPE discovers OPC-UA and establishes a communication connection between the OPC-UA and the oneM2M system. Here, after the oneM2M system and the OPC-UA system are started and initialized respectively, the oneM2M system and the OPC-UA system can discover each other and establish a communication connection through IPE.
Fig. 6 shows an example of an interaction flow between devices of the data subscription method according to the embodiment of the present invention, wherein,
in S601, after oneM2M and the OPC-UA system are started and initialized, neM2M and the OPC-UA system mutually discover each other through IPE and establish a communication connection. The MN IPE creates two types of resources of < OPC-UA-AE > and container group < container > (n-1) or < flexContainer > (n-1) for a certain OPC-UA device, namely, the OPC-UA device is mapped to the corresponding oneM2M resource < OPC-UA-AE > and container group < container > (n-1) or < flexContainer > (n-1) and stored on the MN. Here, a uniform < container > or a more flexible < flexContainer > may be selected according to a specific OPC-UA device.
In S602, the Interworking (IWK) function of the IPE may create a subscription resource on the MN-CSE that subscribes to the < container > (n-1) or < flexContainer > (n-1) resource in S601: MN-CSEBase/OPC-UA-AE/contact/description.
IN S603, the IN-CSE initiates a request to the MN-CSE to create a < description > resource corresponding to < container >/< flexContainer > resource information required IN the OPC-UA device, according to the need of the oneM2M app application.
IN S604, after receiving the creation request, the MN-CSE returns a creation response to the IN-CSE.
IN S605, the MN-CSE sends a Notify message informing the IWK function module IN the IPE to subscribe to the corresponding resource created by the IN-CSE.
In S606, the OPC-UA client application of the IPE initiates a subscription request to the server application in the OPC-UA device by calling the Monitored Item and the description service sets of the OPC-UA.
In S607, the server application in the OPC-UA device returns a subscription response to the OPC-UA client application of the IPE, so that the subscription of the oneM2M internet of things platform to the OPC-UA industrial information is completed once.
In the above flow, if more OPC-UA device data needs to be collected, the flow may return to S603 to repeat the above subscription flow.
After the OPC-UA device data is successfully subscribed, the data subscription method according to the embodiment of the present invention may further obtain the published OPC-UA device data through the following steps.
Referring to fig. 7, the data subscription method according to the embodiment of the present invention, after S304, may further include:
s305, the IPE sends a release request message to the target OPC-UA device.
Here, the IPE sends the publish request message to the target OPC-UA device according to the attribute of the target subscription resource, and specifically, may send the publish request message to an OPC-UA server application in the OPC-UA device through an OPC-UA client application.
S306, the IPE receives a second notification message returned by the target OPC-UA device aiming at the release request message.
After sending the release request message, the IPE waits for and receives a second notification message returned by the target OPC-UA device for the release request message, where the second notification message includes notification content of the target OPC-UA device.
S307, the IPE sends an update message carrying the notification content of the target OPC-UA device to the MN-CSE according to the second notification message.
Here, after receiving the update message, the MN-CSE may send the notification content IN the update message to the oneM2M app application through the IN-CSE, thereby implementing the publishing process of the subscription data. Preferably, the MN-CSE may send the advertisement content to the IN-CSE through an advertisement request message, and the IN-CSE returns an advertisement response message to the MN-CSE after receiving the advertisement request message, and sends the advertisement content to the corresponding oneM2M app application.
Fig. 8 shows another example of the interaction flow between the devices of the data subscription method according to the embodiment of the present invention, wherein,
in S801, the OPC-UA client application of the IPE in the MN issues a release request to the OPC-UA server application in the OPC-UA device.
In S802, the OPC-UA server application in the OPC-UA device generates a notification message of the response, and returns the notification message to the OPC-UA client application of the IPE.
At S803, the MN IPE sends an update message containing the notification content of the OPC-UA device to the MN-CSE.
IN S804, the MN-CSE forwards the advertisement content to the IN-CSE IN the form of a oneM2M publish request, and the IN-CSE replies to the publish response to the MN-CSE upon receipt.
Subsequently, the IN-CSE may send the advertised content to the corresponding oneM2M app application, eventually implementing a publishing process of the subscription data.
As can be seen from the above description, the data subscription method provided in the embodiment of the present invention can implement that the oneM2M device acquires the industrial information of the OPC-UA device, and implement data transmission and acquisition between the oneM2M system and the OPC-UA system.
Based on the above method, an embodiment of the present invention further provides a device for implementing the above method, and referring to fig. 9, an embodiment of the present invention provides an IPE (interoperation agent application entity) 211, which applies an intermediate node (MN) of a oneM2M system, including:
an OPU-UA client application 2111, configured to map a target OPC-UA device in an OPC-UA to a target oneM2M resource, and send a subscription request message to the target OPC-UA device after the IWK function module receives a first notification message that subscribes to the target subscription resource;
the IWK function module 2112, configured to create a target subscription resource of the target oneM2M resource on a common service entity MN-CSE of the intermediate node; and receiving a first notification message sent by the MN-CSE and subscribing the target subscription resource.
Preferably, the IPE may further comprise: and a discovery function module (not shown in the figure) for discovering the OPC-UA and establishing a communication connection between the OPC-UA and the oneM2M system.
Preferably, the OPC-UA client application 2111 is further configured to create a target oneM2M resource, and establish a mapping relationship between the target OPC-UA device and the target oneM2M resource, where the target oneM2M resource includes a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
Preferably, the OPC-UA client application 2111 is further configured to create a n-1-layer container group for the target application entity according to an n-layer resource structure of the target OPC-UA device in the OPC-UA; and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
Preferably, the IWK function module 2112 is further configured to:
in the attribute of the access control policy identification accessControlPolicyIDs of the target subscription resource, linking the access control policy < accessControlPolicy > resource with the following characteristics that accesscontroloriginationID is set as AE-ID of the IPE, accesscontrolOperations are set as RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
Preferably, the OPC-UA client application 2111 is further configured to receive a subscription response message sent by the target OPC-UA device, send a release request message to the target OPC-UA device, and receive a second notification message returned by the target OPC-UA device for the release request message;
the IWK function module 2112 is further configured to send, according to the second notification message, an update message carrying notification content of the target OPC-UA device to the MN-CSE.
As shown in fig. 10, embodiments of the present invention also provide an IPE 90, where IPE 90 comprises a processor 91, a memory 92, a bus system 93, a receiver 94, and a transmitter 95. Wherein, the processor 91, the memory 92, the receiver 94 and the transmitter 95 are connected by a bus system 93, the memory 92 is used for storing instructions, the processor 91 is used for executing the instructions stored in the memory 92 to control the receiver 94 to receive signals and control the transmitter 95 to transmit signals;
the processor 91 is configured to map a target OPC-UA device in an open platform communication unified architecture OPC-UA to a target oneM2M resource; and creating a target subscription resource for the target oneM2M resource on a common service entity MN-CSE of the intermediate node.
The receiver 94 is configured to receive a first notification message sent by the MN-CSE to subscribe to the target subscription resource;
the transmitter 95 is configured to transmit a subscription request message to the target OPC-UA device after the receiver 94 receives the first notification message.
Therefore, the IPE according to the embodiment of the present invention may implement resource mapping and creation of the OPC-UA device in the oneM2M system, and further may respond to a request of the oneM2M app application, initiate a subscription request to the OPC-UA device in the OPC-UA system, subscribe related data on the required industrial device, implement data interworking between the OPC-UA and the oneM2M system, and provide technical support for subsequent data processing and application.
It should be understood that, in the embodiment of the present invention, the processor 91 may be a Central Processing Unit (CPU), and the processor 91 may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 92 may include both read-only memory and random access memory and provides instructions and data to the processor 61. A portion of memory 92 may also include non-volatile random access memory. For example, memory 92 may also store device type information.
The bus system 93 may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 93 in the figures.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 91. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 92, and the processor 91 reads the information in the memory 92 and performs the steps of the above method in combination with the hardware thereof. To avoid repetition, it is not described in detail here.
Optionally, as an embodiment, the processor 91 is specifically configured to: before mapping the target OPC-UA device to a target oneM2M resource, discovering the OPC-UA, and establishing a communication connection between the OPC-UA and the oneM2M system.
Optionally, as an embodiment, the processor 91 is specifically configured to: creating a target oneM2M resource, and establishing a mapping relation between the target OPC-UA device and a target oneM2M resource, wherein the target oneM2M resource comprises a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
Optionally, as an embodiment, the processor 91 is specifically configured to: according to the n-layer resource structure of the target OPC-UA equipment in the OPC-UA, a container group with n-1 layers is established for the target application entity; and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
Optionally, as an embodiment, the processor 91 is specifically configured to, when creating a target subscription resource of the target oneM2M resource:
in the attribute of the access control policy identification accessControlPolicyIDs of the target subscription resource, linking the access control policy < accessControlPolicy > resource with the following characteristics that accesscontroloriginationID is set as AE-ID of the IPE, accesscontrolOperations are set as RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
Optionally, as an embodiment, the receiver 94 is further configured to receive a subscription response message sent by the target OPC-UA device.
Optionally, as an embodiment, the transmitter 95 is further configured to transmit a publish request message to the target OPC-UA device; the receiver 94 is further configured to receive a second notification message returned by the target OPC-UA device for the release request message; the transmitter 95 is further configured to send, according to the second notification message, an update message carrying the notification content of the target OPC-UA device to the MN-CSE.
It should be understood that the IPE 90 according to the embodiment of the present invention may correspond to the IPE211 provided in the embodiment of the present invention, and the above and other operations and/or functions of each module in the IPE 90 are respectively for implementing the corresponding flow in the above method embodiment, and are not described herein again for brevity.
Therefore, the IPE of the embodiment of the invention can realize the data subscription and publication between the OPC-UA and the oneM2M systems.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A data subscription method applied to an interoperation agent application entity (IPE) in an intermediate node of a unified machine-to-machine oneM2M system, the method comprising:
the IPE maps a target OPC-UA device in an open platform communication unified architecture OPC-UA into a target oneM2M resource;
the IPE creates a target subscription resource of the target oneM2M resource on a public service entity MN-CSE of the intermediate node;
and after receiving a first notification message which is sent by the MN-CSE and subscribes the target subscription resource, the IPE sends a subscription request message to the target OPC-UA equipment.
2. The method of claim 1, wherein prior to mapping the target OPC-UA device to a target oneM2M resource, the method further comprises:
and discovering the OPC-UA and establishing a communication connection between the OPC-UA and the oneM2M system.
3. The method of claim 1, wherein mapping a target OPC-UA device in the OPC-UA to a target oneM2M resource comprises:
creating a target oneM2M resource, and establishing a mapping relation between the target OPC-UA device and a target oneM2M resource, wherein the target oneM2M resource comprises a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
4. The method of claim 3, wherein the step of creating a target oneM2M resource and establishing a mapping relationship between the target OPC-UA device and a target oneM2M resource comprises:
according to the n-layer resource structure of the target OPC-UA equipment in the OPC-UA, a container group with n-1 layers is established for the target application entity;
and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
5. The method of claim 4, wherein the step of creating a target subscription resource for the target oneM2M resource includes:
in the attribute of the access control policy identification accessControlPolicyIDs of the target subscription resource, linking the access control policy < accessControlPolicy > resource with the following characteristics that accesscontroloriginationID is set as AE-ID of the IPE, accesscontrolOperations are set as RETRIEVE, CREATE, UPDATE, DELETE, DISCOVER and NOTIFY;
setting sendLatest for pendingNotification attribute of target subscription resource;
setting a latestNotify attribute of the target subscription resource as latest;
setting the notifiationContentType attribute of the target subscription resource as resource;
the < schedule > attribute of the target subscription resource is set to publish advertisements immediately.
6. The method of any of claims 1 to 5, wherein after sending the subscription request message, the method further comprises: and receiving a subscription response message sent by the target OPC-UA equipment.
7. The method of claim 6, wherein after receiving the subscription response message, the method further comprises:
the IPE sends a release request message to the target OPC-UA equipment;
the IPE receives a second notification message returned by the target OPC-UA equipment aiming at the release request message;
and the IPE sends an update message carrying the notification content of the target OPC-UA equipment to the MN-CSE according to the second notification message.
8. An interworking agent application entity, IPE, for an intermediate node of a unified machine to machine oneM2M system, comprising: an open platform communication unified architecture OPC-UA client application and an interworking IWK function module, wherein,
the OPC-UA client application is used for mapping a target OPC-UA device in OPC-UA to a target oneM2M resource, and sending a subscription request message to the target OPC-UA device after the IWK function module receives a first notification message for subscribing the target subscription resource;
the IWK function module is used for creating a target subscription resource of the target oneM2M resource on a public service entity MN-CSE of the intermediate node; and receiving a first notification message sent by the MN-CSE and subscribing the target subscription resource.
9. The interworking agent application entity, IPE, of claim 8,
the OPC-UA client application is further configured to create a target oneM2M resource, and establish a mapping relationship between the target OPC-UA device and the target oneM2M resource, where the target oneM2M resource includes a target application entity OPC-UA-AE and a container group of the target application entity, and the container group is a unified container group container or a flexible container group flexContainer.
10. The interworking agent application entity, IPE, of claim 9,
the OPC-UA client application is also used for creating a n-1 layer container group for the target application entity according to an n layer resource structure of the target OPC-UA device in OPC-UA; and mapping the 1 st layer to the n-1 th layer in the n-layer resource structure of the target OPC-UA device with the 1 st layer to the n-1 th layer in the container group one by one respectively.
11. The interworking agent application entity, IPE, of claim 8,
the OPC-UA client application is further configured to receive a subscription response message sent by the target OPC-UA device, send a release request message to the target OPC-UA device, and receive a second notification message returned by the target OPC-UA device for the release request message;
and the IWK function module is further configured to send, to the MN-CSE, an update message carrying the notification content of the target OPC-UA device according to the second notification message.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the data subscription method according to any one of claims 1 to 7.
CN201810962787.8A 2018-08-22 2018-08-22 Data subscription method and interoperation agent application entity Pending CN110858845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962787.8A CN110858845A (en) 2018-08-22 2018-08-22 Data subscription method and interoperation agent application entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962787.8A CN110858845A (en) 2018-08-22 2018-08-22 Data subscription method and interoperation agent application entity

Publications (1)

Publication Number Publication Date
CN110858845A true CN110858845A (en) 2020-03-03

Family

ID=69635157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962787.8A Pending CN110858845A (en) 2018-08-22 2018-08-22 Data subscription method and interoperation agent application entity

Country Status (1)

Country Link
CN (1) CN110858845A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847420A (en) * 2016-05-16 2016-08-10 重庆邮电大学 OPC UA sleep proxy method suitable for wireless on-site device
US20160366663A1 (en) * 2015-06-15 2016-12-15 Intel Corporation Batch notification in onem2m environments
CN106533886A (en) * 2016-12-09 2017-03-22 重庆邮电大学 Full-interconnection manufacturing network architecture based on IPv6 protocol and management method
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
EP3267649A1 (en) * 2016-07-08 2018-01-10 Omron Corporation Method and industrial computing apparatus for performing a secure communication
CN108353077A (en) * 2015-10-26 2018-07-31 三星电子株式会社 Method and apparatus for the intercommunication between heterogeneous system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20160366663A1 (en) * 2015-06-15 2016-12-15 Intel Corporation Batch notification in onem2m environments
CN108353077A (en) * 2015-10-26 2018-07-31 三星电子株式会社 Method and apparatus for the intercommunication between heterogeneous system
CN105847420A (en) * 2016-05-16 2016-08-10 重庆邮电大学 OPC UA sleep proxy method suitable for wireless on-site device
EP3267649A1 (en) * 2016-07-08 2018-01-10 Omron Corporation Method and industrial computing apparatus for performing a secure communication
CN106533886A (en) * 2016-12-09 2017-03-22 重庆邮电大学 Full-interconnection manufacturing network architecture based on IPv6 protocol and management method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ILKKA SEILONEN, TOMI TUOVINEN: ""Aggregating_OPC_UA_servers_for_monitoring_manufacturing_systems_and_mobile_work_machines"", 《2016 IEEE 21ST INTERNATIONAL CONFERENCE ON EMERGING TECHNOLOGIES AND FACTORY AUTOMATION》 *
刘洋: ""基于消息代理的OPC_UA发布_订阅模式研究与实现"", 《高技术通讯》 *
洪英杰: ""oneM2M物联网标准介绍"", 《电脑编程技巧与维护》 *

Similar Documents

Publication Publication Date Title
US11974195B2 (en) Method and system for handling dynamic group creation in V2X system
US11558720B2 (en) Group multicast method, group creation method, and mobile network platform
EP3346738B1 (en) Group communication method and system for group communication
EP2730108B1 (en) Machine to machine (m2m) application server, xdms server, and methods for m2m applications group management
US11558476B2 (en) Method and apparatus for renewing subscription for network data analysis in wireless communication system
CN107667550B (en) Method for processing request through polling channel in wireless communication system and apparatus therefor
JP6629345B2 (en) Device and method for adding M2M service
US9867164B2 (en) Method and device for processing a specific request message in wireless communication system
CN105991731A (en) Method for obtaining information, intelligent terminal and server side
US20230300731A1 (en) Method and device for simultaneously using network slices
US20190089778A1 (en) Ad hoc decentralized cloud infrastructure
KR20170028878A (en) Method for processing request messages in wireless communication system, and device for same
CN114090388A (en) Information acquisition method, server cluster, server and equipment
CN112368997A (en) Resource management method and device
KR101890310B1 (en) Adapter for message queuing telemetry transport protocol interworking and data exchange system employing the same
US11337038B2 (en) Method, device and system for transmitting multicast group information
CN104639557A (en) Method and system for establishing PCEP (Path Computation Element Communication Protocol) session and equipment
CN110875945B (en) Method, apparatus and medium for task processing on a generic service entity
CN110858845A (en) Data subscription method and interoperation agent application entity
CN111614704A (en) Data subscription method and gateway
CN115699823A (en) Method and apparatus for supporting mobility in collecting and analyzing network data in a wireless communication network
CN107211479B (en) Method and device for selecting access network
CN105432057A (en) Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method
CN104080123B (en) The method and apparatus of machine type communication
EP3912329B1 (en) Automated service layer message flow management in a communications network

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200303