Upgrade to Pro — share decks privately, control downloads, hide ads and more …

IoT Mashups XXX - IoTはどこまで混ざるのか -

46e8de7d6e95be6327e8c49bf3b0c028?s=47 chao2suke
October 14, 2016

IoT Mashups XXX - IoTはどこまで混ざるのか -

夜ノDevelopers.IO Sapporo 2016 発表資料

46e8de7d6e95be6327e8c49bf3b0c028?s=128

chao2suke

October 14, 2016
Tweet

Transcript

  1. IOT MASHUPS XXX IOT͸Ͳ͜·Ͱࠞ͟Δͷ͔ Ϋϥεϝιουגࣜձࣾ ໷ϊIoTνʔϜɹਗ਼໺ɹ߶࢙

  2. #CMDEVIO2016

  3. ࣗݾ঺հ ਗ਼໺ ߶࢙(ͤʔͷ) ▸ Ϋϥεϝιουגࣜձࣾ 
 AWSίϯαϧςΟϯά෦ IoTνʔϜॴଐ ▸ ৽نσόΠεݕূ୲౰

    ▸ Ոࣄҭࣇͱ࢓ࣄͷ഑෼͕50:50ͷ೔ʑ ▸ ͔ͭͯ͸௒໷ܕɺࠓ͸௒ேܕ ▸ ʮ໷ϊʯͷΩʔϫʔυʹεϥΠυશମ͕ ҾͬுΒΕͨ
  4. IoT ͸ࠓͲΜͳҐஔ?

  5. GARTNER HYPE CYCLE

  6. GARTNER HYPE CYCLE ΋͏͙͢ʮա౓ͳظ଴ʯͷϐʔΫ

  7. ʮա౓ͳظ଴ʯͱ͸ʁ = উखʹ৭ʑ΍ͬͯ͘ΕΔΜ͡Όͳ͍͔ɺͱ͍͏ظ଴ɻ ▸ ϩϘοτ͕ॎԣແਚʹಈ͖ճΔ ▸ ͱΓ͋͑ͣυϩʔϯ ▸ ʮਓ޻஌ೳʯͱࠞಉ͞ΕΔ ▸

    ʮػցֶशʯͱ΋ࠞಉ͞ΕΔ ▸ CUIͰσϞ͢ΔͱΨοΧϦ͞ΕΔ IOT
  8. IoTʹର͢Δਖ਼͍͠ཧղ͕ඞཁ

  9. ʮϞϊ͕ωοτϫʔΫʹܨ͕Δʯͱ͸ ηϯαʔͷೳྗʹΑͬͯ֫ಘͨ͠σʔλ͕ ωοτϫʔΫ্ʹૹ৴͞ΕΔ(INPUT) ωοτϫʔΫ্͔Βड৴ͨ͠ίϚϯυʹΑͬͯ ηϯαʔ͕Քಇ͢Δ(OUTPUT)

  10. IOT͕Ռͨ͢໾ׂ IOT͸ϦΞϧͱσʔλΛͭͳ͙ʮύΠϓʯ ▸ ϦΞϧͳੈքͷঢ়گΛσʔλԽͯ͠Ϋϥ΢υʹ஝ੵ ▸ ωοτΛ௨ͯ͡ϦΞϧͳੈքͷϞϊΛૢ࡞͢Δ ▸ IoTʮ͚ͩʯͰ͸σʔλ͕ϦΞϧͱΫϥ΢υΛߦͬͨΓདྷͨΓ ͢Δ͚ͩʢ͜Ε͸͜ΕͰՁ஋͕͋Δʣ ▸

    ଞͷٕज़ͱMashupͤ͞Δ͜ͱͰʮա౓ͳظ଴ʯʹͦͦ͜͜Ԡ ͑ͯΈΔ
  11. Mashup͢ΔϙΠϯτ

  12. None
  13. MASHUPͷϙΠϯτ LAMBDAΛڬΉ͔Ͳ͏͔Ͱେ͖͘มΘΔ ▸ AWS IoT / API GWͲͪΒ͔ΒͰ΋Lambdaʹܨ͛Δ͜ͱ͕Ͱ͖Δ ▸ Lambda͔Β͸AWSͷͲͷαʔϏεͰ΋ݺ΂Δ

    ▸ LambdaΛ࡞Δ = ίʔυΛॻ͘ = ޻਺͔͔Δɺอकେม
  14. API GATEWAYΛ࢖ͬͨϢʔεέʔε API GW + SNSͰFUNOUTύλʔϯ

  15. API GATEWAYΛ࢖ͬͨϢʔεέʔε API GW + AWS IOT SHADOWSͰΤϯυϙΠϯτΛӅ͢ AWS PROXY

  16. OR ?

  17. AWSΛʮύΠϓʯͱͯ͠࢖͏ ϙΠϯτ͸ʮϓϩτίϧʯͱʮηΩϡϦςΟʯ ▸ طଘͷIoTσόΠεͰ͸࢖͑Δʮϓϩτίϧʯ੍͕ݶ͞ΕΔ৔ ߹͕͋Δ ▸ AWS IoTΛ࢖͏ = X.509ূ໌ॻΛೖΕͯ௨৴

    ▸ IoTσόΠεʹϩάΠϯग़དྷͳ͍ʢमਖ਼Ͱ͖ͳ͍ʣ͜ͱ΋ଟ͍
  18. AWSΛʮύΠϓʯͱͯ͠࢖͏ LinuxೖΓσόΠε ηϯαʔܥσόΠε MQTT͕࢖͑Δ MQTT͕࢖͑ͳ͍ ʢূ໌ॻ͸OKʣ MQTT͕࢖͑ͳ͍ ʢূ໌ॻ΋NGʣ gateway +

    gateway + gateway +
  19. API GWͷऑ఺ ʮηΩϡϦςΟʯΛؾʹ͢ΔͳΒAWS IOT ▸ API Gateway͸ʮAWS IAMʯ͔ʮAPI Ωʔʯ͕ηΩϡϦςΟ୲อͷํ ๏

    ▸ େྔͷηϯαʔʹIAM API KEYΛೖΕΔͷ͸ݱ࣮తͰ͸ͳ͍ ▸ ʮAPIΩʔʯ͸࿙ΕͨΒ͓͠·͍ ▸ Ͱ΋ηϯαʔʹূ໌ॻΛೖΕΒΕͳ͍৔߹͸ʁ
  20. None
  21. AWS + SORACOM SoracomΛ࢖͏ MQTT͕࢖͑Δ ʢূ໌ॻ͸NGʣ HTTPS͕࢖͑ͳ͍ TCP/UDP͔͠࢖͑ͳ͍ SORACOM BEAM

    + SORACOM BEAM + SORACOM FUNNEL +
  22. AGENDA IOT MASHUPS WEBSOCKET IOT MASHUPS API SERVICE IOT MASHUPS

    MACHINE LEARNING IOT MASHUPS ALEXA IOT MASHUPS MIDI IOT MASHUPS GETWILD
  23. ߋʹ͜ΕΒΛMashup͠·͢ɻ

  24. IOT MASHUP CASES CASE1. DASHBOARD ▸ ʮϦΞϧλΠϜʯΛٻΊΔํ޲͚ ▸ AWS IoTͱWebϖʔδΛMQTT

    over WebSocketͰܨ͛Δ ▸ ೝূ͸CognitoΛ࢖͏ͱϥΫ ▸ Cognito ID͸IoT Policyʹ࢖͑Δ ▸ දݱ͸HTML5ʹ೚ͤΔ ▸ ૢ࡞͸AWS IoT Shadows APIΛ௨ͯ͡ߦ͏
  25. IOT MASHUP CASES

  26. IOT MASHUP CASES CASE2. VOICE COMMAND ▸ INPUTΛԻ੠ೝࣝͰߦ͏ ▸ INPUTʹର͢Δ݁ՌΞΫγϣϯΛIoTͱ࿈ಈͤ͞Δ

    ▸ Alexa Skills Kit ▸ Lambda͔ΒAWS IoTΛୟ͘
  27. IOT MASHUP CASES

  28. IOT MASHUP CASES CASE3. ANALYTICS & CHECK ▸ IoTηϯαʔ͸ʮΤϥʔσʔλʯΛग़͢͜ͱ͕··͋Δ ▸

    ΤϥʔσʔλΛࣗಈతʹഉଞ͢Δ࢓૊ΈΛඋ͑Δ ▸ Amazon Machine Learningʹͯ༧ଌ஋Λग़͢ ▸ Kinesis AnalyticsʹΑΓਖ਼ৗൣғΛنఆ͢Δ ▸ Τϥʔσʔλݕग़࣌ʹ͸σʔλՁ஋ʹΑͬͯϑΟʔυόοΫ Λฦ͢
  29. IOT MASHUP CASES

  30. IOT MASHUP CASES CASE4. WALKTHROUGH AUTHENTICATION ▸ إೝূͱύεIDೝূΛ૊Έ߹Θͤͨ΋ͷ ▸ إೝূͷ൑அ͕ૣ͚Ε͹ཱͪࢭ·Δඞཁ͕ͳ͍

    ▸ ࣮ࡍ͸ύεೝূΛ͢Δલ͔ΒإೝূΛ͍ͯ͠ΔʢΑ͏ʹݟ͑ Δʣ
  31. IOT MASHUP CASES

  32. IOT MASHUP CASES CASE5. GET WILD & LEAVING ▸ ͍ΘΏΔʮGET

    WILDୀۈʯ ▸ ηϯαʔλάͰর౓ΛऔΓɺᮢ஋ΛԼճΔͱGET WILDΛྲྀ͢ ▸ ʮؒʯ͕ॏཁ
  33. IOT MASHUP CASES

  34. DEMO

  35. IOT MASHUP CASES CASE ETC. AUDIO VISUALIZING ▸ MIDIن͕֨ΦʔϓϯʹͳΓɺଞٕज़ͱͷΠϯςάϨʔγϣϯ ͕Մೳʹ

    ▸ ʮCreators' Hubʯ(https://amei-music.github.io/CreatorsHub/) Λ࢖༻͢Δ͜ͱ ʹΑͬͯϓϩτίϧͷ૬ޓม׵͕Մೳʹ ▸ JSONͱMIDI΍OSC(Open Sound Control)͕Creators’ HubʹΑͬͯม׵Ͱ͖Δ ͨΊɺIoTσόΠεΛMIDIσʔλ΍OSCσʔλʹม׵ͯ͠Ϛϧν ϝσΟΞͷίϯτϩʔϧΛߦ͏
  36. IOT MASHUP XXX SUMMARY ·ͱΊ ▸ IoT͸͜Ε͔Βʮա౓ͳظ଴ʯͷϐʔΫʹೖΔ ▸ ࣮ࡍͷIoT͸ʮύΠϓʯͷ໾ׂ ▸

    ʮա౓ͳظ଴ʯʹͳΔ΂͘Ԡ͑ΔͨΊʹ͸Ϋϥ΢υͰഓͬͯ ͖ͨϊ΢ϋ΢ʹIoTΛ௨ͯ͡ϦΞϧΛʮܨ͛ΔʯΑ͏ͳߟ͑ํ Λ࣋ͭͱ͏·͘ߦ͖΍͍͢ ▸ ࠷ۙͷٕज़͸ίϯϙʔωϯτԽ͕ਐΜͰ͓Γ࿈ܞ͠΍͍͢