Upload
vlad-trifa
View
134
Download
0
Embed Size (px)
Citation preview
© EVRYTHNG INC. | 2016 COMMERCIAL & CONFIDENTIAL
Smarter products come with EVRYTHNG
For Customers title slide
BUILDING THE WEB OF THINGS ....and writing a book about it J
Dominique Guinard Vlad Trifa
THINGS
OF
WEB
Let’s create a book from our PhDs!!!!!
yeah…right...
Writing a book is a long process...
• Packtrefusesourproposal• Manningcontactsus
Nov.2014Proposal
• Contractssigned• Firstchapterdelivered
Dec.2014Start
• 1/3review,20reviewers• MEAPlaunched
March20151streview
Techreview,etc.
January.2016
FulltextwriMen
• Images,code,etc.• Launchofsecondbook
April2016ProducRon
18monthaTerstart!
June2016Launch!
Why writing a book?
§ Encourage people to build Web connected Things - Interoperability, openness!
§ Provide an end-to-end methodology to build IoT products - For universities - For makers - For innovators - For developers - => Just the “right amount of tech!”
§ Report on our experience @W3C WoT and talk about future standards § On our “bucket list”!
What’s inside? Bootstraping the Web of Things
The Smart Hotel Today – Aka the IoT in 2016
Today’s IOT Problem
Internet Of Things
ZigBee
Bluetooth
X10
Bacnet
enOcean
"I hate my life!"
SECURITY
LIGHTS
HEATING &COOLING
Chapter 1: Solution is the WoT (i.e. the IoT for the masses!)
Internet Of Things
ZigBee
Bluetooth
X10
Bacnet
enOcean
"I hate my life!"
SECURITY
LIGHTS
HEATING &COOLING
Web
Web
Web
Web
Web
Web Of Things
"Easy-peasy!"
Building Control Center
Chapter 2: Hands on with the WoT
devices.webofthings.io
Dom Guinard CTO & Co-founder
Chapter 3: Node.js for Embedded Devices?
§ Before: − C rules − Windows based IDEs, 1 per platform − Small community, highly specialized − Very resource constrained devices − Integration via specialized SDKs
§ After − Node.js is taking over! − Larger community, more reach, more
innovation − Huge ecosystem of libraries − Integration via the Internet and the
Web
Chapter 4: Sensors, Actuator & GPIOs
Chapter 5: The Network
Chapter 5: The Networks
1. Physical
5. Session FTP
4. Transport TCP
3. NetworkIP (v4, v6)
7. ApplicationDNS
6. Presentation 4. Application
3. Transport
2. Network(Internet)
1. Physical (Link)
2. Data Link
IEEE 802.15.4Ethernet
MAC
UDP
HTTP
OSI Internet Protocols Suite (TCP/IP)
Wi-Fi
CoAP
6LoWPAN
ZigbeeStack
BluetoothStack
TLS SSL
XMPPMQTT
WebSocket
EnOceanStack
ThreadStack
MQTT-SN
Chapter 5: The Web of Things Architecture
Layer 1 - Access
NetworkedThings
Bluetooth ZigBeeQRNFC
Beacons6LoWPAN Thread Wi-FiEthernet
3/4/5 G
JSONHTMLHTTP
URI / URL
Layer 1ACCESS
REST API
ProxyWeb Hooks WebSockets
Gateway MQTTCoAP
http://tn.gg/JANFvB4u
Chapter 6: Basic principle: a URL & API for each Thing
Root URL ofRaspberry Pi
devices.webofthings.io/pi
actuators/actuators
LEDs/leds
LED #/{led#}
sensors/sensors
light sensor/light
temperature sensor/temperature
buttons/buttons
acceleration/accel
gyroscope/tilt
/x
/y
/z
/x
/y
/z
/1
/2
Demo – REST + WS!
Chapter 7: Integrations : Not all devices can speak HTTP and WebSocket!
Chapter 7: @EVRYTHNG: THE WoT Cloud
Demo!
Layer 2 - Find
NetworkedThings
Bluetooth ZigBeeQRNFC
Beacons6LoWPAN Thread Wi-FiEthernet
3/4/5 G
JSONHTMLHTTP
URI / URL
Layer 1ACCESS
REST API
ProxyWeb Hooks WebSockets
Gateway MQTTCoAP
Layer 2FIND Link Header
HATEOASSchema.org Linked Data
JSON-LDREST Crawler
Search enginesRDFa
Semantic Web
Web Thing Model
mDNS
Chapter 8: The Findability Problem
Layer 3 - Share
NetworkedThings
Bluetooth ZigBeeQRNFC
Beacons6LoWPAN Thread Wi-FiEthernet
3/4/5 G
JSONHTMLHTTP
URI / URL
Layer 1ACCESS
REST API
ProxyWeb Hooks WebSockets
Gateway MQTTCoAP
Layer 2FIND Link Header
HATEOASSchema.org Linked Data
JSON-LDREST Crawler
Search enginesRDFa
Semantic Web
Web Thing Model
mDNS
Layer 3SHARE
Social WoT
Social Networks
OAuthDelegated
Authentication
API Tokens TLS DTLS
Encryption
JWT PKI
Chapter 9: Securing the WoT
Problem 2. Am I really talking to the
heater? Or to a fake device trying to steal my
passwords?
Problem 3. Is it really Lena who sent me
this request? If so, is she allowed to change my
temperature?
Yo Heater!Set Temperature to 10° C
Lena's Mobile AppHeater Unit
Problem 1. Am I sure that no one can see the message I
am sending to the heater?
HUH ???
Attacker Sniffing Network Packets
Chapter 9: The Social Web of Things
Layer 4 - Compose
NetworkedThings
Bluetooth ZigBeeQRNFC
Beacons6LoWPAN Thread Wi-FiEthernet
3/4/5 G
JSONHTMLHTTP
URI / URL
Layer 1ACCESS
REST API
ProxyWeb Hooks WebSockets
Gateway MQTTCoAP
Layer 2FIND Link Header
HATEOASSchema.org Linked Data
JSON-LDREST Crawler
Search enginesRDFa
Semantic Web
Web Thing Model
mDNS
Layer 3SHARE
Social WoT
Social Networks
OAuthDelegated
Authentication
API Tokens TLS DTLS
Encryption
JWT PKI
Layer 4COMPOSE
Node-REDIFTTT
Physical MashupsWeb Applications
Automated UI Generation
SystemsIntegration
WoT-a-Mashup
Chapter 10: Composing the real-world: Physical Mashups
http://node-red.org
http://ifttt.com
How is the book doing?
It’s right there, for 30 CHF!! Oh, and get in touch too: @domguinard @vladounet book.webofthings.io Thanks!