25
ReButton 2019/9/6 Takashi Matsuoka SWEST21 s4b

ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

ReButton

2019/9/6Takashi Matsuoka

SWEST21 s4b

Page 2: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Takashi Matsuoka(@matsujirushi12)

2017~ MVP for Windows Development

Wio LTE Wio 3G

MT3620DevBoard

Wio LTE M1/NB1(BG96)

de:code 2019

「e」3つ

Page 3: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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 -

Page 4: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

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

Page 5: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

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

Page 6: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Azure IoT Central - ハウツーガイド

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

Page 7: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

ReButton

Internet

クラウドエッジ

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

Page 8: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

ReButton

Wi-Fi 2.4G

Wi-FiAccess Point

Azure IoT Central

Azure IoT HubInternet

Button LED

User

最小限のセットアップ

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

Page 9: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

グローバル

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

Page 10: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

グローバル

Page 11: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

グローバル

Page 12: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

RGB LED

PUSH BUTTON

I2C Grove connector

Jumper switch

JTAG pads

UART for debug

AAA batteries

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

Page 13: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

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

Page 14: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Debug Adapter PCReButton

ImageImage

Image

Azure Storage

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

Page 15: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Arduino IDE

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

ライブラリ

アプリケーション

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

SeeedJP ReButton by Seeed K.K.

ReButtonApphttps://github.com/SeeedJP/ReButtonApp

https://github.com/SeeedJP/ReButtonArduinoPlatform

Page 16: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

Page 17: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

Page 18: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

Page 19: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

Page 20: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

Page 21: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Devi

ce

Clou

d Se

rvic

es

IoT Plug and Play Overview

DeviceCapability

Model

Interface

Page 22: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

Devi

ceTelemetry

Properties

Clou

d Se

rvic

es

Commands

IoT Plug and Play Contents

DeviceCapability

Model Interface

Page 23: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e
Page 24: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

DEMO: IoT Plug and Play

Page 25: ReButton - zacky1972.github.io · Takashi Matsuoka (@matsujirushi12) 2017 ~MVP for Windows Development Wio LTE. Wio 3G. MT3620. DevBoard. Wio LTE M1/NB1(BG96) de:code 2019 「 e

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

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

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