I am trying to read a register from a power meter using the Modbus Serial Client. When I press test under Request Configuration testing, I get the error: “Failed to test request, check your configuration.”
When I execute the following command in the CLI, I am logged out of the router and see the login page:
I regret to inform you that Modbus logs cannot be accessed directly through logread. However, we can still attempt to address this issue. Firstly, let’s determine if Modbus is operational on your device, as you have expressed doubts. To do this, we can try reading RUT95 Modbus registers containing device information to monitor our RUT956:
Go to Services → Modbus → Modbus TCP Server and enable the server, then save the settings.
Firstly, I suggest testing it again with the Modbus Serial Client on RUT956 and double-checking all the settings. Additionally, ensure that the Modbus slave (power meter) is correctly configured and the Modbus instance is running.
@Marijus I think that the settings are correct because they worked on a different Modbus gateway (not from Teltonika). However, I find it strange that I receive an immediate ‘Failed to test request, check your configuration’ error when I click the Test button.
Sorry for the late reply. Yes, you can test the Modbus serial client the same way I explained for the Modbus TCP client.
You’ll need to connect and enabled Modbus serial server to your Teltonika router. The procedure for testing it is documented in the .gif below. If you have any additional questions, feel free to ask.