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.
0 votes
727 views 1 comments
by anonymous
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 anonymous
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 anonymous
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?