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
Fails: 2021-01-13 20:51:28 ERROR Failed to read 100 input table registers starting from 4900: Modbus Error: [Input/Output] No Response received from the remoteunit/Unable to decode response
This is due to the long-ignored issue of modbus4mqtt addresses starting from zero, but actual modbus addresses starting from 1. When the yaml specifies address 4999 we're actually reading address 5000 from modbus' perspective. This means when we try to batch reads on 100-register-aligned boundaries we send a request for address 4900 (4901) which is invalid.
We should fix the addresses in the example YAMLs and teach the modbus interface to account for the zero/one problem.
The text was updated successfully, but these errors were encountered:
Minimal config:
Fails:
2021-01-13 20:51:28 ERROR Failed to read 100 input table registers starting from 4900: Modbus Error: [Input/Output] No Response received from the remoteunit/Unable to decode response
This is due to the long-ignored issue of modbus4mqtt addresses starting from zero, but actual modbus addresses starting from 1. When the yaml specifies address 4999 we're actually reading address 5000 from modbus' perspective. This means when we try to batch reads on 100-register-aligned boundaries we send a request for address 4900 (4901) which is invalid.
We should fix the addresses in the example YAMLs and teach the modbus interface to account for the zero/one problem.
The text was updated successfully, but these errors were encountered: