RUT956 missing MQTT fields

I’m reading several MODBUS variables from 4 devices every 10 seconds with no errors.

I’m sending these variables to a MQTT server every 60 seconds but, for unknown reasons, some routers (same model) avoid some fields just sometimes:

Complete message:

[{“V_l1”:“2431”,“date”:“08/10/2026 13:22:48”},{“V_l2”:“2379”,“date”:“08/10/2026 13:22:48”},{“V_l3”:“2354”,“date”:“08/10/2026 13:22:48”},{“I_l1”:“0”,“date”:“08/10/2026 13:22:48”},{“I_l2”:“100”,“date”:“08/10/2026 13:22:50”},{“I_l3”:“0”,“date”:“08/10/2026 13:22:52”},{“activePower”:“0”,“date”:“08/10/2026 13:22:54”},{“activeEnergy”:“3313”,“date”:“08/10/2026 13:22:56”}]

The MQTT server sometimes receives messages with missing fields:

[{“I_l1”:“0”,“date”:“08/10/2026 13:18:10”},{“I_l2”:“0”,“date”:“08/10/2026 13:18:12”},{“I_l3”:“0”,“date”:“08/10/2026 13:18:14”},{“activePower”:“0”,“date”:“08/10/2026 13:18:17”}]

[{“activeEnergy”:“7”,“date”:“08/10/2026 13:19:09”},{“V_l1”:“2319”,“date”:“08/10/2026 13:19:11”},{“V_l2”:“2286”,“date”:“08/10/2026 13:19:13”},{“V_l3”:“2333”,“date”:“08/10/2026 13:19:15”},{“I_l1”:“0”,“date”:“08/10/2026 13:19:17”}]

How can I avoid this strange problem? Is there any recommendation about MODBUS vs MQTT period?

Thanks in advance.

Edit: it looks that these messages contain the tail of the previous message and the head of the next message.

I’m reading several MODBUS variables from 4 devices, I’ve checked that when one of the devices is off, the problem arises.

I can also state that if you’re reading 4 MODBUS variables and one of them is an illegal address, the variable is avoided in the MQTT message and the 4th variable in the MQTT message will be the fist MODBUS variable read.

Hello @Linux-RISC,

Apologies for the delayed response.

1. Modbus device availability

You mentioned that the issue occurs when one of the Modbus devices is switched off. Could you clarify whether the missing fields correspond specifically to the device that becomes unavailable? Also, do all fields reappear automatically once that device is switched back on?

Why we need this: This will help determine whether the missing records are directly related to unsuccessful communication with a particular Modbus device.

2. Modbus register validity

You also mentioned that an illegal register address causes the corresponding variable to be omitted from the MQTT message. Could you confirm whether the issue also occurs when all devices are online and all configured register addresses are valid?

Why we need this: This will help distinguish between expected behaviour when a Modbus reading cannot be obtained and an issue affecting data collection under normal operating conditions.

3. Complete Modbus configuration

Could you provide the complete Modbus configuration, including:

  • All configured Modbus requests and their names.
  • Server IDs (Slave IDs) of the four Modbus devices.
  • Register addresses and data types.
  • Polling frequencies.

Why we need this: We would like to verify that all intended variables are being requested correctly and that the current Server ID 21 filter includes the required Modbus data.

4. MQTT messages captured directly from the broker

Could you connect to the same MQTT broker using an independent MQTT client, such as MQTT Explorer, and subscribe to the same topic configured on the RUT956?

Please capture several consecutive messages, including complete and incomplete payloads.

Compare the received messages with those displayed by your original MQTT application and share both results with us.

Why we need this: This will help determine whether the incomplete payloads are already received from the RUT956 through the broker or whether the issue occurs during processing by the original MQTT subscriber application.

5. Firmware version and system logs

Could you provide the exact RutOS firmware version installed on the affected RUT956?

Additionally, please check whether any Modbus communication errors, Data to Server errors or MQTT connection errors appear in the system logs when the issue occurs.

Why we need this: This will help us identify any firmware-specific behaviour or errors that could be related to the reported issue.

We look forward to your response.

Best regards,
P.

1. Modbus device availability

You mentioned that the issue occurs when one of the Modbus devices is switched off.

Yes, it is one of the cases.

Could you clarify whether the missing fields correspond specifically to the device that becomes unavailable? Also, do all fields reappear automatically once that device is switched back on?

The missing fileds can belong to another device. All fields reappear automatically once that device is switched back on.

When one device is off, it affects the remaining devices.

2. Modbus register validity

You also mentioned that an illegal register address causes the corresponding variable to be omitted from the MQTT message. Could you confirm whether the issue also occurs when all devices are online and all configured register addresses are valid?

Yes, confirmed.

3. Complete Modbus configuration

Could you provide the complete Modbus configuration, including:

  • All configured Modbus requests and their names.
  • Server IDs (Slave IDs) of the four Modbus devices.
  • Register addresses and data types.
  • Polling frequencies.

Work in progres.

4. MQTT messages captured directly from the broker

Could you connect to the same MQTT broker using an independent MQTT client, such as MQTT Explorer, and subscribe to the same topic configured on the RUT956?

In fact, I user MQTT explorer as MQTT client.

5. Firmware version and system logs

Could you provide the exact RutOS firmware version installed on the affected RUT956?

RUT955 RUT9_R_00.07.06.21 and RUT956 RUT9M_R_00.07.24.3.

One last question:

It is not explained anywhere how MODBUS values are processed as MQTT values on Data to Server. I suspect this is where the problem is.