Movatterモバイル変換


[0]ホーム

URL:


PPTX, PDF1,206 views

Introduction to FIWARE IoT

The document provides an overview of the FIWARE platform, specifically its IoT capabilities, including context management and data interoperability through a standardized API. It describes various components such as the Orion Context Broker, IoT agents, and the different protocols and payload formats supported for device communication. Additionally, it lists resources for further information and deployment guidance for FIWARE services in smart environments.

Embed presentation

Downloaded 74 times
Introduction to FIWARE IoTFernando López AguilarFIWARE Cloud and Platform Senior Expertfernando.lopez@fiware.org@flopezaguilar(Reference Orion Context Broker version: 0.24.0)
1What is FIWARE ?
2Open data publicationOnce context information is gathered, a lot of usefulcomplementary FIWARE enablers can be usedContext BrokerAdvanced Web-based UI (AR,3D)Data/Apps visualizationBig Data AnalysisComplex EventProcessingMultimedia processing
Open Data3
Cloud environment4
5FIWARE Catalogue (http://catalogue.fiware.org)5
6FIWARE Academy (http://edu.fiware.org)
7
Traction8
9FIWARE & Internet of Things
FIWARE IoT: Interoperability at Context Data LevelSatisfying Developers view Common language for all Data Sources (IoT and non-IoT). Single REST API. Query, Subscribe, Trigger Actions. Open Source solutions published in GitHub, Read-the-docs, etc.Street Devices• Location• Observations• CommandsContext BrokerNGSI APIBoiler• Manufacturer• Last revision• Product id• Temperature• ActionsUsers• Name-Surname• Birthday• Location• ToDo listCity• OpenData• Users InputPublic Bus T.System• Location• Arrival timeAPPs / Services / Data Scientist
11Why FIWARE?
Tenemos un planWe have a plan :
13Smart* FIWARE most-used IoT Stack
IoT Agents Device Protocol to NGSI Bridge:• One entity per device.• Constrained set of interactions. Design principles:• Modular approach.• Deployment flexibility.• Simplify the creation of Custom IoT Agents. Provisioning of devices and groups of devices. IoT Manager. Additional services (e.g.: security, device registration, stats).14
Integration with sensor networks Smart solutions need to deal with the wide variety of IoT protocols today Rather than trying to solve the battle of standards at IoT level, it brings astandard where no standard exists today: context information management15Context BrokerIoTAgent-1IoTAgent-2IoTAgent-nIoT AgentManagercreate/monitorIoT FrameworkStandard API (northbound interface)(southbound interfaces)MQTTETSI M2M IETF CoAP
What FIWARE provides?1. Two out-of-the-box agents• IOTA-JSON (JSON payloads)• IOTA-UL (ultralight text-based data payloads)• Both support HTTP and MQTT transports2. A Node.js based SDK to program new IOTAs (iotagent-node-liblibrary)• Provides the common functionality for the northbound interface(provisioning, NGSI-based interaction with Orion Context Broker, etc.).• Protocol (transport and payload) is the part that has to be done by theIOTA developer using the library• IOTA-JSON and IOTA-UL has been implemented using this library3. The IoTManager component.16
Transport & Payload Device protocol = transport protocol + payload format Transports protocols• HTTP• MQTT• Others Payload format• UL (ultralight)• JSON• Others Transport and payload format are orthogonal, e.g.• HTTP transport using JSON payload• MQTT transport using JSON payload• HTTP transport using UL payload• MQTT transport using UL payload• Etc.17PhysicalLinkTCPMQTTPhysicalLinkTCPHTTP
Payload formats examples JSON Ultralight (UL)18{"h": "45%","t": "23","l": "1570"}h|45%|t|23|l|1570
Ultralight 2.0 (Measures) Simple HTTP-based protocol Measure reporting:• Key/Value pairs separated by | and #• POST request with plain/text content to the IoTA path:POST http://{{host}}:{{iota_ul-port}}/iot/d?k=&i={{device-id}}&t=2016-03-01T10:00:00Z Payload example:t|34#h|87#l|1900 Required query params• k: Service API Key• i: Device ID Optional query params• t: timestamp of the measure19
Interaction models: Active Attributes20IOT AgentDBDeviceProtocolNGSIEntityinformationInteractionbegins
Interaction models: Commands21IOT AgentDeviceProtocolNGSICommandExecutionInteractionbeginsResultInformationRequires the IOT Agent to beregistered as a ContextProvider
Attribute types Active attributes• Actively updated to CB Lazy attributes• Kept at the device, obtained using the CPr-forwardingmechanism Static attributes• As active attributes, but with a “fixed” value Commands• For actuation capabilities• Managed in a similar way to lazy attributes, but involving also aninfo and a status CB attributes22
Configuration API: Group provision Create service• /iot/services Not exactly REST (check doc)• POST• GET• DELETE• PUT Static attributes Mandatory• Resource• Api key• Entity Type23{"services": [{"apikey": "4jggokgpepnvsb2uv4s40d59ov","cbroker": "http://0.0.0.0:1026","entity_type": "thing","resource": "/iot/d"}]}
Configuration API: Device provision Create device• /iot/devices Not exactly REST (check doc):• POST• GET• DELETE• PUT Mandatory• Device_id• Entity_type• protocol Commands• endpoint24{"devices": [{"device_id": "my_device_01","entity_name": "my_entity_01","entity_type": "thing","protocol": "PDI-IoTA-UltraLight","timezone": "Europe/Madrid","attributes": [{"object_id": "t","name": "temperature","type": "int"},{"object_id": "l","name": "luminosity","type": "number"}]}]}
Sending Measurements: Ultralight 2.0 HTTP25Simple HTTP ProtocolAPI key (k)Device Id (i)Key Pair valuesPush and Pull commandsPOST /iot/d?k= k=4jggokgpepnvsb2uv4s40d59ov&i=my_device_01 HTTP/1.1Host: localhost:7896Content-Type: text/plainCache-Control: no-cachet|37#l|1200HTTP/1.1 200 OKContent-Length: 88Content-Type: text/htmlConnection: Closedmy_device_01@t|2| my_device_01@l|200
Orion Context Broker in a nutshell26
Context Broker operations: create & pull data Context Producer, publish data/context elements by invoking theupdate operation on a Context Broker. Context Consumer, can retrieve data/context elements by invokingthe query operations on a Context Broker.27
STH-COMET: Why?28 The Context Broker only storesthe latest attribute values:• Event-driven action-orientedparadigm The Short Time Historic addsmemory into the equation:• Continuous improvementparadigm
STH-COMET: What?29 Time series database:• Optimized to deal with valuesindexed in time• Raw data vs. Aggregated data• Basic aggregation concepts:□ Range□ Resolution□ Origin□ Offset
STH – Comet : How(birds-eye functioning: minimal)30updatequery (raw & aggregated)ClientOrionContextBroker
Help project content31Context BrokerIoT AgentUltralight 2.0STH - COMETMongoDB789640411026 8666Virtual Machine Instance Ansible and docker-compose file to deploy a Virtual Machine withOrion, IoT Agent Ultralight and Comet.https://github.com/flopezag/fiware-iot-hackathon Instruction to send data from sensor and recover them from Orion orComet (data aggregation)
Further reading IoT Agent-Ultralight• Base doc: https://github.com/fiware/iotagent-ul Orion Context Broker• Base doc: https://github.com/fiware/orion• ReadTheDocs: https://fiware-orion.readthedocs.io STH-Comet• Github repository: https://github.com/fiware/fiware-sth-comet• ReadTheDocs: https://fiware-sth-comet.readthedocs.io/en/latest32
Question & Answerfiware-tech-help@lists.fiware.orgfiware-lab-help@lists.fiware.org33
Thank you!http://fiware.orgFollow @FIWARE on Twitter34
Thank you!http://fiware.orgFollow @FIWARE on Twitter
BACKUP SLIDESBackup slides36
Active attributes37…"attributes": [{ "object_id": "t", "name": "temperature", "type": "float" },{ "object_id": "h", "name": "humidity", "type": "float" }],…
Lazy attributes Q: Why all this complication? Why don’t use only active attributes?38…"lazy":[{ "object_id": "l", "name": "luminosity", "type": "percentage" }],…
Static attributes Similar to active attributes but…• They don’t correspond to actual measures sent by the physical device• They have a fixed value• They are attached to every IOTA-to-CB update operation Q: Why using static attributes?39…"static_attributes": [{ "name": "serialID", "type": "02598347", "value": "02598347" }]…
Commands Three supporting attributes at CB (per command)• <cmd> (write), the one used by the application (through update contextat CB) in order to execute command• <cmd>_status (read only), the one in which IOTA published status□ UNKNOWN: transient status, just after device provisioning and before anyexecution is done□ PENDING: command execution is in progress□ ERROR: command execution finished in error status□ FINISHED: command execution finished in ok status• <cmd>_info (read only): upon completion, the result of the commandexecution (if any) is published by IOTA in this attribute Example:• turn• turn_info• turn_status40…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…
Commands41…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…turn_statusturn_statusturn_info

Recommended

PPTX
FIWARE IoT Introduction 1
PPTX
FIWARE Primer - Learn FIWARE in 60 Minutes
PPTX
Context Information Management in IoT enabled smart systems - the basics
PPTX
Developing your first application using FI-WARE
PPTX
Fiware, the future internet
PPTX
Fiware, the future internet
PPT
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 
PPTX
FIWARE Developers Week_IoT basic exercises
 
PDF
Connecting to the internet of things (IoT)
PPTX
Introduction to FIWARE Open Ecosystem
PDF
FIWARE Training: IoT and Legacy
 
PDF
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
 
PPTX
IoT Agents (Introduction)
PPTX
A Complete IoT Backend Infrastructure in FIWARE
 
PPT
FIWARE IoT Proposal & Community
 
PPTX
Introduction to FIWARE Cloud & Context Broker
PPTX
Fiware IoT_IDAS_intro_ul20_v2
 
PPTX
IoT Agents (With Lightweight M2M)
PPT
Fiware io t_ul20_cpbr8
 
PPTX
201410 1 fiware-overview
 
PPTX
Fiware Developers Week IoT Agents (Advanced)
PDF
FIWARE Internet of Things
PPT
Io t idas_intro_ul20_nobkg
 
PPTX
FIWARE Developers Week_IoT Agents with Thinking Things and OMA lightweight M...
 
PDF
FI-WARE Basic Guide
 
PPTX
IoT-Broker Developers Week
PDF
FIWARE Developers Week_BootcampWeBUI_presentation1
 
PPTX
Fiware Developers Week Iot exercises (Advanced)
PPTX
Orion Context Broker introduction 20251007
PPTX
Orion Context Broker introduction 20250509

More Related Content

PPTX
FIWARE IoT Introduction 1
PPTX
FIWARE Primer - Learn FIWARE in 60 Minutes
PPTX
Context Information Management in IoT enabled smart systems - the basics
PPTX
Developing your first application using FI-WARE
PPTX
Fiware, the future internet
PPTX
Fiware, the future internet
PPT
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 
PPTX
FIWARE Developers Week_IoT basic exercises
 
FIWARE IoT Introduction 1
FIWARE Primer - Learn FIWARE in 60 Minutes
Context Information Management in IoT enabled smart systems - the basics
Developing your first application using FI-WARE
Fiware, the future internet
Fiware, the future internet
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 
FIWARE Developers Week_IoT basic exercises
 

What's hot

PDF
Connecting to the internet of things (IoT)
PPTX
Introduction to FIWARE Open Ecosystem
PDF
FIWARE Training: IoT and Legacy
 
PDF
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
 
PPTX
IoT Agents (Introduction)
PPTX
A Complete IoT Backend Infrastructure in FIWARE
 
PPT
FIWARE IoT Proposal & Community
 
PPTX
Introduction to FIWARE Cloud & Context Broker
PPTX
Fiware IoT_IDAS_intro_ul20_v2
 
PPTX
IoT Agents (With Lightweight M2M)
PPT
Fiware io t_ul20_cpbr8
 
PPTX
201410 1 fiware-overview
 
PPTX
Fiware Developers Week IoT Agents (Advanced)
PDF
FIWARE Internet of Things
PPT
Io t idas_intro_ul20_nobkg
 
PPTX
FIWARE Developers Week_IoT Agents with Thinking Things and OMA lightweight M...
 
PDF
FI-WARE Basic Guide
 
PPTX
IoT-Broker Developers Week
PDF
FIWARE Developers Week_BootcampWeBUI_presentation1
 
PPTX
Fiware Developers Week Iot exercises (Advanced)
Connecting to the internet of things (IoT)
Introduction to FIWARE Open Ecosystem
FIWARE Training: IoT and Legacy
 
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
 
IoT Agents (Introduction)
A Complete IoT Backend Infrastructure in FIWARE
 
FIWARE IoT Proposal & Community
 
Introduction to FIWARE Cloud & Context Broker
Fiware IoT_IDAS_intro_ul20_v2
 
IoT Agents (With Lightweight M2M)
Fiware io t_ul20_cpbr8
 
201410 1 fiware-overview
 
Fiware Developers Week IoT Agents (Advanced)
FIWARE Internet of Things
Io t idas_intro_ul20_nobkg
 
FIWARE Developers Week_IoT Agents with Thinking Things and OMA lightweight M...
 
FI-WARE Basic Guide
 
IoT-Broker Developers Week
FIWARE Developers Week_BootcampWeBUI_presentation1
 
Fiware Developers Week Iot exercises (Advanced)

Similar to Introduction to FIWARE IoT

PPTX
Orion Context Broker introduction 20251007
PPTX
Orion Context Broker introduction 20250509
PDF
FIWARE Global Summit - Connecting Sensors to FIWARE with IDAS: An Overview
 
PDF
What is an IoT Agent
PDF
FIWARE Tech Summit - FIWARE IoT Agents
 
PPT
Fiware IoT Proposal & Community
PDF
Semantic Metastandards will Unlock IoT Interoperability
PDF
FIWARE Training: Connecting to Legacy Systems, IoT and other Systems
 
PDF
FIWARE Global Summit - Connecting to IoT
 
PDF
FIWARE Global Summit - Developing New IoT Agents
 
PPTX
Orion Context Broker 20210602
PPTX
Orion Context Broker 20210412
PPTX
Orion Context Broker 20220301
PPTX
Orion Context Broker 20211022
PPTX
Orion Context Broker 2020-03-25
PPTX
Orion Context Broker 20181218
PPTX
Orion Context Broker 20180928
PPTX
Orion Context Broker 2020-10-28
PPTX
Orion Context Broker 20191021
PPTX
Orion Context Broker 20190214
Orion Context Broker introduction 20251007
Orion Context Broker introduction 20250509
FIWARE Global Summit - Connecting Sensors to FIWARE with IDAS: An Overview
 
What is an IoT Agent
FIWARE Tech Summit - FIWARE IoT Agents
 
Fiware IoT Proposal & Community
Semantic Metastandards will Unlock IoT Interoperability
FIWARE Training: Connecting to Legacy Systems, IoT and other Systems
 
FIWARE Global Summit - Connecting to IoT
 
FIWARE Global Summit - Developing New IoT Agents
 
Orion Context Broker 20210602
Orion Context Broker 20210412
Orion Context Broker 20220301
Orion Context Broker 20211022
Orion Context Broker 2020-03-25
Orion Context Broker 20181218
Orion Context Broker 20180928
Orion Context Broker 2020-10-28
Orion Context Broker 20191021
Orion Context Broker 20190214

More from Fernando Lopez Aguilar

PDF
FIWARE Overview
PDF
Core Context Management
PDF
Big Data and Machine Learning with FIWARE
PDF
Operational Dashboards with FIWARE WireCloud
PPTX
Setting up your virtual infrastructure using FIWARE Lab Cloud
PPTX
FIWARE and Smart Data Models
PDF
FIWARE Identity Management and Access Control
PDF
Overview of the FIWARE Ecosystem
PDF
Data persistency (draco, cygnus, sth comet, quantum leap)
PDF
DW2020 Data Models - FIWARE Platform
PDF
Introduction to FIWARE technology
PDF
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
PPTX
Building the Smart City Platform on FIWARE Lab
PPTX
How to deploy spark instance using ansible 2.0 in fiware lab v2
PDF
Data Modeling with NGSI, NGSI-LD
PPTX
Cloud and Big Data in the agriculture sector
PDF
How to debug IoT Agents
PDF
Berlin OpenStack Summit'18
PPTX
How to deploy a smart city platform?
PDF
FIWARE and Robotics
FIWARE Overview
Core Context Management
Big Data and Machine Learning with FIWARE
Operational Dashboards with FIWARE WireCloud
Setting up your virtual infrastructure using FIWARE Lab Cloud
FIWARE and Smart Data Models
FIWARE Identity Management and Access Control
Overview of the FIWARE Ecosystem
Data persistency (draco, cygnus, sth comet, quantum leap)
DW2020 Data Models - FIWARE Platform
Introduction to FIWARE technology
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
Building the Smart City Platform on FIWARE Lab
How to deploy spark instance using ansible 2.0 in fiware lab v2
Data Modeling with NGSI, NGSI-LD
Cloud and Big Data in the agriculture sector
How to debug IoT Agents
Berlin OpenStack Summit'18
How to deploy a smart city platform?
FIWARE and Robotics

Recently uploaded

PPTX
CaseStudy-CloudMigration -For USE CASE -Customer Success Info -6-Aug-25.pptx
PPTX
mc l2 Overview of Computer and Web-Technology.pptx
PDF
Design For Test - Getting Test Automation value from Design Expressions.
DOCX
BestMaker.ai: The Complete Brand Story, Founder's Vision, and AI Creative Pla...
PDF
Beacon Kit slides tech framework for world game (s) pdf
PPTX
Overview-of-Anti-DDoS-Solutions-On-Premise-vs-On-Cloud.pptx
PPTX
Types of Cryptograph Symmetric Ceaser cipher and also about Assymetric
PPTX
Anti-DDoS Service Introduction(Customer Version) - 2025(1).pptx
PPT
Lecture_3 Network Securityyyeyeyyeeyyeywy.ppt
PPT
Lecture_3 Network Securityeyeyggegeg.ppt
PPTX
Lesson 3 - Methodology of Green Computing - part2 - dela cruz.pptx
PPTX
Why-Enterprises-Should-Build-Their-Own-Core-Network-and-Own-Their-ASN-and-Pub...
PPTX
Computer Science Degree for College .pptx
PDF
Novi.LMS.Veseli.Cetvrtak.001 (1).pdfjjjj
PPTX
Introduction Digital Signal Processing.pptx
PPTX
Ideathon template.pptx it is a ideathon template
PDF
tokiohotellistening.pdf for tokiohotelfans
PDF
LMS.Golconda.Vanredni.Broj.001.pdfjjjjjjj
PDF
classification of elements and periodicity.pdf
CaseStudy-CloudMigration -For USE CASE -Customer Success Info -6-Aug-25.pptx
mc l2 Overview of Computer and Web-Technology.pptx
Design For Test - Getting Test Automation value from Design Expressions.
BestMaker.ai: The Complete Brand Story, Founder's Vision, and AI Creative Pla...
Beacon Kit slides tech framework for world game (s) pdf
Overview-of-Anti-DDoS-Solutions-On-Premise-vs-On-Cloud.pptx
Types of Cryptograph Symmetric Ceaser cipher and also about Assymetric
Anti-DDoS Service Introduction(Customer Version) - 2025(1).pptx
Lecture_3 Network Securityyyeyeyyeeyyeywy.ppt
Lecture_3 Network Securityeyeyggegeg.ppt
Lesson 3 - Methodology of Green Computing - part2 - dela cruz.pptx
Why-Enterprises-Should-Build-Their-Own-Core-Network-and-Own-Their-ASN-and-Pub...
Computer Science Degree for College .pptx
Novi.LMS.Veseli.Cetvrtak.001 (1).pdfjjjj
Introduction Digital Signal Processing.pptx
Ideathon template.pptx it is a ideathon template
tokiohotellistening.pdf for tokiohotelfans
LMS.Golconda.Vanredni.Broj.001.pdfjjjjjjj
classification of elements and periodicity.pdf

Introduction to FIWARE IoT

  • 1.
    Introduction to FIWAREIoTFernando López AguilarFIWARE Cloud and Platform Senior Expertfernando.lopez@fiware.org@flopezaguilar(Reference Orion Context Broker version: 0.24.0)
  • 2.
  • 3.
    2Open data publicationOncecontext information is gathered, a lot of usefulcomplementary FIWARE enablers can be usedContext BrokerAdvanced Web-based UI (AR,3D)Data/Apps visualizationBig Data AnalysisComplex EventProcessingMultimedia processing
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
    FIWARE IoT: Interoperabilityat Context Data LevelSatisfying Developers view Common language for all Data Sources (IoT and non-IoT). Single REST API. Query, Subscribe, Trigger Actions. Open Source solutions published in GitHub, Read-the-docs, etc.Street Devices• Location• Observations• CommandsContext BrokerNGSI APIBoiler• Manufacturer• Last revision• Product id• Temperature• ActionsUsers• Name-Surname• Birthday• Location• ToDo listCity• OpenData• Users InputPublic Bus T.System• Location• Arrival timeAPPs / Services / Data Scientist
  • 12.
  • 13.
    Tenemos un planWehave a plan :
  • 14.
  • 15.
    IoT Agents DeviceProtocol to NGSI Bridge:• One entity per device.• Constrained set of interactions. Design principles:• Modular approach.• Deployment flexibility.• Simplify the creation of Custom IoT Agents. Provisioning of devices and groups of devices. IoT Manager. Additional services (e.g.: security, device registration, stats).14
  • 16.
    Integration with sensornetworks Smart solutions need to deal with the wide variety of IoT protocols today Rather than trying to solve the battle of standards at IoT level, it brings astandard where no standard exists today: context information management15Context BrokerIoTAgent-1IoTAgent-2IoTAgent-nIoT AgentManagercreate/monitorIoT FrameworkStandard API (northbound interface)(southbound interfaces)MQTTETSI M2M IETF CoAP
  • 17.
    What FIWARE provides?1.Two out-of-the-box agents• IOTA-JSON (JSON payloads)• IOTA-UL (ultralight text-based data payloads)• Both support HTTP and MQTT transports2. A Node.js based SDK to program new IOTAs (iotagent-node-liblibrary)• Provides the common functionality for the northbound interface(provisioning, NGSI-based interaction with Orion Context Broker, etc.).• Protocol (transport and payload) is the part that has to be done by theIOTA developer using the library• IOTA-JSON and IOTA-UL has been implemented using this library3. The IoTManager component.16
  • 18.
    Transport & PayloadDevice protocol = transport protocol + payload format Transports protocols• HTTP• MQTT• Others Payload format• UL (ultralight)• JSON• Others Transport and payload format are orthogonal, e.g.• HTTP transport using JSON payload• MQTT transport using JSON payload• HTTP transport using UL payload• MQTT transport using UL payload• Etc.17PhysicalLinkTCPMQTTPhysicalLinkTCPHTTP
  • 19.
    Payload formats examplesJSON Ultralight (UL)18{"h": "45%","t": "23","l": "1570"}h|45%|t|23|l|1570
  • 20.
    Ultralight 2.0 (Measures)Simple HTTP-based protocol Measure reporting:• Key/Value pairs separated by | and #• POST request with plain/text content to the IoTA path:POST http://{{host}}:{{iota_ul-port}}/iot/d?k=&i={{device-id}}&t=2016-03-01T10:00:00Z Payload example:t|34#h|87#l|1900 Required query params• k: Service API Key• i: Device ID Optional query params• t: timestamp of the measure19
  • 21.
    Interaction models: ActiveAttributes20IOT AgentDBDeviceProtocolNGSIEntityinformationInteractionbegins
  • 22.
    Interaction models: Commands21IOTAgentDeviceProtocolNGSICommandExecutionInteractionbeginsResultInformationRequires the IOT Agent to beregistered as a ContextProvider
  • 23.
    Attribute types Activeattributes• Actively updated to CB Lazy attributes• Kept at the device, obtained using the CPr-forwardingmechanism Static attributes• As active attributes, but with a “fixed” value Commands• For actuation capabilities• Managed in a similar way to lazy attributes, but involving also aninfo and a status CB attributes22
  • 24.
    Configuration API: Groupprovision Create service• /iot/services Not exactly REST (check doc)• POST• GET• DELETE• PUT Static attributes Mandatory• Resource• Api key• Entity Type23{"services": [{"apikey": "4jggokgpepnvsb2uv4s40d59ov","cbroker": "http://0.0.0.0:1026","entity_type": "thing","resource": "/iot/d"}]}
  • 25.
    Configuration API: Deviceprovision Create device• /iot/devices Not exactly REST (check doc):• POST• GET• DELETE• PUT Mandatory• Device_id• Entity_type• protocol Commands• endpoint24{"devices": [{"device_id": "my_device_01","entity_name": "my_entity_01","entity_type": "thing","protocol": "PDI-IoTA-UltraLight","timezone": "Europe/Madrid","attributes": [{"object_id": "t","name": "temperature","type": "int"},{"object_id": "l","name": "luminosity","type": "number"}]}]}
  • 26.
    Sending Measurements: Ultralight2.0 HTTP25Simple HTTP ProtocolAPI key (k)Device Id (i)Key Pair valuesPush and Pull commandsPOST /iot/d?k= k=4jggokgpepnvsb2uv4s40d59ov&amp;i=my_device_01 HTTP/1.1Host: localhost:7896Content-Type: text/plainCache-Control: no-cachet|37#l|1200HTTP/1.1 200 OKContent-Length: 88Content-Type: text/htmlConnection: Closedmy_device_01@t|2| my_device_01@l|200
  • 27.
    Orion Context Brokerin a nutshell26
  • 28.
    Context Broker operations:create & pull data Context Producer, publish data/context elements by invoking theupdate operation on a Context Broker. Context Consumer, can retrieve data/context elements by invokingthe query operations on a Context Broker.27
  • 29.
    STH-COMET: Why?28 TheContext Broker only storesthe latest attribute values:• Event-driven action-orientedparadigm The Short Time Historic addsmemory into the equation:• Continuous improvementparadigm
  • 30.
    STH-COMET: What?29 Timeseries database:• Optimized to deal with valuesindexed in time• Raw data vs. Aggregated data• Basic aggregation concepts:□ Range□ Resolution□ Origin□ Offset
  • 31.
    STH – Comet: How(birds-eye functioning: minimal)30updatequery (raw & aggregated)ClientOrionContextBroker
  • 32.
    Help project content31ContextBrokerIoT AgentUltralight 2.0STH - COMETMongoDB789640411026 8666Virtual Machine Instance Ansible and docker-compose file to deploy a Virtual Machine withOrion, IoT Agent Ultralight and Comet.https://github.com/flopezag/fiware-iot-hackathon Instruction to send data from sensor and recover them from Orion orComet (data aggregation)
  • 33.
    Further reading IoTAgent-Ultralight• Base doc: https://github.com/fiware/iotagent-ul Orion Context Broker• Base doc: https://github.com/fiware/orion• ReadTheDocs: https://fiware-orion.readthedocs.io STH-Comet• Github repository: https://github.com/fiware/fiware-sth-comet• ReadTheDocs: https://fiware-sth-comet.readthedocs.io/en/latest32
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
    Active attributes37…"attributes": [{"object_id": "t", "name": "temperature", "type": "float" },{ "object_id": "h", "name": "humidity", "type": "float" }],…
  • 39.
    Lazy attributes Q:Why all this complication? Why don’t use only active attributes?38…"lazy":[{ "object_id": "l", "name": "luminosity", "type": "percentage" }],…
  • 40.
    Static attributes Similarto active attributes but…• They don’t correspond to actual measures sent by the physical device• They have a fixed value• They are attached to every IOTA-to-CB update operation Q: Why using static attributes?39…"static_attributes": [{ "name": "serialID", "type": "02598347", "value": "02598347" }]…
  • 41.
    Commands Three supportingattributes at CB (per command)• <cmd> (write), the one used by the application (through update contextat CB) in order to execute command• <cmd>_status (read only), the one in which IOTA published status□ UNKNOWN: transient status, just after device provisioning and before anyexecution is done□ PENDING: command execution is in progress□ ERROR: command execution finished in error status□ FINISHED: command execution finished in ok status• <cmd>_info (read only): upon completion, the result of the commandexecution (if any) is published by IOTA in this attribute Example:• turn• turn_info• turn_status40…"commands": [{ "object_id": "u", "name": "turn", "type": "string" }],…
  • 42.
    Commands41…"commands": [{ "object_id":"u", "name": "turn", "type": "string" }],…turn_statusturn_statusturn_info

Editor's Notes

  • #4 More than 3k datasets, 24 organizations, 19 groups
  • #10 104 cities using FIWARE Technology
  • #25 Tipos de Entity type
  • #26 Que valores distintos de protocol tenemos?
  • #33 - "7896" - "4041"

[8]ページ先頭

©2009-2025 Movatter.jp