J_Dev
June 12, 2025, 1:18am
1
I have a TRB245 connected to a device via serial and am sending the Modbus registers of the device with mqtt using the data to server functionality.
Is there a way to send the GPS data of the TRB245 via the current set up and send it with mqtt?
Of note is that I am unable to change the current set up as this is the only one that will work for my solution.
I can add to the setup I.e. adding TCP server to access the TRB245 Modbus registers.
Hello,
If you’d like to send GPS data alongside your existing Modbus data via MQTT, this can be achieved by enabling the Modbus TCP Server functionality on your TRB245 and then configuring a Modbus TCP Client to request GPS data from the device’s Modbus registers. The relevant register details are as follows:
GPS Latitude :
Register Number: 144
Register Count: 2
Data Type: 32-bit Float
GPS Longitude :
Register Number: 146
Register Count: 2
Data Type: 32-bit Float
More useful information can be found here:
Once configured, this GPS data can be sent together with your Modbus RTU data via your existing MQTT setup.
I hope this helps clarify it. If you need any assistance with the configuration, feel free to reach out.
Best regards,
J_Dev
June 16, 2025, 8:14pm
4
hi Martynas,
Thanks for the response, This pointed me in the right direction,
I managed to to set up correctly for our use case to be able to send the GPS data via MQTT.
All the best,
Joshua
Hello, Joshua,
Thank you for the update, and I’m glad I could help or give the right insights.
Feel free to reach out to us if you need any assistance in the future.
Best regards,
Martynas
system
Closed
June 19, 2025, 5:18pm
6
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.