subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
3,174 views 2 comments
by anonymous

While I was in the middle of writing a solution to handle multiple Modbus TCP slaves over MQTT, I updated my RUT900 with the latest firmware (RUT9XX_R_00.06.05.1) from 2019.11.15, as I was intrigued by the new "Modbus TCP custom register block" support in the Modbus Slave. Only to find something more interesting a new tab on the Modbus settings page: MQTT gateway.

Activating this enables the process /usr/sbin/modbusgateway with the default arguments 1883 request response.

Now I was unable to find any documentation about this feature. How it is intended to work, how to interact with it etc. I assume it is intended as a direct MQTT <-> Modbus gateway, where requests over MQTT results in Modbus TCP (RTU?) requests which in turn results in responses over Modbus back to MQTT. If this is the case then great, while my solution is already done, it would be better to use a solution supported by the base firmware.

Does anyone have any information about this feature?

1 Answer

0 votes
by anonymous


Please check attached example, perhaps it could help to your case.

Best answer
by anonymous

This was exactly what I was looking for. Thanks!

(Now the only problem remaining is that the Mosquitto configuration (Luci/UCI) is lacking support for topic mapping)

Will this work for Modbus Serial Slave?