连接物理世界和云 获享互联世界价值 初探 平台 张洋 架构师 Yang Zhang, Solution Architect 2018 年 6 月 5 日 June 5, 2018
一个例子 Alexa Turn On (the) Light 物与物之间的网络 : Alexa, 灯等智能硬件 信息处理平台 数据分析展示平台
整体架构 设备端 Endpoints Gateway/PLC Cloud Enterprise Applications IoT Partners Consulting / SI IoT SDK OPC-UA Users IoT Users Kinesis Enterprise Users Corp Apps Accenture, Aricent, Clearscale, CTP, Luxoft, Mobiquity, Solstice, Storm Reply, Sturdy Networks, TCS, Trek10, Cert FreeRTOS WiFi Integrated Client OTA Message Broker Shadow Certificate Authority Local Resources Snowball ʥ A Protocol Adapter Greengrass Greengrass Lambda Functions OTA Message Broker Rules Engine Certificate Authority Shadow Over-The-Air (OTA) Updates Real-Time Fleet Index & Search Batch Fleet Provisioning Audit Configurations Monitor Behavior Alerts Risk Mitigation Data Pipelines Analytics Data Store Ad-hoc & Indepth Analysis Templated Reports S3 Machine Learning QuickSight Redshift EMR All ISV (Platform) Ayala, Bright Wolf, BSquare, C3IoT, Mnubo, Salesforce, Splunk, Thinglogix, Connectivity Amdocs, Asavie, AT&T, Eseye, Soracom, TATA Communications, Telus, Verizon, Gateway Adlink Technology, Advantech, MachineShop, Samsung, Technicolor, FreeRTOS 中国 Local ( 宁夏 Comms ) 区域由西云数据运营 Long-range Comms Core Management Defender Analytics 1-Click Lambda ARM, Broadcom, Digi, Expressif, Intel, MediaTek, Microchip, NXP, ST, TI, Qualcomm,
如何上手? 一个端到端的案例 手机端查看树莓派的温控探测并控制灯开关 https://github.com/cncoder/aws-iot-raspberrypi
设备端 SDK C++, Java,.Net, Node.js, Python, PHP, Ruby, Go, ios/android S3 Kinesis RedShift EMR Lambda API Gateway DynamoDB Machine Learning SDK embedded C, Node.js, java, Python, Arduino Yun, ios/android FreeRTOS Local Connectivity Libraries Cloud Connectivity Libraries Security Connectivity Libraries OTA Beta & Code Signing Greegrass ʥ A Local Messages and Triggers Local Actions Data and State Sync Security Local Resource Access Machine Learning Inference Protocol Adapters Over the Air Updates
端到端的安全与策略 执行角色 TLS 策略 SDK Private Key & Certificate & CA-Root 策略 规则引擎 IAM 角色 策略 设备 服务 & App
整体架构 IoT 平台 Endpoints Gateway/PLC Cloud Enterprise Applications IoT Partners Consulting / SI IoT SDK OPC-UA Users IoT Users Kinesis Enterprise Users Corp Apps Accenture, Aricent, Clearscale, CTP, Luxoft, Mobiquity, Solstice, Storm Reply, Sturdy Networks, TCS, Trek10, Cert FreeRTOS WiFi Integrated Client OTA Message Broker Shadow Certificate Authority Local Resources Snowball ʥ A Protocol Adapter Greengrass Greengrass Lambda Functions OTA Message Broker Rules Engine Certificate Authority Shadow Over-The-Air (OTA) Updates Real-Time Fleet Index & Search Batch Fleet Provisioning Audit Configurations Monitor Behavior Alerts Risk Mitigation Data Pipelines Analytics Data Store Ad-hoc & Indepth Analysis Templated Reports S3 Machine Learning QuickSight Redshift EMR All ISV (Platform) Ayala, Bright Wolf, BSquare, C3IoT, Mnubo, Salesforce, Splunk, Thinglogix, Connectivity Amdocs, Asavie, AT&T, Eseye, Soracom, TATA Communications, Telus, Verizon, Gateway Adlink Technology, Advantech, MachineShop, Samsung, Technicolor, FreeRTOS 中国 Local ( 宁夏 Comms ) 区域由西云数据运营 Long-range Comms Core Management Defender Analytics 1-Click Lambda ARM, Broadcom, Digi, Expressif, Intel, MediaTek, Microchip, NXP, ST, TI, Qualcomm,
设备网关 高度可扩展设备网关 标准协议支持 ( 无锁定 ) 数百万计的设备和应用程序可以通过, WebSockets, HTTP 协议进行连接 长连接 双向的消息 Pub/Sub 代理 客户端 ( 设备和应用程序 ) 可以从云中接收命令和控制信号 默认安全 通过 X509 证书和 TLS 1.2 客户端双向身份验证进行安全连接 可以对数据和控制指令采用不同 channel 基于主题的架构 (raspberryxx/sensor/data)
设备影子工作原理 1. 设备发布当前状态 5. 设备影子同步更新的状态 6. 设备发布当前状态 Shadow 3. 应用程序请求设备的当前状态 4. 应用程序请求更改设备状态 7. 设备影子确认状态更改 2. 持久化 JSON 数据存储 SDK
设备组与设备组策略 白炽灯 荧光灯
设备更新 设备监听 Job 通知 设备根据 Job 内容进行更新, 并上报自身的 Job 执行结果 Management 可以对单个设备, 或者一批设备进行更新操作 可以在 Job 文件中包含更新链接进行下载 IoT thing Job Execution Status Update Job Document Accepted Rejected Notify topic (per thing) Accepted topic (per thing) IoT rule IoT rule $aws/things/mything/jobs/notify $aws/things/mything/jobs/notify-next $aws/things/mything/jobs/jobid/get/accepted $aws/things/mything/jobs/jobid/get/rejected Optional Downloads Rejected topic (per thing) S3 Bucket (Job Artifacts) IoT rule
Analytics 介绍 数据分析 设备 消息网关 数据收集 数据处理 存储 数据集 可视化 Core Analytics
1-Click 为任意设备一键创建 Lambda 触发器 1-Click 是一项新服务, 可让简单设备轻松触发 Lambda 函数等操作 借助 1-Click, 简单设备开箱即可安全连接到 Core
部署过程 选择设备 选择要触发的操作类型 选择 Lambda 设置 ID 激活
整体架构 数据分析 Endpoints Gateway/PLC Cloud Enterprise Applications IoT Partners Consulting / SI IoT SDK OPC-UA Users IoT Users Kinesis Enterprise Users Corp Apps Accenture, Aricent, Clearscale, CTP, Luxoft, Mobiquity, Solstice, Storm Reply, Sturdy Networks, TCS, Trek10, Cert FreeRTOS WiFi Integrated Client OTA Message Broker Shadow Certificate Authority Local Resources Snowball ʥ A Protocol Adapter Greengrass Greengrass Lambda Functions OTA Message Broker Rules Engine Certificate Authority Shadow Over-The-Air (OTA) Updates Real-Time Fleet Index & Search Batch Fleet Provisioning Audit Configurations Monitor Behavior Alerts Risk Mitigation Data Pipelines Analytics Data Store Ad-hoc & Indepth Analysis Templated Reports S3 Machine Learning QuickSight Redshift EMR All ISV (Platform) Ayala, Bright Wolf, BSquare, C3IoT, Mnubo, Salesforce, Splunk, Thinglogix, Connectivity Amdocs, Asavie, AT&T, Eseye, Soracom, TATA Communications, Telus, Verizon, Gateway Adlink Technology, Advantech, MachineShop, Samsung, Technicolor, FreeRTOS 中国 Local ( 宁夏 Comms ) 区域由西云数据运营 Long-range Comms Core Management Defender Analytics 1-Click Lambda ARM, Broadcom, Digi, Expressif, Intel, MediaTek, Microchip, NXP, ST, TI, Qualcomm,
消息加工处理 --- 规则引擎 规则引擎将 连接到外部终端节点和 服务 操作 1. 服务 ( 直接集成 ) S3 DynamoDB Kinesis 2. 的其余部分 ( 通过 Kinesis Lambda S3 及其他服务 ) RDS Glacier Rules Engine SNS Lambda SQS Redshift EC2 3. 外部终端节点 ( 通过 Lambda 和 SNS)
规则引擎 SELECT DATA FROM TOPIC WHERE FILTER 简单且熟悉的语法 - 使用 SQL 语句来定义筛选条件 - 可选 WHERE 子句函数改进了信号 / 噪音 - 数十种 functions() 可用 - 字符串操作 ( 正则表达式支持 ) - 数学运算 - UUID Timestamp rand 等多个 / 同时操作 - 有时需要您采取多种操作
IoT 规则样例
整体架构 总结 Endpoints Gateway/PLC Cloud Enterprise Applications IoT Partners Consulting / SI IoT SDK OPC-UA Users IoT Users Kinesis Enterprise Users Corp Apps Accenture, Aricent, Clearscale, CTP, Luxoft, Mobiquity, Solstice, Storm Reply, Sturdy Networks, TCS, Trek10, Cert FreeRTOS WiFi Integrated Client OTA Message Broker Shadow Certificate Authority Local Resources Snowball ʥ A Protocol Adapter Greengrass Greengrass Lambda Functions OTA Message Broker Rules Engine Certificate Authority Shadow Over-The-Air (OTA) Updates Real-Time Fleet Index & Search Batch Fleet Provisioning Audit Configurations Monitor Behavior Alerts Risk Mitigation Data Pipelines Analytics Data Store Ad-hoc & Indepth Analysis Templated Reports S3 Machine Learning QuickSight Redshift EMR All ISV (Platform) Ayala, Bright Wolf, BSquare, C3IoT, Mnubo, Salesforce, Splunk, Thinglogix, Connectivity Amdocs, Asavie, AT&T, Eseye, Soracom, TATA Communications, Telus, Verizon, Gateway Adlink Technology, Advantech, MachineShop, Samsung, Technicolor, FreeRTOS 中国 Local ( 宁夏 Comms ) 区域由西云数据运营 Long-range Comms Core Management Defender Analytics 1-Click Lambda ARM, Broadcom, Digi, Expressif, Intel, MediaTek, Microchip, NXP, ST, TI, Qualcomm,
Thank You!