Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

FIWARE Global Summit - Connecting to IoT

159 views

Published on

Presentation by Daniel Calvo
IoE Lab. ATOS Research & Innovation

FIWARE Global Summit
8-9 May, 2018
Porto, Portugal

Published in: Technology
  • Be the first to comment

FIWARE Global Summit - Connecting to IoT

  1. 1. FIWARE Connecting to IoT Daniel Calvo IoE Lab. ATOS Research & Innovation daniel.calvo@atos.net @danicalvoalonso
  2. 2. 1 Connecting to IoT FIWARE IoT Agents Case example OPC-UA Building your own IoT Agent
  3. 3. Connecting to IoT 2
  4. 4. What is the IoT? 3 “Internet is connected to the physical world via ubiquitous sensors” “Sensor technology enable computers to observe, identify and understand the world without the limitations of human- entered data” Kevin Ashton Coiner of the term IoT in 1999
  5. 5. What is the IoT? 4 https://atos.net/content/mini-sites/journey-2020/index.html
  6. 6. What elements are part of the IoT? 5 Users Applications IoT Platforms Communication Devices
  7. 7. IoT Interoperability ? Still a $1,000,000 question 6
  8. 8. FIWARE Smart*: Local Ecosystem growth engine 7 Devices NDevices 1 Devices 2 Smart City / Authorities / Citizens Communication NCommunication 1 Communication 2 New system M Context Data Ecosystem IoT Agent 1 IoT Agent 2 IoT Agent N IoT Agent M
  9. 9. FIWARE Smart*: Local Ecosystem growth engine § Higher efficiency • Shared networks • Cloud § Boost overall business • Cross vertical ideas and services • New players • Data scientists • Developers • Ease the integration of new protocols and devices 8
  10. 10. FIWARE IoT Stack IoT Devices Comm Southbound API IoT Agents Northbound API Context broker 9
  11. 11. FIWARE IoT Agents 10
  12. 12. IoT Communication Protocols 11 Range Speed < 3m < 5km < 100km bps Kbps Mbps
  13. 13. IoT Devices: constrained nodes 12 ARM Cortex-M3 32 MHz ~MB Flash, ~KB RAM ZigBee, GRPS, IEEE 802.15.4 Low power consumption mode Contiki OS, FreeRTOS, RIOT
  14. 14. IoT Agents: Connecting IoT Protocols to FIWARE 13 APPLICATION TRANSPORT SIMPLIFIED OSI NETWORK LINK PHYSICAL CoAP 802.15.4 UDP IoT Device IPv6, RPL 6LoWPAN App protocol IoT Agent TCP CONTEXT BROKER IPv4 HTTP NGSI /REST 1000s of bytes 10/100s of bytes
  15. 15. IoT Agents: Connecting IoT Protocols to FIWARE 14 APPLICATION TRANSPORT SIMPLIFIED OSI NETWORK LINK PHYSICAL CoAP 802.15.4 UDP IoT Device IPv6, RPL 6LoWPAN App protocol IoT Agent 802.15.4 UDP IPv6, RPL 6LoWPAN IPv4 TCP CoAP App protocol HTTP NGSI/REST TCP CONTEXT BROKER IPv4 HTTP NGSI /REST 1000s of bytes 10/100s of bytes
  16. 16. IoT Agents’ features 15 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system
  17. 17. IoT Agents’ features 16 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 1.
  18. 18. IoT Agents’ features 17 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 1. 2.
  19. 19. IoT Agents’ features 18 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 3. Agent sends NGSI request 1. 2. 3.
  20. 20. IoT Agents’ features 19 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 3. Agent sends NGSI request 4. External system modifies CB data 1. 2. 3. 4.
  21. 21. IoT Agents’ features 20 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 3. Agent sends NGSI request 4. External system modifies CB data 5. Context broker updates device value 1. 2. 3. 4. 5.
  22. 22. IoT Agents’ features 21 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 3. Agent sends NGSI request 4. External system modifies CB data 5. Context broker updates device value 6. Device receives command 1. 2. 3. 4. 5. 6.
  23. 23. IoT Agents’ features 22 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. IoT Agent Registers the device 2. Device sends information updates 3. Agent sends NGSI request 4. External system modifies CB data 5. Context broker updates device value 6. Device receives command 1. 2. 3. 4. 5. 6. NGSI IoT Comm
  24. 24. IoT Agents: device to NGSI mapping § Each IoT Device is mapped to a CB Entity § Each IoT resource is mapped to CB attribute 23 • devID0001 • remoteType Entity • temperature • float • 25.4 Attribute • heartRate • integer • 80 Attribute
  25. 25. IoT Agents: active attributes 24 http://www.smartdubai.ae
  26. 26. IoT Agents: active attributes 25 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. 2. 3. NGSI IoT Comm 1. Device sends information updates 2. Agent sends NGSI request 3. External system is notified or queries CB data § Device may sleep to reduce energy consumption
  27. 27. IoT Agents: lazy attributes 26
  28. 28. IoT Agents: lazy attributes 27 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. External system queries CB 2. CB queries IoT Agent as Context provider 3. IoT Agent queries device § Device may be listening to queries 3. 1. 4. NGSI IoT Comm 2. 5.
  29. 29. IoT Agents: commands 28 https://atmelcorporation.files.wordpress.com
  30. 30. IoT Agents: commands 29 IoT Agent IoT Agent Lib Agent Ad-hoc Context broker IoT Device External system 1. External system sets attribute in CB 2. CB updates context in IoT Agent as Context provider 3. IoT Agent answers with PENDING 4. IoT Agent sends command to device 5. Device answers with command result 6. IoT Agent updates context in CB 4. 1. 5. NGSI IoT Comm 2. 3. 6.
  31. 31. Main IoT Agents available: Ultralight 2.0 30 APPLICATION TRANSPORT SIMPLIFIED OSI NETWORK LINK PHYSICAL MQTT / HTTP TCP IoT Device ULTRALIGHT IoT Agent TCP IPv4 TCP MQTT / HTTP ULTRALIGHT HTTP NGSI/REST TCP CONTEXT BROKER IPv4 HTTP NGSI /REST
  32. 32. Main IoT Agents available: Ultralight 2.0 § Measure payload syntax • temperature | 15 | position | up § Does not support lazy attributes § https://github.com/Fiware/iot.IoTagent-UL § Un-appropriate for: • Really constrained devices • Low-Power and Lossy Networks (LLNs), § Data model based on shorter text messages 31
  33. 33. Main IoT Agents available: JSON 32 APPLICATION TRANSPORT SIMPLIFIED OSI NETWORK LINK PHYSICAL MQTT / HTTP TCP IoT Device JSON IoT Agent TCP IPv4 TCP MQTT / HTTP JSON HTTP NGSI/REST TCP CONTEXT BROKER IPv4 HTTP NGSI /REST
  34. 34. Main IoT Agents available: JSON § Measure payload syntax • {“temperature”: 40.2, “position”: “left”} § Does not support lazy attributes § https://github.com/Fiware/iot.IoTagent-JSON § Un-appropriate for: • Really constrained devices • Low-Power and Lossy Networks (LLNs), § Data model based on JSON standard objects 33
  35. 35. Main IoT Agents available: OMA Lightweight M2M 34 http://openmobilealliance.org
  36. 36. Main IoT Agents available: OMA Lightweight M2M 35 APPLICATION TRANSPORT SIMPLIFIED OSI NETWORK LINK PHYSICAL DTLS / CoAP UDP IoT Device LWM2M IoT Agent UDP IPv4 TCP DTLS / CoAP LWM2M HTTP NGSI/REST TCP CONTEXT BROKER IPv4 HTTP NGSI /REST
  37. 37. Main IoT Agents available: OMA Lightweight M2M § Object model • Based on Object and Resource hierarchy (e.g.: /1/12/3) • OMA Registry § https://github.com/Fiware/iot.IoTagent-LWM2M § Appropriate for: • Really constrained devices • Low-Power and Lossy Networks (LLNs), 36
  38. 38. Main IoT Agents available: OPC-UA 37
  39. 39. Main IoT Agents available: LoRaWAN 38
  40. 40. How to start… First, choose your flavour!! 39
  41. 41. § https://fiware-iot-stack.readthedocs.io/en/latest/device_gateway/index.html § https://github.com/Fiware/iot.IoTagent-node-lib § https://github.com/Fiware/iot.IoTagent-UL § https://github.com/Fiware/iot.IoTagent-JSON § https://github.com/Fiware/iot.IoTagent-LWM2M How to start… Then, docs and requirements 40
  42. 42. How to start… Finally, node/npm or docker? 41
  43. 43. Thank you! http://fiware.org Follow @FIWARE on Twitter Daniel Calvo IoE Lab. ATOS Research & Innovation daniel.calvo@atos.net

×