thingsboard-gateway icon indicating copy to clipboard operation
thingsboard-gateway copied to clipboard

[HELP] Reading a range of registers

Open szdavid0504 opened this issue 6 months ago • 1 comments

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]

szdavid0504 avatar Jun 11 '25 21:06 szdavid0504

Hi, currently this sort of behaviour is not supported, I have proposed this in a separate issue #1589

TheSamabo avatar Jun 12 '25 05:06 TheSamabo

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!

samson0v avatar Sep 24 '25 06:09 samson0v