FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14231 questions

16882 answers

27767 comments

54444 members

0 votes
553 views 1 comments
by
Hi,

is it possible to periodically (e.g. every 5 minutes) read data from Modbus RTU (RS485), format the data (e.g. to a json) and send it over mqtt?

Thanks,

Dennis

1 Answer

0 votes
by
Hello,

Regarding the scenario you want to achieve. Yes it is possible mainly you will just need to configure Modbus Serial Master first where and configure Modbus requests to specific registers you want to get when finished you can configure Modbus Data Sender. Just specify instead of HTTP(S) you will use MQTT.

You can refer to this links for more information:
https://wiki.teltonika-networks.com/view/TRB145_Data_to_Server
https://wiki.teltonika-networks.com/view/TRB145_Modbus#Modbus_Serial_Master

If you have any further clarifications you can inform me :)

Hope it helps

Regards,
Jerome
by
unfortunately this method sends all the separate modbus requests as a single mqtt value. how do you configure the units to send each modbus request as a separate mqtt value?