Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Twilio 5分 クッキング
Search
Katsumi Takahashi
May 21, 2019
Business
1
360
Twilio 5分 クッキング
2019/5/21に開催されたSIer IoTLTでの登壇資料となります
Katsumi Takahashi
May 21, 2019
Tweet
Share
More Decks by Katsumi Takahashi
See All by Katsumi Takahashi
kintoneでコミュニケーションDXを実現しよう
mobilebiz
0
140
FileMaker × Vonageの可能性
mobilebiz
0
110
Introduction of Vonage
mobilebiz
0
83
Vonageハッカソン紹介資料
mobilebiz
0
100
VonageHandson in 岡山
mobilebiz
0
88
kintone がビデオ会議システムになる話
mobilebiz
0
110
リアルタイムコミュニケーションのシステムを設計・運用する際のベストプラクティス
mobilebiz
0
91
Vonage概要 Video API
mobilebiz
0
110
Amazon Chime SDK と Vonage Video API の徹底比較
mobilebiz
0
420
Other Decks in Business
See All in Business
ele&company_companydeck
eleand
0
330
行動指針
fint_recruit
0
930
2011年 「ぼっちが懇親会でするべき97のこと」 #97bocchi から積み重ねた【令和7年最新】技術コミュニティ交流戦略2025
bash0c7
0
540
操電会社紹介資料 / Soden Company Deck
soden
0
570
ARI会社説明
arisaiyou
1
16k
【テックファームホールディングス】中途採用向け会社説明資料
techfirm
0
420
バイブコーディング入門:ビジネスを加速させる迅速なプロトタイピング術
ncdc
0
160
Data Cloudで実現する、 Agentforce が飛び交う Next Generation Platform
marreta27
0
150
エニグモ_会社紹介資料
enigmo_hr
0
1.7k
【新卒採用資料】Natee Company Deck _202508
nateehr
0
300
【エンジニア職】中途採用向け会社説明資料(テックファーム株式会社)
techfirm
0
5.6k
No.1ビジネスを創り出す カテゴリー戦略の実践ガイド
shunsukemori
0
150
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2k
The Language of Interfaces
destraynor
161
25k
Why Our Code Smells
bkeepers
PRO
339
57k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Making Projects Easy
brettharned
117
6.4k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Building Adaptive Systems
keathley
43
2.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Rails Girls Zürich Keynote
gr2m
95
14k
Side Projects
sachag
455
43k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Transcript
5XJMJPΫοΩϯά ϧʔλʔͰϗετΛࢹ͠Α͏ ,%%*Σϒίϛϡχέʔγϣϯζ 5XJMJPࣄۀ෦ɹߴڮࠀݾ #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 2
Evangelist Katsumi Takahashi KDDI Web Communications Inc. Twilio Division facebook: katsumi.takahashi Twitter: _katsumi github: mobilebiz qiita: mobilebiz #赤い芸人 #IoTLT
Copyright (C) KDDI Web Communications Inc. All Rights Reserved %PZPVLOPX5XJMJP
#IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 4
綴りを間違えないようにお願いしますw 誤り 正解 #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved さて、本題です
#IoTLT #͍ܳਓ
先日、YAMAHAさんが訪ねてきました。 #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 7
ग़యɿhttps://network.yamaha.com/embedded/iot_m2m ͜͜ͰఆظతʹػثΛࢹ ͯ͠ɺҟৗ͕͋Εϧʔλ ͕ϝʔϧΛͩ͢Β͍͠ #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 知らない間にルーターが進歩していた・・
#IoTLT #͍ܳਓ
どうやって実現しているのか聞いてみた。 #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 10
#IoTLT #͍ܳਓ なんと、ほとんどのYAMAHAルーターには Luaという⾔語による実⾏環境が⽤意されて いて、ルーター上でLuaスクリプトを動かせ るらしい。 Wikipediaによると・・・ Lua(ルア)は、リオデジャネイロ・カトリカ⼤学(英語版)の、主としてDepartment of Computer Science(コンピュータ科学科)and・ or Computer Graphics Technology Group (Tecgraf) に属する、Roberto Ierusalimschy, Waldemar Celes, Luiz Henrique de Figueiredo らによって設計開発されたスクリプト⾔語およびその処理系の実装である。 ⼿続き型⾔語として、また、プロトタイプベースのオブジェクト指向⾔語としても利⽤することができ、関数型⾔語、データ駆動型としての 要素も併せ持っている。 Luaという名前は、ポルトガル語の⽉に由来する。
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 11
実行例 #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 12
YAMAHA独自のAPIを用意 #IoTLT #͍ܳਓ • جຊϥΠϒϥϦ ϧʔλʔͷίϚϯυͷ࣮ߦɺϝʔϧͷૹ৴ͳͲɺجຊతͳૢ࡞Λߦ͏ϥΠϒϥϦͰ͢ɻ Lua εΫϦϓτػೳʹରԠͨ͠શͯͷϑΝʔϜΣΞͰ༻ՄೳͰ͢ɻ • ϋʔυΣΞϥΠϒϥϦ ϧʔλʔͷϒβʔ LED ͷϋʔυΣΞ੍ޚ༻ͷϥΠϒϥϦͰ͢ɻ • HTTPϥΠϒϥϦ HTTP ΫϥΠΞϯτͷػೳΛఏڙ͢ΔHTTPϥΠϒϥϦͰ͢ɻ_RT_LUA_VERSION ͕ "1.02" Ҏ্ͷϑΝʔϜΣΞͰ༻ՄೳͰ͢ɻ • ιέοτ௨৴ϥΠϒϥϦ ιέοτΛ༻ͯ͠௨৴Λߦ͏ͨΊͷϥΠϒϥϦͰ͢ɻ_RT_LUA_VERSION ͕ "1.06" Ҏ ্ͷϑΝʔϜΣΞͰ༻ՄೳͰ͢ɻ
ルーターから電話かけられるんじゃね? #IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 14
想定構成図 YAMAHA RTX830 Raspberry Pi 3 10秒ごとにPingを発⾏ ダウンロードボタンを押すと、監視⽤スクリプトを Twilio Assetsからダウンロードして実⾏ Raspberry Piからの反応が途絶えると、HTTPライブラリを 使って、Twilio Studioを呼び出し、電話を架電する Πϯλʔωοτ #IoTLT #͍ܳਓ Twilio
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 15
実装手順 #IoTLT #͍ܳਓ • ·ͣख࣋ͪͷRTX810ͰͬͯΈͨɻ • RTX810ͩͱɺHTTPSͰͷϦΫΤετ͕ग़ͤͳ͍ɻʢ͓ͱͱ͍ਂ ʣ • Α͠ɺRTX830Λങ͓͏ʂ • AmazonͰݟ͚ͭΔʢ݄༵ૹՄʣ • Amazonਆʂˠߪೖ • ςϨϫʔΫʹͯ͠ՙΛͭؒʹɺ࣮ʂʢࡢʣ • ͔͠͠ɺՙ͜ͳ͍ɾɾɾ • ΘΓʹϝʔϧདྷͨ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 16
#IoTLT #͍ܳਓ
Copyright (C) KDDI Web Communications Inc. All Rights Reserved 17
構成図 YAMAHA RTX810 Raspberry Pi 3 10秒ごとにPingを発⾏ ダウンロードボタンを押すと、監視⽤スクリプトを Macbook(Flask)からダウンロードして実⾏ Raspberry Piからの反応が途絶えると、HTTPライブラリを 使って、Mackbook経由でTwilio Studioを呼び出し、電話を 架電する Πϯλʔωοτ #IoTLT #͍ܳਓ Twilio
Copyright (C) KDDI Web Communications Inc. All Rights Reserved Let's
Cooking! #IoTLT #͍ܳਓ
© 2009 - 2014 Twilio, Inc. All rights reserved. ·ͱΊ
ルーターでホストの管理ができると、監視⽤のサーバーが不要にな る。 ホストの死活監視だけでなく、Syslogの監視や回線の使⽤率、ルー ター⾃体の異常検知など、いろいろなことができる。 USBを使ったモバイルインターネットを併⽤することで、WAN回線 に障害が発⽣した場合もモバイル経由で通知が可能。 ものを買うときは余裕をもって買いましょう。 #IoTLT #͍ܳਓ
Twilio powers the future of business communications. #IoTLT #͍ܳਓ