We are using the Teltonika RUT142 router to collect data from a PLC via Modbus TCP and then send this data to our MQTT broker (EMQX) every 10 seconds. However, we’re encountering a problem where the MQTT messages are sometimes received incomplete, resulting in broken data. This occurs intermittently throughout the day.
Troubleshooting Steps Taken:
Verified network stability between PLC, router, and MQTT broker.
Checked and adjusted MQTT Quality of Service (QoS) settings. (Experiencing the same problem with Qos:0,1,2)
We would appreciate any insights or recommendations that could help us resolve this issue.
I want to ensure I fully understand how the collection period from the router to the PLC impacts the “Data to Server” function. Specifically, is there a way to check the logs of data collected directly from the PLC without immediately sending it to the server? This would help me identify any problems in the future.
Also, if I aim to send data to the MQTT broker every 10 seconds, what would be the recommended data collection period setting to avoid any data loss or overlap? I want to make sure the timing between collection and transmission is optimal.
Finally, if there’s any specific section in the Teltonika documentation that explains this aspect in more detail, I would greatly appreciate a reference. I’m interested in configuring this setup as reliably as possible to prevent malfunctions.
After your suggestion, I have changed the collection period time for collecting data from plc to 8 seconds, and I am still experiencing the same problem.