rebutton - swest › swest21 › program › pdfs › s4b_public.pdftakashi matsuoka...

Post on 31-May-2020

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ReButton

2019/9/6Takashi Matsuoka

SWEST21 s4b

Takashi Matsuoka(@matsujirushi12)

2017~ MVP for Windows Development

Wio LTE Wio 3G

MT3620DevBoard

Wio LTE M1/NB1(BG96)

de:code 2019

「e」3つ

Field GatewayField bus / protocol

Custom Cloud Gateway

(Cloud Service, VM)

VPN/ExpressRoute

OPC, HTTP, CoAP,…

Field GatewayField bus / protocol

Custom Cloud Gateway

(Cloud Service, VM)

AMQP, MQTT, HTTPS

Custom ProtocolsDevice

Device

Device

Device

Device

Device

AMQP, MQTT, HTTPS

Management appDevice registry/ManagementMonitoringSend commands

Management appDevice registry/ManagementMonitoringSend commands

Applications- Companion apps- Dashboards- Controllers- …

Build 2018 – BRK3803 Azure IoT Platform services - The modern IoT developer toolbox

Azure IoT Hub - Cloud Gateway -

Azure IoT Hub – クイックスタート

https://docs.microsoft.com/ja-jp/azure/iot-hub/quickstart-send-telemetry-c

Azure IoT Hub – クイックスタート

https://github.com/Azure/azure-iot-sdk-c/blob/master/iothub_client/readme.md#mbed

Azure IoT Central - ハウツーガイド

https://docs.microsoft.com/ja-jp/azure/iot-central/howto-connect-devkit

ReButton

Internet

クラウドエッジ

Azure IoT Hub/Azure IoT Central 最小限のセットアップ 低価格 電池駆動 グローバル カスタマイズ

ReButton

Wi-Fi 2.4G

Wi-FiAccess Point

Azure IoT Central

Azure IoT HubInternet

Button LED

User

最小限のセットアップ

Wi-Fiアクセスポイント情報 Azure接続情報

グローバル

Barcelona, SpainSanta Clara, USATaipei, TaiwanShinzhen, ChinaNew York, USASeoul, South KoreaTokyo, JapanOrlando, USANuremberg, GermanySydney, AustraliaHanover, GermanyTaipei, Taiwan

https://twitter.com/SeeedJP/status/1051771382835634177

IoT in Action

グローバル

グローバル

RGB LED

PUSH BUTTON

I2C Grove connector

Jumper switch

JTAG pads

UART for debug

AAA batteries

カスタマイズ – ハードウェア

https://github.com/SeeedJP/ReButton/tree/master/mechanicalshttps://github.com/SeeedJP/ReButton/tree/master/electronics

カスタマイズ – ハードウェア

Debug Adapter PCReButton

ImageImage

Image

Azure Storage

カスタマイズ – ソフトウェア

Arduino IDE

ボード・プラットフォーム

ライブラリ

アプリケーション

カスタマイズ – ソフトウェア

SeeedJP ReButton by Seeed K.K.

ReButtonApphttps://github.com/SeeedJP/ReButtonApp

https://github.com/SeeedJP/ReButtonArduinoPlatform

IoT Hub

Reported properties

Desired properties

Direct methods

Device-to-cloud messages

File uploads

C2D messages

Phys

ical

Dev

ice

Partition

Communicate a Device and Azure IoT Hub

ConsumerGroup

Blob Storage~7days

Partition~2days

DeviceTwin

Desired

Reported

Azure IoT SDK in ReButton

Arduino API Mbed API

WiFiInterface

Adapter

DeviceClient

ServiceClient

ProvisioningClient

ProvisioningService

Application

Azure IoT C SDKsC shared utilityhttps://github.com/Azure/azure-iot-sdk-c

Azure IoT Device Client API

IoTHubClient_LL_CreateFromConnectionString()

IoTHubClient_LL_SetDeviceTwinCallback()

IoTHubMessage_CreateFromByteArray()IoTHubClient_LL_SendEventAsync()

IoTHubClient_LL_SendReportedState() DeviceTwinReportCallbackFunc

DeviceTwinCallbackFunc

SendEventCallback

IoT Hub接続先を指定:ConnectionStateCallbackFunc

D2Cメッセージを送信:

DeviceTwinのReportedを変更:

DeviceTwinのDesiredの変更通知を受ける:

https://github.com/SeeedJP/ReButtonApp/blob/master/ReButtonClient.cpp

Settings

Properties

Measurements

Telemetry

State

Event

Commands

D2C messages

DeviceTwin

Desired

Reported

Phys

ical

Dev

ice

IoT Central

Analytics

Jobs

Data Export

Rules

Email

Functions

Logic Apps

Flow

Storage

DashboardWebhook

Event Hub

ReButton and IoTC Configuration

ReButton Configuration:

Wi-FiSSID / Passphrase

IoT CentralScope IDDevice IDSAS Key

IoT Central Configuration:

Create device template

Add telemetry/state/eventAdd real deviceCopy Scope ID/Device ID/SAS Key

Devi

ce

Clou

d Se

rvic

es

IoT Plug and Play Overview

DeviceCapability

Model

Interface

Devi

ceTelemetry

Properties

Clou

d Se

rvic

es

Commands

IoT Plug and Play Contents

DeviceCapability

Model Interface

DEMO: IoT Plug and Play

まとめReButton: Azure IoTを体験する最も簡単なデバイス カスタマイズ可能

Azure IoT Central / Azure IoT Hub: 体験はIoT Central、デバイス開発はIoT Hub

デバイス開発: Azure IoT SDK IoT Plug and Play

top related