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

続、Mi Band 4をJavaScriptで #iotlt vol60 at docs

n0bisuke
February 13, 2020

続、Mi Band 4をJavaScriptで #iotlt vol60 at docs

Mi Band 4 にWeb Bluetoothでアクセスを試みました。
---> 出来ました。続きはQiitaに出したい。

IoTLT vol60 docs-kamiyacho開催
https://iotlt.connpass.com/event/163342/

n0bisuke

February 13, 2020
Tweet

More Decks by n0bisuke

Other Decks in How-to & DIY

Transcript

  1. ଓɻ.J#BOEΛ+BWB4DSJQUͰ
    ͷͼ͚͢
    JPUMUWPM

    View full-size slide

  2. ੁݪ ͷͼ͚͢
    dotstudio, Inc.
    ɾϓϩτλΠϐϯάઐ໳εΫʔϧʮϓϩτΞ΢τελδΦʯ
    ɾࠓ೔͸18͔࣌Β׆ಈ։࢝
    nobisuke sugawara

    View full-size slide

  3. ΈΜͳେ޷͖.J#BOE

    View full-size slide

  4. ɾ͍ΘΏΔεϚʔτόϯυ
    ɾͱΓ͋͑ͣόοςϦʔ͕࣋ͪྑ͍
    ɾ৺ഥ਺ଌΕΔׂʹ͍҆

    View full-size slide

  5. ઌ೔ εϙʔπ*P5-5
    Ͱͷൃද

    View full-size slide

  6. ઌ೔ εϙʔπ*P5-5
    Ͱͷൃද
    ɾ.J#BOE·ͰͷϋοΫ͸ൃݟ
    ɾ)BDLͰ͖ͦ͏ͳงғؾ͸ײͨ͡
    ɾ͕࣌ؒ଍Γͳ͔ͬͨ

    View full-size slide

  7. ࠓճ͸ͳΜͱɺσʔλ͕औΕ·ͨ͠ɻ

    View full-size slide

  8. 8FC#MVFUPPUI
    ϒϥ΢β্ͷ+BWB4DSJQU͔Β#-&σόΠ
    εʹΞΫηεͰ͖Δ࢓૊Έ
    ("55ͱݺ͹ΕΔϓϩϑΝΠϧΛ࢖ͬͯΞ
    Ϋηε

    View full-size slide

  9. લճͷϋΠϥΠτ
    લʹಈ͍ͨαϯϓϧ͕ಈ͔ͳ͍
    ৭ʑͳαϯϓϧ͕ಈ͔ͳ͍
    தࠃޠϦϑΝϨϯε
    ಡΊͳ͔ͬͨ

    View full-size slide

  10. ࠓճ͸ʜʜ
    ɾ8FC#MVFUPPUIͷίʔυΛ΋͏গͪ͠ΌΜͱಡΜͩ
    ɾ#MVF+FMMZͱ͍͏8FC#MVFUPPUIͷϥούʔ
    ϥΠϒϥϦͷαϯϓϧʹॿ͚ΒΕͨ
    ɾ66*%Λ͔ͭΊΕ͹0,ɻ
    KFMMZXBSF͞Μ͋Γ͕ͱ͏

    View full-size slide

  11. .J#BOEͷ1ZUIPOϥΠϒϥϦ͕͋ͬͨ

    View full-size slide

  12. .J#BOEͷ1ZUIPOϥΠϒϥϦ͕͋ͬͨ
    ΍͸Γ.J#BOEͱ͸एׯҧ͏ɻઌਓΑ͘୳ͬͨͳ͊

    View full-size slide

  13. ɾ66*%୳ΕͨΒ͋ͱ͸#-6&+&--:ͷαϯϓϧΛ
    ॻ͖׵͑

    View full-size slide

  14. Ͱ͖ͨͬΆ͍

    View full-size slide

  15. Ͱ͖ͨͬΆ͍
    ˞औΕͨ஋ͨ͠Βਖ਼ʹ

    όΠφϦσʔλͷѻ͍ͱ࢓༷ௐ͕ࠪ·ͩո͍͠

    View full-size slide

  16. ։ൃҎલͰൃੜͨ͠ॾ஫ҙ
    ϥϯΩϯάϕετ

    View full-size slide

  17. NBD04$BUBMJOBͱOPCMF໰୊
    Ґ

    View full-size slide

  18. /PCMF/PEFKTͰ#-&ѻ͑ΔϥΠϒϥϦ
    ݁ߏɺ௿ϨΠϠʔΞΫηεͳͷͰ SZ

    View full-size slide

  19. ·ͩJTTVF͸։͍͍ͯΔʜ

    View full-size slide

  20. .BDͰͷ#MVFUPPUIͷσόοά೉
    Ґ

    View full-size slide

  21. Ҏલ͸ɺ-JHIU#MVFͱ͍͏ΞϓϦͰ
    σόοάͯ͠·ͨ͠ɻ

    View full-size slide

  22. ࠷ۙ.BDΛങ͍ସ͑ͨͷͰΠϯετʔ
    ϧ͠Α͏ͱͨ͠Βʜʜ

    View full-size slide

  23. ୅ସҊ#MVF4FF

    View full-size slide

  24. ୅ସҊ #MVFUJMJUZ
    ͪΐͬͱ৮ͬͨײ͡#MVF4FFͷํ͕ݟ΍ͦ͢͏ɻ

    View full-size slide

  25. ͓લͲ͜ʹܨ͕ͬͯΔΜͩ໰୊
    Ґ

    View full-size slide

  26. ;ͱͨ͠λΠϛϯάͰઃఆΛݟͯΈΔɻ

    View full-size slide

  27. ;ͱͨ͠λΠϛϯάͰJ1IPOFͷઃఆΛݟͯΈΔɻ
    ͳΔ΄Ͳɺ
    ઀ଓ͞ΕͯΔͷ͔

    View full-size slide

  28. ফͯ͠ΈΔ͕ʜ

    View full-size slide

  29. ;ͱͨ͠λΠϛϯάͰJ1IPOFͷઃఆΛݟͯΈΔɻ
    ͳΔ΄Ͳɺ
    ઀ଓ͞ΕͯΔͷ͔

    View full-size slide

  30. .J'JUΞϓϦͷϦίωΫτ࢓༷͕ڧ͗͢Δ໛༷

    View full-size slide

  31. ·ͱΊ
    ɾMi Band҆ͯ͘ྑ͍
    ɾWeb BluetoothͰHackͰ͖ͨ
    ɾJSΞΫηεͰ͖ͨͷͰͨͿΜnobleͱ͔΋͍͚Δ
    (mac CatalinaҎ֎ͳΒ͖ͬͱ…ϥϒύΠͱ͔)
    ɾ͜Μͳ͜ͱͰ͖ͦ͏
    - Mi BandͰೖୀࣨ؅ཧ
    - ਭ຾ϩά΍า਺ͷࣗಈ؅ཧ
    ɾલճϦϕϯδ͍͚ͨ… (΄ο
    ͋Γ͕ͱ͏͍͟͝·ͨ͠
    !OCJTVLF

    View full-size slide

  32. .J#BOEΛϋοΫ͔ͨͬͨ࣌ؒ͠
    ͷͼ͚͢
    εϙʔπJPUMU

    View full-size slide