Azure SORACOM Futabaのサーボで金賞もらった話

Azure SORACOM Futabaのサーボで金賞もらった話

7507885e7de2f5fa2a3e80a445236d89?s=128

masato-ka

April 23, 2018
Tweet

Transcript

  1. Azure SORACOM Futabaͷ αʔϘͰۚ৆΋Βͬͨ࿩ 2018/04/26 @masato_ka (·͞ͱ͔)

  2. ຊ೔ͷ࿩ʹ͍ͭͯ https://algyan.connpass.com/event/76677/ ίϯςετͷৄࡉ͸ʮsoracom ۚ৆ʯͰݕࡧ

  3. ίϯςετԠื࡞඼ͷ৚݅ RS304MD Futaba Microsoft Azure Futaba੡ίϚϯυํࣜαʔϘͱMicrosoft Azure Λ࢖ͬͯIoTΞϓϦΛ࣮૷͢Δ͜ͱɻ ×

  4. ίϚϯυํࣜαʔϘͱ͸ʁ RS304MD Futaba •γϦΞϧ௨৴ •֯౓ࢦఆ •τϧΫͷ੍ޚ •ݱࡏ֯౓ͷऔಘ •Ϟʔλෛՙͷऔಘ Cloud UART

    ֯౓τϧΫࢦྩ஋ ݱࡏ֯ɾෛՙ ϑΟʔυόοΫ ࢦྩ஋
  5. খ෺ऩೲIoTαʔϏεLift! RS304MD Futaba ඼෺Λݕ஌͠ ͯࣗಈͰऩೲ ඼෺ͷॏ ͞Λଌఆ Cloud ָ͍͠ʂ ݡ͍ʂ

    εϚϗΞϓ ϦͰՄࢹԽ
  6. খ෺ऩೲIoTαʔϏεLift! Job Schedule with Direct Method Cloud AM7:00 RS304MD Futaba

    ਖ਼֬ʂ ศརʂ
  7. Lift!ͷ࢓૊Έ

  8. Lift! ͷجຊಈ࡞ ※શೋॏ൒ೋॏม׵ճ࿏লུ ੍ޚ௨৴ܥ(WioLTE) λΫτεΠον RS304MD Futaba Lift! UP! ࢦྩ஋ͱτϧΫ੍ޚ

    Cloud Direct methodܦ ༝Ͱεέδϡʔϧ ಈ࡞ɺ֎෦αʔϏ ε࿈ܞ ϘλϯͰ΋ ϦϑτΛૢ࡞ Ͱ͖Δɻ
  9. Lift! ͷجຊಈ࡞ ੍ޚ௨৴ܥ(WioLTE) λΫτεΠον RS304MD Futaba Lift! UP! ՙॏ ෛՙ

    ՙॏʹԠͨ͡ిྲྀ ஋(ෛՙΛऔಘ) ඼෺ͷݕ஌ͱॏྔʹม׵ ࢦྩ஋ͱτϧΫ੍ޚ ݱࡏ֯౓ ͱిྲྀ஋ ݱࡏͷLiftͷঢ়ଶͱ ඼෺ͷঢ়ଶΛΠϕ ϯτͱͯ͠ૹ৴ Cloud
  10. γεςϜߏ੒ͱ໾ׂ Internet HTTP/SSE HTTP HTTP HTTP AMQP MQTT MQTTS SIM

    (Lift Device) SORACOM Microsoft Azure REST API •Ϣʔβೝূ/UI •σόΠεొ࿥ •εέδϡʔϧ؅ཧ •AMQP to HTTP •ςϨϝτϦड৴ •Job schedule Direct method DBͳͲӬଓԽͷهࡌ͸লུ •SASτʔΫϯੜ੒ •ϓϩτίϧม׵ Beam IoT Hub Functions App Service •ϝλσʔλαʔϏ εͰσόΠεID഑৴
  11. ͳΜͰιϥίϜͷ αʔϏεΛ ࠾༻ͨ͠ͷ͔ʁ SORACOM

  12. ຊ൪ͰσϞΛ͘͠͡Γͨ͘ͳ͔ͬͨɻ ຊ൪Ͱઈରʹಈ͘σϞ ʹ͢Δʹ͸Ͳ͏͢Ε͹ ͍͍͔ʁ

  13. σϞ΍ϓϩτλΠϓ͕ຊ൪Ͱಈ͔ͳ͘ͳΔཧ༝ ిݯΛೖΕΔ ωοτϫʔΫ઀ଓ ઃఆɾιϑτىಈ खॱ΍ઃఆ߲໨͕ଟ͍ͱϛε΋ى͖΍͘͢ͳΔ OS͕ىಈ͠ͳ͍ ઀ଓͰ͖ͳ͍ ιϑτ͕མͪΔ

  14. ͭ·Γઈରʹಈ͘σϞͱ͸ʁ ిݯ౤ೖͷΈͰ Ϋϥ΢υʹ઀ଓ͠ ಈ͖࢝ΊΔ͜ͱ

  15. ిݯҰൃϙϯͷ αʔϏεΛιϥίϜ Ͱ࣮ݱʂ

  16. ిݯ౤ೖͷΈͰ࣮֬ʹىಈ OS͕ෆཁͰ͋Ε͹γϯάϧϘʔυίϯϐϡʔλΑΓ ϚΠίϯϘʔυΛબ୒ͯ͠ϕΞϝλϧͰίʔυΛಈ͔͢

  17. ͍ͭͰ΋ಉ͡ωοτϫʔΫ؀ڥΛར༻ LTEΛ࢖ͬͯWiFiͷઃఆΛॳΊ͔Β͠ͳ͍ɻ WioLTE ʹSORACOM Air

  18. σόΠε΁ͷ؀ڥ৘ใઃఆ σόΠεݻ༗ͷID΍Ϋϥ΢υͷ઀ଓ৘ใͷ؅ཧ΍ઃఆ͕൥ࡶ ίʔυʹίϯϑΟ άઃఆ͕ϕλॻ͖ ίϯϑΟάΛޙ ͔ΒखಈͰઃఆ ιʔείʔυ͕ެ։ ͮ͠Β͍͘ɺσόΠε ͝ͱʹFWΛϏϧυ͢Δ ඞཁ͕͋Δɻ

    σόΠεΛ૿΍ͨ͢ ͼʹઃఆΛ͢Δඞཁ͕ ͋Δɻઃఆͨ͠஋ΛӬ ଓԽ͢Δॲཧ͕ඞཁɻ
  19. σόΠε΁ͷઃఆ஋ॻ͖ࠐΈΛࣗಈԽ σόΠεىಈ࣌ʹࣗಈతʹઃఆΛಡΈࠐΉΑ͏ʹ͢Δɻ ϝλσʔλαʔϏεΛ࢖͍઀ଓ࣌ʹઃఆΛ஫ೖ ɾɾɾ Cloud ೝূ৘ใ σόΠεࣝผͷID

  20. ͦ΋ͦ΋σόΠεʹઃఆΛͤ͞ͳ͍ ͞ΒʹσόΠεͰ΍Δ͜ͱ͸࠷௿ݶʹγϯϓϧʹ͢Δ SORACOM BeamͰೝূࣗମΛΦϑϩʔυ ɾɾɾ Cloud ೝূ৘ใ σόΠεࣝผͷID

  21. ిݯΛೖΕΕ͹ޙ͸଴͚ͭͩɻ ిݯΛೖΕΔ ࣗಈ઀ଓ ४උ͸ిݯΛೖΕΔ͚ͩͰ׬ྃ ౰೔΋Կࣄ΋ͳ͘σϞ͕Ͱ͖·ͨ͠ɻ Cloud LTE઀ଓ ىಈΛ଴ͭͷΈʂ

  22. ·ͱΊ 1.ઈରʹಈ͘σϞ=ిݯҰൃىಈ ɹ࡞඼ͷ׬੒౓΋ߴ͘ͳΔɻ 2.࡞Δखؒ΋ল͚Δ ɹݶΒΕͨ࣌ؒͰຊ࣭తͳ͜ͱʹूத 3.σόΠε൛TwelvFactorAppͬΆ͍ ɹσόΠεͷ਺͕૿͑ͯ΋؀ڥ͕มΘͬͯ΋҆৺ ιϥίϜΛ࢖͍͜ͳͯ͠ϋοΧιϯͰ׆༂͠Α͏ʂ ޡղΛڪΕͣ ʹݴ͏ͱʹ

  23. એ఻1 Wio LTE ༻Platform IOઃఆ VSCode ͔ΒWioLTEͷ։ൃ͕Ͱ͖Δɻ vscode wiolteͰݕࡧʂ

  24. એ఻2 VSCode soracom extention VSCode ͔ΒSORACOM Air ΍άϧʔϓͷ؅ཧ vscode soracomͰݕࡧʂ

  25. Follow me Twitter: @masato_ka ຊ೔ͷࢿྉ:https://github.com/masato-ka/presentation