Open IoT Cloud Architecture, Web of Things, Shenzhen, China.
-
Upload
jollen-chen -
Category
Internet
-
view
2.959 -
download
3
Transcript of Open IoT Cloud Architecture, Web of Things, Shenzhen, China.
Open IoT Cloud
Mokoversity
Jollen Chen, 2015.04.11, Shenzhen <[email protected]>
!
www.mokoversity.com
Mokoversity
Open IoT Cloud 设计思想
IoT 三件⼤大事 IoT 进⼊入与Web 融合的新阶段-Web of Things。 Google 为WoT 时代推出Physical Web 计画,ARM 也推出ARM mbed ⽣生态体系。 Big players 都在推展⾃自已的WoT ⽣生态与IoT Cloud 架构。
1 Going Web
2 Open IoT Cloud Architecture
IoT CloudIoT Device Mobile
3 Physical Object
http://wot.city/1/00886956590989/kitchen/sensor/dust/a
ws://wot.city/object/00886956590989/kitchen/sensor/dust/a
coap://wot.city/00886956590989/kitchen/sensor/dust/a
REST Object
Physical Web
GET /1/00886956590989/kitchen/sensor/dust/a
REST Object
Physical Web
GET /1/00886956590989/kitchen/sensor/dust/a
Web
Web of Things使用情境
IoT Device Mobile
HTTP 1.1/2.0HTTP 1.1/2.0
Light-weight Web server
Web Frontend
Physical ObjectHTTP 使用情境
http://wot.city/1/jollenchen/sensor/dust/a
IoT Device Mobile
HTTP 1.1/2.0Streaming Data
Physical Object Web Frontend
Physical ObjectWebsocket 使用情境
Real-Time Data
Broker
ws://wot.city/object/jollenchen/sensor/dust/a
IoT App In the form of URLs.
Smart Object
IoT Node
GET /1/00886956590989/kitchen/sensor/dust/a
HTTP Websocket
CoAP
http:// ws:// coap://
Websocket
HTTP 1.1/2.0
CoAP
IoT Cloud
IoT Device
IoT Device
IoT Device IoT Device
Mobile & Client
IoT Proxy
Open IoT Cloud Architecture
www.mokoversity.com
Privacy Security Personal
隐私性 安全性 个⼈人性
⾃自有云 TLS / SSL ⾃自有云
Privacy制造商收集你的个⼈人资讯,加⼯工后⽤用于商业⾏行为
集中化
现有的IoT ⽣生态,所收集的资料健康照护或个⼈人⽣生理监测数据,都朝向「集中化储存」的发展趋势。然⽽而,以个⼈人⽣生理资料来说,我们都是⽆无偿对这些「云服务」公司提供宝贵资料,这些公司对资料进⾏行分析与价值挖掘后,所取得的商业利益,是否能有⼀一个机制,能分享与回馈给提供「素材」的我们
Free
将数据储存到⾮非开放的IoT 云服务,是否能「取回」⾃自已的资料,会是⼀一个问题。储存在真正开放的IoT 云,才能解决这样的问题。开放式IoT 架构的意义,必须是⾃自由的:Personal Things
Libre Software
Gives users the freedom to run the software for any purpose as well as to study, modify, and distribute the original software and the adapted versions. (—wikipedia)
Libre IoT
Cloud
Gives users the freedom to ___ the personal data for any purpose as well as to ___, ___, and ___ the original data and the ______ versions. (—WoT.City)
Websocket
HTTP 1.1/2.0
CoAP
Personal Things
OSHW IoT
OSHW IoT
OSHW IoT
OSHW IoT
Mobile & Client
IoT Proxy
Open & Libre IoT Cloud Architecture
www.mokoversity.com
Open Standards
WoT.City IoT Cloud Architecture
Open IoT
Cloud
Open Standards
Personal Things
Free & Libre Things
Open Hardware
Web
IoT Cloud Framework
Hacker x
Maker
OSHW
「物联⺴⽹网装置终将免费」。在IoT Open Architecture 的理想中,消费者可以免费取得硬件。这个理想并⾮非不可⾏行,第⼀一个步骤,就是设法降低取得硬件的成本。⾃自造硬体(成为IoT 的创客),就是重要的起步
IoT
Smart Phone
Open Source CultureOpen
Hardware
Maker Culture
Free & App Economic
Free and Libre
Education & Training
WoT.C i t y
(C) 2015 Mokoversity Inc. v0.1.0 CONFIDENTIAL.
jollen <[email protected]> Mokoversity Inc.
Web of Things
Web-technolog MatrixHTML5/CSS/JS REST SPA WebSocket CORS Frontend
Patterns
Web Pages V
Web App V V
SPA V V V (Backbone)
Web Service V V (Server) V
IoT / WoT V V V (Client)V
(jQuery、Module、Closure)
IoT vs WoTIoT WoT
連結⽅方式 Bluetooth HTTP
數據管理 Centerlized Decenterlized
Things Objects RESTful Objects
應⽤用開發模式 Native Web (SPA)
硬件概念 Sensor Device Physical Web (Sensor Fusion)
Figure: Thinking in WoT. Copyright (C) 2014 Mokoversity Inc.
ConnectivityIoT WoT
Connectivity Machine to Machine LWM2M Machine to Web
Networking TCP / UDP HTTP / REST / CoAP
Things Sensor Device RESTful Objects
Data Streaming Data Time-Series Data
Discover MQTT Publish / Subscribe
Figure: Thinking in WoT. Copyright (C) 2015 Mokoversity Inc.
Source: http://coap.technology
REST model for small devices !
Like HTTP, CoAP is based on the wildly successful REST model: Servers make resources available under a URL, and clients access these resources using methods such as GET, PUT, POST, and DELETE.
Source: http://coap.technology
Made for billions of nodes !
The Internet of Things will need billions of nodes, many of which will need to be inexpensive. CoAP has been designed to work on microcontrollers with as low as 10 KiB of RAM and 100 KiB of code space (RFC 7228).
Source: http://coap.technology
Existing skills transfer !
From a developer point of view, CoAP feels very much like HTTP. Obtaining a value from a sensor is not much different from obtaining a value from a Web API.
Source: http://coap.technology
Ready for integration !
Since HTTP and CoAP share the REST model, they can easily be connected using application-agnostic cross-protocol proxies. A Web client may not even notice that it just accessed a sensor resource!
ARM IoT Tutorial https://www.youtube.com/watch?v=4bSr5x5gKvA
Websocket
HTTP 1.1/2.0
CoAP
CoAP
www.mokoversity.com
IoT Cloud
IoT Device
IoT Device
IoT Proxy
12
IoT Device
2
3
Mobile & Client
The Web of Things Protocol
3
From HTTP to CoAP
HTTP The Web protocol. !
CoAP The Web of Things Protocol. !
MQTT The TCP Protocol.
IoT Device
IoT Device
IoT Proxy
12
IoT Device
2
3
Constrained Environment
3
RESTful UDP M2M Wireless Sensor Network HTTP in Uniform way Simple Cache
IoT Device
IoT Device
IoT Proxy
12
IoT Device
2
3
Constrained Environment
3
Features of CoAP
WoT.C i t y
打造开放的WoT 开源方案
WoT.City Mokoversity
提倡开放的 WoT 创业思想
MakerWoTOpen
Hardware
Mokoversity x Seeed x Openmbed
mbed REST Object OS
ARM mbed
Source: http://mbed.org/technology/os/
mbed OS mbed™ OS is an operating system for IoT devices and is especially well-suited to run in energy constrained environments.
mbed Tools
Digital Interface
Networking
HTTPD & REST API
Websocket
HTTP
Websocket
CoAP
Collect and Assemble
Manage and Analysis
Frontend Composition Layer
API Driven Development
API
Business Logic
Data Access Layer !and Databases
Secu
rity
Logg
ing
“server-side implementations are becoming a thin layer with an API for data and security” (-Shiju Varghese)
“modern Web developers are writing their server-side code for both Mobile apps and Web apps” (-Shiju Varghese)
AutomationJS
Web Frontend
Boundary Compositor -!update DOM subtree
Data Compositor -!integrate the services and data Au
tom
atio
n JS
Composition Layer - programmable widgets !
Physical Mashup !
Building Blocks Pattern !
(…)
IoT Device Mobile
HTTP 1.1/2.0Streaming Data
Physical Object Web Frontend
Physical ObjectWebsocket 使用情境
Real-Time Data
Broker
ws://wot.city/object/jollenchen/sensor/dust/a
WoT.City IoT Cloud
Device Registration !
Device Container !
Websocket Broker (Channel) !
CoAP Broker (Channel) !
Data Compositor
ARM mbed IoT Devices !
Maker Kit !
In-place small data analytics
WoT.City IoT Device
IoT Application Layer Framework !
AutomationJS
WoT.City
Mobile and
Client