How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find...
Transcript of How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find...
![Page 1: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/1.jpg)
How to create a Service in VICINITY
G r a n t a g r e e m e n t : 6 8 8 4 6 7
K o u t l i M a r i a - C E R T H
![Page 2: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/2.jpg)
Outline
Overview
Integration with VICINITY
Expose service
Describe service
Communicate with other sensors or devices
Workflow
Service in VICINITY Slide 2
![Page 3: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/3.jpg)
Overview
Service in VICINITY Slide 3
- Find possible clientsIoT Service
- Communicate with IoT sensors and devices in a common language
VICINITY IoT Platform
- Combine sensor data with external APIs
- P2P communication, no intermediates
![Page 4: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/4.jpg)
How to integrate with VICINITY
Service in VICINITY Slide 4
VICINITY IoT Platform
Register
My Organisation
Configure and RunVICINITY Gateway API
andVICINITY Agent
on your Linux machinehttps://github.com/vicinityh2020
https://vicinity.bavenir.eu/#/login
![Page 5: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/5.jpg)
How to integrate my service with
VICINITY
Service in VICINITY Slide 5
IoT Service
Interact with other sensors or devices in
VICINITY
Expose service with VICINITY
Adapter
Provide formal description of
the service
![Page 6: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/6.jpg)
Expose service to VICINITY
What you will need?
VICINITY Adapter
Stand-alone
Integrated to the service
What does this mean?
Adapt service endpoints to be VICINITY compliant e.g. /objects/{service_id}/properties/{func_id}
Provide a formal description your service functionalities and metadata information (Thing Description)
Let Agent know about this new Adapter in configuration
Service in VICINITY Slide 6
VICINITY
Adapter
VICINITY
Agent
VICINITY
Gateway
P2P
object
action
![Page 7: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/7.jpg)
Describe the service
Formally describe the service in a JSON, W3C- Web of Things (WoT) based
language
The description contains mappings to the VICINITY Ontology
http://iot.linkeddata.es/def/adapters/index-en.html
Usually refer to it as “Thing Description”
Expose the description to Agent, which will handle the service registration in
VICINITY.
Service in VICINITY Slide 7
![Page 8: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/8.jpg)
Example Thing Description of a service
Service in VICINITY Slide 8
![Page 9: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/9.jpg)
Communicate with sensors through
VICINITY
Create contracts with sensors that will interact with the service, though Neighbourhood
Manager web interface https://vicinity.bavenir.eu/#/login
E.g. Read data from a power meter
Service in VICINITY Slide 9
GET http://agent_IP:9997/agent/remote/objects/{v_oid}/properties/{property}
headers:
adapter-id=my_service_adapter_id
infrastructure-id=my_service_internal_id
Where, {v_oid} is the vicinity id of the power meter
and {property} is the sensor’s property the service will consume e.g. active power, reactive power, power factor etc
![Page 10: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/10.jpg)
Service VICINITY integration workflow
Service in VICINITY Slide 10
![Page 11: How to create a Service in VICINITY · 2019-02-07 · Overview Service in VICINITY Slide 3 - Find possible clients IoT Service - Communicate with IoT sensors and devices in a common](https://reader031.fdocuments.in/reader031/viewer/2022011906/5f36594374fbbb781d3420c6/html5/thumbnails/11.jpg)
Questions & Answers
Service in VICINITY Slide 11