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

現代版・ポケベルを支える技術 - SORACOM UG Explorer 2020 LT

Y_uuu
December 19, 2020

現代版・ポケベルを支える技術 - SORACOM UG Explorer 2020 LT

SORACOM UG Explorer 2020 ライトニングトーク
2020年12月19日(土) 16:50〜

現代版・ポケベルを支える技術

ポケベル製作を通じて得られた技術的知見をまとめたLTです。
https://qiita.com/Y_uuu/items/9c781f269167d73ee262

Y_uuu

December 19, 2020
Tweet

More Decks by Y_uuu

Other Decks in Technology

Transcript

  1. ݱ୅൛ɾϙέϕϧΛࢧ͑Δٕज़
    2020-12-19(Sat
    )


    SORACOM UG Explorer 2020
    ઌਐٕज़෦໳ IoTνʔϜ ΤϯδχΞ


    Ԭቌ ༤ฏ
    1

    View full-size slide

  2. ࣗݾ঺հ
    Ԭቌ ༤ฏ
    Okazaki Yuhei
    ‣ I
    D


    - @yuuu @Y_uuu
    ‣ ࣗݾ঺հ
    • ઌਐٕज़෦໳ IoTνʔϜ ΤϯδχΞ
    • ݩɾ૊ࠐΈΤϯδχΞ(2018೥͔ΒWebܥ΁
    )


    • ޷͖ͳσόΠε͸M5StickC
    ‣ Skil
    l


    2
    image

    View full-size slide

  3. ٕज़ॻయ10ͰຊΛൢച͠·͢
    3
    ‣ ։࠵ظؒ
    - 2020-12-26(౔)ʙ2021-01-06(ਫ)
    ‣ ։࠵৔ॴ
    - ٕज़ॻయ10ΦϯϥΠϯϚʔέοτ
    ‣ ϨϏϡϫʔืूத
    - ిࢠ൛Λݙຊ͠·͢
    - ɹɹ@Y_uuu ΁DM͍ͩ͘͞

    View full-size slide

  4. ٕज़ॻయ10ͰຊΛൢച͠·͢
    4
    ‣ ։࠵ظؒ
    - 2020-12-26(౔)ʙ2021-01-06(ਫ)
    ‣ ։࠵৔ॴ
    - ٕज़ॻయ10ΦϯϥΠϯϚʔέοτ
    ‣ ϨϏϡϫʔืूத
    - ిࢠ൛Λݙຊ͠·͢
    - ɹɹ@Y_uuu ΁DM͍ͩ͘͞

    View full-size slide

  5. ͔͜͜Βຊ୊Ͱ͢
    Start

    View full-size slide

  6. SORACOMͱM5StackΛ࢖ͬͯϙέϕϧΛݱ୅ʹ෮ࠁͤͨ͞
    6
    M5Stack ϙέϕϧ
    SORACOM Advent Calendar 2020ͷ
    8೔໨ͷهࣄͰ͢ɻ
    QiitaͷτϨϯυೖΓ͠·ͨ͠

    View full-size slide

  7. ٙ࿭: ࣮͸ೋ൪Ḧͩͬͨ͡ʁ
    7
    M5Stack༻ 3G֦ுϘʔυͷ
    ϓϨεϦϦʔε

    View full-size slide

  8. (࣮ࡍʹ࡞ͬͯެ։ͨ͠ͷ͸͜Ε͕ॳͱ৴ͯ͡…
    )


    ϙέϕϧ෮ࠁ࡞ۀͰֶΜͩ
    ݱ୅൛ɾϙέϕϧΛࢧ͑Δٕज़Λ঺հ͠·͢

    View full-size slide

  9. ֎؍
    9
    • ૹ৴ଆͱड৴ଆͱ΋ɺM5Stack BasicΛ࢖༻
    • ૹ৴ଆ͸3DϓϦϯλͰέʔεΛࣗ࡞(ฐࣾޙഐ΁ґཔ)

    View full-size slide

  10. Qwiic Ωʔύου
    10
    • εΠοναΠΤϯεʹͯߪೖ
    • QwiicίωΫλͰ઀ଓ(࣮ଶ͸I2C௨৴
    )


    • Qwiic-GROVEΞμϓλέʔϒϧΛ࢖͏͜ͱͰ
    M5Stackͱ؆୯઀ଓ

    View full-size slide

  11. Qwiic Ωʔύου
    11
    • ArduinoϥΠϒϥϦ͕ެ։͞Ε͍ͯΔ
    • sparkfun/SparkFun_Qwiic_Keypad_Arduino_Librar
    y


    • αϯϓϧ෇͖
    • ೖྗͨ͠਺ࣈ(ه߸)ͷจࣈίʔυ͕ฦͬͯ͘Δ

    View full-size slide

  12. Qwiic Ωʔύου
    12
    • ϘλϯԡԼ࣌ʹμΠϠϧԻͬΆ͍ԻΛग़͢
    • M5StackͷSpeakerΛ࢖ͬͯಠ࣮ࣗ૷
    • ຊ෺ͷμΠϠϧԻ(DTMF)͸௿܈ͱߴ܈ͷ߹੒Ի͕ͩ

    ࣮૷͕೉͔ͬͨ͠ͷͰߴ܈ͷΈରԠ

    View full-size slide

  13. M5Stack༻SigfoxϞδϡʔϧ
    13
    • ͱʹ͔҆͘͘SORACOMΛ࢖͍͔ͨͬͨͷͰબఆ
    • ൓ল͸͍ͯ͠Δ͕ޙչ͸͍ͯ͠ͳ͍

    View full-size slide

  14. M5Stack༻SigfoxϞδϡʔϧ
    14
    • Sigfoxϓϩτίϧ
    • ͜Μͳײ͡ͷจࣈྻΛ࡞ͬͯૹ৴͢Δ

    “AT$SF=0123456789ABCDEF01234567\r\n
    "


    • 16ਐ਺ܗࣜͰ24จࣈ(12byte)·Ͱૹ৴Մ
    • Ωʔύου͕จࣈίʔυΛฦͯ͘͠ΕΔͷͰ

    ͦΕΛͦͷ··όοϑΝʹ٧Ίͯૹ৴͍ͯ͠Δ
    • จࣈ਺͕ح਺ͷ৔߹ɺૹ৴ΤϥʔʹͳΔ

    →ۮ਺ʹtruncateͯ͠ૹ৴

    View full-size slide

  15. M5Stack༻SigfoxϞδϡʔϧ
    15
    • ʮ*2*2ʯͰೖྗ։࢝ɺʮ##ʯͰૹ৴
    • ౰࣌ͷϙέϕϧ͸ʮ*2*2ʯͰ਺ࣈϞʔυˠ

    2λονೖྗͷ੾Γସ͑ίʔυͩͬͨ(Β͍͠
    )


    • ͜ΕΛશ෦Ϋϥ΢υʹૹΔͱೖྗͰ͖Δจࣈ਺͕

    ͲΜͲΜݮͬͯ͠·͏

    View full-size slide

  16. M5Stack༻SigfoxϞδϡʔϧ
    16
    • Sigfox௨৴͸ඇৗʹ௿଎
    • ಈըΛݟͯͷ௨Γͳ͔ͳ͔͕͔͔࣌ؒΔ
    • ૹ৴ʙड৴·Ͱʹ30ඵ͘Β͍͔͔Δ
    • ϙέϕϧੈ୅ʹౖΒΕΔ͔΋͠Εͳ͍

    View full-size slide

  17. M5Stack༻SigfoxϞδϡʔϧ
    17
    • SORACOM Orbit͸SigfoxʹରԠ͍ͯ͠ͳ͍
    • ʮSORACOM Air for ηϧϥʔͷΈରԠʯ

    ͱ։ൃऀΨΠυʹॻ͍ͯ͋Δ
    • ௨৴ྔ͕ݶΒΕΔSigfoxͦ͜धཁ͕͋Γͦ͏ɻ

    #ιϥίϜαϯλ ͓ئ͍͠·͢ʂ

    View full-size slide

  18. M5Stack༻SigfoxϞδϡʔϧ
    18
    • ௨৴ճ਺ʹ੍ݶ͕͋Δ
    • ্Γ௨৴͸140ճ/೔
    • ͜Ε͕ଟ͍͔গͳ͍͔͸ҙݟ͕෼͔Εͦ͏
    • ԼΓ௨৴͸4ճ/೔
    • ड৴ػͱͯ͠͸࢖͍ͮΒ͍

    View full-size slide

  19. SORACOM
    19
    • ্Γ௨৴: FunkΛ࢖ͬͯLambdaؔ਺Λݺͼग़͢
    • ԼΓ௨৴: Beam MQTTΤϯυϙΠϯτΛ࢖ͬͯɺσόΠε͔Βsubscribe

    View full-size slide

  20. AWS Lambda
    20
    • 2λονೖྗม׵දΛ࡞͍ͬͯΔ

    View full-size slide

  21. AWS Lambda
    21
    • 2λονೖྗม׵දΛ࡞͍ͬͯΔ

    View full-size slide

  22. AWS Lambda
    22
    • 2λονೖྗม׵දΛ࡞͍ͬͯΔ
    • 78, 79, 70, 88, 89, 80͸ػछґଘจࣈͰ͕͢ͱΓۭ͋͑ͣʹ

    View full-size slide

  23. AWS Lambda
    23
    • ૹΒΕ͖ͯͨจࣈΛ2จࣈͣͭऔΓग़ͯ͠ม׵

    View full-size slide

  24. AWS Lambda
    24
    • ૹΒΕ͖ͯͨจࣈΛ2จࣈͣͭऔΓग़ͯ͠ม׵
    • ߴڃݴޠόϯβΠ

    View full-size slide

  25. AWS IoT Core
    25
    • γϯϓϧʹMQTT Brokerͱͯ͠࢖༻

    View full-size slide

  26. M5Stack(ड৴ػ)
    26
    • MQTT Brokerʹରͯ͠subscrib
    e


    • ड৴ͨ͠ΒσΟεϓϨΠʹग़ྗ
    • Sigfoxͩͱճ਺੍ݶ͕ݫ͍͠ͷͰ3GΛར༻
    • ࣗ༝ʹ௨৴Ͱ͖Δૉ੖Β͠͞Λ࣮ײ

    View full-size slide

  27. M5Stack(ड৴ػ)
    27
    • ೔ຊޠϑΥϯτΛ࢖༻
    • ͪ͜ΒͷهࣄΛࢀߟʹ…(ଟँ)

    https://qiita.com/ma2shita/items/fef1608fc9cf3a7bd46a

    View full-size slide

  28. M5Stack(ड৴ػ)
    28
    • ண৴Ի΋࠶ݱ
    • SperkerͰPiPiPiPiPi….తͳԻΛ࠶ݱ

    View full-size slide

  29. ឯ༨ۂંΛܦͯɺ׬੒ʂʂʂ
    29

    View full-size slide

  30. (ҙ֎ͱ)͍Ζ͍Ζͳٕज़͕ू݁ͯ͠
    ݱ୅൛ɾϙέϕϧ͸ಈ͍ͯ·͢

    View full-size slide

  31. ·ͱΊ
    31
    • ࠓճɺʮSigfoxʯͱ͍͏੍໿ΛࣗΒ՝͕ͨ͠ނɺաࠅͳ։ൃͰͨ͠
    • ͜Ε·Ͱʮ೥্ͷਓͱձ࿩͢Δͱ͖ͷఆ൪ͷ࿩୊ʯʹʮϙέϕϧʯ
    • ࠓޙ͸ɺ΋ͬͱ਌ۙײΛ΋ͬͯʮϙέϕϧʯͱ઀͢Δ͜ͱ͕Ͱ͖ͦ͏

    View full-size slide

  32. ·ͱΊ
    32
    •࣮ࡍ࡞ͬͯΈͯಘΒΕΔٕज़త஌ݟ͸ҙ֎ͱଟ͍ͷͰɺ

    Έͳ͞Μ΋ͥͻԿ͔࡞ͬͯΈ͍ͯͩ͘͞ʂ

    View full-size slide

  33. ͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠
    Thank You
    We are Hiring
    !


    https://recruit.fusic.co.jp/

    View full-size slide