RS485 TO ETH (B) Connect Alibaba Cloud And EMQX

From Waveshare Wiki
Jump to: navigation, search

Hardware Connection

Preparation

How To Connect

RS485 TO ETH (B) Connect01.png

Software Preparation

Start Communication

  • Open Vircom->Device Management-> Double-click the corresponding device ->Firmware Config->MQTT Config.

RS485 TO ETH (B) Connect02.png

  • Alibaba cloud platform -> Device -> Device Information.

RS485 TO ETH (B) Connect03.png

  • Configure the MQTT parameters of the Alibaba Cloud IoT platform to one of the RS485 TO ETH (B).

RS485 TO ETH (B) Connect04.png

  • Download MQTT parameters to RS485 TO ETH(B).

RS485 TO ETH (B) Connect05.png

  • Check the parameter of MQTT text in the corresponding file.

RS485 TO ETH (B) Connect06.png

  • Config MQTT parameter -> The Link light of RS485 TO ETH changes from yellow to blue -> successfully connected to the MQTT server

RS485 TO ETH (B) Connect07.png

  • IoT platform device display offline -> online.

RS485 TO ETH (B) Connect08.png

  • RS485 TO ETH(B) sends data to Alibaba Cloud MQTT server.

RS485 TO ETH (B) Connect09.png

  • Alibaba Cloud IoT platform sends information to RS485 TO ETH(B).

RS485 TO ETH (B) Connect10.png

  • RS485 TO ETH (B) Connect Alibaba Cloud and EMQX (optional).

Open Vircom->Device Management->Double-click the corresponding device->Firmware Config->MQTT Config.
RS485 TO ETH (B) Connect11.png

  • Configure EMQX's MQTT parameters to another RS485 TO ETH(B)

RS485 TO ETH (B) Connect12.png

  • Alibaba Cloud sends data to EMQX: Hello, EMQX!

RS485 TO ETH (B) Connect13.png

  • EMQX sends data to Alibaba Cloud: Hi, ALY!

RS485 TO ETH (B) Connect14.png