This document discusses connecting IoT devices and systems to the FIWARE Lab ecosystem. It provides an overview of the FIWARE IoT proposal and community. It then describes the most common scenarios for connecting IoT providers and consumers to the FIWARE Context Broker using the IDAS/SBC Ultralight 2.0 protocol. Step-by-step instructions are provided for registering models and devices and sending measurements and commands. Additional options for connecting IoT systems like MQTT and LWM2M are also mentioned.
08448380779 Call Girls In Civil Lines Women Seeking Men
FIWARE IoT Proposal & Community
1. FIWARE IoT Proposal & Community
Carlos Ralli Ucendo, Telefonica
IoT Chapter Architect, FIWARE
@carlosralli
2. FIWARE (IoT) Target: Developers
Context
Broker
Desktop/Mobile/Tablet
User Interface
Web 3D GE / Advanced UI
Wirecloud GE / Dashboards
App Logic
@FIWARE-Cloud
OAuth2.0
SANTANDER
SMARTSPACES
SEVILLA
1) IoT Consumers. Normally not just IoT.
• A single point, API & Protocol for IoT, OpenData, etc.
• Context: Data Entities + Data Entities events.
• A Public & Secured Ecosystem at FIWARE Lab
2) IoT Providers. Pretty Heterogeneous solutions/skills.
• An incremental approach. Public/Private instances.
• KISS philosophy for most (web)developers.
• Advanced IoT architecture, e.g. for IoT Advanced Devel.
MultiMedia
Events
Complex
Event
Processing
IoT
Smartcities
OpenData
BigData
Analytics
3. IoT Consumers: Northbound Single Point (API/Protocol): ContextBroker
Entities
Developers need to know/discover the Ecosystem conventions. Examples:
Developers may:
•Query an Entity (whole set or specific attributes) or Subscribe to changes of atttibutes of Entities.
•Discover all Entities (entity_IDs) or all Entities with a specific “type”.
•Discover all Attributes of an specific Entity (entity_ID).
Full List of FIWARE Lab (Global Context Broker) conventions (section 3.5):
https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_User_and_Programmers_Guide
3
My
FIWARE-App
Context
Broker
OAuth2.0
OMA NGSI10 - QueryContext
OMA NGSI10 - SubscribeContext
(type, entity_ID, attributes)
4. IoT Providers: Connect any “Thing”/IoT-System to FIWARE Lab
NGSI9/10
SML, UL2.0, MQTT, ETSIM2M, CoAP/OMA-LW
C) Advanced Scenarios
4
Context
Broker
OAuth2.0
A) OMA NGSI Agent
B) IoT BE (IDAS/SBC)
Your IoT IoT
Backend
Gateway GEs Backend GEs
NGSI
Propietary
Zigbee
Zwave
CoAP/MTRunner
ETSIM2M
CoAP/LWM2M
5. FIWARE IoT: Most Common Scenarios (A & B)
Context
Broker
5
User
Interface
App Logic
FI-WARE Cloud
Dashboards
UI Prototyping
OAuth2.0
SANTANDER
SEVILLA
IDAS Portal/
ADMIN API
IDAS
SMARTSPACES SBC
Commands
Commands
(Future Delivery)
Commands
A
B
B
IDAS
SBC
7. Success Stories: FIWARE Community Kick off @ CPE’13
7
1st Prize………….SmartAds
Complete context-sensitive Ads solution developed
in just 4 days & nights.
Massive, > 6K developers
Mainly young entrepreneurs
Neelie Kroes FIWARE Lab Launch
Hackathon + Challenges Announcements
Talent
Day&Night
Involving developers, debugging, improving training sessions
8. Success Stories: Smartcities IoT Data & SMEs involvement
Smartcity resources exploitation, involve local market & public policies makers
1st Prize………….MagicBox…………………………………………….….…..…TVs displaying Smartcities & Smartspaces.
2nd Prize………….FI-BOT……………………………………………………..….…Robotics exploiting opendata & sensors.
3rd Prize.…………OpenAlerts……..…..............................................Interfaces for citizens (mobile If-Then App).
4th Prize………….Traffic Heatmap…..............................................Traffic routing based on city real-time Info.
8
Winning Teams
33 succeeded building a product-like working App (of 77 registered developers)
Several participants own a Start-up & keep on using FIWARE
9. Success Stories: Emerging IoT Trends fast adoption
9
iBeacons in FI-WARE by Context Team.
•3rd prize within SmartBusiness FIWARE challenge.
(Jan 2014 @ CPBR7 Sao Paulo)
10. FIWARE Lab OpenData/IoT Resources Ecosystem is growing fast
10
SANTANDER
SEVILLA
MALAGA
TRENTO
15. Connect your IoT to FIWARE Lab: IDAS Ultralight2.0 (B.1)
Step 4 – Sending Commands to Devices
16. Connect your IoT to FIWARE Lab: IDAS Ultralight2.0 (B.1)
Step 4.1 - Register Command URL (PUSH) / Get Commands from Device (POOLING)
Step 4.2 - Send Commands via IDAS REST ADMIN API
17. Connect your IoT to FIWARE Lab: More IDAS Southbound Options (B.2)
Option B.2: MQTT3.1
•SW Ready, manuals coming up soon.
•Devices publish measures as MQTT clients.
•Devices subscribe for commands at SBC (MQTT broker).
Message formatting aligned to UL2.0
•Topic: <api-key>/</device-id>/<alias> or <api-key>/</device-id>/multi
•Payload: <measure_value> or <alias1>|<value1>#<alias2>|<value2>..
Receiving Commands
•Collect pending Commands: <api-key>/<device_id>/cmdget
•Receive Commands: <api-key>/<device_id>/cmd/+
Commands received:
•Topic: <api-key>/<device_id>/cmd/<new_topic_level>
•Payload: cmdid|<cmid>#<param1>|<value1>…
SBC
18. Connect your IoT to FIWARE Lab: More IDAS Southbound Options (B.3)
Option B.3: OMA-LWM2M/CoAP.
•Adopted by OneM2M
•Compatible with ETSI-M2M architecture
•Planned for JAN 2015.
Extra tools: FIGWAY
https://github.com/telefonicaid/fiware-figway/
New Release (Nov 17th 2014):
•Coded in Python for RaspberryPI, MACOS & Linux.
•UL2.0 Sensors via IDAS/SBC (UL2.0 REST API)
•Tools to access a ContextBroker.
20. Annex: Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release
figway/python/ContextBroker
GetEntities.py [ENTITY_TYPE]
- Tool for Contextbroker
- Prints all NGSI Entities of a specific type.
- ENTITY_TYPE= ALL -> Get Summary + all entities
21. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (II)
figway/python/ContextBroker
GetEntity.py [ENTITY_ID]
- Tool for Contextbroker
- Prints an NGSI Entity if ID is known.
22. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (III)
figway/python/Sensors_UL20
DiscoverModels.py
- Tool for IDAS/SBC
- Prints all Models in a Service (Default: OpenIoT)
23. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (IV)
figway/python/Sensors_UL20
GetModel.py [MODEL_Name]
- Tool for IDAS/SBC
- Prints dedtails of a Model in a Service
(Default Service: OpenIoT)
24. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (V)
figway/python/Sensors_UL20
RegisterDevice.py [DEV_TYPE] [DEV_NAME]
- Tool for IDAS/SBC
- Registers (creates asset) a Device
- DEV_TYPE is the MODEL_Name
- DEV_NAME is used for DEV_ID=hostid:DEV_NAME
25. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (VI)
figway/python/Sensors_UL20
SendObservation.py [DEV_ID] [MEASURES]
- Tool for IDAS/SBC
- Sends a device observations (meausrements)
- DEV_TYPE is the MODEL_Name
- DEV_ID=hostid:DEV_NAME
- MEASURES = alias1|value1#alias2|value2
26. Connect your IoT to FIWARE Lab: FIGWAY Dec’14 Release (VII)
ReadDeviceStatus.py [DEV_ID]
- Tool for IDAS/SBC
- Returns last measurements of a Device
- DEV_TYPE is the MODEL_Name
- DEV_ID=hostid:DEV_NAME