FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. 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 127.0.0.1 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

Hi,

Please check attached example, perhaps it could help to your case.https://community.teltonika-networks.com/?qa=blob&qa_blobid=4208100263841122966

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)

by
Will this work for Modbus Serial Slave?