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

アリババクラウドのIoTプラットフォームデモ

 アリババクラウドのIoTプラットフォームデモ

本セミナーの動画は以下のサイトよりご覧いただけます。
https://www.alibabacloud.com/ja/campaign/asiagateway2021

AlibabaCloud_JP

May 10, 2021
Tweet

More Decks by AlibabaCloud_JP

Other Decks in Business

Transcript

  1. 先⽇説明したアリババクラウドIoTのまとめ AI edge box デバイス側 • ⼤量接続 LPWA (Low Power

    Wide Area) • 知能化 • 世界にて利⽤ できる通信モ ジュール • 中国3⼤キャ リア⾃動に選 べるスマート SIMカード ネットワーク側 サービス側 AI アジア地域に広 く使えるデータ センタ
  2. デバイス Downlink Uplink Alibaba IoT PF AMQP HTTPS Restful API

    業務サーバ データベース データ やり取り アリババクラウドIoTプラットホームサービス 異 な る 通 信 方 式 同 じ プ ラ , ト フ / 0 ム 本⽇ハンズオンの内容
  3. Example of MQTT Operation without SSL(1/4) AT+QMTCFG="aliauth",0,"oyjtmPl5a5j","MQTT_TEST","wN9Y6pZSIIy7Exa5qVzcmigE GO4kAazZ" //Configure Alibaba

    device information for AliCloud. OK AT+QMTOPEN=? +QMTOPEN: <tcpconnectID>,<host_name>,<port> OK AT+QMTOPEN=0,"iot-as-mqtt.cn-shanghai.aliyuncs.com",1883 //Open a network for MQTT client. OK +QMTOPEN: 0,0 //Opened the MQTT client network successfully. AT+QMTOPEN? +QMTOPEN: 0,"iot-as-mqtt.cn-shanghai.aliyuncs.com",1883 OK
  4. AT+QMTCONN=? +QMTCONN: <tcpconnectID>,<clientID> [,<username>[,<password>]] OK //Connect a client to MQTT

    server. //If AliCloud is connected, AT+QMTCFG=“aliauth” can be used to configure the device information in advance, and there is no need to provide username/password here anymore. AT+QMTCONN=0,“clientExample” OK +QMTCONN: 0,0,0 //Connected the client to MQTT server successfully. Example of MQTT Operation without SSL(2/4)
  5. AT+QMTSUB=? +QMTSUB: <tcpconnectID>,<msgID>,<topic>,<qos> OK //Subscribe to topics. AT+QMTSUB=0,1,“topic/example”,2 OK +QMTSUB:

    0,1,0,2 AT+QMTSUB=0,1,“topic/pub”,0 OK +QMTSUB: 0,1,0,0 Example of MQTT Operation without SSL(3/4)
  6. AT+QMTPUB=? +QMTPUB : <tcpconnectID>,<msgID>,<qos>,<retain>,<topic> OK //Publish messages. AT+QMTPUB=0,0,0,0,“topic/pub” >This is

    test data, hello MQTT. //After receiving >, input data “This is test data, hello MQTT.” and then send it. The maximum length of the data is 1548 bytes and the data that beyond 1548 bytes will be omitted. After inputting data, tap Ctrl+Z to send. OK +QMTPUB: Example of MQTT Operation without SSL(4/4)