AWS IoT & ML Recap - 20180423
AWS IoT & ML Recap - 20180423
Taka Wang
2018.04.23
IoT Foundation
Digitization of the Physical World
Prerequisites
Greenfield vs. Brownfield
VS
Greenfield Brownfield
Existing
New Devices
Standards Devices &
& Standards
Standards
ata g
D sin
e s
i n g
proc
e ss
ro c
atap
D
ata g
D sin
e s
proc
a ta g a ta g
D sin D sin
c es c es
pro pro
Cloud,
4G, data ce
5G
app, se nters,
rvices
eNodeB
MEC Mobile Core
4G,
5G
MobileMulti-Access Edge Computing
o rs eNodeB
u at
/ Act
nsor s Customer Edge Network Edge
a l Se
Loc
Internet
Things Edge/Gateway
Cloud
intermittent connectivity
Things
AWS IoT Product Timeline
AWS FreeRTOS Cloud
AWS
AWS IoT Device SDK GreenGrass
AWS IoT Core
Things Edge/Gateway
AWS IoT Device
AWS FreeRTOS Mgmt.
Vendor Drivers
Hardware
Alternatives
Azure Sphere
Cost Structure
Cost Structure Revenue Streams
Revenue Streams
- 開發⼈員⼈⼒成本 免費使⽤ FreeRTOS,透過 AWS IoT Device
- Device Management Service 維運成本 Management (OTA) 與 IoT Core 等服務收取
- Enablement/Engagement的⼈⼒成本 Subscription fee
Rev. 2
AWS IoT Device Mgmt.
User can onboard a large Organize devices into groups which AWS IoT Device Management sends Firmware updates can be sent to a
number of devices at once can also be arranged into hierarchies a device job over-the-air (OTA), such group or individual devices
using device provisioning as a firmware update
{
Rule "awsIotSqlVersion": "2016-03-23",
"sql": "SELECT * FROM 'iot/test'",
"ruleDisabled": false,
Name "actions": [
{
"s3": {
Description "roleArn": "arn:aws:iam::123456789012:role/aws_iot_s3",
"bucketName": "my-bucket",
"key": "myS3Key"
SQL Statement }
}
Array of Actions ]
}
Reference: (MBL312) NEW! AWS IoT: Programming a Physical World w/ Shadows & Rules
AWS IoT Thing Shadows
AWS IoT
Reported
Desired
Intermittent Delta
REST APIs
Connection
• Report current state to one or multiple shadows • Set the desired state of a device
• Retrieve its desired state from shadow • Get the last reported state of the device
• Delete the shadow
Thing Shadow
Thing Shadow Permissions
68 Report
Reported State State Delta
68 Authenticated
Desired State
Thermostat
68
X.509 Certificate
Thing Shadow
68
Desired State
Thermostat Update
70
70
68
Sub
Thing Shadow
68 +2
Thing Shadow
68
70 2. Update
Reported State State Delta
70
Thing Shadow
68
70 Reported State State Delta
70 Sub
Pub
Desired State
Thermostat
70
70
68
Confirm
Embedded C
C++11 Android iOS
(Embedded OS)
Thing Shadow
aws_iot_shadow_interface.h
MQTT Interface
aws_iot_mqtt_interface.h
AWS IoT
Embedded C SDK AWS MQTT Library - derived from Paho Embedded C
Machine Supervised
Learning
Unsupervised
Learning
Learning
Regression
Clustering
Reinforcement
Learning
Training Data
Machine
Machine Learning
Learning
Algorithms Model
Test Data
Production
Data
Training vs. Inference
Forward “car”
Large N
Backward Error
TRANING
Forward
“car”
Smaller,
varied N
INFERENCE
Reference: Discover the Difference Between Deep Learning Training and Inference
AWS Machine Learning Blackbox
AWS ML Process
‣ build-in algorithms
‣ Inference code image
‣ Interactive Environment ‣ pre-built train/inference images ‣ Scalable CPU/GPU Cluster
‣ Trained model
‣ your own images
Jupyter
Algorithms Training Hosting
Notebook
Amazon SageMaker Amazon ECR
Client Application
Inference code
Training code
Inference code
Training Data
Model artifacts
Inference code
Training Data
Model artifacts
Training Data
Inference request
Inference Endpoint
Inference response
Model artifacts
Training Data
Inference request
Inference Endpoint
Inference response
Ground Truth
Model artifacts
Training Data
Edge Gateway
Greengrass core Greengrass core /Fog Node
(Runtime) (Runtime)
Device SDK
Device SDK Edge Devices
Factory Home
Why Edge? (or Cloud-Centric Assumption)
Process
Programming paradigms
Local Inference
Local Inference
Training Training
Data Machine Data
Machine Learning Machine
Learning
Machine Learning
Learning
Algorithms Algorithms
Model Model
Test Data Test Data
Deployment
Machine
Production Inference Serverless Production Inference
Learning
Data function Data
Model
Reference: How Edge Computing And Serverless Deliver Scalable Machine Learning Services
Greengrass ML inference Workflow
AWS Greengrass
Core Device Device data
Result from
Data inference processing
ML model
Edge/Gateway Cloud
GG
Device Device
Core
/opcua/server/node/plc1
Processing Lambda
OPCUA
Bridge OPCUA
Server Adapter
/opcua/server/node/plc2
‣ OTA is not easy: (Partition based, Package based, Version, OS, Die-Hard)
Customer Segments
IoT or IIoT
分類思考法簡化問題
Greenfield or Brownfield
‣ Top 10 Reasons People Aren't Embracing the IoT - IoTI, April 2016
Know your customers
‣ Compare IoT and IIoT: Find 11 Differences - RAMAX Group, Feb 2018
Narrow Your Focus
• No QOS2 support
• No message persistence
Reference: AWS IoT Core Now Supports MQTT Connections with Certificate Based Client Authentication On Port 443
Nvidia’s updates EULA to ban the use of gamer-oriented
GPUs in data centers
Application Services
Cloud
Cloud Edge Edge
Compute Storage Network
ex. MEC
Sensors & Applications Cloud Infrastructure