You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As an example, I want to read three registers from a device
11174
11176
11177
Register 11175 does not exist, reading from it causes an error.
To Reproduce
If I configure those three registers in iobroker.modbus, I will get an error, because iobroker.modbus tries to read all four registers (11174 - 11177) at once, I assume to be more efficient.
The only way to avoid the problem is to reduce the max request length to 1, effectively disabling any possible optimization.
Expected behavior
iobroker.modbus should respect gaps between requested register addresses and only read multiple registers for explicitly configured address sequences.
Describe the bug
As an example, I want to read three registers from a device
Register 11175 does not exist, reading from it causes an error.
To Reproduce
If I configure those three registers in iobroker.modbus, I will get an error, because iobroker.modbus tries to read all four registers (11174 - 11177) at once, I assume to be more efficient.
The only way to avoid the problem is to reduce the max request length to 1, effectively disabling any possible optimization.
Expected behavior
iobroker.modbus should respect gaps between requested register addresses and only read multiple registers for explicitly configured address sequences.
Screenshots & Logfiles
modbus.0
2024-10-30 21:00:08.083 warn [DevID_1] Poll error count: 1 code: {"errorCode":131,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
modbus.0
2024-10-30 21:00:08.083 debug Received pdu describes an error.
modbus.0
2024-10-30 21:00:08.077 debug [DevID_1/holdingRegs] Poll address 11174 - 4 registers
Versions:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: