ãã®ããã°ã§ã¯ãã¬ãŒãå¶éã®å©ç¹ãã€ãŸããIoT ãã©ãããã©ãŒã ãšã¢ããªã±ãŒã·ã§ã³ã®ã»ãã¥ãªãã£ãã©ã®ããã«åŒ·åã§ãããã«ã€ããŠæ€èšããŸãã
ãã®ããã°ã§ã¯ãã¬ãŒãå¶éã®å©ç¹ãã€ãŸããIoT ãã©ãããã©ãŒã ãšã¢ããªã±ãŒã·ã§ã³ã®ã»ãã¥ãªãã£ãã©ã®ããã«åŒ·åã§ãããã«ã€ããŠæ€èšããŸãã
ããã§ãMQTT éä¿¡ã®åŒ·åã«ããããã©ã³ã¹ããŒãå±€ã»ãã¥ãªã㣠(TLS) ã®éèŠãªåœ¹å²ã«å ãåœãŠãŸãããã®ããã°æçš¿ã§ã¯ãç¹ã« TLS ãšãMQTT éä¿¡ã®æŽåæ§ãæ©å¯æ§ãä¿¡é Œæ§ã確ä¿ãã TLS ã®æ©èœã«çŠç¹ãåœãŠãŸãã
MQTT ãããŒã«ãŒã¯ ACL ã®å®è£ ãç°ãªãå ŽåããããACL èšå®ã®æ£ç¢ºãªæ§æãšæ©èœã¯ MQTT ãããŒã«ãŒ ãœãããŠã§ã¢ããšã«ç°ãªãå¯èœæ§ãããããšã«æ³šæããããšãéèŠã§ãã
ãã®èšäºã§ã¯ãåã®èšäºã§èª¬æãããã®ä»¥å€ã®è¿œå ã®èªèšŒæ¹æ³ã«ã€ããŠè©³ãã説æããŸããå ·äœçã«ã¯ãTokenããŒã¹ã®èªèšŒãš OAuth 2.0 ã«ã€ããŠèª¿æ»ãããã®æŠå¿µã説æããMQTTã§ã®å®è£ ã瀺ããŸãã
匷åèªèšŒã¯ãMQTT 5.0 ã§å°å ¥ãããæ°ããèªèšŒãã¬ãŒã ã¯ãŒã¯ã§ããåŸæ¥ã®ãã¹ã¯ãŒãèªèšŒããå®å šãªããŸããŸãªä»£æ¿æ¹æ³ãæäŸããŸãã
ãã®èšäºã§ã¯ãMQTT ã§ã®èªèšŒã®ä»çµã¿ãšãèªèšŒã«ãã£ãŠã©ã®ãããªã»ãã¥ãªã㣠ãªã¹ã¯ã解決ããããã説æããæåã®èªèšŒæ¹æ³ã§ãããã¹ã¯ãŒãããŒã¹ã®èªèšŒã玹ä»ããŸãã
IoT ã·ã¹ãã ã«ãšã£ãŠã® MQTT ã»ãã¥ãªãã£ã®éèŠæ§ãšãIoT ãã³ããŒãããå®å šãªã·ã¹ãã ãæ§ç¯ããããã«é¿ããã¹ãäžè¬çãªèœãšãç©Žã«ã€ããŠèª¬æããŸãã
ãã®èšäºã§ã¯ãMQTT ãããã³ã«ã® Keep Alive ã¡ã«ããºã ãšãããã EMQX ã§äœ¿çšããæ¹æ³ã玹ä»ããŸãã
V2X (vehicle-to-everything) ã¯ãè»äž¡ãä»ã®è»äž¡ (V2V)ãæ©è¡è (V2P)ãã€ã³ãã©ã¹ãã©ã¯ã㣠(V2I)ããããã¯ãŒã¯ (V2N) ãªã©ãç°å¢å ã®ããŸããŸãªèŠçŽ ãšããŒã¿ã亀æã§ããããã«ããéä¿¡æè¡ã§ãã
MQTT ãããã³ã«ã¯ãããŸããŸãªãããã¯ãŒã¯ç°å¢äžã§ã®ã¡ãã»ãŒãžé ä¿¡ã®ä¿¡é Œæ§ãä¿èšŒãã 3 ã€ã® QoS (Quality of Service) ã¬ãã«ãæå®ããŸãã
ãã®èšäºã§ã¯ãMQTT Persistent Sessionã玹ä»ãããã¹ã¯ãããã¯ã©ã€ã¢ã³ããéããŠClean Sessionã®äœ¿çšæ¹æ³ãå®æŒããŸãã
MQTT ãããã¯ã¯ãã¡ãã»ãŒãžãèå¥ããŠã«ãŒãã£ã³ã°ããããã«MQTT ãããã³ã«ã§äœ¿çšãããæååã§ããããã¯ãMQTT ãããªãã·ã£ãŒãšãµãã¹ã¯ã©ã€ããŒéã®éä¿¡ã«ãããéèŠãªèŠçŽ ã§ãã