[HELP] Reading a range of registers
Describe the issue We are using ThingsBoard Gateway with a Modbus TCP connector to read over 100 input registers from a Modbus slave device. All registers are of type "input register", and are accessed using functionCode: 4.
According to the Modbus protocol, it is possible to read multiple consecutive registers in a single request by specifying a register range.
However, when inspecting the actual Modbus communication using a third-party tool (WireShark), we observe that each register is being read individually — resulting in a separate Modbus request for every single register.
Question: Is there a way to configure the ThingsBoard Gateway to group multiple register reads into a single Modbus request, in order to improve efficiency and reduce network traffic?
Connector name: Modbus connector
Versions:
- OS: Ubuntu 22.04
- Thingsboard IoT Gateway version 3.6.4]
Hi, currently this sort of behaviour is not supported, I have proposed this in a separate issue #1589
Hi @szdavid0504 and @TheSamabo, thank you for your interest in ThingsBoard IoT Gateway! We are pleased to announce that this feature will be included in the next release of Gateway. So let's stay connected!