Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Fiware IoT_IDAS_intro_ul20_v2
1. FIWARE IoT: IDAS intro + UL2.0
Carlos Ralli Ucendo, @carlosralli
FIWARE, Telefonica I+D
http://www.slideshare.net/
FI-WARE/fiware-iotidasintroul20v2
2. FIWARE (IoT) Target: Developers
Context
Broker
App Logic
@FIWARE-Cloud
Desktop/Mobile/Tablet
User Interface
Web 3D GE / Advanced UI
Wirecloud GE / Dashboards
OAuth2.0
SANTANDER
SMARTSPACES
SEVILLA 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.
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
MultiMedia
Events
Complex
Event
Processing
IoT GEis
Smartcities
OpenData
BigData
Analytics
3. IoT – Typical Scenario I (fully tested, most used so far)
• Simplest scenario at FIWARE Wiki IoT Architecture.
• Extensively tested with developers. Most Feedback Implemented.
• New features are required (Edge management, more Agents).
4. IDAS4.0 - Modular architecture: IoT-Agents
• Monolithic vs Modular -> Easier Installation, Cloud Blueprints
• Coded in C++ vs Coded in any language -> Higher flexibility
• Extensibility via C++ plugins vs a new IoT Agent -> Easier to get
contribs/extensions
• Scalability by design
FIWARE Context Broker
IoT
Agent-UL2.0
IoT
Agent-TT
IoT
Agent-
lwm2m
IoT Agent
Manager
create/monitor
FIWARE IoT Backend
Device Management
OMA NGSI API (Developers’ Interface)
(southbound interfaces)
MQTT
Ultralight2.0
HTTP
OMA
LWM2M/IETF
CoAP
OMA NGSI API
BE Device
Management
(IDAS)
SIGFOX
6. Connect your IoT: IoT-Agent-UltraLight2.0 (IDAS)
Step 0 – Create a Service (not in Public Instance)
Step 1 – Create Device
Step 2 – Send Measurements
Step 3 – Send Commands
Testing /
Hackathons
IDAS4.x Testing details:
• IPv4: 130.206.80.40
• IPv6: 2001:720:1514:80::40
• IDAS API (Dev/Admin ). Port: 5371 (IPv4)
• ContextBroker. Port 1026 (IPv4/IPv6)
• Testing Service: fiwareiot
• APIKEY: 2015fiwareiot
• Service URL:
<IDAS_HOST>/iot/
fiwareiot
7. IoT-Agent-UltraLight2.0 (IDAS)
Step 0 – Create Service
(REST ADMIN API)
Normally, only if you deploy
your own IDAS instance.
For the FIWARE Lab instance
just use fiwareiot service.
If ContextBroker in the same
VM, use 0.0.0.0 as IP address.
HTTP POST:
http://130.206.80.40:5371/iot/services
Headers: {'content-type': 'application/json’; 'X-Auth-Token' :
[TOKEN]; "Fiware-Service: [myservice]”; "Fiware-ServicePath:
/"}
Payload:
{
"services": [
{
"apikey": ”[myservice-API-KEY]",
"token": "token2",
"cbroker": "http://0.0.0.0:1026",
"entity_type": "thing",
"resource": "/iot/d"
}
]
}
13. Annex I IoT-Agent-UltraLight2.0 (IDAS) – FIGWAY
Python2.7 Tools
Testing /
Hackathons
https://github.com/telefonicaid/fiware-figway/python-IDAS4
• Coded in Python. Tested with RaspberryPI, MACOS & Linux.
• Tools for (virtual) Sensors via IDAS IoT-Agent (Ultralight2.0)
• Tools to access a ContextBroker.
• For IDAS 4.x onwards use IDAS4 folder
14. Annex I: FIGWAY - Configuration
figway/python/config.ini
[user]
# Please, configure here your username at FIWARE Cloud and a valid Oauth2.0
TOKEN for your user (you can use get_token.py to obtain a valid TOKEN).
username=
token=
Configure for the ContextBroker and the IDAS instances:
• IP Addresses: Normally 130.206.80.40
• Ports: Normally: 1026 for ContextBroker and 5371 for IDAS.
• FIWARE_SERVICE. Change it to fiwareiot . Update API-KEY also.
• FIWARE_SERVICE_PATH. Normally /
• Oauth2: normally no
If you are using the FIWARE Lab instance protected by IdM:
21. Annex I: FIGWAY – What if I want to connect Actuators? (II)
python SimulateCommand.py [ENTITY_ID] ‘[COMMAND]‘
> python SimulateCommand.py dev_11 actuator
* Asking to http://130.206.80.40:5371/iot/ngsi/d/updateContext
* Headers: {'Fiware-Service': ’fiwareiot', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-
Token': 'NULL'}
* Sending PAYLOAD:
{ "contextElements": [
{
"attributes": [
{
"type": "command",
"name": "RawCommand",
"value": "Set 95-10-45"
}
],
…
* Status Code: 200
* Response:
{ "statusCode" : { "code":200, "reasonPhrase":"OK"}}
Normal Operation: just update command attribute at ContextBroker
Today’s Bug: please issue commands manually with this python script.
22. Annex I: FIGWAY – What if I want to connect Actuators (III)
python GetPoolingCommands.py [DEV_ID]
> python GetPoolingCommands.py dev_11
* Asking to http://130.206.80.40:5371/iot/d?k=2015fiwareiot&i=dev_11
* Headers: {'Fiware-Service': ’fiwareiot', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-Auth-
Token': 'NULL'}
* Sending PAYLOAD:
...
* Status Code: 200
* Response:
[Dev_ID]@RawCommand|Set 95-10-45
23. Annex I: FIGWAY – Creating an IoT Service
Python CreateService.py [FIWARE_SERVICE] [API_KEY] [IP_CB] [Port:CB]
> Python CreateService.py MyOwnService secret 0.0.0.0 1026
* Asking to http://130.206.80.40:5371/iot/services
* Headers: {'Fiware-Service': 'MyOwnService', 'content-type': 'application/json', 'Fiware-ServicePath': '/', 'X-
Auth-Token': 'NULL'}
* Sending PAYLOAD:
{
"services": [
{
"token": "token2",
"apikey": ”secret",
"resource": "/iot/d",
"entity_type": "thing",
"cbroker": "http://0.0.0.0:1026"
}
]
}
…
* Status Code: 201
* Response:
This operation is only for your private instances.
If you need your own private service in the public instance of IDAS, let the Admins Know!