Quick Setup MQTT On Bivocom Router

MQTT is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. For example, in weather service application, all the sensors as publisher publish weather data to MQTT Broker, and Weather Service Center or DB subscribe certain Topic to acquire the data from Broker. Bivocom Routers support standard MQTT protocol for performing all kinds of application.The next article will introduce Quick Setup MQTT On Bivocom Router.

Quick Setup MQTT On Bivocom Router

Configuration on Platform

1.To run up the MQTT feature, we need a MQTT Broker, here we take a broker account as example from CloudMQTT.com platform.

Quick Setup MQTT On Bivocom Router

2.CloudMQTT.com also provide a simple websocket UI as a publisher for quick test. The Received messages will display respective Topic with Message from publishers.

Quick Setup MQTT On Bivocom Router

Configuration on Bivocom Router

1.Bivocom Routers support serial communication (RS232 or RS485) via MQTT. Before go into setting, please connect your slave computer like PLC or sensors to RS232 /RS485 ports on Bivocom router.

2.Bivocom standard package contents Console Cable(3-Pin RS232), connect one side to RS232 ports on Bivocom router (the Black pin to GND port, while Brown pin to RX port, Blue pin to TX port). The other side connect to your slave computer, you may need extra adapter cable if your PLC/sensors don’t have standard serial communication interface.

Quick Setup MQTT On Bivocom Router

3.Go into the WebUI of Bivocom router, >> Advanced>>Serial Communication, Enable Serial 485 or 232 >> Select MQTT as protocol.

4.Input the necessary MQTT server info we got from step 2, Save & Apply, if everything was correct, the Connection Status will indicate “CONNECTED”

Quick Setup MQTT On Bivocom Router

5.On the CloudMQTT.com platform, you can also check the CONNECTIONS list the Bivocom router IP address on. After that, you are able to perform MQTT publisher on Bivocom router.

On the CloudMQTT.com platform, you can also check the CONNECTIONS list the Bivocom router IP address on. After that, you are able to perform MQTT publisher on Bivocom router.

Feature Demo

1.To simulate the slave computer, we use a simple serial communication tool running on PC which connected to Bivocom router via RS232. Then send data as publisher to MQTT Broker.

To simulate the slave computer

2.MQTT server will receive the message with Topic we have set on Bivocom router.

Quick Setup MQTT On Bivocom Router

3.To subscribe the data, we use a simple tool as subscriber.

  • Connect the tool to MQTT server
  • Set the exact subscribe Topic, it also support the variable parameter like “#” “+”
  • On the data window, shows the received data from publisher accordingly.
Quick Setup MQTT On Bivocom Router
Print Email

Comment

Be the first one who leave the comment.

Leave a Reply

We use cookies to deliver you the best experience. By browsing our website you agree to our use of cookies.