Hi there,
I’m trying to follow this:
https://wiki.teltonika.lt/view/Monitoring_via_Modbus#Configuring_the_router
For example, trying to read system uptime, register address=1, number of registers=2, 32bit unsigned integer. (In my head that corresponds to
Using the paper ui, setting start=0 and length=2 in the poll thing, I get:
“Error with read: org.openhab.io.transport.modbus.internal.ModbusSlaveErrorResponseExceptionImpl: Slave responsed with error=2”
Setting start=1, I get no error, but when I make the data thing, I get an error if I set read address as 0:
2020-02-06 22:08:29.291 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Unregistering regular poll task BasicPollTaskImpl@1468b1[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1eba6d8[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=0,length=2,maxTries=3],endpoint=ModbusTCPSlaveEndpoint@188a784[address=192.168.1.1,port=502],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@c5388fa1] (interrupting if necessary)
2020-02-06 22:08:29.300 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Poll task BasicPollTaskImpl@1468b1[request=ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@1eba6d8[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=0,length=2,maxTries=3],endpoint=ModbusTCPSlaveEndpoint@188a784[address=192.168.1.1,port=502],callback=org.openhab.binding.modbus.internal.handler.ModbusPollerThingHandlerImpl$ReadCallbackDelegator@c5388fa1] canceled
2020-02-06 22:08:29.313 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Poll task was canceled – not executing/proceeding with the poll: sleep interrupted [operation ID 6bc515df-0800-4615-908f-826393b9b4a0]
Some of the above could be from the first error when I had the error in the poll thing.
With read address as “1” in the data thing, I get no error, but when I query the item(s):
openhab> smarthome:status jgkgkg1
NULL
openhab> smarthome:status jgkgkg
NULL
openhab>
So, I am not sure if it is working and the value of the item needs to be transformed or if indeed the values of the start length and read address are wrong.
What should be written for start, length and read address if I am trying to follow Teltonika’s wiki - for example for uptime?
/bc