Skip to content
Snippets Groups Projects
Commit 99956f19 authored by Ingo Friese's avatar Ingo Friese
Browse files

com flow optimized

parent 9f7f60f4
No related branches found
No related tags found
1 merge request!9SDS-2024-0141R02-ogc_ipe_communication_schema
Pipeline #1773 passed
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -189,13 +189,13 @@ The IPE shall map the 'result' attribute of an OGC/STA 'Observation' to the 'con
## 6.2 Communication Flow
Figure 6.2-1 shows the oneM2M-to-OGC/STA direction. In order to transfer data from a oneM2M sensor to OGC/STA the IPE creates a <subscription> to the <container> resource in the CSE containing the desired data. Triggert by a sensor event a new <contentInstance> is added to the <container> by the <AE>. The IPE gets a <notification> message containing the <contentInstance> resource.
The IPE constructs an "Observation" creation request and copies the 'content' attribute of the <contentInstance> to the 'result' attribute of the "Observation" and sends it to the OGC/STA server. The OGC / STA applcation gets the sensor data either by polling the OGC / STA server or subscribing to the regarded "Datastream" at the MQTT broker of the OGC / STA server.
The IPE constructs an "Observation" creation request and copies the 'content' attribute of the <contentInstance> to the 'result' attribute of the "Observation" and sends it to a "Datastream" to be created as detailed in Section 6.3.1 at the OGC/STA server. The OGC/STA applcation gets the sensor data either by polling the OGC/STA server or subscribing to the regarded "Datastream" at the MQTT broker of the OGC/STA server.
![Figure 6.2-1: Communication oneM2M-to-OGC/STA direction](media/com_flow_1.png)
**Figure 6.2-1: Communication oneM2M-to-OGC/STA direction**
Figure 6.2-2 shows the OGC/STA-to-oneM2M direction. OGC/STA does not provide a publish/subscribe mechanism on HTTP protocol level, but OGC allows an optional MQTT extension for STA services <a href="#_ref_i.1">[i.1]</a>. The IPE subscribes to the MQTT-Broker of the OGC/STA server. The OGC/STA server publishes its new "Observation" via the MQTT broker. The IPE creates a &lt;contentInstance&gt; using a HTTP request and copies the 'result' attribute of the "Observation" to the 'content' attribute of the &lt;contentInstance&gt;.
Figure 6.2-2 shows the OGC/STA-to-oneM2M direction. The IPE subscribes to the desired "Datastream" of the MQTT-Broker at the OGC/STA server. The OGC/STA server publishes a new "Observation" via the MQTT broker triggert by a Sensor Thing API sensor. The IPE creates a &lt;contentInstance&gt; in a container, to be created as detailed in Section 6.3.2 in the CSE and copies the 'result' attribute of the "Observation" to the 'content' attribute of the &lt;contentInstance&gt;. The oneM2M applcation gets the sensor data either by polling the CSE or subscribing to the desired &lt;container&gt; at the CSE.
![Figure 6.2-2: Communication OGC/STA-to-oneM2M direction](media/com_flow_2.png)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment